alpha.c (alpha_set_memflags_1): Delete.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
2
3         * config/alpha/alpha.c (alpha_set_memflags_1): Delete.
4         (alpha_set_memflags): Use FOR_EACH_SUBRTX_VAR.
5
6 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7
8         * config/alpha/alpha.c: Include rtl-iter.h.
9         (split_small_symbolic_operand_1): Delete.
10         (split_small_symbolic_operand): Use FOR_EACH_SUBRTX_PTR.
11
12 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
13
14         * config/s390/s390.c: Include rtl-iter.h.
15         (check_dpu): Delete.
16         (s390_loop_unroll_adjust): Only iterate over patterns.
17         Use FOR_EACH_SUBRTX.
18
19 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
20
21         * config/spu/spu.c: Include rtl-iter.h
22         (ea_symbol_ref): Replace with...
23         (ea_symbol_ref_p): ...this new function.
24         (spu_legitimate_address_p): Update call accordingly.
25         (spu_legitimate_constant_p): Likewise.  Use FOR_EACH_SUBRTX.
26
27 2014-10-27  Phil Muldoon  <pmuldoon@redhat.com>
28             Tom Tromey  <tromey@redhat.com>
29
30         * aclocal.m4, configure: Rebuild.
31         * Makefile.in (aclocal_deps): Add gcc-plugin.m4.
32         * configure.ac: Use GCC_ENABLE_PLUGINS.
33         * stor-layout.c (finish_bitfield_layout): Now public.  Change
34         argument type to 'tree'.
35         (finish_record_layout): Update.
36         * stor-layout.h (finish_bitfield_layout): Declare.
37
38 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
39
40         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define again.
41         * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
42         Restore, enable for bigendian, update to use __builtin..._scal...
43
44 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
45
46         * config/aarch64/aarch64-simd-builtins.def (reduc_smax_, reduc_smin_,
47         reduc_umax_, reduc_umin_, reduc_smax_nan_, reduc_smin_nan_): Remove.
48         (reduc_smax_scal_, reduc_smin_scal_, reduc_umax_scal_,
49         reduc_umin_scal_, reduc_smax_nan_scal_, reduc_smin_nan_scal_): New.
50
51         * config/aarch64/aarch64-simd.md
52         (reduc_<maxmin_uns>_<mode>): Rename VDQV_S variant to...
53         (reduc_<maxmin_uns>_internal<mode>): ...this.
54         (reduc_<maxmin_uns>_<mode>): New (VDQ_BHSI).
55         (reduc_<maxmin_uns>_scal_<mode>): New (*2).
56
57         (reduc_<maxmin_uns>_v2si): Combine with below, renaming...
58         (reduc_<maxmin_uns>_<mode>): Combine V2F with above, renaming...
59         (reduc_<maxmin_uns>_internal_<mode>): ...to this (VDQF).
60
61         * config/aarch64/arm_neon.h (vmaxv_f32, vmaxv_s8, vmaxv_s16,
62         vmaxv_s32, vmaxv_u8, vmaxv_u16, vmaxv_u32, vmaxvq_f32, vmaxvq_f64,
63         vmaxvq_s8, vmaxvq_s16, vmaxvq_s32, vmaxvq_u8, vmaxvq_u16, vmaxvq_u32,
64         vmaxnmv_f32, vmaxnmvq_f32, vmaxnmvq_f64, vminv_f32, vminv_s8,
65         vminv_s16, vminv_s32, vminv_u8, vminv_u16, vminv_u32, vminvq_f32,
66         vminvq_f64, vminvq_s8, vminvq_s16, vminvq_s32, vminvq_u8, vminvq_u16,
67         vminvq_u32, vminnmv_f32, vminnmvq_f32, vminnmvq_f64): Update to use
68         __builtin_aarch64_reduc_..._scal; remove vget_lane wrapper.
69
70 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
71
72         * config/aarch64/aarch64-simd-builtins.def
73         (reduc_splus_<mode>/VDQF, reduc_uplus_<mode>/VDQF, reduc_splus_v4sf):
74         Remove.
75         (reduc_plus_scal_<mode>, reduc_plus_scal_v4sf): New.
76
77         * config/aarch64/aarch64-simd.md (reduc_<sur>plus_mode): Remove.
78         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_plus_scal_<mode>): New.
79
80         (reduc_<sur>plus_mode): Change SUADDV -> UNSPEC_ADDV, rename to...
81         (aarch64_reduc_plus_internal<mode>): ...this.
82
83         (reduc_<sur>plus_v2si): Change SUADDV -> UNSPEC_ADDV, rename to...
84         (aarch64_reduc_plus_internalv2si): ...this.
85
86         (reduc_splus_<mode>/V2F): Rename to...
87         (aarch64_reduc_plus_internal<mode>): ...this.
88
89         * config/aarch64/iterators.md
90         (UNSPEC_SADDV, UNSPEC_UADDV, SUADDV): Remove.
91         (UNSPEC_ADDV): New.
92         (sur): Remove elements for UNSPEC_SADDV and UNSPEC_UADDV.
93
94         * config/aarch64/arm_neon.h (vaddv_s8, vaddv_s16, vaddv_s32, vaddv_u8,
95         vaddv_u16, vaddv_u32, vaddvq_s8, vaddvq_s16, vaddvq_s32, vaddvq_s64,
96         vaddvq_u8, vaddvq_u16, vaddvq_u32, vaddvq_u64, vaddv_f32, vaddvq_f32,
97         vaddvq_f64): Change __builtin_aarch64_reduc_[us]plus_... to
98         __builtin_aarch64_reduc_plus_scal, remove vget_lane wrapper.
99
100 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
101
102         PR tree-optimization/61114
103         * doc/md.texi (Standard Names): Add reduc_(plus,[us](min|max))|scal
104         optabs, and note in reduc_[us](plus|min|max) to prefer the former.
105
106         * expr.c (expand_expr_real_2): Use reduc_..._scal if available, fall
107         back to old reduc_... + BIT_FIELD_REF only if not.
108
109         * optabs.c (optab_for_tree_code): for REDUC_(MAX,MIN,PLUS)_EXPR,
110         return the reduce-to-scalar (reduc_..._scal) optab.
111         (scalar_reduc_to_vector): New.
112
113         * optabs.def (reduc_smax_scal_optab, reduc_smin_scal_optab,
114         reduc_plus_scal_optab, reduc_umax_scal_optab, reduc_umin_scal_optab):
115         New.
116
117         * optabs.h (scalar_reduc_to_vector): Declare.
118
119         * tree-vect-loop.c (vectorizable_reduction): Look for optabs reducing
120         to either scalar or vector.
121
122 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
123
124         PR tree-optimization/61114
125         * expr.c (expand_expr_real_2): For REDUC_{MIN,MAX,PLUS}_EXPR, add
126         extract_bit_field around optab result.
127
128         * fold-const.c (fold_unary_loc): For REDUC_{MIN,MAX,PLUS}_EXPR, produce
129         scalar not vector.
130
131         * tree-cfg.c (verify_gimple_assign_unary): Check result vs operand type
132         for REDUC_{MIN,MAX,PLUS}_EXPR.
133
134         * tree-vect-loop.c (vect_analyze_loop): Update comment.
135         (vect_create_epilog_for_reduction): For direct vector reduction, use
136         result of tree code directly without extract_bit_field.
137
138         * tree.def (REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR): Update
139         comment.
140
141 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
142
143         * basic-block.h: Remove all includes.
144         (enum profile_status_d, struct control_flow_graph): Move to cfg.h
145         * cfg.h (profile_status_d, struct control_flow_graph): Relocate here.
146         * Makefile.in (GTFILES): Add cfg.h to list.
147         * cgraph.h (symbol_table::create_empty): Move to cgraph.c.
148         * cgraph.c (symbol_table::create_empty): Relocate from cgraph.h.
149         * genconditions.c (write_header): Add predict.h and basic-block.h to
150         lits of includes.
151         * genemit.c (main): Ditto.
152         * genpreds.c (write_insn_preds_c): Ditto.
153         * genrecog.c (write_header): Ditto.
154         * gengtype.c (open_base_files): Add predict.h, basic-block.h, and cfg.h
155         to list of includes.
156         * alias.c: Adjust include files.
157         * asan.c: Ditto.
158         * auto-inc-dec.c: Ditto.
159         * auto-profile.c: Ditto.
160         * bb-reorder.c: Ditto.
161         * bt-load.c: Ditto.
162         * builtins.c: Ditto.
163         * caller-save.c: Ditto.
164         * calls.c: Ditto.
165         * cfg.c: Ditto.
166         * cfganal.c: Ditto.
167         * cfgbuild.c: Ditto.
168         * cfgcleanup.c: Ditto.
169         * cfgexpand.c: Ditto.
170         * cfghooks.c: Ditto.
171         * cfgloop.c: Ditto.
172         * cfgloopanal.c: Ditto.
173         * cfgloopmanip.c: Ditto.
174         * cfgrtl.c: Ditto.
175         * cgraphbuild.c: Ditto.
176         * cgraphclones.c: Ditto.
177         * cgraphunit.c: Ditto.
178         * combine-stack-adj.c: Ditto.
179         * combine.c: Ditto.
180         * compare-elim.c: Ditto.
181         * coverage.c: Ditto.
182         * cprop.c: Ditto.
183         * cse.c: Ditto.
184         * cselib.c: Ditto.
185         * data-streamer-in.c: Ditto.
186         * data-streamer-out.c: Ditto.
187         * data-streamer.c: Ditto.
188         * dce.c: Ditto.
189         * ddg.c: Ditto.
190         * ddg.h: Ditto.
191         * df-core.c: Ditto.
192         * df-problems.c: Ditto.
193         * df-scan.c: Ditto.
194         * df.h: Ditto.
195         * dojump.c: Ditto.
196         * dominance.c: Ditto.
197         * domwalk.c: Ditto.
198         * dse.c: Ditto.
199         * dwarf2cfi.c: Ditto.
200         * emit-rtl.c: Ditto.
201         * et-forest.c: Ditto.
202         * except.c: Ditto.
203         * expmed.c: Ditto.
204         * expr.c: Ditto.
205         * final.c: Ditto.
206         * fold-const.c: Ditto.
207         * function.c: Ditto.
208         * fwprop.c: Ditto.
209         * gcc-plugin.h: Ditto.
210         * gcse.c: Ditto.
211         * generic-match-head.c: Ditto.
212         * ggc-page.c: Ditto.
213         * gimple-builder.c: Ditto.
214         * gimple-expr.c: Ditto.
215         * gimple-fold.c: Ditto.
216         * gimple-iterator.c: Ditto.
217         * gimple-low.c: Ditto.
218         * gimple-match-head.c: Ditto.
219         * gimple-pretty-print.c: Ditto.
220         * gimple-ssa-isolate-paths.c: Ditto.
221         * gimple-ssa-strength-reduction.c: Ditto.
222         * gimple-streamer-in.c: Ditto.
223         * gimple-streamer-out.c: Ditto.
224         * gimple-streamer.h: Ditto.
225         * gimple-walk.c: Ditto.
226         * gimple.c: Ditto.
227         * gimplify-me.c: Ditto.
228         * gimplify.c: Ditto.
229         * graph.c: Ditto.
230         * graphite-blocking.c: Ditto.
231         * graphite-clast-to-gimple.c: Ditto.
232         * graphite-dependences.c: Ditto.
233         * graphite-interchange.c: Ditto.
234         * graphite-isl-ast-to-gimple.c: Ditto.
235         * graphite-optimize-isl.c: Ditto.
236         * graphite-poly.c: Ditto.
237         * graphite-scop-detection.c: Ditto.
238         * graphite-sese-to-poly.c: Ditto.
239         * graphite.c: Ditto.
240         * haifa-sched.c: Ditto.
241         * hw-doloop.c: Ditto.
242         * ifcvt.c: Ditto.
243         * init-regs.c: Ditto.
244         * internal-fn.c: Ditto.
245         * ipa-cp.c: Ditto.
246         * ipa-devirt.c: Ditto.
247         * ipa-icf-gimple.c: Ditto.
248         * ipa-icf.c: Ditto.
249         * ipa-inline-analysis.c: Ditto.
250         * ipa-inline.c: Ditto.
251         * ipa-polymorphic-call.c: Ditto.
252         * ipa-profile.c: Ditto.
253         * ipa-prop.c: Ditto.
254         * ipa-pure-const.c: Ditto.
255         * ipa-reference.c: Ditto.
256         * ipa-split.c: Ditto.
257         * ipa-utils.c: Ditto.
258         * ipa.c: Ditto.
259         * ira-build.c: Ditto.
260         * ira-color.c: Ditto.
261         * ira-conflicts.c: Ditto.
262         * ira-costs.c: Ditto.
263         * ira-emit.c: Ditto.
264         * ira-lives.c: Ditto.
265         * ira.c: Ditto.
266         * jump.c: Ditto.
267         * lcm.c: Ditto.
268         * loop-doloop.c: Ditto.
269         * loop-init.c: Ditto.
270         * loop-invariant.c: Ditto.
271         * loop-iv.c: Ditto.
272         * loop-unroll.c: Ditto.
273         * lower-subreg.c: Ditto.
274         * lra-assigns.c: Ditto.
275         * lra-coalesce.c: Ditto.
276         * lra-constraints.c: Ditto.
277         * lra-eliminations.c: Ditto.
278         * lra-lives.c: Ditto.
279         * lra-spills.c: Ditto.
280         * lra.c: Ditto.
281         * lto-cgraph.c: Ditto.
282         * lto-compress.c: Ditto.
283         * lto-opts.c: Ditto.
284         * lto-section-in.c: Ditto.
285         * lto-section-out.c: Ditto.
286         * lto-streamer-in.c: Ditto.
287         * lto-streamer-out.c: Ditto.
288         * lto-streamer.c: Ditto.
289         * mcf.c: Ditto.
290         * mode-switching.c: Ditto.
291         * modulo-sched.c: Ditto.
292         * omp-low.c: Ditto.
293         * optabs.c: Ditto.
294         * opts-global.c: Ditto.
295         * passes.c: Ditto.
296         * postreload-gcse.c: Ditto.
297         * postreload.c: Ditto.
298         * predict.c: Ditto.
299         * print-rtl.c: Ditto.
300         * profile.c: Ditto.
301         * recog.c: Ditto.
302         * ree.c: Ditto.
303         * reg-stack.c: Ditto.
304         * regcprop.c: Ditto.
305         * regcprop.h: Ditto.
306         * reginfo.c: Ditto.
307         * regrename.c: Ditto.
308         * regstat.c: Ditto.
309         * reload.c: Ditto.
310         * reload1.c: Ditto.
311         * reorg.c: Ditto.
312         * resource.c: Ditto.
313         * rtlanal.c: Ditto.
314         * sched-deps.c: Ditto.
315         * sched-ebb.c: Ditto.
316         * sched-int.h: Ditto.
317         * sched-rgn.c: Ditto.
318         * sched-vis.c: Ditto.
319         * sel-sched-dump.c: Ditto.
320         * sel-sched-ir.c: Ditto.
321         * sel-sched-ir.h: Ditto.
322         * sel-sched.c: Ditto.
323         * sese.c: Ditto.
324         * shrink-wrap.c: Ditto.
325         * stack-ptr-mod.c: Ditto.
326         * stmt.c: Ditto.
327         * store-motion.c: Ditto.
328         * symtab.c: Ditto.
329         * toplev.c: Ditto.
330         * tracer.c: Ditto.
331         * trans-mem.c: Ditto.
332         * tree-affine.c: Ditto.
333         * tree-call-cdce.c: Ditto.
334         * tree-cfg.c: Ditto.
335         * tree-cfgcleanup.c: Ditto.
336         * tree-chrec.c: Ditto.
337         * tree-complex.c: Ditto.
338         * tree-data-ref.c: Ditto.
339         * tree-dfa.c: Ditto.
340         * tree-eh.c: Ditto.
341         * tree-emutls.c: Ditto.
342         * tree-if-conv.c: Ditto.
343         * tree-inline.c: Ditto.
344         * tree-into-ssa.c: Ditto.
345         * tree-loop-distribution.c: Ditto.
346         * tree-nested.c: Ditto.
347         * tree-nrv.c: Ditto.
348         * tree-object-size.c: Ditto.
349         * tree-outof-ssa.c: Ditto.
350         * tree-parloops.c: Ditto.
351         * tree-phinodes.c: Ditto.
352         * tree-predcom.c: Ditto.
353         * tree-pretty-print.c: Ditto.
354         * tree-profile.c: Ditto.
355         * tree-scalar-evolution.c: Ditto.
356         * tree-sra.c: Ditto.
357         * tree-ssa-address.c: Ditto.
358         * tree-ssa-alias.c: Ditto.
359         * tree-ssa-ccp.c: Ditto.
360         * tree-ssa-coalesce.c: Ditto.
361         * tree-ssa-copy.c: Ditto.
362         * tree-ssa-copyrename.c: Ditto.
363         * tree-ssa-dce.c: Ditto.
364         * tree-ssa-dom.c: Ditto.
365         * tree-ssa-dse.c: Ditto.
366         * tree-ssa-forwprop.c: Ditto.
367         * tree-ssa-ifcombine.c: Ditto.
368         * tree-ssa-live.c: Ditto.
369         * tree-ssa-loop-ch.c: Ditto.
370         * tree-ssa-loop-im.c: Ditto.
371         * tree-ssa-loop-ivcanon.c: Ditto.
372         * tree-ssa-loop-ivopts.c: Ditto.
373         * tree-ssa-loop-manip.c: Ditto.
374         * tree-ssa-loop-niter.c: Ditto.
375         * tree-ssa-loop-prefetch.c: Ditto.
376         * tree-ssa-loop-unswitch.c: Ditto.
377         * tree-ssa-loop.c: Ditto.
378         * tree-ssa-math-opts.c: Ditto.
379         * tree-ssa-operands.c: Ditto.
380         * tree-ssa-phiopt.c: Ditto.
381         * tree-ssa-phiprop.c: Ditto.
382         * tree-ssa-pre.c: Ditto.
383         * tree-ssa-propagate.c: Ditto.
384         * tree-ssa-reassoc.c: Ditto.
385         * tree-ssa-sccvn.c: Ditto.
386         * tree-ssa-sink.c: Ditto.
387         * tree-ssa-strlen.c: Ditto.
388         * tree-ssa-structalias.c: Ditto.
389         * tree-ssa-tail-merge.c: Ditto.
390         * tree-ssa-ter.c: Ditto.
391         * tree-ssa-threadedge.c: Ditto.
392         * tree-ssa-threadupdate.c: Ditto.
393         * tree-ssa-uncprop.c: Ditto.
394         * tree-ssa-uninit.c: Ditto.
395         * tree-ssa.c: Ditto.
396         * tree-ssanames.c: Ditto.
397         * tree-stdarg.c: Ditto.
398         * tree-streamer-in.c: Ditto.
399         * tree-streamer-out.c: Ditto.
400         * tree-streamer.c: Ditto.
401         * tree-switch-conversion.c: Ditto.
402         * tree-tailcall.c: Ditto.
403         * tree-vect-data-refs.c: Ditto.
404         * tree-vect-generic.c: Ditto.
405         * tree-vect-loop-manip.c: Ditto.
406         * tree-vect-loop.c: Ditto.
407         * tree-vect-patterns.c: Ditto.
408         * tree-vect-slp.c: Ditto.
409         * tree-vect-stmts.c: Ditto.
410         * tree-vectorizer.c: Ditto.
411         * tree-vrp.c: Ditto.
412         * tree.c: Ditto.
413         * tsan.c: Ditto.
414         * ubsan.c: Ditto.
415         * valtrack.c: Ditto.
416         * valtrack.h: Ditto.
417         * value-prof.c: Ditto.
418         * var-tracking.c: Ditto.
419         * varasm.c: Ditto.
420         * varpool.c: Ditto.
421         * vtable-verify.c: Ditto.
422         * web.c: Ditto.
423         * config/aarch64/aarch64-builtins.c: Ditto.
424         * config/aarch64/aarch64.c: Ditto.
425         * config/alpha/alpha.c: Ditto.
426         * config/arc/arc.c: Ditto.
427         * config/arm/arm.c: Ditto.
428         * config/avr/avr.c: Ditto.
429         * config/bfin/bfin.c: Ditto.
430         * config/c6x/c6x.c: Ditto.
431         * config/cr16/cr16.c: Ditto.
432         * config/cris/cris.c: Ditto.
433         * config/darwin-c.c: Ditto.
434         * config/darwin.c: Ditto.
435         * config/epiphany/epiphany.c: Ditto.
436         * config/epiphany/mode-switch-use.c: Ditto.
437         * config/epiphany/resolve-sw-modes.c: Ditto.
438         * config/fr30/fr30.c: Ditto.
439         * config/frv/frv.c: Ditto.
440         * config/h8300/h8300.c: Ditto.
441         * config/i386/i386.c: Ditto.
442         * config/i386/winnt.c: Ditto.
443         * config/ia64/ia64.c: Ditto.
444         * config/iq2000/iq2000.c: Ditto.
445         * config/lm32/lm32.c: Ditto.
446         * config/m32c/m32c.c: Ditto.
447         * config/m32r/m32r.c: Ditto.
448         * config/m68k/m68k.c: Ditto.
449         * config/mcore/mcore.c: Ditto.
450         * config/mep/mep.c: Ditto.
451         * config/microblaze/microblaze.c: Ditto.
452         * config/mips/mips.c: Ditto.
453         * config/mmix/mmix.c: Ditto.
454         * config/mn10300/mn10300.c: Ditto.
455         * config/moxie/moxie.c: Ditto.
456         * config/msp430/msp430.c: Ditto.
457         * config/nds32/nds32-cost.c: Ditto.
458         * config/nds32/nds32-fp-as-gp.c: Ditto.
459         * config/nds32/nds32-intrinsic.c: Ditto.
460         * config/nds32/nds32-isr.c: Ditto.
461         * config/nds32/nds32-md-auxiliary.c: Ditto.
462         * config/nds32/nds32-memory-manipulation.c: Ditto.
463         * config/nds32/nds32-pipelines-auxiliary.c: Ditto.
464         * config/nds32/nds32-predicates.c: Ditto.
465         * config/nds32/nds32.c: Ditto.
466         * config/nios2/nios2.c: Ditto.
467         * config/pa/pa.c: Ditto.
468         * config/pdp11/pdp11.c: Ditto.
469         * config/rl78/rl78.c: Ditto.
470         * config/rs6000/rs6000.c: Ditto.
471         * config/rx/rx.c: Ditto.
472         * config/s390/s390.c: Ditto.
473         * config/sh/sh-mem.cc: Ditto.
474         * config/sh/sh.c: Ditto.
475         * config/sh/sh_optimize_sett_clrt.cc: Ditto.
476         * config/sh/sh_treg_combine.cc: Ditto.
477         * config/sparc/sparc.c: Ditto.
478         * config/spu/spu.c: Ditto.
479         * config/stormy16/stormy16.c: Ditto.
480         * config/tilegx/tilegx.c: Ditto.
481         * config/tilepro/tilepro.c: Ditto.
482         * config/v850/v850.c: Ditto.
483         * config/vax/vax.c: Ditto.
484         * config/xtensa/xtensa.c: Ditto.
485
486 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
487
488         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Comment out.
489         * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
490         Remove using preprocessor directives.
491
492 2014-10-27  Richard Biener  <rguenther@suse.de>
493
494         * match.pd (0 % X): Properly use the iterator iterating over
495         all modulo operators.
496         (X % 1): Likewise.
497
498 2014-10-27  Richard Biener  <rguenther@suse.de>
499
500         * tree-ssa-forwprop.c: Include tree-cfgcleanup.h and tree-into-ssa.h.
501         (lattice): New global.
502         (fwprop_ssa_val): New function.
503         (fold_all_stmts): Likewise.
504         (pass_forwprop::execute): Finally fold all stmts.
505
506 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
507
508         PR c++/53061
509         * doc/invoke.texi (fmessage-length): Update text to match reality.
510
511 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
512
513         * config/microblaze/microblaze.c: Include rtl-iter.h.
514         (microblaze_tls_referenced_p_1): Delete.
515         (microblaze_tls_referenced_p): Use FOR_EACH_SUBRTX.
516
517 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
518
519         * config/mips/mips.c (mips_at_reg_p): Delete.
520         (mips_need_noat_wrapper_p): Use FOR_EACH_SUBRTX.
521
522 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
523
524         * config/mips/mips.c (mips_record_lo_sum): Replace with...
525         (mips_record_lo_sums): ...this new function.
526         (mips_reorg_process_insns): Update accordingly.
527
528 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
529
530         * config/mips/mips.c (mips_sim_insn): Update comment.
531         (mips_sim_wait_regs_2): Delete.
532         (mips_sim_wait_regs_1): Use FOR_EACH_SUBRTX_VAR.
533
534 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
535
536         * config/mips/mips.c (r10k_needs_protection_p_call): Take a const_rtx
537         and return a bool.  Iterate over all subrtxes here.
538         (r10k_needs_protection_p): Update accordingly.
539
540 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
541
542         * config/mips/mips.c (r10k_needs_protection_p_1): Take an rtx
543         rather than an rtx pointer.  Change type of insn from "void *"
544         to its real type.  Return bool rather than int.  Iterate over
545         all subrtxes here.
546         (r10k_needs_protection_p_store): Update accordingly.
547         (r10k_needs_protection_p): Likewise.
548
549 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
550
551         * config/mips/mips.c (mips16_rewrite_pool_refs_info): Delete.
552         (mips16_rewrite_pool_refs): Take the insn and constant pool as
553         parameters.  Iterate over the instruction's pattern and return void.
554         (mips16_lay_out_constants): Update accordingly.
555
556 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
557
558         * config/mips/mips.c (mips_kernel_reg_p): Replace with...
559         (mips_refers_to_kernel_reg_p): ...this new function.
560         (mips_expand_prologue): Update accordingly.
561
562 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
563
564         * config/mips/mips.c (mips_rewrite_small_data_1): Take the context
565         as a parameter instead of the containing MEM.  Iterate over all
566         subrtxes.  Don't return a value.
567         (mips_rewrite_small_data): Update call accordingly.
568
569 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
570
571         * config/mips/mips.c: Include rtl-iter.h.
572         (mips_small_data_pattern_1): Take an rtx rather than an rtx pointer.
573         Take the context as a parameter instead of the containing MEM.
574         Iterate over all subrtxes.
575         (mips_small_data_pattern_p): Update call accordingly.
576
577 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
578
579         * config/mep/mep.c (mep_mul_hilo_bypass_1): Delete.
580         (mep_mul_hilo_bypass_p): Use FOR_EACH_SUBRTX.
581
582 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
583
584         * config/mep/mep.c (mep_store_find_set): Take a const_rtx and
585         return a bool.  Replace "void *" with specific type.  Iterate
586         over all subrtxes.
587         (mep_store_data_bypass_1): Update calls accordingly.
588
589 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
590
591         * config/mep/mep.c: Include rtl-iter.h.
592         (global_reg_mentioned_p_1): Take a const_rtx and return a bool.
593         (xtensa_tls_referenced_p): Return a bool.  Use FOR_EACH_SUBRTX.
594
595 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
596
597         * config/xtensa/xtensa.c: Include rtl-iter.h.
598         (xtensa_tls_referenced_p_1): Delete.
599         (xtensa_tls_referenced_p): Use FOR_EACH_SUBRTX.
600
601 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
602
603         * config/sh/sh.c (sh_contains_memref_p_1): Delete.
604         (sh_contains_memref_p): Use FOR_EACH_SUBRTX.
605
606 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
607
608         * config/sh/sh-protos.h (shmedia_cleanup_truncate): Take an
609         rtx as argument and return the number of changes.
610         * config/sh/sh.c: Include rtl-iter.h.
611         (shmedia_cleanup_truncate): Take an rtx as argument and iterate
612         over all subrtxes.  Return the number of changes made.
613         * config/sh/sh.md: Update caller accordingly.
614
615 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
616
617         * config/m68k/m68k.c (m68k_tls_reference_p_1): Delete.
618         (m68k_tls_reference_p): Use FOR_EACH_SUBRTX_VAR.
619
620 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
621
622         * config/m68k/m68k.c: Include rtl-iter.h.
623         (m68k_final_prescan_insn_1): Delete.
624         (m68k_final_prescan_insn): Use FOR_EACH_SUBRTX_VAR.
625
626 2014-10-25  Jakub Jelinek  <jakub@redhat.com>
627
628         PR tree-optimization/63641
629         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Set high
630         to low + prec - 1 - clz (mask) instead of low + prec - clz (mask).
631
632 2014-10-25  Alan Modra  <amodra@gmail.com>
633
634         PR rtl-optimization/63615
635         * simplify-rtx.c (simplify_plus_minus): Set "canonicalized" on
636         decomposing PLUS or MINUS if operands are not placed adjacent
637         in the "ops" array.
638
639 2014-10-25  Joseph Myers  <joseph@codesourcery.com>
640
641         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Do
642         not allow e500 double in registers not satisyfing
643         SPE_SIMD_REGNO_P.
644
645 2014-10-24  Aldy Hernandez  <aldyh@redhat.com>
646
647         * dwarf2out.c (declare_in_namespace): Only emit external
648         declarations in the local scope once.
649
650 2014-10-24  Jonathan Wakely  <jwakely@redhat.com>
651
652         * ginclude/stdbool.h: Do not define bool, true or false in C++11.
653
654 2014-10-24  Charles Baylis  <charles.baylis@linaro.org>
655
656         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rewrite using builtins,
657         update uses to use new macro arguments.
658         (__LD3_LANE_FUNC): Likewise.
659         (__LD4_LANE_FUNC): Likewise.
660
661 2014-10-24  Charles Baylis  <charles.baylis@linaro.org>
662
663         * config/aarch64/aarch64-builtins.c
664         (aarch64_types_loadstruct_lane_qualifiers): Define.
665         * config/aarch64/aarch64-simd-builtins.def (ld2_lane, ld3_lane,
666         ld4_lane): New builtins.
667         * config/aarch64/aarch64-simd.md (aarch64_vec_load_lanesoi_lane<mode>):
668         New pattern.
669         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
670         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
671         (aarch64_ld2_lane<mode>): New expand.
672         (aarch64_ld3_lane<mode>): Likewise.
673         (aarch64_ld4_lane<mode>): Likewise.
674         * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
675         UNSPEC_LD2_LANE, UNSPEC_LD3_LANE, UNSPEC_LD4_LANE.
676
677 2014-10-24  Georg-Johann Lay  <avr@gjlay.de>
678
679         * avr-protos.h (avr_out_sign_extend): New.
680         * avr.c (avr_adjust_insn_length) [ADJUST_LEN_SEXT]: Handle.
681         (avr_out_sign_extend): New function.
682         * avr.md (extendqihi2, extendqipsi2, extendqisi2, extendhipsi2)
683         (extendhisi2, extendpsisi2): Use it.
684         (adjust_len) [sext]: New.
685
686 2014-10-24  Martin Liska  <mliska@suse.cz>
687
688         * ipa-icf.c (sem_function::compare_phi_node): PHI result comparison
689         added.
690
691 2014-10-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
692
693         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Define.
694         (LINK_SPEC): Include CA53_ERR_835769_SPEC.
695         * config/aarch64/aarch64-linux.h (CA53_ERR_835769_SPEC): Define.
696         (LINK_SPEC): Include CA53_ERR_835769_SPEC.
697
698 2014-10-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
699
700         * config/aarch64/aarch64.h (ADJUST_INSN_LENGTH): Wrap definition in
701         do while (0).
702         * config/aarch64/aarch64.c (is_mem_p): Delete.
703         (is_memory_op): Rename to...
704         (has_memory_op): ... This.  Use FOR_EACH_SUBRTX.
705         (dep_between_memop_and_curr): Assert that the input is a SET.
706         (aarch64_madd_needs_nop): Add comment.  Do not call
707         dep_between_memop_and_curr on NULL body.
708         (aarch64_final_prescan_insn): Add comment.
709         Include rtl-iter.h.
710
711 2014-10-24  Richard Biener  <rguenther@suse.de>
712
713         * Makefile.in (BUILD_CPPLIB): Move $(LIBINTL) $(LIBICONV)
714         to genmatch BUILD_LIBS instead.
715
716 2014-10-24  Richard Biener  <rguenther@suse.de>
717
718         * genmatch.c (expr::gen_transform): Use fold_buildN_loc
719         and build_call_expr_loc.
720         (dt_simplify::gen): Drop non_lvalue for GIMPLE, use
721         non_lvalue_loc to build it for GENERIC.
722         (decision_tree::gen_generic): Add location argument to
723         generic_simplify prototype.
724         (capture_info): New class.
725         (capture_info::capture_info): New constructor.
726         (capture_info::walk_match): New method.
727         (capture_info::walk_result): New method.
728         (capture_info::walk_c_expr): New method.
729         (dt_simplify::gen): Handle preserving side-effects for
730         GENERIC code generation.
731         (decision_tree::gen_generic): Do not reject operands
732         with TREE_SIDE_EFFECTS.
733         * generic-match.h: New file.
734         * generic-match-head.c: Include generic-match.h, not gimple-match.h.
735         * match.pd: Add some constant folding patterns from fold-const.c.
736         * fold-const.c: Include generic-match.h.
737         (fold_unary_loc): Dispatch to generic_simplify.
738         (fold_ternary_loc): Likewise.
739         (fold_binary_loc): Likewise.  Remove patterns now implemented
740         by generic_simplify.
741         * gimple-fold.c (replace_stmt_with_simplification): New function.
742         (fold_stmt_1): Add valueize parameter, dispatch to gimple_simplify.
743         (no_follow_ssa_edges): New function.
744         (fold_stmt): New overload with valueization hook.  Use
745         no_follow_ssa_edges for the overload without hook.
746         (fold_stmt_inplace): Likewise.
747         * gimple-fold.h (no_follow_ssa_edges): Declare.
748
749 2014-10-24  Felix Yang  <felix.yang@huawei.com>
750         Jiji Jiang  <jiangjiji@huawei.com>
751
752         PR target/63173
753         * config/aarch64/arm_neon.h (__LD2R_FUNC): Remove macro.
754         (__LD3R_FUNC): Ditto.
755         (__LD4R_FUNC): Ditto.
756         (vld2_dup_s8, vld2_dup_s16, vld2_dup_s32, vld2_dup_f32, vld2_dup_f64,
757          vld2_dup_u8, vld2_dup_u16, vld2_dup_u32, vld2_dup_p8, vld2_dup_p16
758          vld2_dup_s64, vld2_dup_u64, vld2q_dup_s8, vld2q_dup_p8,
759          vld2q_dup_s16, vld2q_dup_p16, vld2q_dup_s32, vld2q_dup_s64,
760          vld2q_dup_u8, vld2q_dup_u16, vld2q_dup_u32, vld2q_dup_u64
761          vld2q_dup_f32, vld2q_dup_f64): Rewrite using builtin functions.
762         (vld3_dup_s64, vld3_dup_u64, vld3_dup_f64, vld3_dup_s8
763          vld3_dup_p8, vld3_dup_s16, vld3_dup_p16, vld3_dup_s32
764          vld3_dup_u8, vld3_dup_u16, vld3_dup_u32, vld3_dup_f32
765          vld3q_dup_s8, vld3q_dup_p8, vld3q_dup_s16, vld3q_dup_p16
766          vld3q_dup_s32, vld3q_dup_s64, vld3q_dup_u8, vld3q_dup_u16
767          vld3q_dup_u32, vld3q_dup_u64, vld3q_dup_f32, vld3q_dup_f64): Likewise.
768         (vld4_dup_s64, vld4_dup_u64, vld4_dup_f64, vld4_dup_s8
769          vld4_dup_p8, vld4_dup_s16, vld4_dup_p16, vld4_dup_s32
770          vld4_dup_u8, vld4_dup_u16, vld4_dup_u32, vld4_dup_f32
771          vld4q_dup_s8, vld4q_dup_p8, vld4q_dup_s16, vld4q_dup_p16
772          vld4q_dup_s32, vld4q_dup_s64, vld4q_dup_u8, vld4q_dup_u16
773          vld4q_dup_u32, vld4q_dup_u64, vld4q_dup_f32, vld4q_dup_f64): Likewise.
774         * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
775         UNSPEC_LD2_DUP, UNSPEC_LD3_DUP, UNSPEC_LD4_DUP.
776         * config/aarch64/aarch64-simd-builtins.def (ld2r, ld3r, ld4r): New
777         builtins.
778         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>): New pattern.
779         (aarch64_simd_ld3r<mode>): Likewise.
780         (aarch64_simd_ld4r<mode>): Likewise.
781         (aarch64_ld2r<mode>): New expand.
782         (aarch64_ld3r<mode>): Likewise.
783         (aarch64_ld4r<mode>): Likewise.
784
785 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
786
787         * rtlanal.c (get_base_term): Handle SCRATCH.
788
789 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
790
791         * haifa-sched.c (sched_init): Disable max_issue when scheduling for
792         register pressure.
793
794 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
795
796         * haifa-sched.c (cached_first_cycle_multipass_dfa_lookahead,)
797         (cached_issue_rate): Remove.  Use dfa_lookahead and issue_rate instead.
798         (max_issue, choose_ready, sched_init): Update.
799
800 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
801
802         * sched-int.h (struct _haifa_insn_data:last_rfs_win): New field.
803         * haifa-sched.c (INSN_LAST_RFS_WIN): New access macro.
804         (rfs_result): Set INSN_LAST_RFS_WIN.  Update signature.
805         (rank_for_schedule): Update calls to rfs_result to pass new parameters.
806         (print_rank_for_schedule_stats): Print out elements of ready list that
807         ended up on their respective places due to each of the sorting
808         heuristics.
809         (ready_sort): Update.
810         (debug_ready_list_1): Improve printout for SCHED_PRESSURE_MODEL.
811         (schedule_block): Update.
812
813 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
814
815         * haifa-sched.c (sched_class_regs_num, call_used_regs_num): New static
816         arrays.  Use sched_class_regs_num instead of ira_class_hard_regs_num.
817         (print_curr_reg_pressure, setup_insn_reg_pressure_info,)
818         (model_update_pressure, model_spill_cost): Use sched_class_regs_num.
819         (model_start_schedule): Update.
820         (sched_pressure_start_bb): New static function.  Calculate
821         sched_class_regs_num.
822         (schedule_block): Use it.
823         (alloc_global_sched_pressure_data): Calculate call_used_regs_num.
824
825 2014-10-24  Richard Biener  <rguenther@suse.de>
826
827         * Makefile.in (BUILD_CPPLIB): When in stage2+ use the
828         host library and make sure to pull in the required libintl
829         and libiconv dependencies.
830
831 2014-10-24  Richard Biener  <rguenther@suse.de>
832
833         * fold-const.c (fold_binary_loc): Fix copy-and-pasto.
834
835 2014-10-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
836
837         PR bootstrap/63632
838         * collect2.c (main): Filter out -fno-lto.
839
840 2014-10-24  Martin Liska  <mliska@suse.cz>
841
842         * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes): Guard
843         division by zero in dumps.
844         (sem_item_optimizer::merge_classes): Ditto.
845
846 2014-10-23  John David Anglin  <danglin@gcc.gnu.org>
847
848         * config/pa/pa.c (pa_can_combine_p): Fix typo in last change.
849
850 2014-10-23  Ian Lance Taylor  <iant@google.com>
851
852         * tree-vrp.c (extract_range_from_assert): Fix typo in comment.
853
854 2014-10-23  Ian Lance Taylor  <iant@google.com>
855
856         * config/mep/mep.h (TARGET_HAS_F_SETLKW): Don't undefine.
857
858 2014-10-23  Jakub Jelinek  <jakub@redhat.com>
859
860         PR debug/63623
861         * var-tracking.c (stack_adjust_offset_pre_post_cb): New function.
862         (stack_adjust_offset_pre_post): Use it through for_each_inc_dec,
863         instead of only handling autoinc in dest if it is a MEM.
864         (vt_stack_adjustments): Fix up formatting.
865
866 2014-10-23  DJ Delorie  <dj@redhat.com>
867
868         * config/msp430/msp430.c (msp430_print_operand): 'x' modifier is
869         independend of -mlarge.
870         * config/msp430/constraints.md (Ys): Update comment.
871
872 2014-10-23  Evgeny Stupachenko  <evstupac@gmail.com>
873
874         PR target/63534
875         PR target/63618
876         * cse.c (delete_trivially_dead_insns): Consider PIC register is used
877         while it is pseudo.
878         * dse.c (deletable_insn_p): Likewise.
879
880 2014-10-23  Georg-Johann Lay  <avr@gjlay.de>
881
882         * config/avr/avr.c: Fix GNU coding rules and typos.
883         * config/avr/avr.h: Dito.
884         * config/avr/avr-c.c: Dito.
885         * config/avr/avr.md: Dito.
886
887 2014-10-23  Kirill Yukhin  <kirill.yukhin@intel.com>
888
889         * config/i386/sse.md (define_mode_iterator VI1248_AVX512VL_AVX512BW):
890         New.
891         (define_insn "*abs<mode>2"): Use VI1248_AVX512VL_AVX512BW mode
892         iterator.
893         (define_expand "abs<mode>2"): Ditto.
894
895 2014-10-23  Kirill Yukhin  <kirill.yukhin@intel.com>
896
897         * tree-core.h (tree_var_decl): Extend `function_code' field
898         by one bit, move `regdecl_flag' field to ...
899         (tree_decl_with_vis): Here.
900         * tree.h (DECL_STATIC_CHAIN): Update struct name.
901
902 2014-10-23  Richard Biener  <rguenther@suse.de>
903
904         * Makefile.in (BUILD_CPPLIB): Add.
905         (build/genmatch$(build_exeext)): Use BUILD_CPPLIB, not CPPLIB.
906         Drop LIBIBERTY.
907
908 2014-10-23  Richard Biener  <rguenther@suse.de>
909
910         * fold-const.c (fold_binary_loc): Preserve side-effects of
911         X - X when simplifying to 0.
912         * stor-layout.c (finish_bitfield_representative): Strip
913         side-effects of evaluating the difference of two DECL_FIELD_OFFSET.
914
915 2014-10-22  Richard Biener  <rguenther@suse.de>
916             Tobias Burnus <burnus@net-b.de>
917
918         PR lto/63603
919         * gcc.c (LINK_COMMAND_SPEC): Add %{fno-lto}.
920
921 2014-10-22  Dehao Chen  <dehao@google.com>
922
923         * auto-profile.c: Change order of header files.
924
925 2014-10-22  Guozhi Wei  <carrot@google.com>
926
927         PR tree-optimization/63530
928         tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
929         pointer alignment according to DR_MISALIGNMENT.
930
931 2014-10-22  David Malcolm  <dmalcolm@redhat.com>
932
933         * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.
934
935 2014-10-22  Andrew MacLeod  <amacleod@redhat.com>
936
937         * cfgbuild.h: New.  Add prototypes for cfgbuild.c.
938         * cfgcleanup.h: New.  Add prototypes for cfgcleanup.c.
939         * cfgloopmanip.h: New.  Add prototypes for cfgloopmanip.c.
940         * dominance.h: New.  Add prototypes for dominance.c.
941         * cfgloop.h: Move some prototypes/enum to cfgloopmanip.h and include it.
942         * cfghooks.h: (struct profile_record) Relocate here.
943         Relocate 2 prototypes from basic-block.h.
944         * basic-block.h: Move prototypes and struct to new header files.
945         Include cfgbuild.h, cfgcleanup.h, and dominance.h.
946         * rtl.h: Move a few prototypes to new header files.
947         * cfgcleanup.c (merge_memattrs): Make static.
948         * genopinit.c (main): Add predict.h to list of includes.
949         * predict.h: Update prototype list to match predict.c.
950         * predict.c (maybe_hot_count_p): Export.
951         (cgraph_edge::maybe_hot_p): Move to cgraph.c.
952         (cgraph_node::optimize_for_size_p): Move to cgraph.h.
953         * cgraph.h (cgraph_node::optimize_for_size_p): Relocate here.
954         * cgraph.c (cgraph_edge::maybe_hot_p): Relocate here.
955         * profile.h: Adjust prototypes.
956         * ifcvt.h: New.  Relocate struct ce_if_block here.
957         * ifcvt.c: Include ifcvt.h.
958         * config/frv/frv.c: Include ifcvt.h.
959         * config/frv/frv-protos.h: Add 'struct' to ce_if_block * parameters.
960
961 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
962
963         * lra.c (lra): Remove call to recog_init.
964         * config/i386/i386.md (preferred_for_speed): New attribute
965         (*float<SWI48:mode><MODEF:mode>2_sse): Override it instead of
966         "enabled".  Remove check for sched1.
967
968 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
969
970         * recog.h (recog_data_d): Remove enabled_alternatives.
971         * recog.c (extract_insn): Don't set it.
972         * reload.c (find_reloads): Call get_enabled_alternatives.
973
974 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
975
976         * recog.h (constrain_operands): Add an alternative_mask parameter.
977         (constrain_operands_cached): Likewise.
978         (get_preferred_alternatives): Declare new form.
979         * recog.c (get_preferred_alternatives): New bb-taking instance.
980         (constrain_operands): Take the set of available alternatives as
981         a parameter.
982         (check_asm_operands, insn_invalid_p, extract_constrain_insn)
983         (extract_constrain_insn_cached): Update calls to constrain_operands.
984         * caller-save.c (reg_save_code): Likewise.
985         * ira.c (setup_prohibited_mode_move_regs): Likewise.
986         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
987         * ree.c (combine_reaching_defs): Likewise.
988         * reload.c (can_reload_into): Likewise.
989         * reload1.c (reload, reload_as_needed, inc_for_reload): Likewise.
990         (gen_reload_chain_without_interm_reg_p, emit_input_reload_insns)
991         (emit_insn_if_valid_for_reload): Likewise.
992         * reorg.c (fill_slots_from_thread): Likewise.
993         * config/i386/i386.c (ix86_attr_length_address_default): Likewise.
994         * config/pa/pa.c (pa_can_combine_p): Likewise.
995         * config/rl78/rl78.c (insn_ok_now): Likewise.
996         * config/sh/sh.md (define_peephole2): Likewise.
997         * final.c (final_scan_insn): Update call to constrain_operands_cached.
998
999 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
1000
1001         * doc/md.texi: Document "preferred_for_size" and "preferred_for_speed"
1002         attributes.
1003         * genattr.c (main): Handle "preferred_for_size" and
1004         "preferred_for_speed" in the same way as "enabled".
1005         * recog.h (bool_attr): New enum.
1006         (target_recog): Replace x_enabled_alternatives with x_bool_attr_masks.
1007         (get_preferred_alternatives, check_bool_attrs): Declare.
1008         * recog.c (have_bool_attr, get_bool_attr, get_bool_attr_mask_uncached)
1009         (get_bool_attr_mask, get_preferred_alternatives, check_bool_attrs):
1010         New functions.
1011         (get_enabled_alternatives): Use get_bool_attr_mask.
1012         * ira-costs.c (record_reg_classes): Use get_preferred_alternatives
1013         instead of recog_data.enabled_alternatives.
1014         * ira.c (ira_setup_alts): Likewise.
1015         * postreload.c (reload_cse_simplify_operands): Likewise.
1016         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
1017         * ira-lives.c (preferred_alternatives): New variable.
1018         (process_bb_node_lives): Set it.
1019         (check_and_make_def_conflict, make_early_clobber_and_input_conflicts)
1020         (single_reg_class, ira_implicitly_set_insn_hard_regs): Use it instead
1021         of recog_data.enabled_alternatives.
1022         * lra-int.h (lra_insn_recog_data): Replace enabled_alternatives
1023         to preferred_alternatives.
1024         * lra-constraints.c (process_alt_operands): Update accordingly.
1025         * lra.c (lra_set_insn_recog_data): Likewise.
1026         (lra_update_insn_recog_data): Assert check_bool_attrs.
1027
1028 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
1029
1030         * recog.h (extract_constrain_insn): Declare.
1031         * recog.c (extract_constrain_insn): New function.
1032         * lra.c (check_rtl): Use it.
1033         * postreload.c (reload_cse_simplify_operands): Likewise.
1034         * reg-stack.c (check_asm_stack_operands): Likewise.
1035         (subst_asm_stack_regs): Likewise.
1036         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
1037         * regrename.c (build_def_use): Likewise.
1038         * sel-sched.c (get_reg_class): Likewise.
1039         * config/arm/arm.c (note_invalid_constants): Likewise.
1040         * config/s390/predicates.md (execute_operation): Likewise.
1041
1042 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
1043             Yury Gribov  <y.gribov@samsung.com>
1044
1045         * common.opt (flag_sanitize_recover): New variable.
1046         (fsanitize-recover): Remove Var/Init, deprecate.
1047         (fsanitize-recover=): New option.
1048         * doc/invoke.texi (fsanitize-recover): Update docs.
1049         * opts.c (finish_options): Use opts->x_flag_sanitize
1050         instead of flag_sanitize.  Prohibit -fsanitize-recover
1051         for anything besides UBSan.  Formatting.
1052         (common_handle_option): Handle OPT_fsanitize_recover_
1053         and OPT_fsanitize_recover.  Use opts->x_flag_sanitize
1054         instead of flag_sanitize.
1055         * asan.c (pass_sanopt::execute): Fix up formatting.
1056         * ubsan.c (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn,
1057         ubsan_expand_objsize_ifn, ubsan_build_overflow_builtin,
1058         instrument_bool_enum_load, ubsan_instrument_float_cast,
1059         instrument_nonnull_arg, instrument_nonnull_return): Check
1060         bits in flag_sanitize_recover bitmask instead of
1061         flag_sanitize_recover as bool flag.
1062
1063 2014-10-22  Jiong Wang <jiong.wang@arm.com>
1064
1065         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add missing '\'.
1066
1067 2014-10-22  Renlin Li <renlin.li@arm.com>
1068
1069         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
1070         __ARM_FEATURE_IDIV__.
1071
1072 2014-10-22  Richard Biener  <rguenther@suse.de>
1073
1074         * Makefile.in (s-match): Adjust dependencies to only catch
1075         match.pd.
1076
1077 2014-10-22  Richard Biener  <rguenther@suse.de>
1078         Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
1079
1080         * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
1081         (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
1082         (gimple-match.c): Generate by triggering s-match.
1083         (generic-match.c): Likewise.
1084         (s-match): Rule to build gimple-match.c and generic-match.c
1085         by running the genmatch generator program.
1086         (build/hash-table.o): Dependencies to build hash-table.c for the host.
1087         (build/genmatch.o): Dependencies to build genmatch.
1088         (genprog): Add match.
1089         (build/genmatch): Likewise.
1090         (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
1091         * generic-match-head.c: New file.
1092         * gimple-match-head.c: Likewise.
1093         * gimple-match.h: Likewise.
1094         * genmatch.c: Likewise.
1095         * match.pd: Likewise.
1096         * builtins.h (fold_builtin_n): Export.
1097         * builtins.c (fold_builtin_n): Likewise.
1098         * gimple-fold.h (gimple_build): Declare various overloads.
1099         (gimple_simplify): Likewise.
1100         (gimple_convert): Re-implement in terms of gimple_build.
1101         * gimple-fold.c (gimple_convert): Remove.
1102         (gimple_build): New functions.
1103         * doc/match-and-simplify.texi: New file.
1104         * doc/gccint.texi: Add menu item Match and Simplify and include
1105         match-and-simplify.texi.
1106
1107 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
1108
1109         PR target/63594
1110         * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
1111         V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
1112         even for just TARGET_AVX2, not only for
1113         TARGET_AVX512VL && TARGET_AVX512BW.  For V{32HI,64QI}mode,
1114         call ix86_vector_duplicate_value only if TARGET_AVX512BW,
1115         otherwise build it using concatenation of 256-bit
1116         broadcast.
1117         * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
1118         avx512 broadcast patterns.
1119         (vec_dup<mode>): Likewise.  For avx2 use
1120         v<sseintprefix>broadcast<bcstscalarsuff> instead of
1121         vbroadcast<ssescalarmodesuffix>.
1122         (AVX2_VEC_DUP_MODE): New mode iterator.
1123         (*vec_dup<mode>): New TARGET_AVX2 define_insn with
1124         AVX2_VEC_DUP_MODE iterator, add a splitter for that.
1125
1126         PR target/63542
1127         * config/i386/i386.c (ix86_pic_register_p): Also return
1128         true if x is a hard register with ORIGINAL_REGNO equal to
1129         pic_offset_table_rtx pseudo REGNO.
1130         (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
1131         after reload, subtract GOT_SYMBOL_NAME symbol if possible.
1132
1133 2014-10-22  Alan Modra  <amodra@gmail.com>
1134
1135         * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
1136         * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
1137         (gcc_obstack_init): Use obstack_specify_allocation in place of
1138         _obstack_begin.
1139         * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
1140         (regexp_representation): Likewise.
1141         * godump.c (go_output_type): Likewise.
1142
1143 2014-10-21  John David Anglin  <danglin@gcc.gnu.org>
1144
1145         * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
1146         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
1147         * config/pa/pa.opt (mjump-in-delay): Ignore option.  Update comment.
1148
1149 2014-10-21 Manuel López-Ibáñez  <manu@gcc.gnu.org>
1150
1151         * doc/invoke.texi (pedantic-errors): Explain better.
1152
1153 2014-10-21  Joern Rennecke  <joern.rennecke@embecosm.com>
1154             Vidya Praveen <vidya.praveen@atmel.com>
1155             Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
1156             Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
1157             Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
1158
1159         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
1160         __MEMX for avrtiny.
1161         * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
1162         (avr_nonconst_pointer_addrspace): Likewise.
1163         * config/avr/avr.h (AVR_HAVE_LPM): Define.
1164
1165         Added AVRTINY architecture to avr target.
1166         * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
1167         (base_arch_s): member added for AVRTINY architecture.
1168         * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
1169         alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
1170         AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
1171         and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
1172         respectively. LAST_CALLEE_SAVED_REG macro added for the last register
1173         in callee saved register list.
1174         (avr_option_override): CCP address updated for AVRTINY.
1175         (avr_init_expanders): tmp and zero rtx initialized as per arch.
1176         Reset avr_have_dimode if AVRTINY.
1177         (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
1178         (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
1179         (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
1180         Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
1181         (expand_epilogue): Likewise.
1182         (avr_print_operand): Print CCP address in case of AVRTINY also.
1183         <TBD>bad address
1184         (function_arg_regno_p): Check different register list for arguments
1185         if AVRTINY.
1186         (init_cumulative_args): Check for AVRTINY to update number of argument
1187         registers.
1188         (tiny_valid_direct_memory_access_range): New function. Return false if
1189         direct memory access range is not in accepted range for AVRTINY.
1190         (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
1191         indirect load (with displacement) for AVRTINY.
1192         (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
1193         avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
1194         (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
1195         indirect load (no displacement) for AVRTINY.
1196         (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
1197         indirect load (with displacement) for AVRTINY.
1198         (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
1199         indirect load for pre-decrement address.
1200         (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
1201         functions. Update instruction length for AVRTINY.
1202         (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
1203         SImode.
1204         (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
1205         (out_movsi_r_mr): Likewise, for SImode.
1206         (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
1207         indirect store (no displacement) for AVRTINY.
1208         (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
1209         indirect store (with displacement) for AVRTINY.
1210         (out_movsi_mr_r): Emit out insn for IO address store. Update store
1211         instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
1212         store functions.
1213         (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
1214         indirect load (no displacement) for PSImode in AVRTINY.
1215         (avr_out_load_psi_reg_disp_tiny): New function to handle register
1216         indirect load (with displacement) for PSImode in AVRTINY.
1217         (avr_out_load_psi): Call PSImode register indirect load functions for
1218         AVRTINY. Update instruction length for AVRTINY.
1219         (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
1220         indirect store (no displacement) for PSImode in AVRTINY.
1221         (avr_out_store_psi_reg_disp_tiny): New function to handle register
1222         indirect store (with displacement) for PSImode in AVRTINY.
1223         (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
1224         register indirect store functions for AVRTINY.
1225         (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
1226         register indirect store (with displacement) for AVRTINY.
1227         (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
1228         register indirect store function for QImode in AVRTINY.
1229         (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
1230         (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
1231         indirect store (no displacement) for HImode in AVRTINY.
1232         (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
1233         indirect store (with displacement) for HImode in AVRTINY.
1234         (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
1235         indirect store for post-increment address in HImode.
1236         (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
1237         register indirect store function for HImode in AVRTINY.
1238         (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
1239         in case of AVRTINY.
1240         (order_regs_for_local_alloc): Updated register allocation order for
1241         AVRTINY.
1242         (avr_conditional_register_usage): New function. It is a target hook
1243         (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
1244         used registers list and register allocation order for AVRTINY.
1245         (avr_return_in_memory): Update return value size for AVRTINY.
1246         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
1247         for AVRTINY arch and tiny program memory base address.
1248         * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
1249         (avr_texinfo): Added description for AVRTINY arch.
1250         * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
1251         STATIC_CHAIN_REGNUM for AVRTINY.
1252         * config/avr/avr-mcus.def: Added AVRTINY arch devices.
1253         * config/avr/avr.md: Added constants for tmp/ zero registers in
1254         AVRTINY. Attributes for AVRTINY added.
1255         (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
1256         memory access range.
1257         (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
1258         in AVRTINY memory access range.
1259         (*mov<mode>): Likewise for HImode and SImode.
1260         (*movsf): Likewise for SFmode.
1261         (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
1262         not have sbiw.
1263         * config/avr/avr-protos.h: Added function prototype for
1264         tiny_valid_direct_memory_access_range.
1265         * config/avr/avr-tables.opt: Regenerate.
1266         * gcc/config/avr/t-multilib: Regenerate.
1267         * doc/avr-mmcu.texi: Regenerate.
1268
1269 2014-10-21  Andrew Pinski  <apinski@cavium.com>
1270
1271         * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
1272         available option also.
1273         * config/aarch64/aarch64-cost-tables.h: New file.
1274         * config/aarch64/aarch64-cores.def (thunderx): New core.
1275         * config/aarch64/aarch64-tune.md: Regenerate.
1276         * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
1277         of config/arm/aarch-cost-tables.h.
1278         (thunderx_regmove_cost): New variable.
1279         (thunderx_tunings): New variable.
1280
1281 2014-10-21  Dehao Chen  <dehao@google.com>
1282
1283         * auto-profile.c: New file.
1284         * auto-profile.h: New file.
1285         * basic-block.h (maybe_hot_count_p): New export func.
1286         (add_working_set): New export func.
1287         * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
1288         (GCOV_TAG_AFDO_FUNCTION): Likewise.
1289         (GCOV_TAG_AFDO_WORKING_SET): Likewise.
1290         * opts.c (enable_fdo_optimizations): New func.
1291         (common_handle_option): Handle -fauto-profile flag.
1292         * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
1293         (class pass_early_inline): Export early_inliner.
1294         (early_inliner): Likewise.
1295         (pass_early_inline::execute): Likewise.
1296         * ipa-inline.h (early_inliner): Likewise.
1297         * predict.c (maybe_hot_count_p): New export func.
1298         (counts_to_freqs): AutoFDO logic.
1299         (rebuild_frequencies): Likewise.
1300         * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
1301         * profile.c (add_working_set): New func.
1302         * Makefile.in (auto-profile.o): New object file.
1303         * passes.def (pass_ipa_auto_profile): New pass.
1304         * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
1305         * tree-pass.h (make_pass_ipa_auto_profile): New pass.
1306         * toplev.c (compile_file): AutoFDO logic.
1307         * doc/invoke.texi (-fauto-profile): New doc.
1308         * coverage.c (coverage_init): AutoFDO logic.
1309         * common.opt (-fauto-profile): New flag.
1310         * timevar.def (TV_IPA_AUTOFDO): New tag.
1311         * value-prof.c (gimple_alloc_histogram_value): New export func.
1312         (check_ic_target): Likewise.
1313         * value-prof.h (gimple_alloc_histogram_value): Likewise.
1314         (check_ic_target): Likewise.
1315
1316 2014-10-21  David Malcolm  <dmalcolm@redhat.com>
1317
1318         * cgraph.c (cgraph_c_finalize): New function.
1319         * cgraph.h (cgraph_c_finalize): New prototype.
1320         (cgraphunit_c_finalize): New prototype.
1321         * cgraphunit.c (first_analyzed): Move from analyze_functions
1322         to file-scope.
1323         (first_analyzed_var): Likewise.
1324         (analyze_functions): Move static variables into file-scope.
1325         (cgraphunit_c_finalize): New function.
1326         * diagnostic.c (diagnostic_finish): Free the memory for
1327         context->classify_diagnostic and context->printer, running the
1328         destructor for the latter.
1329         (bt_stop): Use toplev::main.
1330         * dwarf2out.c (dwarf2out_finalize): New function.
1331         * dwarf2out.h (dwarf2out_c_finalize): New prototype.
1332         * gcse.c (gcse_c_finalize): New function.
1333         * gcse.h (gcse_c_finalize): New prototype.
1334         * ggc-page.c (init_ggc): Make idempotent.
1335         * input.c (input_location): Initialize to UNKNOWN_LOCATION.
1336         * ipa-cp.c (ipa_cp_c_finalize): New function.
1337         * ipa-prop.h (ipa_cp_c_finalize): New prototype.
1338         * ipa-pure-const.c (function_insertion_hook_holder): Move to be
1339         a field of class pass_ipa_pure_const.
1340         (node_duplication_hook_holder): Likewise.
1341         (node_removal_hook_holder): Likewise.
1342         (register_hooks): Convert to method...
1343         (pass_ipa_pure_const::register_hooks): ...here, converting
1344         static variable init_p into...
1345         (pass_ipa_pure_const::init_p): ...new field.
1346         (pure_const_generate_summary): Update invocation of
1347         register_hooks to invoke as a method of current_pass.
1348         (pure_const_read_summary): Likewise.
1349         (propagate): Convert to...
1350         (pass_ipa_pure_const::execute): ...method.
1351         * ipa-reference.c (ipa_init): Move static bool init_p from here
1352         to...
1353         (ipa_init_p): New file-scope variable, so that it can be reset
1354         when repeatedly invoking the compiler within one process by...
1355         (ipa_reference_c_finalize): New function.
1356         * ipa-reference.h (ipa_reference_c_finalize): New.
1357         * main.c (main): Replace invocation of toplev_main with
1358         construction of a toplev instance, and call its "main" method.
1359         * params.c (global_init_params): Add an assert that
1360         params_finished is false.
1361         (params_c_finalize): New.
1362         * params.h (params_c_finalize): New.
1363         * passes.c (execute_ipa_summary_passes): Set "current_pass" before
1364         invoking generate_summary, for the benefit of pass_ipa_pure_const.
1365         (ipa_write_summaries_2): Assign "pass" to "current_pass" global
1366         before calling write_summary hook.
1367         (ipa_write_optimization_summaries_1): Likewise when calling
1368         write_optimization_summary hook.
1369         (ipa_read_summaries_1): Likewise for read_summary hook.
1370         (ipa_read_optimization_summaries_1): Likewise for
1371         read_optimization_summary hook.
1372         (execute_ipa_stmt_fixups): Likewise.
1373         * stringpool.c (init_stringpool): Clean up if we're called more
1374         than once.
1375         * timevar.c (timevar_init): Ignore repeated calls.
1376         * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
1377         "ipa-prop.h".
1378         (general_init): Reset "input_location" to UNKNOWN_LOCATION.
1379         (initialize_rtl): Move static local "initialized_once"
1380         into file scope, and rename to...
1381         (rtl_initialized): New variable.
1382         (do_compile): Move timevar initialization from here to
1383         toplev::start_timevars.
1384         (toplev::toplev, toplev::~toplev, toplev::start_timevars,
1385         toplev::finalize): New functions.
1386         (toplev_main): Rename to...
1387         (toplev::main): ...this.
1388         * toplev.h (class toplev): New class.
1389
1390 2014-10-21  Andrew MacLeod  <amacleod@redhat.com>
1391
1392         * loop-doloop.c: Include loop-unroll.h.
1393
1394 2014-10-21  Andrew MacLeod  <amacleod@redhat.com>
1395
1396         * cfg.h: New.  Header file for cfg.c.
1397         * cfganal.h: New.  Header file for cfganal.c.
1398         * lcm.h: New.  Header file for lcm.c.
1399         * loop-unroll.h: New.  Header file for loop-unroll.h.
1400         * cfgloop.h: (unroll_loops): Remove prototype.
1401         * basic-block.h: Move prototypes and structs to new header files.
1402         Include cfg.h, cfganal.h, and lcm.h.
1403         * loop-init.c: Include loop-unroll.h.
1404         * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
1405         * modulo-sched.c: Include loop-unroll.h.
1406
1407 2014-10-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1408
1409         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
1410         MARKER_BYTE_UNKNOWN markers when handling casts.
1411
1412 2014-10-21  Richard Biener  <rguenther@suse.de>
1413
1414         * tree-ssa-phiopt.c (value_replacement): Properly verify we
1415         are the non-singleton PHI.
1416
1417 2014-10-21  Jakub Jelinek  <jakub@redhat.com>
1418
1419         PR tree-optimization/63563
1420         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
1421         if either dra or drb stmts are not normal loads/stores.
1422
1423 2014-10-21  Ilya Tocar  <ilya.tocar@intel.com>
1424
1425         * config/i386/i386.c (expand_vec_perm_1): Fix
1426         expand_vec_perm_palignr case.
1427         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
1428         VI1_AVX512.
1429
1430 2014-10-21  Zhenqiang Chen  <zhenqiang.chen@arm.com>
1431
1432         * cfgloopanal.c (seq_cost): Delete.
1433         * rtl.h (seq_cost): New prototype.
1434         * rtlanal.c (seq_cost): New function.
1435         * tree-ssa-loop-ivopts.c (seq_cost): Delete.
1436
1437 2014-10-20  Andrew MacLeod  <amacleod@redhat.com>
1438
1439         * cfgrtl.h: New.  Add prototypes for cfgrtl.c.
1440         * basic-block.h: Remove prototypes for cfgrtl.c.
1441         * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
1442         prototypes to cfgrtl.h.
1443         * profile.h (profile_info): Add extern export declaration.
1444         * rtl.h: Remove prototypes for cfgrtl.h.
1445         * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
1446         * ipa-inline.c: Include profile.h.
1447         * loop-unroll.c: Ditto.
1448         * modulo-sched.c: Ditto.
1449         * postreload-gcse.c: Ditto.
1450         * predict.c: Ditto.
1451         * sched-ebb.c: Ditto.
1452         * sched-rgn.c: Ditto.
1453         * tracer.c: Ditto.
1454         * tree-ssa-loop-ivcanon.c: Ditto.
1455
1456 2014-10-20  Richard Biener  <rguenther@suse.de>
1457
1458         * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
1459         operands to get a def operand kind match.  Signal mismatches
1460         to the parent so we can try swapping its operands.
1461         (vect_build_slp_tree): Try swapping operands if they have
1462         a mismatched operand kind.
1463
1464 2014-10-20  Alan Modra  <amodra@gmail.com>
1465
1466         PR debug/60655
1467         * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
1468         Increase "ops" array size.  Correct array size tests.  Init
1469         n_constants in loop.  Break out of innermost loop when finding
1470         a trivial CONST expression.
1471
1472 2014-10-20  Martin Liska  <mliska@suse.cz>
1473
1474         PR ipa/63583
1475         * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
1476         Gimple tempate string is compared.
1477
1478 2014-10-20  Uros Bizjak  <ubizjak@gmail.com>
1479
1480         * varasm.c (const_alias_set): Remove.
1481         (init_varasm_once): Remove initialization of const_alias_set.
1482         (build_constant_desc): Do not set alias set to const_alias_set.
1483
1484 2014-10-19  Ilya Verbin  <ilya.verbin@intel.com>
1485
1486         * configure: Regenerate.
1487         * configure.ac: Move the test for section attribute specifier "e" in GAS
1488         out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
1489         * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
1490         * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
1491         ifdef HAVE_GAS_SECTION_EXCLUDE.
1492
1493 2014-10-19  Andreas Schwab  <schwab@linux-m68k.org>
1494
1495         * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
1496         match_operand expression.
1497
1498 2014-10-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1499             David Edelsohn  <dje.gcc@gmail.com>
1500
1501         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
1502         function.
1503         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
1504
1505 2014-10-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1506
1507         * doc/invoke.texi (Options to Request or Suppress Warnings):
1508         Explain options precedence.
1509         (Wtrampolines): Do not indent paragraph.
1510
1511 2014-10-18  John David Anglin  <danglin@gcc.gnu.org>
1512
1513         * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
1514         * config/pa/pa-protos.h (pa_following_call): Delete declaration.
1515         (pa_jump_in_call_delay): Likewise.
1516         * config/pa/pa.c (pa_option_override): Remove jump in call delay
1517         override.
1518         (pa_output_millicode_call): Remove support for jump in call delay.
1519         (pa_output_call): Likewise.
1520         (pa_jump_in_call_delay): Delete.
1521         (pa_following_call): Likewise.
1522         * config/pa/pa.md (in_call_delay): Remove jump in delay check.
1523         (uncond_branch): Remove following call check from attribute length.
1524
1525 2014-10-18  Oleg Endo  <olegendo@gcc.gnu.org>
1526
1527         PR target/53513
1528         * config/sh/sh-modes.def (PSI): Remove.
1529         * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
1530         * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
1531         (sh_reorg): Remove commented out FPSCR code.
1532         (fpscr_set_from_mem): Use SImode instead of PSImode.  Emit lds_fpscr
1533         insn instead of move insn.
1534         (sh_hard_regno_mode_ok): Return SImode for FPSCR.
1535         (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
1536         handling.
1537         (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
1538         (sh1_builtin_p): Uncomment.
1539         (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
1540         (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
1541         * config/sh/sh/predicates.md (fpscr_operand): Simplify.
1542         (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
1543         (general_movsrc_operand, general_movdst_operand): Disallow
1544         fpscr_operand.
1545         * config/sh/sh.md (FPSCR_FR): New constant.
1546         (push_fpscr): Emit sts_fpscr insn.
1547         (pop_fpscr): Emit lds_fpscr_insn.
1548         (movsi_ie): Disallow FPSCR operands.
1549         (fpu_switch, unnamed related split, extend_psi_si,
1550         truncate_si_psi): Remove insns.
1551         (lds_fpscr, sts_fpscr): New insns.
1552         (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
1553
1554 2014-10-17  Eric Botcazou  <ebotcazou@adacore.com>
1555
1556         * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
1557         (clone_inlined_nodes): Do not overwrite the clone if above predicate
1558         returns true.
1559
1560 2014-10-17  Ilya Tocar  <ilya.tocar@intel.com>
1561
1562         * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
1563         (expand_vec_perm_d): Ditto.
1564         (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
1565         V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
1566         V4DFmode.
1567         (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
1568         (ix86_expand_sse_unpack): Handle V64QImode.
1569         (expand_vec_perm_blend): Update conditions for TARGET, handle
1570         V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
1571         (expand_vec_perm_pshufb): Handle V64QImode.
1572         (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
1573         V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
1574         (ix86_expand_vec_perm_const_1): Call  ix86_expand_vec_perm_vpermi2.
1575         (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
1576         (ix86_expand_vecop_qihi): Handle V64QImode.
1577         * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
1578         (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
1579         (define_mode_iterator VEC_PERM_CONST): Add V32HI.
1580         (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
1581         (mul<mode>3): Use VI1_AVX512.
1582         (<sse2_avx2>_packsswb): Ditto.
1583         (<sse2_avx2>_packuswb): Ditto.
1584         (<ssse3_avx2>_pshufb<mode>3): Ditto.
1585         (<shift_insn><mode>3): Ditto.
1586
1587 2014-10-17  Kirill Yukhin  <kirill.yukhin@intel.com>
1588
1589         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
1590         conditions to fix bootstrap.
1591
1592 2014-10-17  Andrew MacLeod  <amacleod@redhat.com>
1593
1594         gcc-plugin.h:  Add tm.h and flattened includes from function.h.
1595
1596 2014-10-17  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1597             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1598             Anna Tikhonova  <anna.tikhonova@intel.com>
1599             Ilya Tocar  <ilya.tocar@intel.com>
1600             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1601             Ilya Verbin  <ilya.verbin@intel.com>
1602             Kirill Yukhin  <kirill.yukhin@intel.com>
1603             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1604
1605         * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
1606         and V32HI modes, update V8HI, V16QI, V32QI modes handling.
1607         (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
1608         * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
1609         (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
1610         (define_expand "vec_init<mode>"): Use VF48_I1248.
1611
1612 2014-10-17  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1613             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1614             Anna Tikhonova  <anna.tikhonova@intel.com>
1615             Ilya Tocar  <ilya.tocar@intel.com>
1616             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1617             Ilya Verbin  <ilya.verbin@intel.com>
1618             Kirill Yukhin  <kirill.yukhin@intel.com>
1619             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1620
1621         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
1622         expand_sse2_mulvxdi3.
1623
1624 2014-10-17  Richard Biener  <rguenther@suse.de>
1625
1626         * fold-const.c (fold_comparison): Remove redundant constant
1627         folding and operand swapping.
1628         (fold_binary_loc): Do comparison operand swapping here.
1629         (fold_ternary_loc): Canonicalize operand order for
1630         commutative ternary operations.
1631         * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
1632         and FMA_EXPR.
1633
1634 2014-10-17  Jakub Jelinek  <jakub@redhat.com>
1635
1636         PR tree-optimization/63464
1637         * gimple.h (gimple_seq_discard): New prototype.
1638         * gimple.c: Include stringpool.h and tree-ssanames.h.
1639         (gimple_seq_discard): New function.
1640         * optabs.h (lshift_cheap_p): New prototype.
1641         * optabs.c (lshift_cheap_p): New function, moved from...
1642         * tree-switch-conversion.c (lshift_cheap_p): ... here.
1643         * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
1644         (reassoc_branch_fixups): New variable.
1645         (update_range_test): Add otherrangep and seq arguments.
1646         Unshare exp.  If otherrange is NULL, use for other ranges
1647         array of pointers pointed by otherrangep instead.
1648         Emit seq before gimplified statements for tem.
1649         (optimize_range_tests_diff): Adjust update_range_test
1650         caller.
1651         (optimize_range_tests_xor): Likewise.  Fix up comment.
1652         (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
1653         functions.
1654         (optimize_range_tests): Adjust update_range_test caller.
1655         Call optimize_range_tests_to_bit_test.
1656         (branch_fixup): New function.
1657         (execute_reassoc): Call branch_fixup.
1658
1659         PR tree-optimization/63302
1660         * tree-ssa-reassoc.c (optimize_range_tests_xor,
1661         optimize_range_tests_diff): Use !integer_pow2p () instead of
1662         tree_log2 () < 0.
1663
1664 2014-10-17  Martin Liska  <mliska@suse.cz>
1665
1666         * ipa-icf.c (sem_function::merge): Local flags are set to false
1667         to enforce equal calling convention to be used.
1668         * opts.c (common_handle_option): Indentation fix.
1669
1670 2014-10-17  Marc Glisse  <marc.glisse@inria.fr>
1671
1672         * tree-into-ssa.c (is_old_name): Replace "new" with "old".
1673
1674 2014-10-17  Tom de Vries  <tom@codesourcery.com>
1675
1676         PR rtl-optimization/61605
1677         * regcprop.c (copyprop_hardreg_forward_1): Use
1678         regs_invalidated_by_this_call instead of regs_invalidated_by_call.
1679
1680 2014-10-17  Tom de Vries  <tom@codesourcery.com>
1681
1682         PR rtl-optimization/61605
1683         * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p.  Don't
1684         notice stores for noops.  Don't regard noops as copies.
1685
1686 2014-10-17  Uros Bizjak  <ubizjak@gmail.com>
1687
1688         * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
1689         register in a special way.
1690         (__cpuid_count): Ditto.
1691         * config/i386/driver-i386.h: Protect with
1692         "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
1693         (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
1694         is required to compile the function.
1695
1696 2014-10-16  DJ Delorie  <dj@redhat.com>
1697
1698         * flag-types.h (sanitize_code): Don't assume targets have 32-bit
1699         integers.
1700
1701         * config/rs6000/rs6000-c.c (rid_int128): New.
1702         (rs6000_macro_to_expand): Use instead of RID_INT128.
1703
1704 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
1705
1706         * function.h: Flatten file.  Remove includes, adjust prototypes to
1707         reflect only what is in function.h.
1708         (enum direction, struct args_size, struct locate_and_pad_arg_data,
1709         ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
1710         from expr.h.
1711         (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
1712         (optimize_function_for_size_p, optimize_function_for_speed_p): Move
1713         prototypes to predict.h.
1714         (init_varasm_status): Move prototype to varasm.h.
1715         * expr.h: Adjust include files.
1716         (enum direction, struct args_size, struct locate_and_pad_arg_data,
1717         ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
1718         to function.h.
1719         (locate_and_pad_parm): Move prototype to function.h.
1720         * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
1721         assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
1722         assign_temp, reposition_prologue_and_epilogue_notes,
1723         prologue_epilogue_contains, sibcall_epilogue_contains,
1724         update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
1725         set_return_jump_label): Move prototypes to function.h.
1726         * predict.h (optimize_function_for_size_p,
1727         optimize_function_for_speed_p): Relocate prototypes from function.h.
1728         * shrink-wrap.h (emit_return_into_block, active_insn_between,
1729         convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
1730         function.h.
1731         * varasm.h (init_varasm_status): Relocate prototype from function.h.
1732         * genattrtab.c (write_header): Add predict.h to include list.
1733         * genconditions.c (write_header): Add predict.h to include list.
1734         * genemit.c (main): Adjust header file includes.
1735         * gengtype.c (ifiles): Add flattened function.h header files.
1736         * genoutput.c (output_prologue): Add predict.h to include list.
1737         * genpreds.c (write_insn_preds_c): Adjust header file includes.
1738         * genrecog.c (write_header): Add flattened function.h header files.
1739         * alias.c: Adjust include files.
1740         * auto-inc-dec.c: Likewise.
1741         * basic-block.h: Likewise.
1742         * bb-reorder.c: Likewise.
1743         * bt-load.c: Likewise.
1744         * builtins.c: Likewise.
1745         * caller-save.c: Likewise.
1746         * calls.c: Likewise.
1747         * cfgbuild.c: Likewise.
1748         * cfgcleanup.c: Likewise.
1749         * cfgexpand.c: Likewise.
1750         * cfgloop.c: Likewise.
1751         * cfgloop.h: Likewise.
1752         * cfgrtl.c: Likewise.
1753         * cgraph.h: Likewise.
1754         * cgraphclones.c: Likewise.
1755         * cgraphunit.c: Likewise.
1756         * combine-stack-adj.c: Likewise.
1757         * combine.c: Likewise.
1758         * coverage.c: Likewise.
1759         * cprop.c: Likewise.
1760         * cse.c: Likewise.
1761         * cselib.c: Likewise.
1762         * dbxout.c: Likewise.
1763         * ddg.c: Likewise.
1764         * df-core.c: Likewise.
1765         * df-problems.c: Likewise.
1766         * df-scan.c: Likewise.
1767         * dojump.c: Likewise.
1768         * dwarf2cfi.c: Likewise.
1769         * dwarf2out.c: Likewise.
1770         * emit-rtl.c: Likewise.
1771         * except.c: Likewise.
1772         * explow.c: Likewise.
1773         * expr.c: Likewise.
1774         * final.c: Likewise.
1775         * function.c: Likewise.
1776         * gcse.c: Likewise.
1777         * gimple-fold.c: Likewise.
1778         * gimple-low.c: Likewise.
1779         * gimple-streamer.h: Likewise.
1780         * haifa-sched.c: Likewise.
1781         * ifcvt.c: Likewise.
1782         * ira.c: Likewise.
1783         * jump.c: Likewise.
1784         * lcm.c: Likewise.
1785         * loop-invariant.c: Likewise.
1786         * lra-assigns.c: Likewise.
1787         * lra-coalesce.c: Likewise.
1788         * lra-constraints.c: Likewise.
1789         * lra-eliminations.c: Likewise.
1790         * lra-lives.c: Likewise.
1791         * lra-spills.c: Likewise.
1792         * lra.c: Likewise.
1793         * lto-cgraph.c: Likewise.
1794         * lto-section-in.c: Likewise.
1795         * lto-section-out.c: Likewise.
1796         * lto-streamer-in.c: Likewise.
1797         * lto-streamer-out.c: Likewise.
1798         * mode-switching.c: Likewise.
1799         * modulo-sched.c: Likewise.
1800         * omp-low.c: Likewise.
1801         * optabs.c: Likewise.
1802         * passes.c: Likewise.
1803         * postreload-gcse.c: Likewise.
1804         * postreload.c: Likewise.
1805         * predict.c: Likewise.
1806         * profile.c: Likewise.
1807         * recog.c: Likewise.
1808         * ree.c: Likewise.
1809         * reg-stack.c: Likewise.
1810         * regcprop.c: Likewise.
1811         * reginfo.c: Likewise.
1812         * regrename.c: Likewise.
1813         * reload.c: Likewise.
1814         * reload1.c: Likewise.
1815         * reorg.c: Likewise.
1816         * resource.c: Likewise.
1817         * rtlanal.c: Likewise.
1818         * sched-deps.c: Likewise.
1819         * sched-ebb.c: Likewise.
1820         * sched-rgn.c: Likewise.
1821         * sel-sched-dump.c: Likewise.
1822         * sel-sched-ir.c: Likewise.
1823         * sel-sched.c: Likewise.
1824         * shrink-wrap.c: Likewise.
1825         * simplify-rtx.c: Likewise.
1826         * statistics.c: Likewise.
1827         * stmt.c: Likewise.
1828         * stor-layout.c: Likewise.
1829         * store-motion.c: Likewise.
1830         * symtab.c: Likewise.
1831         * targhooks.c: Likewise.
1832         * toplev.c: Likewise.
1833         * trans-mem.c: Likewise.
1834         * tree-cfg.c: Likewise.
1835         * tree-cfgcleanup.c: Likewise.
1836         * tree-dfa.c: Likewise.
1837         * tree-eh.c: Likewise.
1838         * tree-inline.c: Likewise.
1839         * tree-into-ssa.c: Likewise.
1840         * tree-nested.c: Likewise.
1841         * tree-nrv.c: Likewise.
1842         * tree-profile.c: Likewise.
1843         * tree-ssa-alias.c: Likewise.
1844         * tree-ssa-ccp.c: Likewise.
1845         * tree-ssa-copy.c: Likewise.
1846         * tree-ssa-copyrename.c: Likewise.
1847         * tree-ssa-dom.c: Likewise.
1848         * tree-ssa-operands.c: Likewise.
1849         * tree-ssa-propagate.c: Likewise.
1850         * tree-ssa-structalias.c: Likewise.
1851         * tree-ssa-tail-merge.c: Likewise.
1852         * tree-ssa-threadedge.c: Likewise.
1853         * tree-ssa-threadupdate.c: Likewise.
1854         * tree-ssa-uncprop.c: Likewise.
1855         * tree-ssa-uninit.c: Likewise.
1856         * tree-ssa.c: Likewise.
1857         * tree-stdarg.c: Likewise.
1858         * tree-tailcall.c: Likewise.
1859         * tree.c: Likewise.
1860         * tsan.c: Likewise.
1861         * valtrack.c: Likewise.
1862         * varasm.c: Likewise.
1863         * vmsdbgout.c: Likewise.
1864         * web.c: Likewise.
1865         * config/aarch64/aarch64.c: Add flattened includes from function.h.
1866         * config/alpha/alpha.c: Likewise.
1867         * config/arc/arc.c: Likewise.
1868         * config/arm/arm.c: Likewise.
1869         * config/avr/avr-log.c: Likewise.
1870         * config/avr/avr.c: Likewise.
1871         * config/bfin/bfin.c: Likewise.
1872         * config/c6x/c6x.c: Likewise.
1873         * config/cr16/cr16.c: Likewise.
1874         * config/cris/cris.c: Likewise.
1875         * config/darwin.c: Likewise.
1876         * config/epiphany/epiphany.c: Likewise.
1877         * config/epiphany/mode-switch-use.c: Likewise.
1878         * config/epiphany/resolve-sw-modes.c: Likewise.
1879         * config/fr30/fr30.c: Likewise.
1880         * config/frv/frv.c: Likewise.
1881         * config/h8300/h8300.c: Likewise.
1882         * config/i386/i386.c: Likewise.
1883         * config/ia64/ia64.c: Likewise.
1884         * config/iq2000/iq2000.c: Likewise.
1885         * config/lm32/lm32.c: Likewise.
1886         * config/m32c/m32c.c: Likewise.
1887         * config/m32r/m32r.c: Likewise.
1888         * config/m68k/m68k.c: Likewise.
1889         * config/mcore/mcore.c: Likewise.
1890         * config/mep/mep-pragma.c: Likewise.
1891         * config/mep/mep.c: Likewise.
1892         * config/microblaze/microblaze.c: Likewise.
1893         * config/mips/mips.c: Likewise.
1894         * config/mmix/mmix.c: Likewise.
1895         * config/mn10300/mn10300.c: Likewise.
1896         * config/moxie/moxie.c: Likewise.
1897         * config/msp430/msp430.c: Likewise.
1898         * config/nds32/nds32-cost.c: Likewise.
1899         * config/nds32/nds32-fp-as-gp.c: Likewise.
1900         * config/nds32/nds32-intrinsic.c: Likewise.
1901         * config/nds32/nds32-isr.c: Likewise.
1902         * config/nds32/nds32-md-auxiliary.c: Likewise.
1903         * config/nds32/nds32-memory-manipulation.c: Likewise.
1904         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1905         * config/nds32/nds32-predicates.c: Likewise.
1906         * config/nds32/nds32.c: Likewise.
1907         * config/nios2/nios2.c: Likewise.
1908         * config/pa/pa.c: Likewise.
1909         * config/pdp11/pdp11.c: Likewise.
1910         * config/rl78/rl78.c: Likewise.
1911         * config/rs6000/rs6000.c: Likewise.
1912         * config/rx/rx.c: Likewise.
1913         * config/s390/s390.c: Likewise.
1914         * config/score/score.c: Likewise.
1915         * config/sh/sh.c: Likewise.
1916         * config/sparc/sparc.c: Likewise.
1917         * config/spu/spu.c: Likewise.
1918         * config/stormy16/stormy16.c: Likewise.
1919         * config/tilegx/tilegx.c: Likewise.
1920         * config/tilepro/tilepro.c: Likewise.
1921         * config/v850/v850.c: Likewise.
1922         * config/vax/vax.c: Likewise.
1923         * config/xtensa/xtensa.c: Likewise.
1924
1925 2014-10-16  Richard Earnshaw  <rearnsha@arm.com>
1926
1927         * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
1928         (TARGET_LEGITIMIZE_ADDRESS): Redefine.
1929
1930 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
1931
1932         * config/sh/sh-protos.h (fldi_ok): Remove.
1933         * config/sh/sh.c (fldi_ok): Likewise.
1934         (sh_secondary_reload): Don't use fldi_ok.
1935         * config/sh/constraints.md (G constraint, H constraint): Don't use
1936         fldi_ok.
1937
1938 2014-10-16  Martin Liska  <mliska@suse.cz>
1939
1940         * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
1941         Cast to unsigned long.
1942         (sem_item_optimizer::dump_cong_classes): Likewise.
1943
1944 2014-10-16  Tom de Vries  <tom@codesourcery.com>
1945
1946         * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
1947         with SSA_NAME_IN_FREELIST.
1948
1949 2014-10-16  Richard Biener  <rguenther@suse.de>
1950
1951         PR middle-end/63554
1952         * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
1953         (fold_builtin_strncat_chk): Move ...
1954         * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
1955         (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
1956
1957 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
1958
1959         PR target/59401
1960         * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
1961         GBR to 0.
1962
1963 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1964             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1965             Anna Tikhonova  <anna.tikhonova@intel.com>
1966             Ilya Tocar  <ilya.tocar@intel.com>
1967             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1968             Ilya Verbin  <ilya.verbin@intel.com>
1969             Kirill Yukhin  <kirill.yukhin@intel.com>
1970             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1971
1972         * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
1973         V64QI modes.
1974
1975 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1976             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1977             Anna Tikhonova  <anna.tikhonova@intel.com>
1978             Ilya Tocar  <ilya.tocar@intel.com>
1979             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1980             Ilya Verbin  <ilya.verbin@intel.com>
1981             Kirill Yukhin  <kirill.yukhin@intel.com>
1982             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1983
1984         * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
1985         V16SI, V32HI, V64QI modes.
1986
1987 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
1988
1989         PR target/53513
1990         * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
1991         expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
1992
1993         * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
1994         to match fp insn patterns.
1995         (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
1996         list.
1997         (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
1998         expand_df_unop, expand_df_binop): Remove.
1999         (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
2000         FPSCR_STAT_REG as not call clobbered.
2001         (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
2002         invoking fpscr_set_from_mem.
2003
2004         * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
2005         (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
2006         FPSCR_STAT_REG.
2007         (REGISTER_NAMES): Adjust.
2008         (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
2009         (FIRST_PSEUDO_REGISTER): Increase to 156.
2010         (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
2011         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
2012         FPSCR_STAT_REG.
2013         (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
2014         FPSCR_MODES_REG and FPSCR_STAT_REG.
2015         (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
2016
2017         * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
2018         FPSCR_SZ): Add new constants.
2019         (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
2020
2021         (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
2022         (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
2023         Use TARGET_FPU_ANY condition.
2024         (fpu_switch peephole2): Remove.
2025         (fpu_switch split): Use simple_mem_operand to capture the mem and
2026         adjust split implementation.
2027         (extend_psi_si, truncate_si_psi): New insns.
2028         (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants.  Add
2029         set of FPSCR_MODES_REG.
2030
2031         (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
2032         reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
2033         calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
2034         call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
2035         call_value_compact, call_value_compact_rettramp, call,
2036         call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
2037         sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
2038         sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
2039         sibcall_value_compact, sibcall_value, call_value_pop_compact,
2040         call_value_pop_compact_rettramp, various unnamed splits):
2041         Replace use of FPSCR_REG with use of FPSCR_MODES_REG.  Adjust gen_*
2042         function uses.
2043
2044         (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
2045         (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
2046         (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
2047         (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
2048         (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
2049
2050         (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
2051         *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
2052         cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
2053         subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
2054         cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
2055         truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
2056         and use of FPSCR_MODES_REG.  Adjust gen_* function uses.
2057
2058 2014-10-16  Martin Liska  <mliska@suse.cz>
2059             Jan Hubicka  <hubicka@ucw.cz>
2060
2061         * Makefile.in: New object files included.
2062         * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
2063         is printed.
2064         (verify_edge_corresponds_to_fndecl): More sensitive verification
2065         of nodes that are merged by IPA ICF.
2066         * cgraph.h (cgraph_node::num_references): New function.
2067         * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
2068         * common.opt: New options ipa-icf, ipa-icf-functions and
2069         ipa-icf-variables introduced.
2070         * doc/invoke.texi: Documentation of new options introduced.
2071         * ipa-icf-gimple.c: New file.
2072         * ipa-icf-gimple.h: New file.
2073         * ipa-icf.c: New file.
2074         * ipa-icf.h: New file.
2075         * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
2076         (input_overwrite_node): Likewise.
2077         * lto-section-in.c: New icf section added.
2078         * lto-streamer.h (enum lto_section_type): Likewise.
2079         * opts.c (common_handle_option): New option added.
2080         * passes.def: New pass included.
2081         * timevar.def: Time variable for IPA ICF added.
2082         * tree-pass.h: New IPA ICF pass entry point added.
2083
2084 2014-10-16  Richard Biener  <rguenther@suse.de>
2085
2086         PR tree-optimization/63168
2087         * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
2088         latches if after merging they are no longer simple.
2089         * cfghooks.c (merge_blocks): Handle merging a latch block
2090         into another block.
2091
2092 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2093             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2094             Anna Tikhonova  <anna.tikhonova@intel.com>
2095             Ilya Tocar  <ilya.tocar@intel.com>
2096             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2097             Ilya Verbin  <ilya.verbin@intel.com>
2098             Kirill Yukhin  <kirill.yukhin@intel.com>
2099             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2100
2101         * config/i386/sse.md
2102         (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
2103         support AVX-512VL instructions.
2104
2105 2014-10-16  DJ Delorie  <dj@redhat.com>
2106
2107         * tree-core.h: Fix comment to not assume pointers are multiples of
2108         bytes.
2109
2110 2014-10-15  Tom Tromey  <tromey@redhat.com>
2111
2112         * timevar.h (class auto_timevar): New class.
2113
2114 2014-10-15  Uros Bizjak  <ubizjak@gmail.com>
2115
2116         PR go/59432
2117         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
2118         Remove the second alternative.
2119         (regprefix): Remove mode attribute.
2120         (atomic_compare_and_swap<mode>): Do not fixup operand 2.
2121         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
2122
2123         Revert:
2124         2013-11-05  Ian Lance Taylor  <iant@google.com>
2125
2126         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
2127         If possible, add .cfi directives to record change to bx.
2128         * config/i386/i386.c (ix86_emit_cfi): New function.
2129         * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
2130
2131 2014-10-15  Jan Hubicka  <hubicka@ucw.cz>
2132
2133         PR lto/62026
2134         * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
2135         to duplicate.
2136         * lto-streamer-out.c (lto_output): Handle correctly thunks that was born
2137         at WPA time.
2138
2139 2014-10-15  Vladimir Makarov  <vmakarov@redhat.com>
2140
2141         PR rtl-optimization/63448
2142         * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
2143         (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
2144         (LRA_MAX_INHERITANCE_PASSES): Use it.
2145         (lra_constraint_iter_after_spill): Remove.
2146         (lra_assignment_iter): New.
2147         (lra_assignment_iter_after_spill): New.
2148         * lra-assigns.c (lra_assignment_iter): New.
2149         (lra_assignment_iter_after_spill): New.
2150         (former_reload_pseudo_spill_p): New.
2151         (spill_for): Set up former_reload_pseudo_spill_p.
2152         (setup_live_pseudos_and_spill_after_risky): Ditto.
2153         (assign_by_spills): Ditto.
2154         (lra_assign): Increment lra_assignment_iter.  Print the iteration
2155         number.  Reset former_reload_pseudo_spill_p.  Check
2156         lra_assignment_iter_after_spill.
2157         * lra.c (lra): Remove lra_constraint_iter_after_spill.  Initialize
2158         lra_assignment_iter and lra_assignment_iter_after_spill.
2159         * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
2160         (lra_constraints): Remove code with
2161         lra_assignment_iter_after_spill.
2162
2163 2014-10-15  Teresa Johnson  <tejohnson@google.com>
2164
2165         PR bootstrap/63432
2166         * tree-ssa-threadupdate.c (recompute_probabilities): Better
2167         overflow checking.
2168
2169 2014-10-15  Renlin Li <renlin.li@arm.com>
2170
2171         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
2172         __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
2173         __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
2174         __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
2175
2176 2014-10-15  Richard Biener  <rguenther@suse.de>
2177
2178         * gimple-fold.c (gimple_fold_call): Properly keep virtual
2179         SSA form up-to-date when devirtualizing a call to
2180         __builtin_unreachable and avoid fixing up EH info here.
2181
2182 2014-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2183             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2184             Anna Tikhonova  <anna.tikhonova@intel.com>
2185             Ilya Tocar  <ilya.tocar@intel.com>
2186             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2187             Ilya Verbin  <ilya.verbin@intel.com>
2188             Kirill Yukhin  <kirill.yukhin@intel.com>
2189             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2190
2191         * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
2192         to support AVX-512BW.
2193         (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
2194         (define_expand "<plusminus_insn><mode>3"): Remove masking support.
2195         (define_insn "*<plusminus_insn><mode>3"): Ditto.
2196         (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
2197         (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
2198         (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
2199         (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
2200         (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
2201         (define_insn "*andnot<mode>3"): Ditto.
2202         (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
2203         (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
2204         (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
2205         (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
2206         (define_insn "*abs<mode>2"): Remove masking support.
2207         (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
2208         (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
2209         (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
2210
2211 2014-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2212             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2213             Anna Tikhonova  <anna.tikhonova@intel.com>
2214             Ilya Tocar  <ilya.tocar@intel.com>
2215             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2216             Ilya Verbin  <ilya.verbin@intel.com>
2217             Kirill Yukhin  <kirill.yukhin@intel.com>
2218             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2219
2220         * config/i386/predicates.md (define_predicate "constm1_operand"): New.
2221         * config/i386/sse.md
2222         (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
2223         (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
2224         (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
2225         (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
2226         (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
2227         (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
2228         (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
2229
2230 2014-10-15  Renlin Li <renlin.li@arm.com>
2231
2232         * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
2233
2234 2014-10-15  Jakub Jelinek  <jakub@redhat.com>
2235
2236         * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
2237         MINUS_EXPR in unsigned type to avoid undefined behavior.
2238
2239 2014-10-15  Eric Botcazou  <ebotcazou@adacore.com>
2240
2241         * stor-layout.c (self_referential_size): Do not promote arguments.
2242
2243 2014-10-15  Marek Polacek  <polacek@redhat.com>
2244
2245         * doc/invoke.texi: Update to reflect that GNU11 is the default
2246         mode for C.
2247         * c-common.h (c_language_kind): Update comment.
2248
2249 2014-10-15  Richard Biener  <rguenther@suse.de>
2250
2251         * hash-table.c: Include bconfig.h if building for the host.
2252         * hash-table.h: Do not include ggc.h on the host but just declare
2253         a few ggc allocation templates.
2254
2255 2014-10-15  Joern Rennecke  <joern.rennecke@embecosm.com>
2256             Jeff Law  <law@redhat.com>
2257
2258         * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
2259         multiple hard registers, use smaller mode derived from MODE.
2260
2261 2014-10-15  Andreas Schwab  <schwab@suse.de>
2262
2263         * explow.c (convert_memory_address_addr_space_1): Mark in_const
2264         as ATTRIBUTE_UNUSED.
2265
2266 2014-10-14  Jan Hubicka  <hubicka@ucw.cz>
2267
2268         * loop-unroll.c: (decide_unrolling_and_peeling): Rename to
2269         (decide_unrolling): ... this one.
2270         (peel_loops_completely): Remove.
2271         (decide_peel_simple): Remove.
2272         (decide_peel_once_rolling): Remove.
2273         (decide_peel_completely): Remove.
2274         (peel_loop_simple): Remove.
2275         (peel_loop_completely): Remove.
2276         (unroll_and_peel_loops): Rename to ...
2277         (unroll_loops): ... this one; handle only unrolling.
2278         * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and
2279         LPT_PEEL_SIMPLE.
2280         (UAP_PEEL): Remove.
2281         (unroll_and_peel_loops): Remove.
2282         (unroll_loops): New.
2283         * passes.def: Replace
2284         pass_rtl_unroll_and_peel_loops by pass_rtl_unroll_loops.
2285         * loop-init.c (gate_rtl_unroll_and_peel_loops,
2286         rtl_unroll_and_peel_loops): Rename to ...
2287         (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
2288         (pass_rtl_unroll_and_peel_loops): Rename to ...
2289         (pass_rtl_unroll_loops): ... this one.
2290         * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
2291         (make_pass_rtl_unroll_loops): New.
2292         * tree-ssa-loop-ivcanon.c: (estimated_peeled_sequence_size, try_peel_loop): New.
2293         (canonicalize_loop_induction_variables): Update.
2294
2295 2014-10-14  Max Filippov  <jcmvbkbc@gmail.com>
2296
2297         * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
2298         * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
2299         !TARGET_HARD_FLOAT_POSTINC.
2300         (*lsip, *ssip): new instructions.
2301
2302 2014-10-14  Max Filippov  <jcmvbkbc@gmail.com>
2303
2304         * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
2305         remove.
2306
2307 2014-10-14  Andrew Pinski  <apinski@cavium.com>
2308
2309         * explow.c (convert_memory_address_addr_space): Rename to ...
2310         (convert_memory_address_addr_space_1): This.  Add in_const argument.
2311         Inside a CONST RTL, permute the conversion and addition of constant
2312         for zero and sign extended pointers.
2313         (convert_memory_address_addr_space): New function.
2314
2315 2014-10-14  Andrew Pinski  <apinski@cavium.com>
2316
2317         Revert:
2318         2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
2319
2320         PR middle-end/49721
2321         * explow.c (convert_memory_address_addr_space): Also permute the
2322         conversion and addition of constant for zero-extend.
2323
2324 2014-10-14  DJ Delorie  <dj@redhat.com>
2325
2326         * config/msp430/msp430-modes.def (PSI): Add.
2327
2328         * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding): New.
2329         (msp430_hard_regno_nregs_with_padding): New.
2330         * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
2331         (msp430_hard_regno_nregs_has_padding): New.
2332         (msp430_hard_regno_nregs_with_padding): New.
2333         (msp430_unwind_word_mode): Use PSImode instead of SImode.
2334         (msp430_addr_space_legitimate_address_p): New.
2335         (msp430_asm_integer): New.
2336         (msp430_init_dwarf_reg_sizes_extra): New.
2337         (msp430_print_operand): Use X suffix for PSImode even in small model.
2338         * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
2339         (PTR_SIZE): ...but 4 bytes for EH.
2340         (SIZE_TYPE): Use __int20.
2341         (PTRDIFF_TYPE): Likewise.
2342         (INCOMING_FRAME_SP_OFFSET): Adjust.
2343         * config/msp430/msp430.md (movqi_topbyte): New.
2344         (movpsi): Use fixed suffixes.
2345         (movsipsi2): Enable for 430X, not large model.
2346         (extendhipsi2): Likewise.
2347         (zero_extendhisi2): Likewise.
2348         (zero_extendhisipsi2): Likewise.
2349         (extend_and_shift1_hipsi2): Likewise.
2350         (extendpsisi2): Likewise.
2351         (*bitbranch<mode>4_z): Fix suffix logic.
2352
2353 2014-10-14  Eric Botcazou  <ebotcazou@adacore.com>
2354
2355         PR ada/62019
2356         * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
2357         do not choke on null node.
2358         <VAR_DECL>: Likewise.
2359
2360 2014-10-14  DJ Delorie  <dj@redhat.com>
2361
2362         * machmode.h (int_n_data_t): New.
2363         (int_n_enabled_p): New.
2364         (int_n_data): New.
2365         * tree.c (int_n_enabled_p): New.
2366         (int_n_trees): New.
2367         (make_or_reuse_type): Check for all __intN types, not just
2368         __int128.
2369         (build_common_tree_nodes): Likewise.  Also fill in integer_typs[]
2370         entries.
2371         * tree.h (int128_integer_type_node): Remove.
2372         (int128_unsigned_type_node): Remove.
2373         (int_n_trees_t): New.
2374         (int_n_enabled_p): New.
2375         (int_n_trees): New.
2376         * toplev.c (standard_type_bitsize): New.
2377         (do_compile): Check which __intN types are enabled for the current
2378         run.
2379         * builtin-types.def (BT_INT128): Remove.
2380         (BT_UINT128): Remove.
2381         * machmode.def: Add macro to create __int128 for all targets.
2382         * stor-layout.c (mode_for_size): Support __intN types.
2383         (smallest_mode_for_size): Likewise.
2384         (initialize_sizetypes): Support __intN types.
2385         * genmodes.c (struct mode_data): Add int_n field.
2386         (blank_mode): Likewise.
2387         (INT_N): New.
2388         (make_int_n): New.
2389         (emit_insn_modes_h): Count __intN entries and define
2390         NUM_INT_N_ENTS.
2391         (emit_mode_int_n): New.
2392         (emit_insn_modes_c): Call it.
2393         * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
2394         types, not just __int128.
2395         * tree-core.h (integer_type_kind): Remove __int128-specific
2396         entries, reserve spots for __intN entries.
2397
2398         * config/msp430/msp430-modes.def (PSI): Add.
2399
2400 2014-10-14  Kito Cheng  <kito@0xlab.org>
2401
2402         * ira.c: Fix typo in comment.
2403         * ira.h: Ditto.
2404         * ira-build.c: Ditto.
2405         * ira-color.c: Ditto.
2406         * ira-emit.c: Ditto.
2407         * ira-int.h: Ditto.
2408         * ira-lives.c: Ditto.
2409
2410 2014-10-14  Uros Bizjak  <ubizjak@gmail.com>
2411
2412         PR rtl-optimization/63475
2413         * alias.c (true_dependence_1): Always use get_addr to extract
2414         true address operands from x_addr and mem_addr.  Use extracted
2415         address operands to check for references with alignment ANDs.
2416         Use extracted address operands with find_base_term and
2417         base_alias_check. For noncanonicalized operands call canon_rtx with
2418         extracted address operand.
2419         (write_dependence_1): Ditto.
2420         (may_alias_p): Ditto.  Remove unused calls to canon_rtx.
2421
2422 2014-10-14  Evgeny Stupachenko  <evstupac@gmail.com>
2423
2424         PR target/63534
2425         * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
2426         __morestack local.
2427
2428 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2429             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2430             Anna Tikhonova  <anna.tikhonova@intel.com>
2431             Ilya Tocar  <ilya.tocar@intel.com>
2432             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2433             Ilya Verbin  <ilya.verbin@intel.com>
2434             Kirill Yukhin  <kirill.yukhin@intel.com>
2435             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2436
2437         * config/i386/i386.c
2438         (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
2439         (ix86_expand_int_vcond): Ditto.
2440
2441 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2442             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2443             Anna Tikhonova  <anna.tikhonova@intel.com>
2444             Ilya Tocar  <ilya.tocar@intel.com>
2445             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2446             Ilya Verbin  <ilya.verbin@intel.com>
2447             Kirill Yukhin  <kirill.yukhin@intel.com>
2448             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2449
2450         * config/i386/i386.c
2451         (emit_reduc_half): Handle V64QI and V32HI mode.
2452         * config/i386/sse.md
2453         (define_mode_iterator VI_AVX512BW): New.
2454         (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
2455
2456 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2457             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2458             Anna Tikhonova  <anna.tikhonova@intel.com>
2459             Ilya Tocar  <ilya.tocar@intel.com>
2460             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2461             Ilya Verbin  <ilya.verbin@intel.com>
2462             Kirill Yukhin  <kirill.yukhin@intel.com>
2463             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2464
2465         * config/i386/sse.md
2466         (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
2467
2468 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2469             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2470             Anna Tikhonova  <anna.tikhonova@intel.com>
2471             Ilya Tocar  <ilya.tocar@intel.com>
2472             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2473             Ilya Verbin  <ilya.verbin@intel.com>
2474             Kirill Yukhin  <kirill.yukhin@intel.com>
2475             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2476
2477         * config/i386/i386.c
2478         (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
2479         * config/i386/sse.md
2480         (define_mode_iterator VI): Add V64QI and V32HI modes.
2481
2482 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2483             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2484             Anna Tikhonova  <anna.tikhonova@intel.com>
2485             Ilya Tocar  <ilya.tocar@intel.com>
2486             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2487             Ilya Verbin  <ilya.verbin@intel.com>
2488             Kirill Yukhin  <kirill.yukhin@intel.com>
2489             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2490
2491         * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
2492
2493 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2494             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2495             Anna Tikhonova  <anna.tikhonova@intel.com>
2496             Ilya Tocar  <ilya.tocar@intel.com>
2497             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2498             Ilya Verbin  <ilya.verbin@intel.com>
2499             Kirill Yukhin  <kirill.yukhin@intel.com>
2500             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2501
2502         * config/i386/sse.md
2503         (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
2504         (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
2505
2506 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2507             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2508             Anna Tikhonova  <anna.tikhonova@intel.com>
2509             Ilya Tocar  <ilya.tocar@intel.com>
2510             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2511             Ilya Verbin  <ilya.verbin@intel.com>
2512             Kirill Yukhin  <kirill.yukhin@intel.com>
2513             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2514
2515         * config/i386/sse.md
2516         (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
2517         (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
2518
2519 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2520             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2521             Anna Tikhonova  <anna.tikhonova@intel.com>
2522             Ilya Tocar  <ilya.tocar@intel.com>
2523             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2524             Ilya Verbin  <ilya.verbin@intel.com>
2525             Kirill Yukhin  <kirill.yukhin@intel.com>
2526             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2527
2528         * config/i386/sse.md
2529         (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
2530         (define_mode_iterator VI2_AVX2): Add V32HI mode.
2531         (define_expand "mul<mode>3<mask_name>"): Add masking.
2532         (define_insn "*mul<mode>3<mask_name>"): Ditto.
2533         (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
2534         (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
2535         (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
2536         (define_mode_attr SDOT_PMADD_SUF): Ditto.
2537         (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
2538         (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
2539         (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
2540         (define_insn "avx2_packusdw"): Delete.
2541         (define_insn "sse4_1_packusdw"): Ditto.
2542         (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
2543
2544 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2545             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2546             Anna Tikhonova  <anna.tikhonova@intel.com>
2547             Ilya Tocar  <ilya.tocar@intel.com>
2548             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2549             Ilya Verbin  <ilya.verbin@intel.com>
2550             Kirill Yukhin  <kirill.yukhin@intel.com>
2551             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2552
2553         * config/i386/sse.md
2554         (define_insn "vec_dup<mode>"): Update constraints.
2555
2556 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2557             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2558             Anna Tikhonova  <anna.tikhonova@intel.com>
2559             Ilya Tocar  <ilya.tocar@intel.com>
2560             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2561             Ilya Verbin  <ilya.verbin@intel.com>
2562             Kirill Yukhin  <kirill.yukhin@intel.com>
2563             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2564
2565         * config/i386/sse.md
2566         (define_mode_iterator SSESCALARMODE): Add V4TI mode.
2567         (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
2568         (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
2569
2570 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2571             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2572             Anna Tikhonova  <anna.tikhonova@intel.com>
2573             Ilya Tocar  <ilya.tocar@intel.com>
2574             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2575             Ilya Verbin  <ilya.verbin@intel.com>
2576             Kirill Yukhin  <kirill.yukhin@intel.com>
2577             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2578
2579         * config/i386/sse.md
2580         (define_expand "mul<mode>3<mask_name>"): Add masking.
2581
2582 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2583             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2584             Anna Tikhonova  <anna.tikhonova@intel.com>
2585             Ilya Tocar  <ilya.tocar@intel.com>
2586             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2587             Ilya Verbin  <ilya.verbin@intel.com>
2588             Kirill Yukhin  <kirill.yukhin@intel.com>
2589             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2590
2591         * config/i386/sse.md
2592         (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
2593         (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
2594
2595 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2596             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2597             Anna Tikhonova  <anna.tikhonova@intel.com>
2598             Ilya Tocar  <ilya.tocar@intel.com>
2599             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2600             Ilya Verbin  <ilya.verbin@intel.com>
2601             Kirill Yukhin  <kirill.yukhin@intel.com>
2602             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2603
2604         * config/i386/sse.md
2605         (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
2606         (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
2607         (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
2608         Ditto.
2609
2610 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2611             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2612             Anna Tikhonova  <anna.tikhonova@intel.com>
2613             Ilya Tocar  <ilya.tocar@intel.com>
2614             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2615             Ilya Verbin  <ilya.verbin@intel.com>
2616             Kirill Yukhin  <kirill.yukhin@intel.com>
2617             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2618
2619         * config/i386/sse.md
2620         (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
2621         use VF_128_256 mode iterator and update assembler emit code.
2622         (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
2623         (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
2624         Add masking, use VF_128_256 mode iterator.
2625         (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
2626         (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
2627         Add masking, use VF_128_256 mode iterator and update assembler emit
2628         code.
2629         (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
2630         (define_mode_attr avx512flogicsuff): Delete.
2631         (define_insn "avx512f_<logic><mode>"): Ditto.
2632         (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
2633         MODE_TI.
2634         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
2635
2636 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2637             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2638             Anna Tikhonova  <anna.tikhonova@intel.com>
2639             Ilya Tocar  <ilya.tocar@intel.com>
2640             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2641             Ilya Verbin  <ilya.verbin@intel.com>
2642             Kirill Yukhin  <kirill.yukhin@intel.com>
2643             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2644
2645         * config/i386/sse.md
2646         (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
2647         (define_expand "vashr<mode>3<mask_name>"): Add masking,
2648         use VI12_128 mode iterator.
2649         (define_expand "ashrv2di3<mask_name>"): New.
2650
2651 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2652             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2653             Anna Tikhonova  <anna.tikhonova@intel.com>
2654             Ilya Tocar  <ilya.tocar@intel.com>
2655             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2656             Ilya Verbin  <ilya.verbin@intel.com>
2657             Kirill Yukhin  <kirill.yukhin@intel.com>
2658             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2659
2660         * config/i386/i386.c
2661         (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
2662         CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
2663         CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
2664         CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
2665         CODE_FOR_avx512vl_ucmpv4si3_mask.
2666         * config/i386/sse.md
2667         (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
2668         "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
2669         (define_insn
2670         "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
2671         (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
2672         (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
2673         (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
2674         (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
2675         (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
2676
2677 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2678             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2679             Anna Tikhonova  <anna.tikhonova@intel.com>
2680             Ilya Tocar  <ilya.tocar@intel.com>
2681             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2682             Ilya Verbin  <ilya.verbin@intel.com>
2683             Kirill Yukhin  <kirill.yukhin@intel.com>
2684             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2685
2686         * config/i386/sse.md
2687         (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
2688         (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
2689         (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
2690         (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
2691         (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
2692         (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
2693         (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
2694         (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
2695         (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
2696
2697 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2698             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2699             Anna Tikhonova  <anna.tikhonova@intel.com>
2700             Ilya Tocar  <ilya.tocar@intel.com>
2701             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2702             Ilya Verbin  <ilya.verbin@intel.com>
2703             Kirill Yukhin  <kirill.yukhin@intel.com>
2704             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2705
2706         * config/i386/sse.md
2707         (define_insn "avx512f_blendm<mode>"): Delete.
2708         (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
2709         (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
2710         (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
2711         V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
2712         (define_insn
2713         "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2714         Remove.
2715         (define_insn
2716         "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2717         New.
2718         (define_insn
2719         "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2720         Ditto.
2721         (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
2722         (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
2723         (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
2724         (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
2725         Delete.
2726         (define_insn
2727         "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
2728         New.
2729         (define_insn
2730         "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
2731         Ditto.
2732         (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
2733         Delete.
2734         (define_insn
2735         "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
2736         New.
2737         (define_insn
2738         "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
2739         Ditto.
2740
2741 2014-10-14  Richard Biener  <rguenther@suse.de>
2742
2743         PR tree-optimization/63512
2744         * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
2745         modified.
2746
2747 2014-10-14  Oleg Endo  <olegendo@gcc.gnu.org>
2748
2749         PR target/63260
2750         * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
2751         abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute.  Remove use
2752         of FPSCR.
2753         (negsf2_i): Rename to *negsf2_i.
2754         (abssf2_i): Rename to *abssf2_i.
2755         (negdf2_i): Rename to *negdf2_i.
2756         (absdf2_i): Rename to *absdf2_i.
2757
2758 2014-10-14  Felix Yang  <felix.yang@huawei.com>
2759             Jeff Law  <law@redhat.com>
2760
2761         * ira.c (struct equivalence): Change member "is_arg_equivalence" and
2762         "replace" into boolean bitfields; turn member "loop_depth" into a short
2763         integer; add new member "no_equiv" and "reserved".
2764         (no_equiv): Set no_equiv of struct equivalence if register is marked
2765         as having no known equivalence.
2766         (update_equiv_regs): Check all definitions for a multiple-set
2767         register to make sure that the RHS have the same value.
2768
2769 2014-10-13  Richard Henderson  <rth@redhat.com>
2770
2771         * combine-stack-adj.c (no_unhandled_cfa): New.
2772         (maybe_merge_cfa_adjust): New.
2773         (combine_stack_adjustments_for_block): Use them.
2774
2775 2014-10-13  Aldy Hernandez  <aldyh@redhat.com>
2776
2777         * Makefile.in (TAGS): Tag ../include files.
2778
2779 2014-10-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2780
2781         * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
2782         to rs6000_dbx_register_number.
2783         (DWARF_FRAME_REGNUM): Redefine as identity map.
2784         (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
2785         * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
2786         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
2787         argument to handle .debug_frame and .eh_frame directly.  Always
2788         translate SPE high register numbers.  Add special treatment for CR,
2789         but only in .debug_frame.  Respect RS6000_USE_DWARF_NUMBERING.
2790
2791         * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
2792         * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
2793         (RS6000_USE_DWARF_NUMBERING): Define.
2794         * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
2795         (RS6000_USE_DWARF_NUMBERING): Define.
2796         * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
2797         (RS6000_USE_DWARF_NUMBERING): Define.
2798         * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
2799         (RS6000_USE_DWARF_NUMBERING): Define.
2800         * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
2801         * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
2802
2803 2014-10-13  Evgeny Stupachenko  <evstupac@gmail.com>
2804
2805         * config/i386/i386.c (ix86_address_cost): Lower cost for
2806         when address contains GOT register.
2807
2808 2014-10-13  Ilya Enkovich  <ilya.enkovich@intel.com>
2809             Vladimir Makarov  <vmakarov@redhat.com>
2810
2811         PR target/8340
2812         PR middle-end/47602
2813         PR rtl-optimization/55458
2814         * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
2815         (ix86_init_pic_reg): New.
2816         (ix86_select_alt_pic_regnum): Add check on pseudo register.
2817         (ix86_save_reg): Likewise.
2818         (ix86_expand_prologue): Remove PIC register initialization
2819         now performed in ix86_init_pic_reg.
2820         (ix86_output_function_epilogue): Add check on pseudo register.
2821         (set_pic_reg_ever_alive): New.
2822         (legitimize_pic_address): Replace df_set_regs_ever_live with new
2823         set_pic_reg_ever_alive.
2824         (legitimize_tls_address): Likewise.
2825         (ix86_pic_register_p): New check.
2826         (ix86_delegitimize_address): Add check on pseudo register.
2827         (ix86_expand_call): Insert move from pseudo PIC register to ABI
2828         defined REAL_PIC_OFFSET_TABLE_REGNUM.
2829         (TARGET_INIT_PIC_REG): New.
2830         (TARGET_USE_PSEUDO_PIC_REG): New.
2831         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
2832         if pic_offset_table_rtx exists.
2833         * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
2834         Document.
2835         * doc/tm.texi: Regenerate.
2836         * function.c (assign_parms): Generate pseudo register for PIC.
2837         * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
2838         register.
2839         * ira-color.c (color_pass): Add check on pseudo register.
2840         * ira-emit.c (change_loop): Don't create copies for PIC pseudo
2841         register.
2842         * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
2843         register.
2844         (ira): Add target specific PIC register initialization.
2845         (do_reload): Keep PIC pseudo register.
2846         * lra-assigns.c (spill_for): Add checks on pseudo register.
2847         * lra-constraints.c (contains_symbol_ref_p): New.
2848         (lra_constraints): Enable lra risky transformations when PIC is pseudo
2849         register.
2850         * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
2851         * target.def (use_pseudo_pic_reg): New.
2852         (init_pic_reg): New.
2853
2854 2014-10-13  Evgeny Stupachenko  <evstupac@gmail.com>
2855
2856         * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
2857         Remove m_SILVERMONT and m_INTEL from the tune.
2858
2859 2014-10-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2860
2861         PR libfortran/63471
2862         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
2863         when _HPUX_SOURCE is defined.
2864
2865 2014-10-13  Jan Hubicka  <hubicka@ucw.cz>
2866
2867         PR tree-optimization/62127
2868         * tree.c (remap_type_1): When remapping array, remap
2869         also its type.
2870
2871 2014-10-13  Christophe Lyon  <christophe.lyon@linaro.org>
2872
2873         * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
2874         longer impact parallelization.
2875
2876 2014-10-13  Jan Hubicka  <hubicka@ucw.cz>
2877
2878         PR bootstrap/63496
2879         * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
2880
2881 2014-10-13  Marat Zakirov  <m.zakirov@samsung.com>
2882
2883         * asan.c (instrument_derefs): BIT_FIELD_REF added.
2884
2885 2014-10-13  Richard Biener  <rguenther@suse.de>
2886
2887         PR tree-optimization/63419
2888         * gimple-fold.h (gimple_convert): New function.
2889         * gimple-fold.c (gimple_convert): Likewise.
2890         * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
2891         to split out required conversions early.
2892
2893 2014-10-13  Richard Sandiford  <richard.sandiford@arm.com>
2894
2895         * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
2896         Add the parts of an insn in reverse order, with the pattern at
2897         the top of the queue.  Detect when we're iterating over a SEQUENCE
2898         pattern and in that case just consider patterns of subinstructions.
2899
2900 2014-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
2901
2902         PR target/59401
2903         * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
2904         of rtx.
2905         * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
2906         insn walking.
2907         (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
2908         address.  Use def chains to handle GBR clobbering call insns.
2909
2910 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
2911
2912         * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
2913         config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
2914         config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
2915         function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
2916         output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
2917         tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
2918         * doc/gty.texi (for_user): Document new option.
2919         * gengtype.c (create_user_defined_type): Don't try to get a struct for
2920         char.
2921         (walk_type): Don't error out on for_user option.
2922         (write_func_for_structure): Emit user marking routines if requested by
2923         for_user option.
2924         (write_local_func_for_structure): Likewise.
2925         (main): Mark types with for_user option as used.
2926         * ggc.h (gt_pch_nx): Add overload for unsigned int.
2927         * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
2928         * hash-table.h (ggc_hasher): New struct.
2929         (hash_table::create_ggc): New function.
2930         (gt_pch_nx): New overload for hash_table.
2931
2932 2014-10-11  Oleg Endo  <olegendo@gcc.gnu.org>
2933
2934         * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
2935         * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
2936         * config/sh/sh.c: Likewise.
2937         * config/sh/sh-mem.cc: Likewise.
2938         * config/sh/sh.md: Likewise.
2939         * config/sh/predicates.md: Likewise.
2940         * config/sh/sync.md: Likewise.
2941
2942 2014-10-11  Martin Liska  <mliska@suse.cz>
2943
2944         PR middle-end/63376
2945         * cgraphunit.c (symbol_table::process_new_functions): Missing call
2946         for call_cgraph_insertion_hooks added.
2947
2948 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
2949
2950         PR c/63495
2951         * stor-layout.c (min_align_of_type): Don't decrease alignment
2952         through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
2953         TYPE_USER_ALIGN is set.
2954
2955 2014-10-10  Uros Bizjak  <ubizjak@gmail.com>
2956
2957         PR rtl-optimization/63483
2958         * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
2959         references when alignment ANDs are involved.
2960         (write_dependence_p): Ditto.
2961         (may_alias_p): Ditto.
2962
2963 2014-10-10  Marek Polacek  <polacek@redhat.com>
2964
2965         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
2966         * doc/invoke.texi: Document -fsanitize=object-size.
2967         * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
2968         or it into SANITIZE_UNDEFINED.
2969         * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
2970         * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
2971         * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
2972         * opts.c (common_handle_option): Handle -fsanitize=object-size.
2973         * ubsan.c: Include tree-object-size.h.
2974         (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
2975         (ubsan_expand_bounds_ifn): Use false instead of 0.
2976         (ubsan_expand_objsize_ifn): New function.
2977         (instrument_object_size): New function.
2978         (pass_ubsan::execute): Add object size instrumentation.
2979         * ubsan.h (ubsan_expand_objsize_ifn): Declare.
2980
2981 2014-10-10  Richard Henderson  <rth@redhat.com>
2982
2983         PR target/63404
2984         * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
2985         Restrict the set of expressions we're willing to move.
2986
2987 2014-10-10  Jeff Law  <law@redhat.com>
2988
2989         * ira.c (struct equivalence): Promote INIT_INSNs field to
2990         an rtx_insn_list.  Add comments.
2991         (no_equiv): Promote LIST to an rtx_insn_list.  Update
2992         testing for and creating the special marker.  Use methods
2993         to extract the insn and next pointers.  Promote INSN to an
2994         rtx_insn.
2995         (update_equiv_regs): Update test for special marker in the
2996         INIT_INSNs list.
2997
2998 2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2999
3000         * configure.ac: Add --enable-fix-cortex-a53-835769 option.
3001         * configure: Regenerate.
3002         * config/aarch64/aarch64.c (aarch64_override_options): Handle
3003         TARGET_FIX_ERR_A53_835769_DEFAULT.
3004         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
3005         value to 2.
3006         * doc/install.texi (aarch64*-*-*): Document
3007         new --enable-fix-cortex-a53-835769 option.
3008
3009 2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3010             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3011
3012         * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
3013         (ADJUST_INSN_LENGTH): Define.
3014         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
3015         * config/aarch64/aarch64.c (is_mem_p): New function.
3016         (is_memory_op): Likewise.
3017         (aarch64_prev_real_insn): Likewise.
3018         (is_madd_op): Likewise.
3019         (dep_between_memop_and_curr): Likewise.
3020         (aarch64_madd_needs_nop): Likewise.
3021         (aarch64_final_prescan_insn): Likewise.
3022         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
3023         and -mno-fix-cortex-a53-835769 options.
3024
3025 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
3026
3027         PR tree-optimization/63464
3028         * tree-switch-conversion.c (struct case_bit_test): Remove
3029         hi and lo fields, add wide_int mask field.
3030         (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
3031         hi/lo fields into wide_int mask operations, optimize by pretending
3032         minval to be 0 if maxval is small enough.
3033         (process_switch): Adjust caller.
3034
3035 2014-10-10  Richard Biener  <rguenther@suse.de>
3036
3037         PR tree-optimization/63379
3038         * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
3039         a neutral operand for min/max when it is not a reduction chain.
3040
3041 2014-10-10  Richard Biener  <rguenther@suse.de>
3042
3043         PR tree-optimization/63476
3044         * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
3045         (BB_LIVE_VOP_ON_EXIT): New define.
3046         (create_expression_by_pieces): Assign VUSEs to stmts.
3047         (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
3048         (pass_pre::execute): Assert virtual SSA form is up-to-date
3049         after insertion.
3050
3051 2014-10-10  Eric Botcazou  <ebotcazou@adacore.com>
3052
3053         * lra-assigns.c (assign_by_spills): Error out on spill failure.
3054
3055 2014-10-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
3056
3057         * pa-polymorphic-call.c (check_stmt_for_type_change): Move
3058         assertion.
3059
3060 2014-10-09  Richard Biener  <rguenther@suse.de>
3061
3062         PR tree-optimization/63380
3063         * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
3064         may trap.
3065
3066 2014-10-09  Joern Rennecke  <joern.rennecke@embecosm.com>
3067
3068         * config/avr/avr.opt (mmcu=): Change to have a string value.
3069         (mn-flash=, mskip-bug, march=, mrmw): New options.
3070         (HeaderInclude): New.
3071         (mmcu=): Remove Var / Init clauses.
3072         * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
3073         -specs option.
3074         (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
3075         (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
3076         (SYMBOL_FLAG_IO_LOW): Define.
3077         (avr_device_to_as, avr_device_to_ld): Don't declare.
3078         (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
3079         (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
3080         (EXTRA_SPEC_FUNCTIONS): Don't define.
3081         (ASM_SPEC): Translate -arch= option to -mmcu= option.
3082         (LINK_SPEC): Translate -arch= option to -m= option.
3083         Don't use device_to_ld / device_to_data_start.
3084         (STARTFILE_SPEC): Now empty.
3085         (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
3086         * config/avr/gen-avr-mmcu-specs.c: New file.
3087         * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
3088         (s-device-specs): Likewise.
3089         (GCC_PASSES): Add s-device-specs.
3090         (install-driver): Depend on install-device-specs.
3091         (install-device-specs): New rule.
3092         * config/avr/avr.c (avr_option_override): Look up mcu arch by
3093         avr_arch_index and provide fallback initialization for avr_n_flash.
3094         (varasm.h): #include.
3095         (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
3096         (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
3097         (avr_attribute_table): Add "io", "address" and "io_low".
3098         (avr_asm_output_aligned_decl_common): Change type of decl to tree.
3099         Add special handling for symbols with "io" and/or "address" attributes.
3100         (avr_asm_asm_output_aligned_bss): New function.
3101         (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
3102         as appropriate.  Handle io_low attribute.
3103         (avr_out_sbxx_branch): Handle symbolic io addresses.
3104         (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
3105         avr_n_flash instead of avr_current_device->n_flash.
3106         (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
3107         (avr_emit_movmemhi): Likewise.
3108         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
3109         Use TARGET_RMW instead of avr_current_device->dev_attributes.
3110         Don't define avr_current_device->macro (that's the specfile's job).
3111         Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
3112         * config/avr/avr.c (avr_2word_insn_p): Likewise.
3113         * config/avr/avr.md (*cpse.ne): Likewise.
3114         (mov<mode>): Use avr_eval_addr_attrib.
3115         (cbi): Change constraint for low_io_address_operand operand to "i".
3116         (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
3117         * config/avr/predicates.md (io_address_operand):
3118         Allow SYMBOL_REF with SYMBOL_FLAG_IO.
3119         (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
3120         * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
3121         Update prototype.
3122         (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
3123         * config/avr/genmultilib.awk: Use -march=.
3124         Remove Multilib matches processing.
3125         * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
3126         * config/avr/avr-arch.h: Add double include guard.
3127         (avr_mcu_t) <library_name>: Update comment.
3128         * config/avr/driver-avr.c (avr_device_to_as): Delete.
3129         (avr_device_to_ld, avr_device_to_data_start): Likewise.
3130         (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
3131         (avr_device_to_sp8): Likewise.
3132         * config/avr/genopt.sh:  Instead avr_mcu, emit an Enum for avr_arch.
3133
3134         * doc/extend.texi (io, address): Document new AVR variable attributes.
3135         (io_low): Likewise.
3136
3137 2014-10-09  Marek Polacek  <polacek@redhat.com>
3138
3139         * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
3140
3141 2014-10-08  Richard Biener  <rguenther@suse.de>
3142
3143         PR tree-optimization/61969
3144         * tree-nrv.c (pass_nrv::execute): Properly test for automatic
3145         variables.
3146
3147 2014-10-09  Richard Biener  <rguenther@suse.de>
3148
3149         PR tree-optimization/63445
3150         * tree-vrp.c (simplify_cond_using_ranges): Only warn about
3151         overflow for non-equality compares.
3152
3153 2014-10-09  Uros Bizjak  <ubizjak@gmail.com>
3154
3155         PR rtl-optimization/57003
3156         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
3157         also check CALL_INSN_FUNCTION_USAGE for clobbers again after
3158         killing regs_invalidated_by_call.
3159
3160 2014-10-08  Teresa Johnson  <tejohnson@google.com>
3161
3162         PR bootstrap/63432.
3163         * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
3164         (ssa_fix_duplicate_block_edges): Invoke it.
3165         (mark_threaded_blocks): Make two passes to avoid ordering dependences.
3166
3167 2014-10-08  Oleg Endo  <olegendo@gcc.gnu.org>
3168
3169         PR target/52941
3170         * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
3171         atomic_fetch_<fetchop_name>si_hard,
3172         atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
3173         atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
3174         atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
3175         atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
3176
3177 2014-10-08  Rong Xu  <xur@google.com>
3178
3179         * gcov-tool.c (profile_overlap): New driver function
3180         to compute profile overlap.
3181         (print_overlap_usage_message): New.
3182         (overlap_usage): New.
3183         (do_overlap): New.
3184         (print_usage): Add calls to overlap function.
3185         (main): Ditto.
3186         * doc/gcov-tool.texi: Add documentation.
3187
3188 2014-10-08  Steve Ellcey  <sellcey@mips.com>
3189
3190         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
3191         LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
3192
3193 2014-10-08  Jan Hubicka  <hubicka@ucw.cz>
3194
3195         * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
3196         pattern matching of MEM_REF.
3197         (check_stmt_for_type_change): Update.
3198
3199 2014-10-08  Steve Ellcey  <sellcey@mips.com>
3200
3201         * config/mips/linux64.h: Remove.
3202         * config/mips/gnu-user64.h: Remove.
3203         * gcc.config (mips*-*-*): Remove references to linux64.h and
3204         gnu-user64.h
3205         * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
3206         with modified version from gnu-user64.h.
3207         (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
3208         (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
3209         * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
3210         linux64.h.
3211         (GNU_USER_LINK_EMULATION64): Ditto.
3212         (GNU_USER_LINK_EMULATIONN32): Ditto.
3213         (GLIBC_DYNAMIC_LINKER32): Ditto.
3214         (GLIBC_DYNAMIC_LINKER64): Ditto.
3215         (GLIBC_DYNAMIC_LINKERN32): Ditto.
3216         (UCLIBC_DYNAMIC_LINKER32): Ditto.
3217         (UCLIBC_DYNAMIC_LINKER64): Ditto.
3218         (UCLIBC_DYNAMIC_LINKERN32): Ditto.
3219         (BIONIC_DYNAMIC_LINKERN32): Ditto.
3220         (GNU_USER_DYNAMIC_LINKERN32): Ditto.
3221         (GLIBC_DYNAMIC_LINKER): Delete.
3222         (UCLIBC_DYNAMIC_LINKER): Delete.
3223
3224 2014-10-08  Joern Rennecke  <joern.rennecke@embecosm.com>
3225             Richard Biener  <rguenther@suse.de>
3226
3227         * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
3228         Get address space from operand 0 (BASE).
3229
3230 2014-10-07  Iain Sandoe  <iain@codesourcery.com>
3231
3232         PR target/61387
3233         * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
3234
3235 2014-10-07  Aldy Hernandez  <aldyh@redhat.com>
3236
3237         * dwarf2out.c: Remove current_function_has_inlines.
3238         (gen_subprogram_die): Same.
3239         (gen_inlined_subroutine_die): Same.
3240
3241 2014-10-07  Ilya Tocar  <ilya.tocar@intel.com>
3242
3243         * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
3244         type.
3245         (_addcarry_u64): Ditto.
3246         (_addcarryx_u64): Ditto.
3247
3248 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
3249
3250         * cgraph.h (cgraph_node::get_fun): Declare.
3251         * cgraph.c (cgraph_node::get_fun): New method.
3252         * ipa-inline.c (can_inline_edge_p): Use it.
3253
3254 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
3255
3256         * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
3257         and -ftrapping-math.
3258         * lto-wrapper.c (merge_and_complain): Likewise.
3259         (run_gcc): Likewise.
3260
3261 2014-10-06  Rong Xu  <xur@google.com>
3262
3263         * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
3264         * tree-profile.c: (params.h): New include.
3265         (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
3266         and __gcov_indirect_call_topn_counters for
3267         indirect_call_topn_profile.
3268         (gimple_init_edge_profiler): New decls for
3269         __gcov_indirect_call_topn_profiler.
3270         (gimple_gen_ic_profiler): Generate the correct profiler call.
3271         (gimple_gen_ic_func_profiler): Fix format.
3272         * value-prof.c (params.h): New include.
3273         (dump_histogram_value): Hanlde indirect_call_topn counters.
3274         (stream_in_histogram_value): Ditto.
3275         (gimple_indirect_call_to_profile): Use indirect_call_topn
3276         profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
3277         (gimple_find_values_to_profile): Hanlde indirect_call_topn
3278         counters.
3279         * value-prof.h (enum hist_type): Histrogram type for
3280         indirect_call_topn counters.
3281         * profile.c (instrument_values): Instrument
3282         indirect_call_topn counters.
3283
3284 2014-10-06  Rong Xu  <xur@google.com>
3285
3286         * Makefile.in: Fix dependence.
3287         * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
3288         indirect call topn profiler.
3289         * gcov-io.h: Ditto.
3290
3291 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
3292
3293         * calls.c (expand_call): Do not use the target as the return slot if
3294         it is not sufficiently aligned.
3295
3296 2014-10-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3297
3298         * config/rs6000/rs6000.c (analyze_swaps commentary): Add
3299         discussion of permutes and why we don't handle them.
3300
3301 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
3302
3303         * config/sparc/predicates.md (int_register_operand): Delete.
3304
3305 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
3306
3307         * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
3308
3309 2014-10-06  Jakub Jelinek  <jakub@redhat.com>
3310
3311         * ubsan.h (ubsan_get_source_location): New prototype.
3312         * ubsan.c (ubsan_source_location_type): New variable.
3313         Function renamed to ...
3314         (ubsan_get_source_location_type): ... this.  Cache
3315         return value in ubsan_source_location_type variable.
3316         (ubsan_source_location, ubsan_create_data): Use
3317         ubsan_get_source_location_type instead of
3318         ubsan_source_location_type.
3319         * asan.c (asan_protect_global): Don't protect globals
3320         with ubsan_get_source_location_type () type.
3321         (asan_add_global): Provide global decl location info
3322         if possible.
3323
3324 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
3325
3326         * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
3327         sanity check.
3328
3329 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
3330
3331         * ipa-polymorphic-call.c (possible_placement_new): Fix condition
3332         on size.
3333         (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
3334         into vptr pointer.
3335         (ipa_polymorphic_call_context::dump): Fix formating.
3336         (walk_ssa_copies): Add logic avoiding loops; update uses.
3337         * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
3338
3339 2014-10-02  Mark Wielaard  <mjw@redhat.com>
3340
3341         PR debug/63239
3342         * dwarf2out.c (gen_subprogram_die): When a member function is
3343         explicitly deleted then add a DW_AT_GNU_deleted attribute.
3344         * langhooks.h (struct lang_hooks_for_decls): Add
3345         function_decl_deleted_p langhook.
3346         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
3347         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
3348
3349 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
3350
3351         * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
3352         NULL pointer checks.
3353         (ipa_polymorphic_call_context::get_dynamic_type): Return true
3354         if type doesn't change.
3355         * cgraph.h (cgraph_indirect_call_info): New flag.
3356         * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
3357         (cgraph_node::dump): Dump it.
3358         * ipa-prop.c (ipa_analyze_call_uses):  Ignore return valud
3359         of context.get_dynamic_type.
3360         (ipa_make_edge_direct_to_target): Do not speculate
3361         edge that is already speuclative.
3362         (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
3363         speculate to __builtin_unreachable
3364         (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
3365         vptr_changed.
3366         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
3367
3368 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
3369
3370         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
3371         get_dynamic_type; drop TODO.
3372         * ipa-polymorphic-call.c
3373         (ipa_polymorphic_call_context::get_dynamic_type): Be ready
3374         for otr_type to be unknown.
3375
3376 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
3377
3378         * common/config/score/score-common.c: Remove.
3379         * config.gcc: Remove support for score-*.
3380         * config/score/constraints.md: Remove.
3381         * config/score/elf.h: Remove.
3382         * config/score/predicates.md: Remove.
3383         * config/score/score-conv.h: Remove.
3384         * config/score/score-generic.md: Remove.
3385         * config/score/score-modes.def: Remove.
3386         * config/score/score-protos.h: Remove.
3387         * config/score/score.c: Remove.
3388         * config/score/score.h: Remove.
3389         * config/score/score.md: Remove.
3390         * config/score/score.opt: Remove.
3391         * doc/md.texi: Don't document score-*.
3392
3393 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
3394
3395         PR pch/63429
3396         * genconditions.c: Directly include ggc.h before rtl.h.
3397
3398 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
3399
3400         * ipa-polymorphic-call.c
3401         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
3402         code determining speculative type.
3403         (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
3404
3405 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3406
3407         * altivec.md (altivec_lvsl): New define_expand.
3408         (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
3409         (altivec_lvsr): New define_expand.
3410         (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
3411         * rs6000.c (rs6000_expand_builtin): Change to use
3412         altivec_lvs[lr]_direct; remove commented-out code.
3413
3414 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3415
3416         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3417         Issue a warning message when vec_lvsl or vec_lvsr is used with a
3418         little endian target.
3419
3420 2014-10-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3421
3422         * tree-pretty-print.c (dump_location): Make it extern. Dump also
3423         the column.
3424         * tree-pretty-print.h (dump_location): Declare.
3425         * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
3426         (pp_gimple_stmt_1): Likewise.
3427         (dump_implicit_edges): Likewise.
3428         * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
3429         LOCATION_LINE.
3430
3431
3432 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
3433
3434         * gcc.c (driver::global_initializations): Remove "const" so
3435         that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
3436         and decoded_options_count.
3437
3438 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
3439
3440         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
3441         macro.
3442         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
3443         TARGET_E500_DOUBLE case here.
3444
3445 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
3446
3447         PR c++/54427
3448         PR c++/57198
3449         PR c++/58845
3450         * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
3451
3452 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
3453
3454         * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
3455         * lto-cgraph.c (lto_output_edge, input_edge): Stream
3456         in_polymorphic_cdtor
3457         * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
3458         (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
3459         * cgraphclones.c (cgraph_edge::clone): Likewise.
3460         * ipa-prop.c (update_jump_functions_after_inlining,
3461         try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
3462         to possible_dynamic_type_change.
3463         (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
3464         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
3465         IN_POLY_CDOTR argument.
3466
3467         * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
3468         for BASE and OUTER_TYPE being NULL.
3469         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
3470         in_poly_cdtor parameter.
3471
3472 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
3473
3474         * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
3475         (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
3476         TARGET_AVX512F.
3477         (expand_vec_perm_1): Likewise.
3478
3479 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
3480             Uros Bizjak  <ubizjak@gmail.com>
3481
3482         PR tree-optimization/61403
3483         * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
3484         error in comment.  Also optimize 256-bit vectors for AVX2
3485         or AVX (floating vectors only), provided the first permutation
3486         can be performed in one insn.
3487
3488 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
3489
3490         * gcc.c (class driver): New class.
3491         (main): Reimplement in terms of driver::main, moving most of the
3492         locals to be locals within individual methods of class driver.
3493         The remaining locals "explicit_link_files", "decoded_options" and
3494         "decoded_options_count" are used by multiple driver:: methods, and
3495         so become member data.  Doing so isolates the argc/argv reads and
3496         writes.  Replace "goto out" with a special exit code from
3497         new method driver::prepare_infiles.  Split out the old
3498         implementation of main into the following...
3499         (driver::main): New function, corresponding to the old "main"
3500         implementation.
3501         (driver::set_progname): New function, taken from the old
3502         "main" implementation.
3503         (driver::expand_at_files): Likewise.
3504         (driver::decode_argv): Likewise.
3505         (driver::global_initializations): Likewise.
3506         (driver::build_multilib_strings): Likewise.
3507         (driver::set_up_specs): Likewise.
3508         (driver::putenv_COLLECT_GCC): Likewise.
3509         (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
3510         (driver::handle_unrecognized_options): Likewise.
3511         (driver::maybe_print_and_exit): Likewise.
3512         (driver::prepare_infiles): Likewise.
3513         (driver::do_spec_on_infiles): Likewise.
3514         (driver::maybe_run_linker): Likewise.
3515         (driver::final_actions): Likewise.
3516         (driver::get_exit_code): Likewise.
3517
3518 2014-10-03  Yury Gribov  <y.gribov@samsung.com>
3519
3520         * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
3521         don't emit empty ctors.
3522
3523 2014-10-03  Eric Botcazou  <ebotcazou@adacore.com>
3524
3525         * convert.c (convert_to_integer): Do not introduce useless conversions
3526         between integral types.
3527
3528 2014-10-03  David Sherwood  <david.sherwood@arm.com>
3529
3530         * ira-int.h (ira_allocno): Mark hard_regno as signed.
3531
3532 2014-10-03  Ilya Enkovich  <ilya.enkovich@intel.com>
3533
3534         * lra-constraints.c (inherit_in_ebb): Handle calls with
3535         multiple return values.
3536         * caller-save.c (save_call_clobbered_regs): Likewise.
3537
3538 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
3539
3540         * tree-vect-data-refs.c (vect_permute_load_chain,
3541         vect_shift_permute_load_chain): Fix a typo in temporary var names,
3542         suffle3 to shuffle3.
3543
3544         PR libgomp/61200
3545         * omp-low.c (taskreg_contexts): New variable.
3546         (scan_omp_parallel): Push newly created context into taskreg_contexts
3547         vector and move record layout code to finish_taskreg_scan.
3548         (scan_omp_task): Likewise.
3549         (finish_taskreg_scan): New function.
3550         (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
3551         vector elements and release it.
3552
3553         PR target/62128
3554         * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
3555         of palignr arguments can't be used due to min 0 or max - min
3556         too high, try also op0, op1 order of palignr arguments.
3557
3558 2014-10-02  Jan Hubicka  <hubicka@ucw.cz>
3559
3560         * cgraph.h (ipa_polymorphic_call_context):
3561         Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
3562         private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
3563         * ipa-polymorphic-call.c
3564         (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
3565         past end of dynamic types.
3566         (ipa_polymorphic_call_context::stream_out,
3567         speculative_outer_type): Stream dynamic flag.
3568         (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
3569         (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
3570         Clear DYNAMIC.
3571         (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
3572         set it.
3573         (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
3574         * ipa-prop.c (update_jump_functions_after_inlining,
3575         try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
3576
3577 2014-10-02  Teresa Johnson  <tejohnson@google.com>
3578
3579         * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
3580         up when synthesizing counts to avoid rounding errors.
3581
3582 2014-10-02  Teresa Johnson  <tejohnson@google.com>
3583
3584         PR middle-end/63422
3585         * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
3586         asserts to handle incoming insanities.
3587
3588 2014-10-02  Martin Jambor  <mjambor@suse.cz>
3589
3590         PR tree-optimization/63375
3591         * tree-sra.c (build_access_from_expr_1): Disqualify volatile
3592         references.
3593
3594 2014-10-02  Olivier Hainque  <hainque@adacore.com>
3595
3596         * Makefile.in (CROSS): Define, to @CROSS.
3597
3598 2014-10-02  Jakub Jelinek  <jakub@redhat.com>
3599
3600         PR target/62128
3601         * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
3602         if it expands to a single insn only.
3603         (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument.  If true,
3604         fail unless in_order is true.  Add forward declaration.
3605         (expand_vec_perm_vperm2f128): Fix up comment about which permutation
3606         is useful for one_operand_p.
3607         (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
3608
3609 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
3610
3611         * cgraphclones.c (build_function_type_skip_args): Do not make new
3612         type variant of old.
3613
3614 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
3615
3616         * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
3617         when speculation is added.
3618         (ipa_edge_args): Add polymorphic_call_contexts.
3619         (ipa_get_ith_polymorhic_call_context): New accesor.
3620         (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
3621         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
3622         (ipa_compute_jump_functions_for_edge): Compute contexts.
3623         (update_jump_functions_after_inlining): Update contexts.
3624         (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
3625         update dumping; add speculative edge creation.
3626         (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
3627         context updating.
3628         (update_indirect_edges_after_inlining): Pass down context.
3629         (ipa_edge_duplication_hook): Duplicate contexts.
3630         (ipa_write_node_info): Stream out contexts.
3631         (ipa_read_node_info): Stream in contexts.
3632         * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
3633         types.
3634         (try_speculative_devirtualization): New function.
3635         * ipa-utils.h (try_speculative_devirtualization): Declare.
3636
3637 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
3638
3639         * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
3640         dumping during WPA.
3641
3642 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
3643
3644         * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
3645         type variants.
3646
3647 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
3648
3649         * ipa-polymorphic-call.c
3650         (ipa_polymorphic_call_context::restrict_to_inner_class):
3651         Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
3652         use speculation_consistent_p to do so; Add CONSDER_BASES
3653         and CONSIDER_PLACEMENT_NEW parameters.
3654         (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
3655         short circuit obvious cases.
3656         (ipa_polymorphic_call_context::dump): Improve formatting.
3657         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
3658         combine_speculation_with to record speculations; Do not ICE when
3659         object is located in pointer type decl; do not ICE for methods
3660         of UNION_TYPE; do not record nonpolymorphic types.
3661         (ipa_polymorphic_call_context::speculation_consistent_p): New method.
3662         (ipa_polymorphic_call_context::combine_speculation_with): New method.
3663         (ipa_polymorphic_call_context::combine_with): New method.
3664         (ipa_polymorphic_call_context::make_speculative): Move here; use
3665         combine speculation.
3666         * cgraph.h (ipa_polymorphic_call_context): Update
3667         restrict_to_inner_class prototype; add offset_by, make_speculative,
3668         combine_with, useless_p, combine_speculation_with and
3669         speculation_consistent_p methods.
3670         (ipa_polymorphic_call_context::offset_by): New method.
3671         (ipa_polymorphic_call_context::useless_p): New method.
3672
3673 2014-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3674
3675         PR rtl-optimization/62151
3676         * combine.c (can_combine_p): Allow the destination register of INSN
3677         to be clobbered in I3.
3678         (subst): Do not substitute into clobbers of registers.
3679
3680 2014-10-01  Jakub Jelinek  <jakub@redhat.com>
3681
3682         PR debug/63342
3683         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
3684         offset, TARGET_MEM_REF and SSA_NAME.
3685
3686         * config/i386/i386.c (expand_vec_perm_palignr): Handle
3687         256-bit vectors for TARGET_AVX2.
3688
3689         * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
3690         dfirst permutation.
3691
3692         PR target/63428
3693         * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
3694         argument to avx2_permv2ti.
3695
3696 2014-10-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3697
3698         * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
3699
3700 2014-09-30  Uros Bizjak  <ubizjak@gmail.com>
3701
3702         * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
3703         (fmod<mode>3): Ditto.
3704         (fpremxf4_i387): Ditto.
3705         (reminderxf3): Ditto.
3706         (reminder<mode>3): Ditto.
3707         (fprem1xf4_i387): Ditto.
3708
3709 2014-09-30  Teresa Johnson  <tejohnson@google.com>
3710
3711         * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
3712         duplicate_blocks bitmap.
3713         (remove_ctrl_stmt_and_useless_edges): Ditto.
3714         (create_block_for_threading): Ditto.
3715         (compute_path_counts): New function.
3716         (update_profile): Ditto.
3717         (recompute_probabilities): Ditto.
3718         (update_joiner_offpath_counts): Ditto.
3719         (freqs_to_counts_path): Ditto.
3720         (clear_counts_path): Ditto.
3721         (ssa_fix_duplicate_block_edges): Update profile info.
3722         (ssa_create_duplicates): Pass new parameter.
3723         (ssa_redirect_edges): Remove old profile update.
3724         (thread_block_1): New duplicate_blocks bitmap,
3725         remove old profile update.
3726         (thread_single_edge): Pass new parameter.
3727
3728 2014-09-30  Ilya Tocar  <ilya.tocar@intel.com>
3729
3730         PR middle-end/62120
3731         * varasm.c (decode_reg_name_and_count): Check availability for
3732         registers from ADDITIONAL_REGISTER_NAMES.
3733
3734 2014-09-30  David Malcolm  <dmalcolm@redhat.com>
3735
3736         PR plugins/63410
3737         * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
3738         (PLUGIN_HEADERS): Add pass-instances.def.
3739
3740 2014-09-30  James Greenhalgh  <james.greenhalgh@arm.com>
3741
3742         * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
3743         iterator.
3744         * config/aarch64/aarch64-simd.md
3745         (aarch64_sqdmull_laneq<mode>): Expand iterator.
3746         * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
3747         (vqdmulls_lane_s32): Fix return type.
3748         (vqdmulls_laneq_s32): New.
3749
3750 2014-09-30  Jakub Jelinek  <jakub@redhat.com>
3751
3752         PR inline-asm/63282
3753         * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
3754         or invert_jump_1 if jump isn't any_condjump_p.
3755
3756 2014-09-30  Terry Guo  <terry.guo@arm.com>
3757
3758         * config/arm/arm-cores.def (cortex-m7): New core name.
3759         * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
3760         (fpv5-d16): Ditto.
3761         * config/arm/arm-tables.opt: Regenerated.
3762         * config/arm/arm-tune.md: Regenerated.
3763         * config/arm/arm.h (TARGET_VFP5): New macro.
3764         * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
3765         * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
3766         smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
3767         * doc/invoke.texi: Document new cpu and fpu names.
3768
3769 2014-09-30  Jiong Wang  <jiong.wang@arm.com>
3770
3771         * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
3772         before sinking insn.
3773
3774 2014-09-30  David Sherwood  <david.sherwood@arm.com>
3775
3776         * ira-int.h (ira_allocno): Add "wmode" field.
3777         * ira-build.c (create_insn_allocnos): Add new "parent" function
3778         parameter.
3779         * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
3780         that cannot be accessed in wmode.
3781
3782 2014-09-30  Markus Trippelsdorf  <markus@trippelsdorf.de>
3783
3784         * data-streamer.c (bp_unpack_var_len_int): Avoid signed
3785         integer overflow.
3786
3787 2014-09-29  Andi Kleen  <ak@linux.intel.com>
3788
3789         * opts.c (print_filtered_help): Print --param min/max/default
3790         with -Q.
3791
3792 2014-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
3793
3794         * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
3795
3796 2014-09-29  Eric Botcazou  <ebotcazou@adacore.com>
3797
3798         * tree-vrp.c (get_single_symbol): New function.
3799         (build_symbolic_expr): Likewise.
3800         (symbolic_range_based_on_p): New predicate.
3801         (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
3802         for PLUS and MINUS.  Do not drop symbolic ranges at the end.
3803         (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
3804         operand is symbolic and based on the other operand.
3805
3806 2014-09-29  Chen Gang  <gang.chen.5i5j@gmail.com>
3807
3808         * config/microblaze/microblaze.md (call_internal1): Use VOID
3809         instead of SI to fix "((void (*)(void)) 0)()" issue
3810
3811 2014-09-29  Nick Clifton  <nickc@redhat.com>
3812
3813         * config/msp430/msp430.c (msp430_expand_prologue): Return a
3814         CLOBBER rtx for naked functions.
3815         (msp430_expand_epilogue): Likewise.
3816         (msp430_use_f5_series_hwmult): Cache result.
3817         (use_32bit_hwmult): Cache result.
3818         (msp430_no_hwmult): New function.
3819         (msp430_output_labelref): Use it.
3820
3821 2014-09-29  Jakub Jelinek  <jakub@redhat.com>
3822
3823         PR middle-end/63247
3824         * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
3825         of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
3826         use the alignment of avar rather than ovar.
3827
3828 2014-09-28  John David Anglin  <danglin@gcc.gnu.org>
3829
3830         * config/pa/pa.c (pa_output_function_epilogue): Only update
3831         last_address when a nonnote insn is found.
3832
3833 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
3834
3835         PR ipa/60665
3836         * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
3837
3838 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
3839
3840         PR ipa/62121
3841         * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
3842         fix pasto in checking array size.
3843
3844 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
3845
3846         PR middle-end/35545
3847         * passes.def (pass_tracer): Move before last dominator pass.
3848
3849 2014-09-26  Thomas Schwinge  <thomas@codesourcery.com>
3850
3851         * gcc.c (try_generate_repro): Remove argument "prog".  Change all
3852         users.
3853         (run_attempt): Handle errors of "pex_run" invocation.
3854
3855 2014-09-26  Christophe Lyon  <christophe.lyon@linaro.org>
3856
3857         * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
3858         (CC1_SPEC): Define.
3859         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
3860         (TARGET_ASAN_SHADOW_OFFSET): Define.
3861
3862 2014-09-26  Martin Liska  <mliska@suse.cz>
3863
3864         * cgraph.c (cgraph_node::release_body): New argument keep_arguments
3865         introduced.
3866         * cgraph.h: Likewise.
3867         * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
3868         * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
3869         * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
3870         * tree-ssa-alias.h: Likewise.
3871
3872 2014-09-26  Jakub Jelinek  <jakub@redhat.com>
3873             Max Ostapenko  <m.ostapenko@partner.samsung.com>
3874
3875         * common.opt: New option.
3876         * doc/invoke.texi: Describe new option.
3877         * gcc.c (execute): Don't free first string early, but at the end
3878         of the function.  Call retry_ice if compiler exited with
3879         ICE_EXIT_CODE.
3880         (main): Factor out common code.
3881         (print_configuration): New function.
3882         (files_equal_p): Likewise.
3883         (check_repro): Likewise.
3884         (run_attempt): Likewise.
3885         (do_report_bug): Likewise.
3886         (append_text): Likewise.
3887         (try_generate_repro): Likewise
3888
3889 2014-09-25  Andi Kleen  <ak@linux.intel.com>
3890
3891         * config/i386/i386.c (x86_print_call_or_nop): New function.
3892         (x86_function_profiler): Support -mnop-mcount and
3893         -mrecord-mcount.
3894         * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
3895         * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
3896
3897 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
3898
3899         * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
3900         * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
3901         * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
3902         Remove.
3903
3904 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
3905
3906         * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
3907         type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
3908         types_odr_comparable): Declare.
3909         (polymorphic_type_binfo_p): Move here from ipa-devirt.c
3910         * ipa-polymorphic-call.c: New file.
3911         (contains_polymorphic_type_p, possible_placement_new,
3912         ipa_polymorphic_call_context::restrict_to_inner_class,
3913         contains_type_p, decl_maybe_in_construction_p,
3914         ipa_polymorphic_call_context::stream_out,
3915         ipa_polymorphic_call_context::debug,
3916         ipa_polymorphic_call_context::stream_in,
3917         ipa_polymorphic_call_context::set_by_decl,
3918         ipa_polymorphic_call_context::set_by_invariant,
3919         walk_ssa_copies,
3920         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3921         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
3922         extr_type_from_vtbl_ptr_store, record_known_type
3923         check_stmt_for_type_change,
3924         ipa_polymorphic_call_context::get_dynamic_type): Move here from
3925         ipa-devirt.c
3926         * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
3927         and streamer-hooks.h
3928         (contains_polymorphic_type_p, possible_placement_new,
3929         ipa_polymorphic_call_context::restrict_to_inner_class,
3930         contains_type_p, decl_maybe_in_construction_p,
3931         ipa_polymorphic_call_context::stream_out,
3932         ipa_polymorphic_call_context::debug,
3933         ipa_polymorphic_call_context::stream_in,
3934         ipa_polymorphic_call_context::set_by_decl,
3935         ipa_polymorphic_call_context::set_by_invariant,
3936         walk_ssa_copies,
3937         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3938         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
3939         extr_type_from_vtbl_ptr_store, record_known_type
3940         check_stmt_for_type_change,
3941         ipa_polymorphic_call_context::get_dynamic_type): Move to
3942         ipa-polymorphic-call.c
3943         (type_all_derivations_known_p, types_odr_comparable,
3944         types_must_be_same_for_odr): Export.
3945         (type_known_to_have_no_deriavations_p): New function.
3946         * Makefile.in: Add ipa-polymorphic-call.c
3947
3948 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
3949
3950         * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
3951         for better storage.
3952         (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
3953         (possible_polymorphic_call_targets): Instead of computing both
3954         speculative and non-speculative answers, do just one at a time.
3955         Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
3956         (dump_targets): Break out from ...
3957         (dump_possible_polymorphic_call_targets): ... here; dump both speculative
3958         and non-speculative lists.
3959         (ipa_devirt): Update for new possible_polymorphic_call_targets API.
3960         * ipa-utils.h (possible_polymorphic_call_targets): Update.
3961
3962 2014-09-25  Uros Bizjak  <ubizjak@gmail.com>
3963
3964         PR rtl-optimization/63348
3965         * emit-rtl.c (try_split): Do not emit extra barrier.
3966
3967 2014-09-25  James Greenhalgh  <james.greenhalgh@arm.com>
3968
3969         * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
3970         * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
3971         new predicates.
3972         (aarch64_<sur>shll2_n<mode>): Likewise.
3973         (aarch64_<sur>shr_n<mode>): Likewise.
3974         (aarch64_<sur>sra_n<mode>: Likewise.
3975         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
3976         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
3977         * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
3978         * config/aarch64/iterators.md (ve_mode): New.
3979         (offsetlr): Remap to infix text for use in new predicates.
3980         * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
3981         (aarch64_simd_shift_imm_hi): Likewise.
3982         (aarch64_simd_shift_imm_si): Likewise.
3983         (aarch64_simd_shift_imm_di): Likewise.
3984         (aarch64_simd_shift_imm_offset_qi): Likewise.
3985         (aarch64_simd_shift_imm_offset_hi): Likewise.
3986         (aarch64_simd_shift_imm_offset_si): Likewise.
3987         (aarch64_simd_shift_imm_offset_di): Likewise.
3988         (aarch64_simd_shift_imm_bitsize_qi): Likewise.
3989         (aarch64_simd_shift_imm_bitsize_hi): Likewise.
3990         (aarch64_simd_shift_imm_bitsize_si): Likewise.
3991         (aarch64_simd_shift_imm_bitsize_di): Likewise.
3992
3993 2014-09-25  Jiong Wang  <jiong.wang@arm.com>
3994
3995         * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
3996         new created BB as the intersection of live-in from "old_dest" and
3997         live-out from "bb".
3998
3999 2014-09-25  Felix Yang  <felix.yang@huawei.com>
4000
4001         * lra.c (lra_set_insn_recog_data): Fix typo in comment.
4002         * genautomata.c (merge_states): Ditto.
4003
4004 2014-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
4005
4006         PR target/62218
4007         * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
4008         in instruction sequence.
4009
4010 2014-09-25  Nick Clifton  <nickc@redhat.com>
4011
4012         PR target/62218
4013         * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
4014         in instruction sequence.
4015
4016 2014-09-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4017
4018         PR target/63335
4019         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
4020         Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
4021
4022 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4023             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4024             Anna Tikhonova  <anna.tikhonova@intel.com>
4025             Ilya Tocar  <ilya.tocar@intel.com>
4026             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4027             Ilya Verbin  <ilya.verbin@intel.com>
4028             Kirill Yukhin  <kirill.yukhin@intel.com>
4029             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4030
4031         * config/i386/sse.md
4032         (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
4033         (define_expand "<avx2_avx512>_perm<mode>"): ... this.
4034         (define_expand "avx512f_perm<mode>_mask"): Rename to ...
4035         (define_expand "<avx512>_perm<mode>_mask"): ... this.
4036         Use VI8F_256_512 mode iterator.
4037         (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
4038         (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
4039
4040 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4041             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4042             Anna Tikhonova  <anna.tikhonova@intel.com>
4043             Ilya Tocar  <ilya.tocar@intel.com>
4044             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4045             Ilya Verbin  <ilya.verbin@intel.com>
4046             Kirill Yukhin  <kirill.yukhin@intel.com>
4047             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4048
4049         * config/i386/sse.md
4050         (define_insn "avx_movshdup256<mask_name>"): Add masking.
4051         (define_insn "sse3_movshdup<mask_name>"): Ditto.
4052         (define_insn "avx_movsldup256<mask_name>"): Ditto.
4053         (define_insn "sse3_movsldup<mask_name>"): Ditto.
4054         (define_insn "vec_dupv2df<mask_name>"): Ditto.
4055         (define_insn "*vec_concatv2df"): Add EVEX version.
4056
4057 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4058             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4059             Anna Tikhonova  <anna.tikhonova@intel.com>
4060             Ilya Tocar  <ilya.tocar@intel.com>
4061             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4062             Ilya Verbin  <ilya.verbin@intel.com>
4063             Kirill Yukhin  <kirill.yukhin@intel.com>
4064             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4065
4066         * config/i386/sse.md
4067         (define_insn "vec_set<mode>_0"): Add EVEX version.
4068
4069 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4070             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4071             Anna Tikhonova  <anna.tikhonova@intel.com>
4072             Ilya Tocar  <ilya.tocar@intel.com>
4073             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4074             Ilya Verbin  <ilya.verbin@intel.com>
4075             Kirill Yukhin  <kirill.yukhin@intel.com>
4076             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4077
4078         * config/i386/sse.md
4079         (define_insn
4080         "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
4081         New.
4082         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
4083         (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
4084         (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
4085         "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
4086         (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
4087         (define_expand "sse2_cvtpd2ps_mask): New.
4088         (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
4089         (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
4090
4091 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4092             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4093             Anna Tikhonova  <anna.tikhonova@intel.com>
4094             Ilya Tocar  <ilya.tocar@intel.com>
4095             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4096             Ilya Verbin  <ilya.verbin@intel.com>
4097             Kirill Yukhin  <kirill.yukhin@intel.com>
4098             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4099
4100         * config/i386/i386.c
4101         (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
4102         (ufix_notruncv8dfv8si2_mask_round): ... this.
4103         * config/i386/sse.md
4104         (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
4105         (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
4106         (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
4107         (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
4108         (define_expand "sse2_cvtpd2dq"): Delete.
4109         (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
4110         make 2nd operand const0 vector.
4111         (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
4112         Delete.
4113         (define_mode_attr pd2udqsuff): New.
4114         (define_insn
4115         "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
4116         (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
4117         (define_insn "*avx_cvttpd2dq256_2"): Delete.
4118         (define_expand "sse2_cvttpd2dq"): Ditto.
4119         (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
4120         make 2nd operand const0 vector.
4121
4122 2014-09-25  Jakub Jelinek  <jakub@redhat.com>
4123
4124         PR tree-optimization/63341
4125         * tree-vectorizer.h (vect_create_data_ref_ptr,
4126         vect_create_addr_base_for_vector_ref): Add another tree argument
4127         defaulting to NULL_TREE.
4128         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
4129         argument, pass it down to vect_create_addr_base_for_vector_ref.
4130         (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
4131         add that to base_offset too if non-NULL.
4132         * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
4133         for dr_explicit_realign_optimized set it to vector byte size
4134         - 1 instead of setting offset, pass byte_offset down to
4135         vect_create_data_ref_ptr.
4136
4137 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
4138
4139         * ipa-devirt.c (possible_polymorphic_call_targets): Remove
4140         forgotten debug output; canonicalize querries more wtih LTO.
4141
4142 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
4143
4144         * cgraph.h (class ipa_polymorphic_call_context): Move here from
4145         ipa-utils.h; add stream_int and stream_out methods.
4146         (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
4147         OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
4148         MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
4149         add CONTEXT.
4150         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
4151         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
4152         ipa_polymorphic_call_context::clear_speculation,
4153         ipa_polymorphic_call_context::clear_outer_type): Move here from
4154         ipa-utils.h
4155         * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
4156         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
4157         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
4158         ipa_polymorphic_call_context::clear_speculation,
4159         ipa_polymorphic_call_context::clear_outer_type): Likewise.
4160         * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
4161         streamer-hooks.h
4162         (ipa_polymorphic_call_context::stream_out): New method.
4163         (ipa_polymorphic_call_context::stream_in): New method.
4164         (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
4165         * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
4166         OUTER_TYPE.
4167         (ipa_analyze_call_uses): Simplify.
4168         (update_indirect_edges_after_inlining): Do not care about outer_type.
4169         (ipa_write_indirect_edge_info): Update.
4170         (ipa_write_indirect_edge_info): Likewise.
4171         * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
4172         (dump_edge_flags): Break out from ...
4173         (cgraph_node::dump): ... here; dump indirect edges.
4174
4175 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
4176
4177         * ipa-utils.h (polymorphic_call_context): Add
4178         metdhos dump, debug and clear_outer_type.
4179         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
4180         (ipa_polymorphic_call_context::clear_outer_type): New method.
4181         * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
4182         * ipa-devirt.c (types_odr_comparable): New function.
4183         (types_must_be_same_for_odr): New function.
4184         (odr_subtypes_equivalent_p): Simplify.
4185         (possible_placement_new): Break out from ...
4186         (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
4187         be more cuatious about returning false in cases the context may be
4188         valid in derived type or via placement new.
4189         (contains_type_p): Clear maybe_derived_type
4190         (ipa_polymorphic_call_context::dump): New method.
4191         (ipa_polymorphic_call_context::debug): New method.
4192         (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
4193         (ipa_polymorphic_call_context::set_by_invariant): Simplify.
4194         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
4195         (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
4196         to suceed on all valid cases; remove confused sanity check.
4197         (dump_possible_polymorphic_call_targets): Simplify.
4198
4199 2014-09-24  Aldy Hernandez  <aldyh@redhat.com>
4200
4201         * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
4202         lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
4203         tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
4204         varpool.c: Rename all instances of DECL_ABSTRACT to
4205         DECL_ABSTRACT_P.
4206
4207 2014-09-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4208
4209         * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
4210         special handling for stores whose SET_SRC is an UNSPEC (such as
4211         UNSPEC_STVE).
4212
4213 2014-09-24  Jiong Wang  <jiong.wang@arm.com>
4214
4215         * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
4216         !REG_P (src) to release more instruction sink opportunities.
4217
4218 2014-09-24  Wilco Dijkstra  <wilco.dijkstra@arm.com>
4219
4220         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
4221         move costs for 128-bit types.
4222
4223 2014-09-24  Martin Jambor  <mjambor@suse.cz>
4224
4225         * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
4226         when duplicating a PASS_THROUGH jump function when creating a
4227         speculative edge.
4228
4229 2014-09-24  Marek Polacek  <polacek@redhat.com>
4230
4231         PR c/61405
4232         PR c/53874
4233         * asan.c (maybe_instrument_call): Add default case.
4234         * ipa-pure-const.c (special_builtin_state): Likewise.
4235         * predict.c (expr_expected_value_1): Likewise.
4236         * lto-streamer-out.c (write_symbol): Initialize variable.
4237
4238 2014-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4239
4240         * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
4241         the lane.
4242         (vmuld_laneq_f64): Likewise.
4243         (vmuls_lane_f32): Likewise.
4244         (vmuls_laneq_f32): Likewise.
4245
4246 2014-09-24  Kirill Yukhin  <kirill.yukhin@intel.com>
4247
4248         PR bootstrap/63235
4249         * varpool.c (varpool_node::add): Pass decl attributes
4250         to lookup_attribute.
4251
4252 2014-09-24  Jakub Jelinek  <jakub@redhat.com>
4253
4254         PR sanitizer/63316
4255         * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
4256
4257 2014-09-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4258
4259         PR tree-optimization/63266
4260         * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
4261         marker for unknown byte value.
4262         (MARKER_MASK): New macro.
4263         (MARKER_BYTE_UNKNOWN): New macro.
4264         (HEAD_MARKER): New macro.
4265         (do_shift_rotate): Mark bytes with unknown values due to sign
4266         extension when doing an arithmetic right shift. Replace hardcoded
4267         mask for marker by new MARKER_MASK macro.
4268         (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
4269         numbers accordingly.
4270
4271 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4272             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4273             Anna Tikhonova  <anna.tikhonova@intel.com>
4274             Ilya Tocar  <ilya.tocar@intel.com>
4275             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4276             Ilya Verbin  <ilya.verbin@intel.com>
4277             Kirill Yukhin  <kirill.yukhin@intel.com>
4278             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4279
4280         * config/i386/sse.md
4281         (define_insn
4282         "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
4283         Add masking.
4284         (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
4285         (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
4286
4287 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4288             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4289             Anna Tikhonova  <anna.tikhonova@intel.com>
4290             Ilya Tocar  <ilya.tocar@intel.com>
4291             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4292             Ilya Verbin  <ilya.verbin@intel.com>
4293             Kirill Yukhin  <kirill.yukhin@intel.com>
4294             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4295
4296         * config/i386/sse.md
4297         (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
4298         (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
4299         (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
4300         (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
4301         (define_expand "avx512vl_pshuflw_mask"): New.
4302         (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
4303         (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
4304         (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
4305         (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
4306         (define_expand "avx512vl_pshufhw_mask"): New.
4307         (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
4308
4309 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4310             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4311             Anna Tikhonova  <anna.tikhonova@intel.com>
4312             Ilya Tocar  <ilya.tocar@intel.com>
4313             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4314             Ilya Verbin  <ilya.verbin@intel.com>
4315             Kirill Yukhin  <kirill.yukhin@intel.com>
4316             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4317
4318         * config/i386/i386.c
4319         (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
4320         CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
4321         CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
4322         CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
4323         CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
4324         * config/i386/sse.md
4325         (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
4326         (define_insn
4327         "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
4328         (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
4329         (define_insn
4330         "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
4331         (define_expand "avx512vl_pshufdv3_mask"): Ditto.
4332         (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
4333         (define_expand "avx512vl_pshufd_mask"): New.
4334         (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
4335
4336 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4337             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4338             Anna Tikhonova  <anna.tikhonova@intel.com>
4339             Ilya Tocar  <ilya.tocar@intel.com>
4340             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4341             Ilya Verbin  <ilya.verbin@intel.com>
4342             Kirill Yukhin  <kirill.yukhin@intel.com>
4343             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4344
4345         * config/i386/i386.c
4346         (CODE_FOR_avx2_extracti128): Rename to ...
4347         (CODE_FOR_avx_vextractf128v4di): this.
4348         (CODE_FOR_avx2_inserti128): Rename to ...
4349         (CODE_FOR_avx_vinsertf128v4di): this.
4350         (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
4351         CODE_FOR_avx_vextractf128v4di.
4352         (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
4353         CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
4354         CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
4355         CODE_FOR_avx512vl_vinsertv8si.
4356         * config/i386/sse.md
4357         (define_expand
4358         "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
4359         AVX512_VEC mode iterator.
4360         (define_insn
4361         "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
4362         Ditto.
4363         (define_expand
4364         "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
4365         AVX512_VEC_2 mode iterator.
4366         (define_insn "vec_set_lo_<mode><mask_name>"): New.
4367         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
4368         (define_expand "avx512vl_vinsert<mode>"): Ditto.
4369         (define_insn "avx2_vec_set_lo_v4di"): Delete.
4370         (define_insn "avx2_vec_set_hi_v4di"): Ditto.
4371         (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
4372         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
4373         (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
4374         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
4375         (define_expand "avx2_extracti128"): Delete.
4376         (define_expand "avx2_inserti128"): Ditto.
4377
4378 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4379             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4380             Anna Tikhonova  <anna.tikhonova@intel.com>
4381             Ilya Tocar  <ilya.tocar@intel.com>
4382             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4383             Ilya Verbin  <ilya.verbin@intel.com>
4384             Kirill Yukhin  <kirill.yukhin@intel.com>
4385             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4386
4387         * config/i386/sse.md
4388         (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
4389         (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
4390         (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
4391         (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
4392         (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
4393         (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
4394         (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
4395         (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
4396         (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
4397         (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
4398         (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
4399         (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
4400         (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
4401
4402 2014-09-24  Zhenqiang Chen  <zhenqiang.chen@arm.com>
4403
4404         PR rtl-optimization/63210
4405         * ira-color.c (assign_hard_reg): Ignore conflict cost if the
4406         HARD_REGNO is not available for CONFLICT_A.
4407
4408 2014-09-23  Andi Kleen  <ak@linux.intel.com>
4409
4410         * cgraph.h (symtab_node): Add no_reorder attribute.
4411         (symbol_table::output_asm_statements): Remove.
4412         * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
4413         (cgraph_node::create_version_clone): Dito.
4414         (symbol_table::output_asm_statements): Remove.
4415         * trans-mem.c (ipa_tm_create_version_alias): Dito.
4416         * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
4417         (output_in_order): Add no_reorder flag. Only handle no_reorder
4418         nodes when set.
4419         (symbol_table::compile): Add separate pass for no_reorder nodes.
4420         (process_common_attributes): Set no_reorder flag in symtab node.
4421         Add node argument.
4422         (process_function_and_variable_attributes): Pass symtab nodes to
4423         process_common_attributes.
4424         * doc/extend.texi (no_reorder): Document no_reorder attribute.
4425         * lto-cgraph.c (lto_output_node): Serialize no_reorder.
4426         (lto_output_varpool_node): Dito.
4427         (input_overwrite_node): Dito.
4428         (input_varpool_node): Dito.
4429         * varpool.c (varpool_node::add): Set no_reorder attribute.
4430         (symbol_table::remove_unreferenced_decls): Handle no_reorder.
4431         (symbol_table::output_variables): Dito.
4432         * symtab.c (symtab_node::dump_base): Print no_reorder.
4433
4434 2014-09-23  Jiong Wang  <jiong.wang@arm.com>
4435
4436         * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
4437         be INVALID_REGNUM.
4438
4439 2014-09-23  Thomas Schwinge  <thomas@codesourcery.com>
4440
4441         * configure: Regenerate.
4442
4443 2014-09-23  Alan Lawrence  <alan.lawrence@arm.com>
4444
4445         * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
4446         when result_mode == shift_mode.
4447
4448 2014-09-23  Kostya Serebryany  <kcc@google.com>
4449
4450         Update to match the changed asan API.
4451         * asan.c (asan_global_struct): Update the __asan_global definition
4452         to match the new API.
4453         (asan_add_global): Ditto.
4454         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
4455         to __asan_init_v4.
4456
4457 2014-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
4458
4459         * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
4460         refine the constraints used on 32/64-bit floating point moves.
4461         (f32_av): Likewise.
4462         (f64_vsx): Likewise.
4463         (f64_dm): Likewise.
4464         (f64_av): Likewise.
4465         (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
4466         (BOOL_REGS_OP1): Likewise.
4467         (BOOL_REGS_OP2): Likewise.
4468         (BOOL_REGS_UNARY): Likewise.
4469         (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
4470         32/64-bit floating point moves.  Do not use wa, instead use ww/ws
4471         for moves involving VSX registers.  Do not use constraints that
4472         target VSX registers for decimal types.
4473         (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
4474         (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
4475
4476 2014-09-23  Jan Hubicka  <hubicka@ucw.cz>
4477
4478         * tree.h (int_bit_position): Turn into inline function;
4479         implement using wide int.
4480         * tree.c (int_bit_position): Remove.
4481
4482 2014-09-23  Richard Sandiford  <richard.sandiford@arm.com>
4483
4484         PR bootstrap/63280
4485         * target-globals.c (target_globals::~target_globals): Fix location
4486         of ira_int destruction.
4487
4488 2014-09-23  Renlin Li  <renlin.li@arm.com>
4489
4490         * config/aarch64/aarch64.md (return): New.
4491         (simple_return): Likewise.
4492         * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
4493         * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
4494
4495 2014-09-23  Wilco Dijkstra  <wdijkstr@arm.com>
4496
4497         * common/config/aarch64/aarch64-common.c:
4498         (default_options aarch_option_optimization_table):
4499         Default to -fsched-pressure.
4500
4501 2014-09-23  Ilya Enkovich  <ilya.enkovich@intel.com>
4502
4503         * cfgcleanup.c (try_optimize_cfg): Do not remove label
4504         with LABEL_PRESERVE_P flag set.
4505
4506 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4507             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4508             Anna Tikhonova  <anna.tikhonova@intel.com>
4509             Ilya Tocar  <ilya.tocar@intel.com>
4510             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4511             Ilya Verbin  <ilya.verbin@intel.com>
4512             Kirill Yukhin  <kirill.yukhin@intel.com>
4513             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4514
4515         * config/i386/sse.md
4516         (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
4517         (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
4518         (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
4519         (define_insn "sse2_shufpd_v2df_mask"): New.
4520
4521 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4522             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4523             Anna Tikhonova  <anna.tikhonova@intel.com>
4524             Ilya Tocar  <ilya.tocar@intel.com>
4525             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4526             Ilya Verbin  <ilya.verbin@intel.com>
4527             Kirill Yukhin  <kirill.yukhin@intel.com>
4528             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4529
4530         * config/i386/sse.md
4531         (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
4532         (define_insn "avx_shufps256_1<mask_name>"): Ditto.
4533         (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
4534         (define_insn "sse_shufps_v4sf_mask"): New.
4535
4536 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4537             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4538             Anna Tikhonova  <anna.tikhonova@intel.com>
4539             Ilya Tocar  <ilya.tocar@intel.com>
4540             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4541             Ilya Verbin  <ilya.verbin@intel.com>
4542             Kirill Yukhin  <kirill.yukhin@intel.com>
4543             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4544
4545         * config/i386/sse.md
4546         (define_insn "avx_unpckhps256<mask_name>"): Add masking.
4547         (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
4548         (define_insn "avx_unpcklps256<mask_name>"): Ditto.
4549         (define_insn "unpcklps128_mask"): New.
4550
4551 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4552             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4553             Anna Tikhonova  <anna.tikhonova@intel.com>
4554             Ilya Tocar  <ilya.tocar@intel.com>
4555             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4556             Ilya Verbin  <ilya.verbin@intel.com>
4557             Kirill Yukhin  <kirill.yukhin@intel.com>
4558             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4559
4560         * config/i386/sse.md
4561         (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
4562         (define_insn "avx512vl_unpckhpd128_mask"): New.
4563         (define_expand "avx_movddup256<mask_name>"): Add masking.
4564         (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
4565         (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
4566         (define_insn "avx512vl_unpcklpd128_mask"): New.
4567
4568 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
4569
4570         * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4571         * doc/tm.texi: Regenerate.
4572         * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
4573         * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4574         * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
4575         Remove.
4576         * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4577         * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4578         * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4579         * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4580         * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
4581         Remove.
4582         * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4583         * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4584         * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4585         * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4586         * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4587         * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4588         * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4589         * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4590         * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4591         * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4592         * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
4593         Remove.
4594
4595 2014-09-22  Jan Hubicka  <hubicka@ucw.cz>
4596
4597         * tree-ssa-ccp.c (prop_value_d): Rename to ...
4598         (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
4599         * ipa-prop.c (struct type_change_info): Rename to ...
4600         (prop_type_change_info): ... this; update uses.
4601         * ggc-page.c (globals): Rename to ...
4602         (static struct ggc_globals): ... this; update uses.
4603         * tree-ssa-loop-im.c (mem_ref): Rename to ...
4604         (im_mem_ref): ... this; update uses.
4605         * ggc-common.c (loc_descriptor): Rename to ...
4606         (ggc_loc_descriptor): ... this; update uses.
4607         * lra-eliminations.c (elim_table): Rename to ...
4608         (lra_elim_table): ... this; update uses.
4609         * bitmap.c (output_info): Rename to ...
4610         (bitmap_output_info): ... this; update uses.
4611         * gcse.c (expr): Rename to ...
4612         (gcse_expr) ... this; update uses.
4613         (occr): Rename to ...
4614         (gcse_occr): .. this; update uses.
4615         * tree-ssa-copy.c (prop_value_d): Rename to ...
4616         (prop_value_t): ... this.
4617         * predict.c (block_info_def): Rename to ...
4618         (block_info): ... this; update uses.
4619         (edge_info_def): Rename to ...
4620         (edge_info): ... this; update uses.
4621         * profile.c (bb_info): Rename to ...
4622         (bb_profile_info): ... this; update uses.
4623         * alloc-pool.c (output_info): Rename to ...
4624         (pool_output_info): ... this; update uses.
4625         * ipa-cp.c (topo_info): Rename to ..
4626         (ipa_topo_info): ... this; update uses.
4627         * tree-nrv.c (nrv_data): Rename to ...
4628         (nrv_data_t): ... this; update uses.
4629         * ipa-split.c (bb_info): Rename to ...
4630         (split_bb_info): ... this one.
4631         * profile.h (edge_info): Rename to ...
4632         (edge_profile_info): ... this one; update uses.
4633         * dse.c (bb_info): Rename to ...
4634         (dse_bb_info): ... this one; update uses.
4635         * cprop.c (occr): Rename to ...
4636         (cprop_occr): ... this one; update uses.
4637         (expr): Rename to ...
4638         (cprop_expr): ... this one; update uses.
4639
4640 2014-09-22  Jason Merrill  <jason@redhat.com>
4641
4642         * Makefile.in (check-parallel-%): Add @.
4643
4644 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
4645
4646         * config/aarch64/geniterators.sh: New.
4647         * config/aarch64/iterators.md (VDQF_DF): New.
4648         * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
4649         * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
4650
4651 2014-09-22  Peter A. Bigot  <pab@pabigot.com>
4652
4653         * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
4654         -lnosys when -msim absent.
4655
4656 2014-09-22  Alan Lawrence  <alan.lawrence@arm.com>
4657
4658         * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
4659
4660 2014-09-22  Richard Biener  <rguenther@suse.de>
4661
4662         * gimplify.c (gimplify_init_constructor): Do not leave
4663         non-GIMPLE vector constructors around.
4664         * tree-cfg.c (verify_gimple_assign_single): Verify that
4665         CONSTRUCTORs have gimple elements.
4666
4667 2014-09-22  Jakub Jelinek  <jakub@redhat.com>
4668
4669         PR debug/63328
4670         * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
4671         insert a debug source bind stmt setting DEBUG_EXPR_DECL
4672         instead of a normal gimple assignment stmt.
4673
4674 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
4675
4676         * config/bfin/bfin.md: Fix use of constraints in define_split.
4677
4678 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
4679
4680         * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
4681         GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
4682
4683 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
4684
4685         * hard-reg-set.h: Include hash-table.h.
4686         (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
4687         field.
4688         * target-globals.c (target_globals::~target_globals): Call
4689         hard_regs->finalize.
4690         * rtl.h (subreg_shape): New structure.
4691         (shape_of_subreg): New function.
4692         (simplifiable_subregs): Declare.
4693         * reginfo.c (simplifiable_subreg): New structure.
4694         (simplifiable_subregs_hasher): Likewise.
4695         (simplifiable_subregs): New function.
4696         (invalid_mode_changes): Delete.
4697         (alid_mode_changes, valid_mode_changes_obstack): New variables.
4698         (record_subregs_of_mode): Remove subregs_of_mode parameter.
4699         Record valid mode changes in valid_mode_changes.
4700         (find_subregs_of_mode): Remove subregs_of_mode parameter.
4701         Update calls to record_subregs_of_mode.
4702         (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
4703         handling.  Initialize new variables.  Update call to
4704         find_subregs_of_mode.
4705         (invalid_mode_change_p): Check new variables instead of
4706         invalid_mode_changes.
4707         (finish_subregs_of_mode): Finalize new variables instead of
4708         invalid_mode_changes.
4709         (target_hard_regs::finalize): New function.
4710         * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
4711         even when CLASS_CANNOT_CHANGE_MODE is undefined.
4712
4713 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
4714
4715         * combine.c (subst): Use simplify_subreg_regno rather than
4716         REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
4717
4718 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
4719
4720         * rtl.h (subreg_info): Expand commentary
4721         * rtlanal.c (subreg_get_info): Likewise.
4722
4723 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
4724
4725         * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
4726         (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
4727         (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
4728
4729 2014-09-22  Zhenqiang Chen  <zhenqiang.chen@arm.com>
4730
4731         * config/arm/arm.c: #include "tm-constrs.h"
4732         (thumb1_size_rtx_costs): Adjust rtx costs.
4733
4734 2014-09-22  Hans-Peter Nilsson  <hp@axis.com>
4735
4736         * configure.ac (target_header_dir): Move block defining
4737         this to before the block setting inhibit_libc.
4738         (inhibit_libc): When considering $with_headers, just
4739         check it it's explicitly "no".  If not, also check if
4740         $target_header_dir/stdio.h is present.  If not, set
4741         inhibit_libc=true.
4742         * configure: Regenerate.
4743
4744 2014-09-21  Patrick Oppenlander  <pattyo.lists@gmail.com>
4745
4746         * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
4747
4748 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4749
4750         * config/rs6000/rs6000.md (div<mode>3): Fix comment.  Use a different
4751         insn for divides by integer powers of two.
4752         (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
4753         (mod<mode>3): Fix formatting.
4754         (three anonymous define_insn and two define_split): Delete.
4755
4756 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4757
4758         * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
4759         *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
4760         (floatdisf2_internal2): Ditto.
4761         (ashrdi3_no_power): Ditto.  Fix formatting.
4762
4763 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4764
4765         * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
4766         popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
4767         Tidy.
4768
4769 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4770
4771         * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
4772         constant, use addsi3 directly.
4773         (three anonymous define_insn, two define_split): Delete.
4774         (sub<mode>3): Move.  Do not allow constant second operand.
4775         Generate different insn for constant first operand.
4776         (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
4777         (subf<mode>3_imm): New.
4778         (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
4779         (*plus_ltu<mode>): Only handle registers.
4780         (*plus_ltu<mode>_1): New.  Handle integer third operand.
4781         (*plus_gtu<mode>): Only handle registers.
4782         (*plus_gtu<mode>_1): New.  Handle integer third operand.
4783
4784 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4785
4786         * config/rs6000/rs6000.md (iorxor): New code_iterator.
4787         (iorxor): New code_attr.
4788         (IORXOR): New code_attr.
4789         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
4790         (ior<mode>3, xor<mode>3): Delete.
4791         (<iorxor><mode>3): New.
4792         (splitter for "big" integer ior, xor): New.
4793         (*bool<mode>3): Move.  Also handle AND.
4794         (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
4795         (splitter for "big" integer ior, xor): Delete.
4796
4797 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4798
4799         * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
4800         (two anonymous define_insn and two define_split): Delete.
4801         (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
4802
4803 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4804
4805         * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
4806         (two anonymous define_insn and two define_split): Delete.
4807         (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
4808
4809 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4810
4811         * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
4812
4813 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4814
4815         * config/rs6000/predicates.md (ca_operand): Allow subregs.
4816         (input_operand): Do not allow ca_operand.
4817         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
4818         carry bit, allow SImode and Pmode.
4819         (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
4820
4821 2014-09-21  Uros Bizjak  <ubizjak@gmail.com>
4822
4823         * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
4824         clobbered registers using clobber_reg.  Remove UNSPEC decoration.
4825         * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
4826         (*call_rex64_ms_sysv): Remove.
4827         (*call_value_rex64_ms_sysv): Ditto.
4828         * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
4829
4830 2014-09-20  Joern Rennecke  <joern.rennecke@embecosm.com>
4831
4832         * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
4833         operand 3 to "CnL".
4834
4835 2014-09-20  Andreas Schwab  <schwab@suse.de>
4836
4837         * config/ia64/ia64.md: Remove constraints from define_split
4838         patterns.
4839
4840 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4841
4842         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
4843         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
4844         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
4845         (get_dynamic_type): Remove.
4846         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
4847         (clear_speculation): Bring to ipa-deivrt.h
4848         (get_class_context): Rename to ...
4849         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
4850         (contains_type_p): Update.
4851         (get_dynamic_type): Rename to ...
4852         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
4853         (possible_polymorphic_call_targets): UPdate.
4854         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
4855         * ipa-prop.c (ipa_analyze_call_uses): Update.
4856
4857 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4858
4859         * ipa-visibility.c (varpool_node::externally_visible_p): Do not
4860         privatize dynamic TLS variables.
4861
4862 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4863
4864         * diagnostic.c (warning_n): New function.
4865         * diagnostic-core.h (warning_n): Declare.
4866         * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
4867         output dynamic counts when available.
4868
4869 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4870
4871         PR tree-optimization/63255
4872         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
4873         issue in setting body_removed flag.
4874
4875 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4876
4877         PR c++/61825
4878         * c-family/c-common.c (handle_alias_ifunc_attribute): Check
4879         that visibility change is possible
4880         (handle_weakref_attribute): Likewise.
4881         * cgraph.h (symtab_node): Add method get_create and
4882         field refuse_visibility_changes.
4883         (symtab_node::get_create): New method.
4884         * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
4885         * varasm.c (mark_weak): Verify that visibility change is
4886         possible.
4887
4888 2014-09-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
4889
4890         * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
4891         for base_reg_operand to be common between LO_SUM and PLUS.
4892         (fusion_gpr_mem_combo): New predicate to match a fused address
4893         that combines the addis and memory offset address.
4894
4895         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
4896         calling signature.
4897         (emit_fusion_gpr_load): Likewise.
4898
4899         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
4900         signature to pass each argument separately, rather than
4901         using an operands array.  Rewrite the insns found by peephole2 to
4902         be a single insn, rather than hoping the insns will still be
4903         together when the peephole pass is done.  Drop being called via a
4904         normal peephole.
4905         (emit_fusion_gpr_load): Change calling signature to be called from
4906         the fusion_gpr_load_<mode> insns with a combined memory address
4907         instead of the peephole pass passing the addis and offset
4908         separately.
4909
4910         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
4911         fusion.
4912         (power8 fusion peephole): Drop support for doing power8 via a
4913         normal peephole that was created by the peephole2 pass.
4914         (power8 fusion peephole2): Create a new insn with the fused
4915         address, so that the fused operation is kept together after
4916         register allocation is done.
4917         (fusion_gpr_load_<mode>): Likewise.
4918
4919 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4920
4921         PR lto/63286
4922         * tree.c (need_assembler_name_p): Do not mangle variadic types.
4923
4924 2014-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
4925
4926         * recog.c (scratch_operand): Do not simply allow all hard registers:
4927         only allow those that are allocatable.
4928
4929 2014-09-19  Felix Yang  <felix.yang@huawei.com>
4930
4931         * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
4932         comments and fix spacing to conform to coding style.
4933
4934 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
4935
4936         * genrecog.c (validate_pattern): Allow empty constraints in
4937         a match_scratch.
4938
4939 2014-09-19  Aldy Hernandez  <aldyh@redhat.com>
4940
4941         * dwarf2out.c (decl_ultimate_origin): Update comment.
4942         * tree.c (block_ultimate_origin): Same.
4943
4944 2014-09-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4945
4946         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
4947         Update GCC version name to GCC 5.
4948         (rs6000_function_arg_boundary): Likewise.
4949         (rs6000_function_arg): Likewise.
4950
4951 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
4952
4953         * config/sh/sh.md: Fix use of constraints in define_split.
4954
4955 2014-09-19  Markus Trippelsdorf  <markus@trippelsdorf.de>
4956
4957         PR ipa/61998
4958         * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
4959
4960 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
4961
4962         * doc/md.texi (Modifiers): Consistently use "read/write"
4963         nomenclature rather than "input/output".
4964         * genrecog.c (constraints_supported_in_insn_p): New.
4965         (validate_pattern): If needed, also check constraints on
4966         MATCH_SCRATCH operands.
4967         * genoutput.c (validate_insn_alternatives): Catch earlyclobber
4968         operands with no '=' or '+' modifier.
4969
4970 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
4971
4972         * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
4973         scratch register as written.
4974
4975 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4976
4977         * config/s390/s390.c (s390_emit_epilogue): Remove bogus
4978         assignment.
4979
4980 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4981
4982         * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
4983         expanders.
4984
4985 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4986
4987         PR target/62662
4988         * config/s390/s390.c (s390_emit_epilogue): When doing the return
4989         address load optimization force s390_optimize_prologue to leave it
4990         that way.  Only do the optimization if we already decided to push
4991         r14 into a stack slot.
4992
4993 2014-09-19  Marat Zakirov  <m.zakirov@samsung.com>
4994
4995         * asan.c (build_check_stmt): Alignment arg was added.
4996         (asan_expand_check_ifn): Optimization for alignment >= 8.
4997
4998 2014-09-19  Olivier Hainque  <hainque@adacore.com>
4999
5000         * config/i386/vxworksae.h: Remove obsolete definitions.
5001         (STACK_CHECK_PROTECT): Define.
5002         * config/i386/vx-common.h: Remove.  Merge contents within
5003         config/i386/vxworks.h.
5004         * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
5005         i386/vx-common.h.
5006
5007 2014-09-19  Olivier Hainque  <hainque@adacore.com>
5008
5009         * config.gcc (powerpc-wrs-vxworksmils): New configuration.
5010         * config/rs6000/t-vxworksmils: New file.
5011         * config/rs6000/vxworksmils.h: New file.
5012
5013 2014-09-19  Olivier Hainque  <hainque@adacore.com>
5014
5015         * varasm.c (default_section_type_flags): Flag .persistent.bss
5016         sections as SECTION_BSS.
5017
5018 2014-09-19  Nick Clifton  <nickc@redhat.com>
5019
5020         * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
5021         pop'ed registers so that DCE does not eliminate them.
5022
5023 2014-09-18  Jan Hubicka  <hubicka@ucw.cz>
5024
5025         PR lto/63298
5026         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
5027
5028 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
5029
5030         * system.h (LIBGCC2_TF_CEXT): Poison.
5031         * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
5032         * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
5033         * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
5034         * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
5035         * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
5036         * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
5037         * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
5038         * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
5039         * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
5040
5041 2014-09-19  Kito Cheng  <kito@0xlab.org>
5042
5043         * except.h: Fix header guard.
5044         * addresses.h: Add missing header guard.
5045         * cfghooks.h: Likewise.
5046         * collect-utils.h: Likewise.
5047         * collect2-aix.h: Likewise.
5048         * conditions.h: Likewise.
5049         * cselib.h: Likewise.
5050         * dwarf2asm.h: Likewise.
5051         * graphds.h: Likewise.
5052         * graphite-scop-detection.h: Likewise.
5053         * gsyms.h: Likewise.
5054         * hw-doloop.h: Likewise.
5055         * incpath.h: Likewise.
5056         * ipa-inline.h: Likewise.
5057         * ipa-ref.h: Likewise.
5058         * ira-int.h: Likewise.
5059         * ira.h: Likewise.
5060         * lra-int.h: Likewise.
5061         * lra.h: Likewise.
5062         * lto-section-names.h: Likewise.
5063         * read-md.h: Likewise.
5064         * reload.h: Likewise.
5065         * rtl-error.h: Likewise.
5066         * sdbout.h: Likewise.
5067         * targhooks.h: Likewise.
5068         * tree-affine.h: Likewise.
5069         * xcoff.h: Likewise.
5070         * xcoffout.h: Likewise.
5071
5072 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
5073
5074         PR debug/63285
5075         * haifa-sched.c (schedule_block): Advance cycle at the end of BB
5076         if advance != 0.
5077
5078 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
5079
5080         PR target/61360
5081         * lra.c (lra): Call recog_init.
5082
5083 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
5084
5085         PR c++/62017
5086         * asan.c (transform_statements): Don't instrument clobber statements.
5087
5088 2014-09-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5089
5090         * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
5091         to neon_load1_1reg<q>.
5092
5093 2014-09-17  Jakub Jelinek  <jakub@redhat.com>
5094
5095         PR debug/63284
5096         * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
5097         if there are only debug stmts after the noreturn call, instead
5098         remove the debug stmts.
5099
5100 2014-09-17  Jan Hubicka  <hubicka@ucw.cz>
5101
5102         * ipa-devirt.c (type_pair, default_hashset_traits): New types.
5103         (odr_types_equivalent_p): Use pair hash.
5104         (odr_subtypes_equivalent_p): Likewise, do structural compare
5105         on ODR types that may be mismatched.
5106         (warn_odr): Support warning when only one field is given.
5107         (odr_types_equivalent_p): Strenghten comparsions made;
5108         support VOIDtype.
5109         (add_type_duplicate): Update VISITED hash set.
5110
5111 2014-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5112
5113         * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
5114         Enable selection of 'posix' or no thread model.
5115
5116 2014-09-17  Andrew Stubbs  <ams@codesourcery.com>
5117
5118         * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
5119         when architecture is older than ARMv7.
5120
5121 2014-09-16  John David Anglin  <danglin@gcc.gnu.org>
5122
5123         PR target/61853
5124         * config/pa/pa.c (pa_function_value): Directly handle aggregates
5125         that fit exactly in a word or double word.
5126
5127 2014-09-16  Ilya Tocar  <ilya.tocar@intel.com>
5128
5129         * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
5130         zmm/k regs support.
5131
5132 2014-09-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5133             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5134             Anna Tikhonova  <anna.tikhonova@intel.com>
5135             Ilya Tocar  <ilya.tocar@intel.com>
5136             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5137             Ilya Verbin  <ilya.verbin@intel.com>
5138             Kirill Yukhin  <kirill.yukhin@intel.com>
5139             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5140
5141         * config/i386/i386.c
5142         (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
5143         * config/i386/sse.md
5144         (define_mode_iterator VI48F_256): New.
5145         (define_mode_attr extract_type): Ditto.
5146         (define_mode_attr extract_suf): Ditto.
5147         (define_mode_iterator AVX512_VEC): Ditto.
5148         (define_expand
5149         "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
5150         AVX512_VEC.
5151         (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
5152         (define_insn
5153         "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
5154         Ditto.
5155         (define_mode_attr extract_type_2): Ditto.
5156         (define_mode_attr extract_suf_2): Ditto.
5157         (define_mode_iterator AVX512_VEC_2): Ditto.
5158         (define_expand
5159         "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
5160         AVX512_VEC_2 mode iterator.
5161         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
5162         (define_expand "avx512vl_vextractf128<mode>"): Ditto.
5163         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
5164         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
5165         (define_split for V16FI mode): Ditto.
5166         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
5167         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
5168         (define_split for VI8F_256 mode): Ditto.
5169         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
5170         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
5171         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
5172         (define_split for VI4F_256 mode): Ditto.
5173         (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
5174         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
5175         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
5176         (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
5177         (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
5178         (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
5179         (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
5180         Update `type' attribute, remove explicit `memory' attribute calculation.
5181
5182 2014-09-16  Kito Cheng  <kito@0xlab.org>
5183
5184         * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
5185         ira_spilled_reg_stack_slots_num if using lra.
5186         (do_reload): Remove release ira_spilled_reg_stack_slots part.
5187         * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
5188         make sure not using lra.
5189         (ira_reuse_stack_slot): Likewise.
5190         (ira_mark_new_stack_slot): Likewise.
5191
5192 2014-09-15  Andi Kleen  <ak@linux.intel.com>
5193
5194         * function.c (allocate_struct_function): Force
5195         DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
5196         profiling is disabled.
5197
5198 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
5199
5200         * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
5201         config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
5202         emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
5203         reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
5204         macro with statically checked member functions.
5205         * rtl.h (rtx_insn::deleted): New method.
5206         (rtx_insn::set_deleted): Likewise.
5207         (rtx_insn::set_undeleted): Likewise.
5208         (INSN_DELETED_P): Remove.
5209
5210 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
5211
5212         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
5213         result of emit_jump_insn_before to a new variable.
5214         * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
5215         (mark_jump_label_1): Likewise.
5216         (mark_jump_label_asm): Likewise.
5217         * reload1.c (gen_reload): Change type of tem to rtx_insn *.
5218         * rtl.h (mark_jump_label): Adjust.
5219
5220 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
5221
5222         * Makefile.in (dg_target_exps): Remove.
5223         (check_gcc_parallelize): Change to just an upper bound number.
5224         (check-%-subtargets): Always print the non-parallelized goals.
5225         (check_p_vars, check_p_comma, check_p_subwork): Remove.
5226         (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
5227         check_p_numbers3, check_p_numbers4, check_p_numbers5,
5228         check_p_numbers6): New variables.
5229         (check_p_numbers): Set to sequence from 1 to 9999.
5230         (check_p_subdirs): Set to sequence from 1 to minimum of
5231         $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
5232         or 128.
5233         (check-%, check-parallel-%): Rewritten so that for parallelized
5234         testing each job runs all the *.exp files, with
5235         GCC_RUNTEST_PARALLELIZE_DIR set in environment.
5236
5237 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
5238
5239         * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
5240         rtx to rtx_insn *.
5241         (arc_sets_cc_p): Likewise.
5242         * config/arc/arc.c (arc_print_operand): Use methods of
5243         "final_sequence" for clarity, and to enable strengthening of
5244         locals "jump" and "delay" from rtx to rtx_insn *.
5245         (arc_adjust_insn_length): Strengthen local "prev" from rtx to
5246         rtx_insn *; use method of rtx_sequence for typesafety.
5247         (arc_get_insn_variants): Use insn method of rtx_sequence for
5248         typesafety.
5249         (arc_pad_return): Likewise.
5250         (arc_attr_type): Strengthen param from rtx to rtx_insn *.
5251         (arc_sets_cc_p): Likewise.  Also, convert a GET_CODE check to a
5252         dyn_cast to rtx_sequence *, using insn method for typesafety.
5253         * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
5254         rtx_sequence * and use insn method when invoking get_attr_length.
5255         * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
5256         to rtx_insn *.  Replace a GET_CODE check with a dyn_cast to
5257         rtx_sequence *, introducing a local "seq", using its insn method
5258         from typesafety and clarity.
5259         (add_sched_insns_for_speculation): Strengthen local "next" from
5260         rtx to rtx_insn *.
5261         * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
5262         (predicate_insn): Likewise.
5263         * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
5264         second param.
5265         * config/cris/cris.c (cris_notice_update_cc): Likewise.
5266         * config/epiphany/epiphany-protos.h
5267         (extern void epiphany_insert_mode_switch_use): Likewise for param
5268         "insn".
5269         (get_attr_sched_use_fpu): Likewise for param.
5270         * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
5271         Likewise for param "insn".
5272         * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
5273         param "insn" of "target_insert_mode_switch_use" callback.
5274         * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
5275         (frv_issues_to_branch_unit_p): Likewise.
5276         (frv_pack_insn_p): Likewise.
5277         (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
5278         const rtx * (i.e. mutable rtx_def * const *) to
5279         rtx_insn * const *.
5280         * config/i386/i386-protos.h (standard_sse_constant_opcode):
5281         Strengthen first param from rtx to rtx_insn *.
5282         (output_fix_trunc): Likewise.
5283         * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
5284         (output_fix_trunc): Likewise.
5285         (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
5286         local "insn".
5287         (min_insn_size): Likewise for param "insn".
5288         (get_mem_group): Likewise.
5289         (is_cmp): Likewise.
5290         (get_insn_path): Likewise.
5291         (get_insn_group): Likewise.
5292         (count_num_restricted): Likewise.
5293         (fits_dispatch_window): Likewise.
5294         (add_insn_window): Likewise.
5295         (add_to_dispatch_window): Likewise.
5296         (debug_insn_dispatch_info_file): Likewise.
5297         * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
5298         first param.
5299         * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
5300         "cmp" and local "prev".
5301         (m32c_output_compare): Likewise for param "insn".
5302         * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
5303         a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
5304         (define_predicate "large_insn_p"): Likewise.
5305         * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
5306         param from rtx to rtx_insn *.
5307         (attr_op_mem m68k_sched_attr_op_mem): Likewise.
5308         * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
5309         (m68k_sched_attr_size): Likewise.
5310         (sched_get_opxy_mem_type): Likewise for param "insn".
5311         (m68k_sched_attr_op_mem): Likewise.
5312         (sched_mem_operand_p): Likewise.
5313         * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
5314         * config/mep/mep.c (mep_multi_slot): Likewise.
5315         * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
5316         first param.
5317         (mips_sync_loop_insns): Likewise.
5318         * config/mips/mips.c (mips_print_operand_punctuation): Use insn
5319         method of "final_sequence" for typesafety.
5320         (mips_process_sync_loop): Strengthen param "insn" from rtx to
5321         rtx_insn *.
5322         (mips_output_sync_loop): Likewise.
5323         (mips_sync_loop_insns): Likewise.
5324         (mips_74k_agen_init): Likewise.
5325         (mips_sched_init): Use NULL rather than NULL_RTX when working with
5326         insns.
5327         * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
5328         Strengthen param "insn" from rtx to rtx_insn *.
5329         * config/nds32/nds32.c (nds32_target_alignment): Likewise for
5330         local "insn".
5331         * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
5332         param.
5333         * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
5334         "insn".  Use method of rtx_sequence for typesafety.
5335         (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
5336         rtx_insn *.
5337         (branch_needs_nop_p): Likewise.
5338         (use_skip_p): Likewise.
5339         (pa_insn_refs_are_delayed): Likewise.
5340         * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
5341         for locals "insn", "ninsn".
5342         * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
5343         "insn".
5344         (is_cracked_insn): Likewise.
5345         (is_branch_slot_insn): Likewise.
5346         (is_nonpipeline_insn): Likewise.
5347         (insn_terminates_group_p): Likewise.
5348         (insn_must_be_first_in_group): Likewise.
5349         (insn_must_be_last_in_group): Likewise.
5350         (force_new_group): Likewise for param "next_insn".
5351         * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
5352         "insn".
5353         (s390_sched_score): Likewise.
5354         * config/sh/sh-protos.h (output_branch): Likewise for param 2.
5355         (rtx sfunc_uses_reg): Likewise for sole param.
5356         * config/sh/sh.c (sh_print_operand): Use insn method of
5357         final_sequence for typesafety.
5358         (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
5359         Use insn method of final_sequence for typesafety.
5360         (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
5361         * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
5362         for param.
5363         (eligible_for_return_delay): Likewise.
5364         (eligible_for_sibcall_delay): Likewise.
5365         * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
5366         (eligible_for_return_delay): Likewise.
5367         (eligible_for_sibcall_delay): Likewise.
5368         * config/stormy16/stormy16-protos.h
5369         (xstormy16_output_cbranch_hi): Likewise for final param.
5370         (xstormy16_output_cbranch_si): Likewise.
5371         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
5372         (xstormy16_output_cbranch_si): Likewise.
5373         * config/v850/v850-protos.h (notice_update_cc): Likewise.
5374         * config/v850/v850.c (notice_update_cc): Likewise.
5375
5376         * final.c (get_attr_length_1): Strengthen param "insn" and param
5377         of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
5378         (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
5379         (get_attr_min_length): Likewise.
5380         (shorten_branches): Likewise for signature of locals "length_fun"
5381         and "inner_length_fun".  Introduce local rtx_sequence * "seqn"
5382         from a checked cast and use its methods for clarity and to enable
5383         strengthening local "inner_insn" from rtx to rtx_insn *.
5384         * genattr.c (gen_attr): When writing out the prototypes of the
5385         various generated "get_attr_" functions, strengthen the params of
5386         the non-const functions from rtx to rtx_insn *.
5387         Similarly, strengthen the params of insn_default_length,
5388         insn_min_length, insn_variable_length_p, insn_current_length.
5389         (main): Similarly, strengthen the param of num_delay_slots,
5390         internal_dfa_insn_code, insn_default_latency, bypass_p,
5391         insn_latency, min_issue_delay, print_reservation,
5392         insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
5393         "insn_default_latency" callbacks.  Rename hook_int_rtx_unreachable
5394         to hook_int_rtx_insn_unreachable.
5395         * genattrtab.c (write_attr_get): When writing out the generated
5396         "get_attr_" functions, strengthen the param "insn" from rtx to
5397         rtx_insn *, eliminating a checked cast.
5398         (make_automaton_attrs): When writing out prototypes of
5399         "internal_dfa_insn_code_", "insn_default_latency_" functions
5400         and the "internal_dfa_insn_code" and "insn_default_latency"
5401         callbacks, strengthen their params from rtx to rtx_insn *
5402         * genautomata.c (output_internal_insn_code_evaluation): When
5403         writing out code, add a checked cast from rtx to rtx_insn * when
5404         invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
5405         (output_dfa_insn_code_func): Strengthen param of generated
5406         function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
5407         (output_trans_func): Likewise for generated function
5408         "state_transition".
5409         (output_internal_insn_latency_func): When writing out generated
5410         function "internal_insn_latency", rename params from "insn" and
5411         "insn2" to "insn_or_const0" and "insn2_or_const0".  Reintroduce
5412         locals "insn" and "insn2" as rtx_insn * with checked casts once
5413         we've proven that we're not dealing with const0_rtx.
5414         (output_insn_latency_func):  Strengthen param of generated
5415         function "insn_latency" from rtx to rtx_insn *.
5416         (output_print_reservation_func): Likewise for generated function
5417         "print_reservation".
5418         (output_insn_has_dfa_reservation_p): Likewise for generated
5419         function "insn_has_dfa_reservation_p".
5420         * hooks.c (hook_int_rtx_unreachable): Rename to...
5421         (hook_int_rtx_insn_unreachable): ...this, and strengthen param
5422         from rtx to rtx_insn *.
5423         * hooks.h (hook_int_rtx_unreachable): Likewise.
5424         (extern int hook_int_rtx_insn_unreachable): Likewise.
5425         * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
5426         (get_attr_min_length): Likewise.
5427         * recog.c (get_enabled_alternatives): Likewise.
5428         * recog.h (alternative_mask get_enabled_alternatives): Likewise.
5429         * reorg.c (find_end_label): Introduce local rtx "pat" and
5430         strengthen local "insn" from rtx to rtx_insn *.
5431         (redundant_insn): Use insn method of "seq" rather than element for
5432         typesafety; strengthen local "control" from rtx to rtx_insn *.
5433         * resource.c (mark_referenced_resources): Add checked cast to
5434         rtx_insn * within INSN/JUMP_INSN case.
5435         (mark_set_resources): Likewise.
5436         * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
5437         rtx to rtx_insn *.
5438
5439 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
5440
5441         * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
5442         param "label" from rtx to rtx_insn *.
5443         * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
5444         and local "op".
5445         * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
5446         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
5447         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
5448         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
5449         * final.c (default_label_align_after_barrier_max_skip): Strengthen
5450         param from rtx to rtx_insn *.
5451         (default_loop_align_max_skip): Likewise.
5452         (default_label_align_max_skip): Likewise.
5453         (default_jump_align_max_skip): Likewise.
5454         * target.def (label_align_after_barrier_max_skip): Likewise.
5455         (loop_align_max_skip): Likewise.
5456         (label_align_max_skip): Likewise.
5457         (jump_align_max_skip): Likewise.
5458         * targhooks.h (default_label_align_after_barrier_max_skip):
5459         Likewise.
5460         (default_loop_align_max_skip): Likewise.
5461         (default_label_align_max_skip): Likewise.
5462         (default_jump_align_max_skip): Likewise.
5463
5464 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
5465
5466         * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
5467         from const_rtx to const rtx_insn *.  Update union members from rtx
5468         to rtx_insn *.
5469         * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
5470         * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
5471         (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
5472         strengthen both params from const_rtx to const rtx_insn *.
5473         * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
5474         (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
5475         * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
5476         rtx_insn *.
5477         * target.def (can_follow_jump): Strengthen both params from
5478         const_rtx to const rtx_insn *, and update default implementation
5479         from hook_bool_const_rtx_const_rtx_true to
5480         hook_bool_const_rtx_insn_const_rtx_insn_true.
5481
5482 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
5483
5484         * sched-deps.c (deps_start_bb): Strengthen param "head" and local
5485         "insn" from rtx to rtx_insn *.
5486         * sched-int.h (deps_start_bb): Likewise for 2nd param.
5487
5488 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5489             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5490             Anna Tikhonova  <anna.tikhonova@intel.com>
5491             Ilya Tocar  <ilya.tocar@intel.com>
5492             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5493             Ilya Verbin  <ilya.verbin@intel.com>
5494             Kirill Yukhin  <kirill.yukhin@intel.com>
5495             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5496
5497         * config/i386/sse.md
5498         (define_insn "vcvtph2ps<mask_name>"): Add masking.
5499         (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
5500         (define_insn "vcvtph2ps256<mask_name>"): Ditto.
5501         (define_expand "vcvtps2ph_mask"): New.
5502         (define_insn "*vcvtps2ph<mask_name>"): Add masking.
5503         (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
5504         (define_insn "vcvtps2ph256<mask_name>"): Ditto.
5505
5506 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5507             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5508             Anna Tikhonova  <anna.tikhonova@intel.com>
5509             Ilya Tocar  <ilya.tocar@intel.com>
5510             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5511             Ilya Verbin  <ilya.verbin@intel.com>
5512             Kirill Yukhin  <kirill.yukhin@intel.com>
5513             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5514
5515         * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
5516         New.
5517         (define_mode_iterator VI24_AVX512BW_1): Ditto.
5518         (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
5519         (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
5520         (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
5521         also for TARGET_AVX512VL.
5522         (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
5523
5524 2014-09-15  Markus Trippelsdorf  <markus@trippelsdorf.de>
5525
5526         * doc/install.texi (Options specification): add
5527         --disable-libsanitizer item.
5528
5529 2014-09-14  James Clarke  <jrtc27@jrtc27.com>
5530             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
5531
5532         PR target/61407
5533         * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
5534         and above.
5535         * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
5536         kernel version check to avoid incrementing it after every major OS X
5537         release.
5538         (darwin_default_min_version): Avoid static memory buffer.
5539
5540 2014-09-13  Jan Hubicka  <hubicka@ucw.cz>
5541
5542         * tree.c (need_assembler_name_p): Store C++ type mangling only
5543         for aggregates.
5544
5545 2014-09-13  Marek Polacek  <polacek@redhat.com>
5546
5547         * tree.c (protected_set_expr_location): Don't check whether T is
5548         non-null here.
5549
5550 2014-09-12  DJ Delorie  <dj@redhat.com>
5551
5552         * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
5553         (extend_and_shift1_hipsi2): Likewise.
5554         (extend_and_shift2_hipsi2): Likewise.
5555
5556 2014-09-12  David Malcolm  <dmalcolm@redhat.com>
5557
5558         * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
5559         with NULL when dealing with an insn.
5560         * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
5561         from rtx to rtx_insn *.
5562         * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
5563         const_rtx to const rtx_insn *.
5564         * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
5565
5566 2014-09-12  Trevor Saunders  <tsaunders@mozilla.com>
5567
5568         * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
5569         assert.
5570
5571 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
5572
5573         * target.def (libgcc_floating_mode_supported_p): New hook.
5574         * targhooks.c (default_libgcc_floating_mode_supported_p): New
5575         function.
5576         * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
5577         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
5578         (LIBGCC2_HAS_TF_MODE): Remove.
5579         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
5580         * doc/tm.texi: Regenerate.
5581         * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
5582         machine mode.
5583         * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
5584         (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
5585         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
5586         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
5587         * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5588         * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
5589         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
5590         * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
5591         * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
5592         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
5593         function.
5594         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
5595         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5596         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5597         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5598         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5599         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5600         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5601         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
5602         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
5603         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
5604         * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5605         * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
5606         * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
5607         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
5608         Remove.
5609         * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
5610         New macro.
5611         (ia64_libgcc_floating_mode_supported_p): New function.
5612         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
5613         * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
5614         (IA64_NO_LIBGCC_TFMODE): Define.
5615         * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
5616         * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
5617         macro.
5618         (pdp11_scalar_mode_supported_p): New function.
5619         * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
5620         * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
5621
5622 2014-09-12  Richard Biener  <rguenther@suse.de>
5623
5624         PR middle-end/63237
5625         * gimple-fold.c (get_maxval_strlen): Gimplify string length.
5626
5627 2014-09-12  Marc Glisse  <marc.glisse@inria.fr>
5628
5629         * tree.c (integer_each_onep): New function.
5630         * tree.h (integer_each_onep): Declare it.
5631         * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
5632         -A - 1 to ~A.  Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
5633         (X & 1) == 0 for vector and complex.
5634
5635 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
5636
5637         * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
5638         for A57.
5639         (cortexa53_regmove_cost): New cost table for A53.  Increase GP2FP/FP2GP
5640         cost to spilling from integer to FP registers.
5641
5642 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
5643
5644         * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
5645         move handling.
5646         (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
5647         are now handled correctly.
5648
5649 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
5650
5651         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
5652         handling of CALLER_SAVE_REGS and POINTER_REGS.
5653
5654 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
5655
5656         * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
5657         the number of hard registers.
5658
5659 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5660             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5661             Anna Tikhonova  <anna.tikhonova@intel.com>
5662             Ilya Tocar  <ilya.tocar@intel.com>
5663             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5664             Ilya Verbin  <ilya.verbin@intel.com>
5665             Kirill Yukhin  <kirill.yukhin@intel.com>
5666             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5667
5668         * config/i386/sse.md
5669         (define_mode_iterator VI48_AVX512VL): New.
5670         (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
5671         "avx512f_vternlog<mode>_maskz" and update mode iterator.
5672         (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
5673         from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
5674         (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
5675         "avx512f_vternlog<mode>_mask" and update mode iterator.
5676         (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
5677         from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
5678         iterator.
5679         (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
5680         "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
5681         (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
5682         "avx512f_<rotate><mode><mask_name>" and update mode iterator.
5683         (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
5684         (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
5685
5686 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5687             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5688             Anna Tikhonova  <anna.tikhonova@intel.com>
5689             Ilya Tocar  <ilya.tocar@intel.com>
5690             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5691             Ilya Verbin  <ilya.verbin@intel.com>
5692             Kirill Yukhin  <kirill.yukhin@intel.com>
5693             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5694
5695         * config/i386/sse.md (VI128_256): Delete.
5696         (define_mode_iterator VI124_256): New.
5697         (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
5698         (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
5699         (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
5700         (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
5701         "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
5702         (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
5703         (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
5704         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
5705         iterator.
5706         (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
5707         in presence of AVX-512.
5708
5709 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5710             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5711             Anna Tikhonova  <anna.tikhonova@intel.com>
5712             Ilya Tocar  <ilya.tocar@intel.com>
5713             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5714             Ilya Verbin  <ilya.verbin@intel.com>
5715             Kirill Yukhin  <kirill.yukhin@intel.com>
5716             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5717
5718         * config/i386/sse.md
5719         (define_expand "<avx512>_gathersi<mode>"): Rename from
5720         "avx512f_gathersi<mode>".
5721         (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
5722         (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
5723         (define_expand "<avx512>_gatherdi<mode>"): Rename from
5724         "avx512f_gatherdi<mode>".
5725         (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
5726         (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
5727         wide versions.
5728         (define_expand "<avx512>_scattersi<mode>"): Rename from
5729         "avx512f_scattersi<mode>".
5730         (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
5731         (define_expand "<avx512>_scatterdi<mode>"): Rename from
5732         "avx512f_scatterdi<mode>".
5733         (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
5734
5735 2014-09-12  Richard Sandiford  <richard.sandiford@arm.com>
5736
5737         * ira.h (ira_finish_once): Delete.
5738         * ira-int.h (target_ira_int::~target_ira_int): Declare.
5739         (target_ira_int::free_ira_costs): Likewise.
5740         (target_ira_int::free_register_move_costs): Likewise.
5741         (ira_finish_costs_once): Delete.
5742         * ira.c (free_register_move_costs): Replace with...
5743         (target_ira_int::free_register_move_costs): ...this new function.
5744         (target_ira_int::~target_ira_int): Define.
5745         (ira_init): Call free_register_move_costs as a member function rather
5746         than a global function.
5747         (ira_finish_once): Delete.
5748         * ira-costs.c (free_ira_costs): Replace with...
5749         (target_ira_int::free_ira_costs): ...this new function.
5750         (ira_init_costs): Call free_ira_costs as a member function rather
5751         than a global function.
5752         (ira_finish_costs_once): Delete.
5753         * target-globals.c (target_globals::~target_globals): Call the
5754         target_ira_int destructor.
5755         * toplev.c: Include lra.h.
5756         (finalize): Call lra_finish_once rather than ira_finish_once.
5757
5758 2014-09-11  Jan Hubicka  <hubicka@ucw.cz>
5759
5760         * common.opt (flto-odr-type-merging): New flag.
5761         * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
5762         (types_same_for_odr): Likewise.
5763         (odr_subtypes_equivalent_p): Likewise.
5764         (add_type_duplicate): Do not walk type variants.
5765         (register_odr_type): New function.
5766         * ipa-utils.h (register_odr_type): Declare.
5767         (odr_type_p): New function.
5768         * langhooks.c (lhd_set_decl_assembler_name): Do not compute
5769         TYPE_DECLs
5770         * doc/invoke.texi (-flto-odr-type-merging): Document.
5771         * tree.c (need_assembler_name_p): Compute ODR names when asked
5772         for it.
5773         * tree.h (DECL_ASSEMBLER_NAME): Update comment.
5774
5775 2014-09-11  H.J. Lu  <hongjiu.lu@intel.com>
5776
5777         PR target/63228
5778         * config/i386/i386.c (ix86_option_override_internal): Also turn
5779         off OPTION_MASK_ABI_X32 for -m16.
5780
5781 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
5782
5783         * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
5784         GPR instead of P.
5785
5786 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
5787
5788         PR target/58757
5789         * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
5790         Directly forward to __*_DENORM_MIN__.
5791
5792 2014-09-11  David Malcolm  <dmalcolm@redhat.com>
5793
5794         * rtl.h (LABEL_REF_LABEL): New macro.
5795
5796         * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
5797         of XEXP (, 0), where we know that we have a LABEL_REF.
5798         * cfgbuild.c (make_edges): Likewise.
5799         (purge_dead_tablejump_edges): Likewise.
5800         * cfgexpand.c (convert_debug_memory_address): Likewise.
5801         * cfgrtl.c (patch_jump_insn): Likewise.
5802         * combine.c (distribute_notes): Likewise.
5803         * cse.c (hash_rtx_cb): Likewise.
5804         (exp_equiv_p): Likewise.
5805         (fold_rtx): Likewise.
5806         (check_for_label_ref): Likewise.
5807         * cselib.c (rtx_equal_for_cselib_1): Likewise.
5808         (cselib_hash_rtx): Likewise.
5809         * emit-rtl.c (mark_label_nuses): Likewise.
5810         * explow.c (convert_memory_address_addr_space): Likewise.
5811         * final.c (output_asm_label): Likewise.
5812         (output_addr_const): Likewise.
5813         * gcse.c (add_label_notes): Likewise.
5814         * genconfig.c (walk_insn_part): Likewise.
5815         * genrecog.c (validate_pattern): Likewise.
5816         * ifcvt.c (cond_exec_get_condition): Likewise.
5817         (noce_emit_store_flag): Likewise.
5818         (noce_get_alt_condition): Likewise.
5819         (noce_get_condition): Likewise.
5820         * jump.c (maybe_propagate_label_ref): Likewise.
5821         (mark_jump_label_1): Likewise.
5822         (redirect_exp_1): Likewise.
5823         (rtx_renumbered_equal_p): Likewise.
5824         * lra-constraints.c (operands_match_p): Likewise.
5825         * reload.c (operands_match_p): Likewise.
5826         (find_reloads): Likewise.
5827         * reload1.c (set_label_offsets): Likewise.
5828         * reorg.c (get_branch_condition): Likewise.
5829         * rtl.c (rtx_equal_p_cb): Likewise.
5830         (rtx_equal_p): Likewise.
5831         * rtlanal.c (reg_mentioned_p): Likewise.
5832         (rtx_referenced_p): Likewise.
5833         (get_condition): Likewise.
5834         * sched-vis.c (print_value): Likewise.
5835         * varasm.c (const_hash_1): Likewise.
5836         (compare_constant): Likewise.
5837         (const_rtx_hash_1): Likewise.
5838         (output_constant_pool_1): Likewise.
5839
5840 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
5841
5842         * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
5843         tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
5844         instead of minus.
5845         * config/rs6000/vector.md (cr6_test_for_zero_reverse,
5846         cr6_test_for_lt_reverse): Ditto.
5847
5848 2014-09-11  Paolo Carlini  <paolo.carlini@oracle.com>
5849
5850         PR c++/61489
5851         * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
5852
5853 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
5854
5855         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
5856         TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
5857         aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
5858         aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
5859         Delete.
5860
5861         (aarch64_fold_builtin): Remove all reinterpret cases.
5862
5863         * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
5864
5865         * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
5866
5867         * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
5868         aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
5869         aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
5870         aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
5871         aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
5872         aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
5873         aarch64_reinterpretv2df<mode>): Delete.
5874
5875         * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
5876
5877         * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
5878         vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
5879         vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
5880         vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
5881         vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
5882         vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
5883         vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
5884         vreinterpret_u32_f64): Use cast.
5885
5886         * config/aarch64/iterators.md (VD_RE): Delete.
5887
5888 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
5889
5890         * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
5891         (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
5892         vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
5893         vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
5894         vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
5895         vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
5896         vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
5897         Replace inline assembler with __aarch64_vset_lane_any.
5898
5899 2014-09-11  James Greenhalgh  <james.greenhalgh@arm.com>
5900
5901         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
5902         types.
5903         (vmull_high_lane_s32): Likewise.
5904         (vmull_high_lane_u16): Likewise.
5905         (vmull_high_lane_u32): Likewise.
5906
5907 2014-09-11  Jason Merrill  <jason@redhat.com>
5908
5909         PR c++/58678
5910         * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
5911
5912 2014-09-11  Georg-Johann Lay  <avr@gjlay.de>
5913
5914         PR target/63223
5915         * config/avr/avr.md (*tablejump.3byte-pc): New insn.
5916         (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL.  Add void clobber.
5917         (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
5918
5919 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5920             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5921             Anna Tikhonova  <anna.tikhonova@intel.com>
5922             Ilya Tocar  <ilya.tocar@intel.com>
5923             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5924             Ilya Verbin  <ilya.verbin@intel.com>
5925             Kirill Yukhin  <kirill.yukhin@intel.com>
5926             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5927
5928         * config/i386/sse.md
5929         (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
5930         "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
5931         (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
5932         New.
5933         (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
5934         from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
5935         iterator.
5936         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
5937         New.
5938         (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
5939         "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
5940         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
5941         (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
5942         "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
5943         (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
5944         (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
5945         from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
5946         iterator.
5947         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
5948         New.
5949         (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
5950         "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
5951         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
5952
5953 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
5954
5955         * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
5956         to access removed nodes.
5957
5958 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
5959
5960         PR tree-optimization/63186
5961         * ipa-split.c (test_nonssa_use): Skip nonforced labels.
5962         (mark_nonssa_use): Likewise.
5963         (verify_non_ssa_vars): Verify all header blocks for label
5964         definitions.
5965
5966 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5967             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5968             Anna Tikhonova  <anna.tikhonova@intel.com>
5969             Ilya Tocar  <ilya.tocar@intel.com>
5970             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5971             Ilya Verbin  <ilya.verbin@intel.com>
5972             Kirill Yukhin  <kirill.yukhin@intel.com>
5973             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5974
5975         * config/i386/sse.md
5976         (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
5977         (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
5978         (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
5979         "<avx2_avx512f>_permvar<mode><mask_name>".
5980         (define_insn "<avx512>_permvar<mode><mask_name>"): New.
5981         (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
5982         Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
5983         (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
5984         Ditto.
5985         (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
5986         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
5987         (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
5988         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
5989
5990 2014-09-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
5991
5992         * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
5993         V2DF, V4SF, DF, and DI modes.
5994         (vsx_fmav2df2): Likewise.
5995         (vsx_float_fix_<mode>2): Likewise.
5996         (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
5997
5998 2014-09-10  Xinliang David Li  <davidxl@google.com>
5999
6000         PR target/63209
6001         * config/arm/arm.md (movcond_addsi): Handle case where source
6002         and target operands are the same.
6003
6004 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
6005
6006         * final.c (this_is_asm_operands): Strengthen this variable from
6007         rtx to const rtx_insn *.
6008         * output.h (this_is_asm_operands): Likewise.
6009         * rtl-error.c (location_for_asm): Strengthen param "insn" from
6010         const_rtx to const rtx_insn *.
6011         (diagnostic_for_asm): Likewise.
6012         * rtl-error.h (error_for_asm): Likewise.
6013         (warning_for_asm): Likewise.
6014
6015 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
6016
6017         * genextract.c (print_header): When writing out insn_extract to
6018         insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
6019         * recog.h (insn_extract): Strengthen the param from rtx to
6020         rtx_insn *.
6021
6022 2014-09-10  Mike Stump  <mikestump@comcast.net>
6023
6024         * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
6025         8.6.1.
6026
6027 2014-09-10  Martin Jambor  <mjambor@suse.cz>
6028
6029         * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
6030         (analyze): Do not set analyze flag if expand_thunk returns false;.
6031         (create_wrapper): Likewise.
6032         * cgraphclones.c (duplicate_thunk_for_node): Likewise.
6033
6034 2014-09-10  Martin Jambor  <mjambor@suse.cz>
6035
6036         PR ipa/61654
6037         * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
6038         new decl properly.  Analyze the new thunk if it is expanded.
6039
6040 2014-09-10  Andreas Schwab  <schwab@suse.de>
6041
6042         * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
6043         [USED_FOR_TARGET]: Define.
6044
6045 2014-09-10  Matthew Fortune  <matthew.fortune@imgtec.com>
6046
6047         * config/mips/mips.c (mips_secondary_reload_class): Handle
6048         regno < 0 case.
6049
6050 2014-09-10  Robert Suchanek   <robert.suchanek@imgtec.com>
6051
6052         * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
6053         assignment.
6054
6055 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
6056
6057         * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
6058         and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
6059         * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
6060         SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
6061         flag_delete_null_pointer_checks for them.
6062         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
6063         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
6064         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
6065         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
6066         * ubsan.c (instrument_bool_enum_load): Set *gsi back to
6067         stmt's iterator.
6068         (instrument_nonnull_arg, instrument_nonnull_return): New functions.
6069         (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
6070         or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
6071         (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
6072         * doc/invoke.texi (-fsanitize=nonnull-attribute,
6073         -fsanitize=returns-nonnull-attribute): Document.
6074
6075         * ubsan.h (struct ubsan_mismatch_data): Removed.
6076         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
6077         * ubsan.c (ubsan_source_location): For unknown locations,
6078         pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
6079         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
6080         Allow more than one location and arbitrary extra arguments passed
6081         in ... instead of through MISMATCH pointer.
6082         (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
6083         ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
6084         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
6085         callers.
6086
6087 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6088             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6089             Anna Tikhonova  <anna.tikhonova@intel.com>
6090             Ilya Tocar  <ilya.tocar@intel.com>
6091             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6092             Ilya Verbin  <ilya.verbin@intel.com>
6093             Kirill Yukhin  <kirill.yukhin@intel.com>
6094             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6095
6096         * config/i386/sse.md
6097         (define_mode_iterator VI48F): New.
6098         (define_insn "<avx512>_compress<mode>_mask"): Rename from
6099         "avx512f_compress<mode>_mask" and update mode iterator.
6100         (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
6101         "avx512f_compressstore<mode>_mask" and update mode iterator.
6102         (define_expand "<avx512>_expand<mode>_maskz"): Rename from
6103         "avx512f_expand<mode>_maskz" and update mode iterator.
6104         (define_insn "<avx512>_expand<mode>_mask"): Rename from
6105         "avx512f_expand<mode>_mask" and update mode iterator.
6106
6107 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6108             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6109             Anna Tikhonova  <anna.tikhonova@intel.com>
6110             Ilya Tocar  <ilya.tocar@intel.com>
6111             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6112             Ilya Verbin  <ilya.verbin@intel.com>
6113             Kirill Yukhin  <kirill.yukhin@intel.com>
6114             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6115
6116         * config/i386/i386.c
6117         (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
6118         avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
6119         avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
6120         avx512dq_rangepv4sf_mask.
6121         * config/i386/sse.md
6122         (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
6123         UNSPEC_RANGE.
6124         (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
6125         (define_insn "reduces<mode>"): Ditto.
6126         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
6127         Ditto.
6128         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
6129         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
6130         (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
6131
6132 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6133             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6134             Anna Tikhonova  <anna.tikhonova@intel.com>
6135             Ilya Tocar  <ilya.tocar@intel.com>
6136             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6137             Ilya Verbin  <ilya.verbin@intel.com>
6138             Kirill Yukhin  <kirill.yukhin@intel.com>
6139             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6140
6141         * config/i386/i386.c
6142         (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
6143         (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
6144         (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
6145         avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
6146         avx512vl_getmantv2df_mask.
6147         (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
6148         avx512f_vgetmantv4sf_round.
6149         * config/i386/sse.md
6150         (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
6151         Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
6152         mode iterator.
6153         (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
6154         (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
6155         (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
6156         from "avx512f_scalef<mode><mask_name><round_name>" and update mode
6157         iterator..
6158         (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
6159         Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
6160         update mode iterator.
6161         (define_expand
6162         "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
6163         "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
6164         mode iterator.
6165         (define_insn
6166         "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
6167         from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
6168         update mode iterator.
6169         (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
6170         from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
6171         iterator..
6172         (define_insn
6173         "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
6174         "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
6175         mode iterator..
6176         (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
6177         Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
6178         update mode iterator.
6179         (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
6180         "avx512f_getmant<mode><round_saeonly_name>".
6181
6182 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
6183
6184         PR ipa/63166
6185         * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
6186
6187 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6188             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6189             Anna Tikhonova  <anna.tikhonova@intel.com>
6190             Ilya Tocar  <ilya.tocar@intel.com>
6191             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6192             Ilya Verbin  <ilya.verbin@intel.com>
6193             Kirill Yukhin  <kirill.yukhin@intel.com>
6194             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6195
6196         * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
6197         (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
6198         (define_mode_iterator FMAMODE_AVX512): New.
6199         (define_mode_iterator FMAMODE): Remove conditions.
6200         (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
6201         (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
6202         from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
6203         mode iterator.
6204         (define_mode_iterator FMAMODE_NOVF512): Remove.
6205         (define_insn "*fma_fmadd_<mode>"): Rename from
6206         "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
6207         FMAMODE mode iterator.
6208         (define_mode_iterator VF_SF_AVX512VL): New.
6209         (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
6210         Use VF_SF_AVX512VL mode iterator.
6211         (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
6212         "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
6213         iterator.
6214         (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
6215         "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6216         iterator.
6217         (define_insn "*fma_fmsub_<mode>"): Rename from
6218         "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
6219         FMAMODE mode iterator.
6220         (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
6221         Use VF_SF_AVX512VL mode iterator.
6222         (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
6223         "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
6224         iterator.
6225         (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
6226         "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6227         iterator.
6228         (define_insn "*fma_fnmadd_<mode>"): Rename from
6229         "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
6230         use FMAMODE mode iterator.
6231         (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
6232         Use VF_SF_AVX512VL mode iterator.
6233         (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
6234         "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
6235         iterator.
6236         (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
6237         "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6238         iterator.
6239         (define_insn "*fma_fnmsub_<mode>"): Rename from
6240         "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
6241         FMAMODE mode iterator.
6242         (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
6243         Use VF_SF_AVX512VL mode iterator.
6244         (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
6245         "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
6246         iterator.
6247         (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
6248         "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6249         iterator.
6250         (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
6251         Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
6252         use VF_AVX512VL mode iterator.
6253         (define_insn "*fma_fmaddsub_<mode>"): Rename from
6254         "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
6255         remove subst usage.
6256         (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
6257         Use VF_SF_AVX512VL mode iterator.
6258         (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
6259         "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
6260         iterator.
6261         (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
6262         "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6263         iterator.
6264         (define_insn "*fma_fmsubadd_<mode>"): Rename from
6265         "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
6266         remove usage of subst.
6267         (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
6268         Use VF_SF_AVX512VL mode iterator.
6269         (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
6270         "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
6271         iterator.
6272         (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
6273         "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6274         iterator.
6275
6276 2014-09-10  Kugan Vivekanandarajah  <kuganv@linaro.org>
6277
6278         Revert r213751:
6279         * calls.c (precompute_arguments): Check
6280          promoted_for_signed_and_unsigned_p and set the promoted mode.
6281         (promoted_for_signed_and_unsigned_p): New function.
6282         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
6283         and set the promoted mode.
6284         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
6285         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
6286         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
6287
6288 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6289
6290         * opth-gen.awk: Generate mapping from cpp message reasons to the
6291         options that enable them.
6292         * doc/options.texi (CppReason): Document.
6293
6294 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6295
6296         * doc/invoke.texi (Wnormalized=): Update.
6297
6298 2014-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
6299
6300         PR target/63195
6301         * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
6302         operands.  Split off the constant operand alternative to ...
6303         (*bool<mode>3_imm): New.
6304
6305 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
6306
6307         * rtl.h (single_set_2): Strengthen first param from const_rtx to
6308         const rtx_insn *, and move prototype to above...
6309         (single_set): ...this.  Convert this from a macro to an inline
6310         function, enforcing the requirement that the param is a const
6311         rtx_insn *.
6312         (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
6313
6314         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
6315         Strengthen both params from rtx to rtx_insn *.
6316         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
6317         Likewise; introduce locals "producer_set", "consumer_set", using
6318         them in place of "producer" and "consumer" when dealing with SET
6319         rather than insn.
6320         * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
6321         when invoking single_set in region guarded by INSN_P.
6322         (avr_out_bitop): Likewise.
6323         (_reg_unused_after): Introduce local rtx_sequence * "seq" in
6324         region guarded by GET_CODE check, using methods to strengthen
6325         local "this_insn" from rtx to rtx_insn *, and for clarity.
6326         * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
6327         Strengthen local "insn" from rtx to rtx_insn *.
6328         (define_insn_and_split "xload<mode>_A"): Likewise.
6329         * config/bfin/bfin.c (trapping_loads_p): Likewise for param
6330         "insn".
6331         (find_load): Likewise for return type.
6332         (workaround_speculation): Likewise for both locals named
6333         "load_insn".
6334         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
6335         local "cc0_user".
6336         * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
6337         for local "prev".
6338         * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
6339         param 2.
6340         * config/h8300/h8300.c (notice_update_cc): Likewise.
6341         * config/i386/i386.c (ix86_flags_dependent): Likewise for params
6342         "insn" and "dep_insn".
6343         (exact_store_load_dependency): Likewise for both params.
6344         (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
6345         since this now clashes with inline function.  Instead, delay
6346         calling single_set until the point where its needed, and then
6347         assign the result to "compare_set" and rework the conditional that
6348         follows.
6349         * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
6350         local "last" from rtx to rtx_insn *.
6351         * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
6352         second param.
6353         (mips_store_data_bypass_p): Likewise for both params.
6354         * config/mips/mips.c (mips_load_store_insns): Likewise for second
6355         param.
6356         (mips_store_data_bypass_p): Likewise for both params.
6357         (mips_orphaned_high_part_p): Likewise for param "insn".
6358         * config/mn10300/mn10300.c (extract_bundle): Likewise.
6359         (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
6360         Introduce local rtx "insn2_pat".
6361         * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
6362         "ninsn".
6363         (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
6364         Introduce local rtx "set", using it in place of "insn" for the
6365         result of single_set.  This appears to fix a bug, since the call
6366         to find_regno_note on a SET does nothing.
6367         * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
6368         params from rtx to rtx_insn *.
6369         (set_to_load_agen): Likewise.
6370         * config/s390/s390.c (s390_label_align): Likewise for local
6371         "prev_insn".  Introduce new rtx locals "set" and "src", using
6372         them in place of "prev_insn" for the results of single_set
6373         and SET_SRC respectively.
6374         (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
6375         Introduce new rtx local "set" using in place of "jump" for the
6376         result of single_set.  Use SET_SRC (set) rather than plain
6377         XEXP (set, 1).
6378         * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
6379         rtx to rtx_insn *.
6380         (noncall_uses_reg): Likewise.
6381         (reg_unused_after): Introduce local rtx_sequence * "seq" in region
6382         guarded by GET_CODE check, using its methods for clarity, and to
6383         enable strengthening local "this_insn" from rtx to rtx_insn *.
6384         * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
6385         "insn" from rtx to rtx_insn *.
6386         (define_expand "umulhisi3"): Likewise.
6387         (define_expand "smulsi3_highpart"): Likewise.
6388         (define_expand "umulsi3_highpart"): Likewise.
6389         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
6390         local "after".  Replace GET_CODE check with a dyn_cast,
6391         introducing new local rtx_sequence * "seq", using insn method for
6392         typesafety.
6393
6394         * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
6395         from rtx to rtx_insn *.  Introduce local rtx "pat", using it in
6396         place of "insn" once we're dealing with patterns rather than the
6397         input insn.
6398         (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
6399         (scan_trace): Likewise for local "elt", updating lookups within
6400         sequence to use insn method rather than element method.
6401         * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
6402         to rtx_insn *.
6403         * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
6404         * ifcvt.c (noce_try_abs): Likewise for local "insn".
6405         * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
6406         invoking single_set.
6407         * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
6408         "insn" from rtx to rtx_insn *.
6409         (skip_usage_debug_insns): Likewise for return type, adding a
6410         checked cast.
6411         (check_secondary_memory_needed_p): Likewise for local "insn".
6412         (inherit_reload_reg): Likewise.
6413         * modulo-sched.c (sms_schedule): Likewise for local "count_init".
6414         * recog.c (peep2_attempt): Likewise for local "old_insn", adding
6415         checked casts.
6416         (store_data_bypass_p): Likewise for both params.
6417         (if_test_bypass_p): Likewise.
6418         * recog.h (store_data_bypass_p): Likewise for both params.
6419         (if_test_bypass_p): Likewise.
6420         * reload.c (find_equiv_reg): Likewise for local "where".
6421         * reorg.c (delete_jump): Likewise for param "insn".
6422         * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
6423         to const rtx_insn *.
6424         * store-motion.c (replace_store_insn): Likewise for param "del".
6425         (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
6426         and use its methods for clarity, and to strengthen local "del"
6427         from rtx to rtx_insn *.
6428         (build_store_vectors): Use insn method of "st" when calling
6429         replace_store_insn for typesafety and clarity.
6430
6431 2014-09-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6432
6433         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
6434         UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
6435         on how to make it legal in future.
6436
6437 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
6438
6439         * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
6440         to rtx_insn *.
6441         (restinsn): Likewise.
6442         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
6443         Likewise for param.
6444         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
6445         Likewise.
6446         * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
6447         first param.
6448         (arc_hazard): Likewise for both params.
6449         * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
6450         checked casts to rtx_sequence * and uses of the insn method for
6451         type-safety.
6452         (arc_hazard): Strengthen both params from rtx to rtx_insn *.
6453         (arc_adjust_insn_length): Likewise for param "insn".
6454         (struct insn_length_parameters_s): Likewise for first param of
6455         "get_variants" callback field.
6456         (arc_get_insn_variants): Likewise for first param and local
6457         "inner".  Replace a check of GET_CODE with a dyn_cast to
6458         rtx_sequence *, using methods for type-safety and clarity.
6459         * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
6460         rtx_sequence * and uses of the insn method for type-safety when
6461         invoking arc_adjust_insn_length.
6462         * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
6463         for param.
6464         (arm_address_offset_is_imm): Likewise.
6465         (struct tune_params): Likewise for params 1 and 3 of the
6466         "sched_adjust_cost" callback field.
6467         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
6468         params 1 and 3 ("insn" and "dep").
6469         (xscale_sched_adjust_cost): Likewise.
6470         (fa726te_sched_adjust_cost): Likewise.
6471         (cortexa7_older_only): Likewise for param "insn".
6472         (cortexa7_younger): Likewise.
6473         (arm_attr_length_move_neon): Likewise.
6474         (arm_address_offset_is_imm): Likewise.
6475         * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
6476         * config/avr/avr.c (avr_notice_update_cc): Likewise.
6477         * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
6478         (workaround_speculation): Likewise for local "last_condjump".
6479         * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
6480         (shadow_or_blockage_p): Likewise.
6481         (get_unit_reqs): Likewise.
6482         (get_unit_operand_masks): Likewise.
6483         (c6x_registers_update): Likewise.
6484         (returning_call_p): Likewise.
6485         (can_use_callp): Likewise.
6486         (convert_to_callp): Likewise.
6487         (find_last_same_clock): Likwise for local "t".
6488         (reorg_split_calls): Likewise for local "shadow".
6489         (hwloop_pattern_reg): Likewise for param "insn".
6490         * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
6491         * config/frv/frv.c (frv_final_prescan_insn): Likewise.
6492         (frv_extract_membar): Likewise.
6493         (frv_optimize_membar_local): Strengthen param "last_membar" from
6494         rtx * to rtx_insn **.
6495         (frv_optimize_membar_global): Strengthen param "membar" from rtx
6496         to rtx_insn *.
6497         (frv_optimize_membar): Strengthen local "last_membar" from rtx *
6498         to rtx_insn **.
6499         * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
6500         both params from rtx to rtx_insn *.
6501         (ia64_ld_address_bypass_p): Likewise.
6502         * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
6503         "insn".
6504         (ia64_safe_type): Likewise.
6505         (group_barrier_needed): Likewise.
6506         (safe_group_barrier_needed): Likewise.
6507         (ia64_single_set): Likewise.
6508         (is_load_p): Likewise.
6509         (record_memory_reference): Likewise.
6510         (get_mode_no_for_insn): Likewise.
6511         (important_for_bundling_p): Likewise.
6512         (unknown_for_bundling_p): Likewise.
6513         (ia64_st_address_bypass_p): Likewise for both params.
6514         (ia64_ld_address_bypass_p): Likewise.
6515         (expand_vselect): Introduce new local rtx_insn * "insn", using it
6516         in place of rtx "x" after the emit_insn call.
6517         * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
6518         Strengthen param from rtx to rtx_insn *.
6519         (ix86_agi_dependent): Likewise for both params.
6520         (ix86_attr_length_immediate_default): Likewise for param 1.
6521         (ix86_attr_length_address_default): Likewise for param.
6522         (ix86_attr_length_vex_default): Likewise for param 1.
6523         * config/i386/i386.c (ix86_attr_length_immediate_default):
6524         Likewise for param "insn".
6525         (ix86_attr_length_address_default): Likewise.
6526         (ix86_attr_length_vex_default): Likewise.
6527         (ix86_agi_dependent): Likewise for both params.
6528         (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
6529         (vselect_insn): Likewise for this variable.
6530         * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
6531         for param 1.
6532         (m68k_sched_attr_opy_type): Likewise.
6533         * config/m68k/m68k.c (sched_get_operand): Likewise.
6534         (sched_attr_op_type): Likewise.
6535         (m68k_sched_attr_opx_type): Likewise.
6536         (m68k_sched_attr_opy_type): Likewise.
6537         (sched_get_reg_operand): Likewise.
6538         (sched_get_mem_operand): Likewise.
6539         (m68k_sched_address_bypass_p): Likewise for both params.
6540         (sched_get_indexed_address_scale): Likewise.
6541         (m68k_sched_indexed_address_bypass_p): Likewise.
6542         * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
6543         (m68k_sched_indexed_address_bypass_p): Likewise.
6544         * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
6545         "label", "ret" from rtx to rtx_insn *, adding a checked cast and
6546         removing another.
6547         * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
6548         params from rtx to rtx_insn *.
6549         (mips_fmadd_bypass): Likewise.
6550         * config/mips/mips.c (mips_fmadd_bypass): Likewise.
6551         (mips_linked_madd_p): Likewise.
6552         (mips_macc_chains_last_hilo): Likewise for this variable.
6553         (mips_macc_chains_record): Likewise for param.
6554         (vr4130_last_insn): Likewise for this variable.
6555         (vr4130_swap_insns_p): Likewise for both params.
6556         (mips_ls2_variable_issue): Likewise for param.
6557         (mips_need_noat_wrapper_p): Likewise for param "insn".
6558         (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
6559         in place of "x" after the emit_insn.
6560         * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
6561         params from rtx to rtx_insn *.
6562         * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
6563         (pa_combine_instructions): Introduce local "par" for result of
6564         gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
6565         to make_insn_raw.
6566         (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
6567         * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
6568         (rl78_alloc_physical_registers_op1): Likewise.
6569         (rl78_alloc_physical_registers_op2): Likewise.
6570         (rl78_alloc_physical_registers_ro1): Likewise.
6571         (rl78_alloc_physical_registers_cmp): Likewise.
6572         (rl78_alloc_physical_registers_umul): Likewise.
6573         (rl78_alloc_address_registers_macax): Likewise.
6574         (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
6575         * config/s390/predicates.md (execute_operation): Likewise for
6576         local "insn".
6577         * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
6578         params.
6579         * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
6580         (addr_generation_dependency_p): Likewise for param "insn".
6581         (s390_agen_dep_p): Likewise for both params.
6582         (s390_fpload_toreg): Likewise for param "insn".
6583         * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
6584         * config/sh/sh.c (sh_loop_align): Likewise for param and local
6585         "next".
6586         * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
6587         * config/sh/sh_treg_combine.cc
6588         (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
6589         and local "i".
6590         (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
6591         * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
6592         "and_insn", "load", "shift".
6593         * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
6594         "insn".
6595         * final.c (final_scan_insn): Introduce local rtx_insn * "other"
6596         for XEXP (note, 0) of the REG_CC_SETTER note.
6597         (cleanup_subreg_operands): Strengthen param "insn" from rtx to
6598         rtx_insn *, eliminating a checked cast made redundant by this.
6599         * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
6600         to rtx_insn *.
6601         * genattr.c (main): When writing out the prototype to
6602         const_num_delay_slots, strengthen the param from rtx to
6603         rtx_insn *.
6604         * genattrtab.c (write_const_num_delay_slots): Likewise when
6605         writing out the implementation of const_num_delay_slots.
6606         * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
6607         "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
6608         * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
6609         favor of new rtx locals "src" and "set" and new local rtx_insn *
6610         "insn" and "seq".
6611         (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
6612         to rtx_insn *.
6613         (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
6614         locals "cond", "if_then_else", "set" and new rtx_insn * locals
6615         "insn" and "seq".
6616         (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
6617         "last" from rtx to rtx_insn *.  Likewise for a local "tmp",
6618         renaming to "tmp_insn".  Eliminate the other local rtx "tmp" from
6619         the top-level scope, replacing with new more tightly-scoped rtx
6620         locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
6621         "new_insn", "copy_of_insn_b", and make local rtx "set" more
6622         tightly-scoped.
6623         * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
6624         rtx_insn *.
6625         * ira.c (setup_prohibited_mode_move_regs): Likewise for local
6626         "move_insn".
6627         (ira_setup_alts): Likewise for param "insn".
6628         * lra-constraints.c (emit_inc): Likewise for local "add_insn".
6629         * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
6630         and an rtx_insn *.
6631         (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
6632         new more-tightly scoped rtx locals "add3_insn", "insn",
6633         "add2_insn" and rtx_insn * "move_insn".
6634         * postreload-gcse.c (eliminate_partially_redundant_load): Add
6635         checked cast on result of gen_move_insn when invoking
6636         extract_insn.
6637         * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
6638         rtx_insn *.
6639         (verify_changes): Add a checked cast on "object" when invoking
6640         insn_invalid_p.
6641         (extract_insn_cached): Strengthen param "insn" from rtx to
6642         rtx_insn *.
6643         (extract_constrain_insn_cached): Likewise.
6644         (extract_insn): Likewise.
6645         * recog.h (insn_invalid_p): Likewise for param 1.
6646         (recog_memoized): Likewise for param.
6647         (extract_insn): Likewise.
6648         (extract_constrain_insn_cached): Likewise.
6649         (extract_insn_cached): Likewise.
6650         * reload.c (can_reload_into): Likewise for local "test_insn".
6651         * reload.h (cleanup_subreg_operands): Likewise for param.
6652         * reload1.c (emit_insn_if_valid_for_reload): Rename param from
6653         "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
6654         result of emit_insn.  Remove a checked cast made redundant by this
6655         change.
6656         * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
6657         rtx to rtx_insn *.
6658         * sel-sched.c (get_reg_class): Likewise.
6659
6660 2014-09-09  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6661             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6662
6663         * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
6664         * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
6665         Define.
6666         (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
6667
6668 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
6669
6670         * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
6671         const rtx_insn *, and from rtx to rtx_insn * for the other
6672         overloaded variant.
6673         (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
6674         INSN_LOCATION, since we know INSN_P holds.
6675         (insn_line): Strengthen param from const_rtx to const rtx_insn *.
6676         (insn_file): Likewise.
6677         (insn_scope): Likewise.
6678         (insn_location): Likewise.
6679
6680         * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
6681         "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
6682         for the result of gen_load_const_gp.
6683         * config/rs6000/rs6000-protos.h (output_call): Strengthen first
6684         param from rtx to rtx_insn *.
6685         * config/rs6000/rs6000.c (output_call): Likewise.
6686         * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
6687         introducing a checked cast to rtx_sequence * and use of the insn
6688         method.
6689         * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
6690         from rtx to rtx_insn *.
6691         (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
6692         (insn_line): Likewise.
6693         (insn_file): Likewise.
6694         (insn_location): Likewise.
6695         * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
6696         from rtx to rtx_insn *.
6697         * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
6698         cast, using it for calls to INSN_HAS_LOCATION and insn_location.
6699         * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
6700         via a checked cast.
6701         * reorg.c (relax_delay_slots): Strengthen locals named "after"
6702         from rtx to rtx_insn *; use methods of "pat" for type-safety.
6703
6704 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
6705
6706         * combine.c (try_combine): Eliminate checked cast on result of
6707         gen_rtx_INSN.
6708         * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
6709         autogenerated one by strengthening the return type and params 2 and 3
6710         from rtx to rtx_insn *, and by naming the params.
6711         * gengenrtl.c (special_rtx): Add INSN to those that are
6712         special-cased.
6713         * rtl.h (gen_rtx_INSN): New prototype.
6714
6715 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
6716
6717         * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
6718         than NULL_RTX.
6719         (no_equiv): Likewise.
6720         (update_equiv_regs): Likewise.
6721         (setup_reg_equiv): Likewise.  Strengthen locals "elem",
6722         "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
6723         from rtx to rtx_insn *.  Use methods of "elem" for typesafety and
6724         clarity.
6725         * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
6726         from rtx to rtx_insn_list *.
6727         * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
6728         rtx_insn_list * and use methods for clarity and typesafety.
6729         * lra-constraints.c (contains_deleted_insn_p): Likewise for param
6730         "list".
6731         (init_insn_rhs_dead_pseudo_p): Likewise for local "insns".  Remove
6732         redundant check on INSN_P (insns): this cannot hold, as "insns" is
6733         an INSN_LIST, not an insn.
6734         (reverse_equiv_p): Strengthen local "insns" from rtx to
6735         rtx_insn_list * and use methods for clarity and typesafety.
6736         (contains_reloaded_insn_p): Likewise for local "list".
6737
6738 2014-09-09  Jiong Wang  <jiong.wang@arm.com>
6739
6740         * config/arm/arm.c (NEON_COPYSIGNF): New enum.
6741         (arm_init_neon_builtins): Support NEON_COPYSIGNF.
6742         (arm_builtin_vectorized_function): Likewise.
6743         * config/arm/arm_neon_builtins.def: New macro for copysignf.
6744         * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
6745
6746 2014-09-09  Richard Sandiford  <richard.sandiford@arm.com>
6747
6748         * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
6749         * builtins.h (default_target_builtins): Likewise.
6750         * gcse.h (default_target_gcse): Likewise.
6751         * target-globals.h (target_globals): Add a destructor.  Convert
6752         void-pointer fields back to their real type and change from
6753         GTY((atomic)) to GTY((skip)).
6754         (restore_target_globals): Remove casts accordingly.
6755         * target-globals.c (save_target_globals): Use XCNEW rather than
6756         ggc_internal_cleared_alloc to allocate non-GC structures.
6757         Use ggc_cleared_alloc to allocate the target_globals structure
6758         itself.
6759         (target_globals::~target_globals): Define.
6760
6761 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6762
6763         * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
6764         mnemonic instead of fldmfdd.
6765         * config/arm/arm.c (vfp_output_fstmd): Rename to...
6766         (vfp_output_vstmd): ... This.  Convert output to UAL syntax.
6767         Output vpush when address register is SP.
6768         * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
6769         (vfp_output_vstmd): ... This.
6770         * config/arm/vfp.md (push_multi_vfp): Update call to
6771         vfp_output_vstmd.
6772
6773 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6774
6775         * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
6776
6777 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6778
6779         * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
6780         (*sqrtdf2_vfp): Likewise.
6781         (*cmpsf_vfp): Likewise.
6782         (*cmpsf_trap_vfp): Likewise.
6783         (*cmpdf_vfp): Likewise.
6784         (*cmpdf_trap_vfp): Likewise.
6785
6786 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6787
6788         * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
6789         (*truncdfsf2_vfp): Likewise.
6790         (*truncsisf2_vfp): Likewise.
6791         (*truncsidf2_vfp): Likewise.
6792         (fixuns_truncsfsi2): Likewise.
6793         (fixuns_truncdfsi2): Likewise.
6794         (*floatsisf2_vfp): Likewise.
6795         (*floatsidf2_vfp): Likewise.
6796         (floatunssisf2): Likewise.
6797         (floatunssidf2): Likewise.
6798
6799 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6800
6801         * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
6802         (*muldf3_vfp): Likewise.
6803         (*mulsf3negsf_vfp): Likewise.
6804         (*muldf3negdf_vfp): Likewise.
6805         (*mulsf3addsf_vfp): Likewise.
6806         (*muldf3adddf_vfp): Likewise.
6807         (*mulsf3subsf_vfp): Likewise.
6808         (*muldf3subdf_vfp): Likewise.
6809         (*mulsf3negsfaddsf_vfp): Likewise.
6810         (*fmuldf3negdfadddf_vfp): Likewise.
6811         (*mulsf3negsfsubsf_vfp): Likewise.
6812         (*muldf3negdfsubdf_vfp): Likewise.
6813
6814 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6815
6816         * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
6817         (*absdf2_vfp): Likewise.
6818         (*negsf2_vfp): Likewise.
6819         (*negdf2_vfp): Likewise.
6820         (*addsf3_vfp): Likewise.
6821         (*adddf3_vfp): Likewise.
6822         (*subsf3_vfp): Likewise.
6823         (*subdf3_vfp): Likewise.
6824         (*divsf3_vfp): Likewise.
6825         (*divdf3_vfp): Likewise.
6826
6827 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6828
6829         * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
6830         multiple.
6831         (arm_print_operand): Don't convert real values to decimal
6832         representation in default case.
6833         (fp_immediate_constant): Delete.
6834         * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
6835         * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
6836         syntax.
6837         (*thumb2_movsi_vfp): Likewise.
6838         (*movdi_vfp): Likewise.
6839         (*movdi_vfp_cortexa8): Likewise.
6840         (*movhf_vfp_neon): Likewise.
6841         (*movhf_vfp): Likewise.
6842         (*movsf_vfp): Likewise.
6843         (*thumb2_movsf_vfp): Likewise.
6844         (*movdf_vfp): Likewise.
6845         (*thumb2_movdf_vfp): Likewise.
6846         (*movsfcc_vfp): Likewise.
6847         (*thumb2_movsfcc_vfp): Likewise.
6848         (*movdfcc_vfp): Likewise.
6849         (*thumb2_movdfcc_vfp): Likewise.
6850
6851 2014-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
6852
6853         * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
6854         (-mtune): Likewise.
6855         (-mcpu): Likewise.
6856
6857 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6858
6859         PR target/61749
6860         * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
6861         Use qualifier_immediate for last operand.  Rename to...
6862         (aarch64_types_ternop_lane_qualifiers): ... This.
6863         (TYPES_QUADOP): Rename to...
6864         (TYPES_TERNOP_LANE): ... This.
6865         (aarch64_simd_expand_args): Return const0_rtx when encountering user
6866         error.  Change return of 0 to return of NULL_RTX.
6867         (aarch64_crc32_expand_builtin): Likewise.
6868         (aarch64_expand_builtin): Return NULL_RTX instead of 0.
6869         ICE when expanding unknown builtin.
6870         * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
6871         TERNOP_LANE qualifiers.
6872         (sqdmlsl_lane): Likewise.
6873         (sqdmlal_laneq): Likewise.
6874         (sqdmlsl_laneq): Likewise.
6875         (sqdmlal2_lane): Likewise.
6876         (sqdmlsl2_lane): Likewise.
6877         (sqdmlal2_laneq): Likewise.
6878         (sqdmlsl2_laneq): Likewise.
6879
6880 2014-09-09  Nick Clifton  <nickc@redhat.com>
6881
6882         * doc/invoke.texi (Optimization Options): Add missing @gol to the
6883         end of a line.
6884         (S/390 and zSeries Options): Remove superfluous word from the
6885         description of the -mhotpatch option.
6886
6887 2014-09-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
6888
6889         * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
6890         * ira.c: #include "shrink-wrap.h"
6891         (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
6892         * ifcvt.c: #include "shrink-wrap.h"
6893         (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
6894
6895 2014-09-08  Trevor Saunders  <tsaunders@mozilla.com>
6896
6897         * common/config/picochip/picochip-common.c: Remove.
6898         * config.gcc: Remove support for picochip.
6899         * config/picochip/constraints.md: Remove.
6900         * config/picochip/dfa_space.md: Remove.
6901         * config/picochip/dfa_speed.md: Remove.
6902         * config/picochip/picochip-protos.h: Remove.
6903         * config/picochip/picochip.c: Remove.
6904         * config/picochip/picochip.h: Remove.
6905         * config/picochip/picochip.md: Remove.
6906         * config/picochip/picochip.opt: Remove.
6907         * config/picochip/predicates.md: Remove.
6908         * config/picochip/t-picochip: Remove.
6909         * doc/md.texi: Don't document picochi.
6910
6911 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
6912
6913         * basic-block.h (control_flow_insn_p): Strengthen param from
6914         const_rtx to const rtx_insn *.
6915         * cfgbuild.c (control_flow_insn_p): Likewise.
6916
6917 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
6918
6919         * gcse.c (modify_mem_list): Strengthen this variable from
6920         vec<rtx> * to vec<rtx_insn *> *.
6921         (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
6922         vec<rtx_insn *>.
6923         (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
6924         vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
6925         (record_last_mem_set_info): Strengthen param "insn" from rtx to
6926         rtx_insn *.
6927         (record_last_set_info): Likewise for local "last_set_insn".
6928
6929 2014-09-08  DJ Delorie  <dj@redhat.com>
6930
6931         * doc/invoke.texi (MSP430 Options): Add -minrt.
6932
6933 2014-09-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6934
6935         * config/rs6000/rs6000.c (special_handling_values):  Add SH_SPLAT.
6936         (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
6937         statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
6938         handling SH_SPLAT.
6939         (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
6940         of extracted lane.
6941         (adjust_splat): New function.
6942         (handle_special_swappables): Call adjust_splat for SH_SPLAT.
6943         (dump_swap_insn_table): Add case for SH_SPLAT.
6944
6945 2014-09-08  Richard Biener  <rguenther@suse.de>
6946
6947         PR ipa/63196
6948         * tree-inline.c (copy_loops): The source loop header should
6949         always be non-NULL.
6950         (tree_function_versioning): If loops need fixup after removing
6951         unreachable blocks fix them.
6952         * omp-low.c (simd_clone_adjust): Do not add incr block to
6953         loop under construction.
6954
6955 2014-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6956
6957         * config/aarch64/aarch64-builtins.c
6958         (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
6959
6960 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
6961
6962         * config/i386/cygming.h (TF_SIZE): Remove.
6963         * config/i386/darwin.h (TF_SIZE): Remove.
6964         * config/i386/dragonfly.h (TF_SIZE): Remove.
6965         * config/i386/freebsd.h (TF_SIZE): Remove.
6966         * config/i386/gnu-user-common.h (TF_SIZE): Remove.
6967         * config/i386/openbsdelf.h (TF_SIZE): Remove.
6968         * config/i386/sol2.h (TF_SIZE): Remove.
6969         * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
6970         * config/ia64/linux.h (TF_SIZE): Remove.
6971         * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
6972         * doc/tm.texi: Regenerate.
6973         * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
6974
6975 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
6976
6977         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
6978         Remove.
6979         * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
6980         Remove.
6981         * doc/tm.texi: Regenerate.
6982         * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
6983         Poison.
6984         * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
6985         * config/cris/cris.h (__make_dp): Remove.
6986
6987 2014-09-08  Richard Biener  <rguenther@suse.de>
6988
6989         PR bootstrap/63204
6990         * cfgloop.c (mark_loop_for_removal): Track former header
6991         unconditionally.
6992         * cfgloop.h (struct loop): Add former_header member unconditionally.
6993         * loop-init.c (fix_loop_structure): Enable bogus loop removal
6994         diagnostic unconditionally.
6995
6996 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
6997
6998         PR target/63190
6999         * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
7000         constraint for operand0 and remove write only modifier from operand3.
7001
7002 2014-09-07  Richard Sandiford  <richard.sandiford@arm.com>
7003
7004         PR rtl-optimization/62208
7005         * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
7006         rather than const0_rtx in eq/ne-xor simplifications.
7007
7008 2014-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
7009
7010         * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
7011         (arc_output_mi_thunk): Likewise.
7012
7013         * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
7014         arguments to silence bogus warning.
7015
7016 2014-09-06  Richard Sandiford  <richard.sandiford@arm.com>
7017
7018         PR middle-end/63171
7019         * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
7020
7021 2014-09-06  Tom de Vries  <tom@codesourcery.com>
7022
7023         * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
7024         IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
7025         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
7026
7027 2014-09-05  Dominique Dhumieres  <dominiq@lps.ens.fr>
7028
7029         PR target/63188
7030         * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
7031         * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
7032
7033 2014-09-05  Easwaran Raman  <eraman@google.com>
7034
7035         PR rtl-optimization/62146
7036         * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
7037         hoisted instruction unconditional.
7038
7039 2014-09-05  Segher Boessenkool  <segher@kernel.crashing.org>
7040
7041         PR target/63187
7042         * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
7043         Do not allow any_mask_operand for operands[2].
7044         (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
7045
7046 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7047
7048         * config/arc/arc.c (arc_print_operand): Use insn method of
7049         final_sequence for type-safety.
7050         * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
7051         "insn" from rtx to rtx_insn *.
7052         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
7053         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
7054         Likewise for locals "branch", "label".
7055         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
7056         locals "i1", "i2".  Use NULL rather than NULL_RTX in comparisons.
7057         (same_cmp_following_p): Likewise for locals "i2", "i3".
7058         * config/sh/sh_optimize_sett_clrt.cc
7059         (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
7060         param "cbranch_insn".
7061         * function.c (convert_jumps_to_returns): Likewis for local "jump".
7062         * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
7063         * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
7064         const rtx_insn *.
7065         (condjump_p): Likewise.
7066         (condjump_in_parallel_p): Likewise.
7067         (pc_set): Likewise.
7068         (any_uncondjump_p): Likewise.
7069         (any_condjump_p): Likewise.
7070         (condjump_label): Likewise.
7071         (returnjump_p): Strengthen param "insn" from rtx to
7072         const rtx_insn *.
7073         (onlyjump_p): Strengthen param "insn" from const_rtx to
7074         const rtx_insn *.
7075         (jump_to_label_p): Likewise.
7076         (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
7077         (invert_jump): Likewise.
7078         * reorg.c (simplejump_or_return_p): Add checked cast when calling
7079         simplejump_p.
7080         (get_jump_flags): Strengthen param "insn" from rtx to
7081         const rtx_insn *.
7082         (get_branch_condition): Likewise.
7083         (condition_dominates_p): Likewise.
7084         (make_return_insns): Move declaration of local "pat" earlier, to
7085         after we've handled NONJUMP_INSN_P and non-sequences, using its
7086         methods to simplify the code and for type-safety.
7087         * rtl.h (find_constant_src): Strengthen param from const_rtx to
7088         const rtx_insn *.
7089         (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
7090         (condjump_p): Strengthen param from const_rtx to
7091         const rtx_insn *.
7092         (any_condjump_p): Likewise.
7093         (any_uncondjump_p): Likewise.
7094         (pc_set): Likewise.
7095         (condjump_label): Likewise.
7096         (simplejump_p): Likewise.
7097         (returnjump_p): Likewise.
7098         (onlyjump_p): Likewise.
7099         (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
7100         (invert_jump): Likewise.
7101         (condjump_in_parallel_p): Strengthen param from const_rtx to
7102         const rtx_insn *.
7103         * rtlanal.c (find_constant_src): Strengthen param from const_rtx
7104         to const rtx_insn *.
7105         * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
7106         to const rtx_insn *.
7107         * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
7108
7109 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7110
7111         * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
7112         above the conditional, and convert the check on GET_CODE to a
7113         dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
7114         the conditional.  Simplify the conditional by using methods of
7115         "trial_seq".
7116
7117 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7118
7119         * haifa-sched.c (check_clobbered_conditions): Strengthen local
7120         "link" from rtx to rtx_insn_list *, and use its methods for
7121         clarity and type-safety.
7122         (toggle_cancelled_flags): Likewise.
7123         (restore_last_backtrack_point): Likewise.
7124         (queue_to_ready): Use insn method of "link" in one place.
7125         (schedule_block): Strengthen local "link" from rtx to
7126         rtx_insn_list *, and use its methods for clarity and type-safety.
7127
7128 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7129
7130         * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
7131         param "insn" from const_rtx to const rtx_insn *.
7132         (sched_get_reverse_condition_uncached): Likewise.
7133         (sched_get_condition_with_rev): Likewise.
7134         (sched_has_condition_p): Likewise.
7135         (sched_insns_conditions_mutex_p): Likewise for both params.
7136         (sched_insn_is_legitimate_for_speculation_p): Likewise for param
7137         "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
7138         (setup_insn_reg_uses): Move local "list" to be more tightly
7139         scoped, strengthening it from an rtx to an rtx_insn_list *.  Use
7140         its methods for clarity and type-safety.
7141         (sched_analyze_1): Strengthen local "pending" from rtx to
7142         rtx_insn_list *, and local "pending_mem" from rtx to
7143         rtx_expr_list *.  Use methods of each for clarity and type-safety.
7144         (sched_analyze_2): Likewise.
7145         (sched_analyze_insn): Likewise.
7146
7147         * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
7148         param from const_rtx to const rtx_insn *.
7149         (sched_insns_conditions_mutex_p): Likewise for both params.
7150         (sched_insn_is_legitimate_for_speculation_p): Likewise for first
7151         param.
7152
7153         * system.h (CONST_CAST_RTX_INSN): New macro.
7154
7155 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7156
7157         * recog.c (peep2_attempt): Strengthen return type from rtx to
7158         rtx_insn *.
7159         (peep2_update_life): Likewise for params "last", "prev", removing
7160         a checked cast made redundant by this.
7161         (peephole2_optimize): Likewise for local "last".
7162
7163 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7164
7165         * basic-block.h (set_block_for_insn): Eliminate this macro in
7166         favor of...
7167         * rtl.h (set_block_for_insn): New inline function, imposing the
7168         requirement that the "insn" param is an rtx_insn *.
7169
7170 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7171
7172         * caller-save.c (setup_save_areas): Strengthen local "insn" from
7173         rtx to rtx_insn *.
7174         * final.c (get_call_reg_set_usage): Likewise for first param,
7175         eliminating a checked cast.
7176         * regs.h (get_call_reg_set_usage): Likewise for first param.
7177         * resource.c (mark_set_resources): Introduce local rtx_call_insn *
7178         "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
7179         cast, replacing references to "x" with "call_insn" where
7180         appropriate.
7181         (mark_target_live_regs): Strengthen local "real_insn" from rtx to
7182         rtx_insn *, adding a checked cast.
7183
7184 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7185
7186         * output.h (final_scan_insn): Strengthen first param from rtx to
7187         rtx_insn *.
7188
7189         * final.c (final_scan_insn): Likewise, renaming it back from
7190         "uncast_insn" to "insn", eliminating the checked cast.
7191
7192         * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
7193         "vec" with an rtx_sequence * "seq", taking a copy of
7194         "final_sequence", and using methods of "seq" for clarity, and for
7195         type-safety in the calls to final_scan_insn.
7196         * config/mips/mips.c (mips_output_conditional_branch): Use methods
7197         of "final_sequence" for clarity, and for type-safety in the call to
7198         final_scan_insn.
7199         * config/sh/sh.c (print_slot): Strengthen param from rtx to
7200         rtx_sequence * and rename from "insn" to "seq".
7201
7202 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7203
7204         * jump.c (delete_related_insns): Introduce a new local "table" by
7205         replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
7206         get_labels method of "table" to simplify access to the labels in
7207         the jump table.
7208
7209 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7210
7211         * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
7212         f_minmaxs, f_minmaxd types.
7213
7214 2014-09-05  Richard Biener  <rguenther@suse.de>
7215
7216         * cfgloop.c (mark_loop_for_removal): Record former header
7217         when ENABLE_CHECKING.
7218         * cfgloop.h (strut loop): Add former_header member when
7219         ENABLE_CHECKING.
7220         * loop-init.c (fix_loop_structure): Sanity check loops
7221         marked for removal if they re-appeared.
7222
7223 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7224
7225         * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
7226         uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
7227
7228         (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
7229         vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
7230         vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
7231         vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
7232         vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
7233         vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
7234         vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
7235         vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
7236         vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
7237         vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
7238         vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
7239         vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
7240         vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
7241         vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
7242         vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
7243         vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
7244         vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
7245         vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
7246         vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
7247         vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
7248         with int{32,16,8}_t.
7249
7250 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7251
7252         * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
7253         (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
7254         vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
7255         vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
7256         Remove temporary __asm__ and reimplement.
7257
7258 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7259
7260         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
7261         handling cmge, cmgt, cmeq, cmtst.
7262
7263         * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
7264         cmlt, cmgeu, cmgtu, cmtst): Remove.
7265
7266         * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
7267         vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
7268         vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
7269         vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
7270
7271 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7272
7273         * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
7274         TYPES_TST): Define.
7275         (aarch64_fold_builtin): Update pattern for cmtst.
7276
7277         * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
7278         Declare.
7279
7280         * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
7281
7282         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
7283         Switch operands, separate out more cases, refactor.
7284
7285         (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
7286
7287         * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
7288         argument; rename old version to...
7289         (aarch64_const_vec_all_same_in_range_p): ...this.
7290         (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
7291
7292         * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
7293
7294 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7295
7296         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
7297         Remove qualifier_const_pointer, update comment.
7298
7299 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7300
7301         * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
7302
7303 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7304
7305         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
7306         varargs with pointer parameter.
7307         (aarch64_simd_expand_builtin): pass pointer into previous.
7308
7309 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7310
7311         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
7312         alus_ext.
7313
7314 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7315
7316         * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
7317         * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
7318         * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
7319         Replace temporary asm with call to builtin.
7320         (vrbit_p8, vrbitq_p8): New functions.
7321
7322 2014-09-05  Richard Biener  <rguenther@suse.de>
7323
7324         * cfgloop.c (mark_loop_for_removal): New function.
7325         * cfgloop.h (mark_loop_for_removal): Declare.
7326         * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
7327         (merge_blocks): Likewise.
7328         (duplicate_block): Likewise.
7329         * except.c (sjlj_emit_dispatch_table): Likewise.
7330         * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
7331         * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
7332         (thread_through_loop_header): Likewise.
7333
7334 2014-09-05  Richard Biener  <rguenther@suse.de>
7335
7336         PR middle-end/63148
7337         * fold-const.c (try_move_mult_to_index): Remove.
7338         (fold_binary_loc): Do not call it.
7339         * tree-data-ref.c (dr_analyze_indices): Strip conversions
7340         from the base object again.
7341
7342 2014-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
7343
7344         * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
7345         DImode.
7346
7347 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
7348
7349         PR target/55701
7350         * config/arm/arm.md (setmem): New pattern.
7351         * config/arm/arm-protos.h (struct tune_params): New fields.
7352         (arm_gen_setmem): New prototype.
7353         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
7354         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
7355         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
7356         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
7357         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
7358         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
7359         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
7360         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
7361         (arm_const_inline_cost): New function.
7362         (arm_block_set_max_insns): New function.
7363         (arm_block_set_non_vect_profit_p): New function.
7364         (arm_block_set_vect_profit_p): New function.
7365         (arm_block_set_unaligned_vect): New function.
7366         (arm_block_set_aligned_vect): New function.
7367         (arm_block_set_unaligned_non_vect): New function.
7368         (arm_block_set_aligned_non_vect): New function.
7369         (arm_block_set_vect, arm_gen_setmem): New functions.
7370
7371 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
7372
7373         * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
7374
7375 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
7376
7377         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
7378
7379 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
7380
7381         * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
7382         an rtx.
7383         * valtrack.h: Adjust.
7384
7385 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
7386
7387         * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
7388         an rtx.
7389         (emit_jump_insn_before_noloc): Likewise.
7390         (emit_call_insn_before_noloc): Likewise.
7391         (emit_label_before): Likewise.
7392         (emit_label_after): Likewise.
7393         (emit_insn_before_setloc): Likewise.
7394         (emit_jump_insn_before_setloc): Likewise.
7395         (emit_call_insn_before_setloc): Likewise.
7396         (emit_call_insn_before): Likewise.
7397         * rtl.h: Adjust.
7398
7399 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7400
7401         * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
7402         rtx_insn *, eliminating a checked cast.
7403
7404 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7405
7406         * rtl.h (modified_between_p): Strengthen params 2 and 3 from
7407         const_rtx to const rtx_insn *.
7408         * rtlanal.c (modified_between_p): Likewise, eliminating a checked
7409         cast.
7410
7411 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7412
7413         * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
7414         fixup_args_size_notes.
7415         * expr.c (fixup_args_size_notes): Strengthen first two params from
7416         rtx to rtx_insn *, eliminating a checked cast.
7417         * rtl.h (fixup_args_size_notes): Strengthen first two params from
7418         rtx to rtx_insn *.
7419
7420 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7421
7422         * haifa-sched.c (get_ready_element): Strengthen return type from
7423         rtx to rtx_insn *.
7424         * sched-int.h (get_ready_element): Likewise.
7425
7426 2014-09-04  Segher Boessenkool  <segher@kernel.crashing.org>
7427
7428         PR target/63165
7429         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
7430         indexed_or_indirect_operand instead of memory_operand.
7431         (floatsi<mode>2_lfiwzx_mem): Ditto.
7432
7433 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
7434
7435         * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
7436         config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
7437         ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
7438
7439 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
7440
7441         * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
7442         rtx.
7443         (get_last_nonnote_insn): Likewise.
7444         (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
7445         * resource.c (find_basic_block): Likewise.
7446         * rtl.h: Adjust.
7447         * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
7448         const_rtx.
7449
7450 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
7451
7452         * genattr.c (main): Within the prototype of insn_latency written
7453         out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
7454         * genautomata.c (output_internal_maximal_insn_latency_func):
7455         Within the implementation of insn_latency written out to
7456         insn-automata.c, strengthen both params from rtx to rtx_insn *,
7457         eliminating a pair of checked casts.
7458
7459 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
7460
7461         * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
7462         rtx_insn *.
7463
7464         * rtl.h (eh_returnjump_p): Likewise.
7465
7466 2014-09-04  Aldy Hernandez  <aldyh@redhat.com>
7467
7468         * Makefile.in (TAGS): Handle constructs in timevar.def.
7469
7470 2014-09-04  Guozhi Wei  <carrot@google.com>
7471
7472         PR target/62040
7473         * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
7474         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
7475         it into two patterns.
7476         (move_lo_quad_internal_be_<mode>): Likewise.
7477
7478 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7479
7480         * doc/options.texi: Document that Var and Init are required if CPP
7481         is given.
7482         * optc-gen.awk: Require Var and Init if CPP is given.
7483         * common.opt (Wpedantic): Use Init.
7484
7485 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7486
7487         * config/rs6000/rs6000.c (special_handling_values): Add
7488         SH_EXTRACT.
7489         (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
7490         wrapped in a VEC_DUPLICATE, representing an extract.  Mark these
7491         as swappable with special handling SH_EXTRACT.  Remove
7492         UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
7493         optimization.
7494         (adjust_extract): New function.
7495         (handle_special_swappables): Add default to case statement; add
7496         case for SH_EXTRACT that calls adjust_extract.
7497         (dump_swap_insn_table): Handle SH_EXTRACT.
7498
7499 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7500
7501         * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
7502         selection of 0th memory doubleword, regardless of endianness.
7503
7504 2014-09-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7505
7506         * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
7507
7508 2014-09-04  Alan Modra  <amodra@gmail.com>
7509
7510         PR debug/60655
7511         * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
7512         can't be output.
7513
7514 2014-09-03  Matthew Fortune  <matthew.fortune@imgtec.com>
7515
7516         * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
7517         * targhooks.c (default_dwarf_frame_reg_mode): New function.
7518         * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
7519         * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
7520         * doc/tm.texi: Regenerate.
7521         * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
7522         selection logic to default_dwarf_frame_reg_mode.
7523
7524 2014-09-03  Marek Polacek  <polacek@redhat.com>
7525
7526         * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
7527         by -Wall.
7528
7529 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
7530
7531         * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
7532         the automodified register.
7533
7534 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
7535
7536         * output.h (get_some_local_dynamic_name): Declare.
7537         * final.c (some_local_dynamic_name): New variable.
7538         (get_some_local_dynamic_name): New function.
7539         (final_end_function): Clear some_local_dynamic_name.
7540         * config/alpha/alpha.c (machine_function): Remove some_ld_name.
7541         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
7542         (print_operand): Report an error if '%&' is used inappropriately.
7543         * config/i386/i386.c (get_some_local_dynamic_name): Delete.
7544         (get_some_local_dynamic_name_1): Delete.
7545         * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
7546         (rs6000_get_some_local_dynamic_name): Delete.
7547         (rs6000_get_some_local_dynamic_name_1): Delete.
7548         (print_operand): Report an error if '%&' is used inappropriately.
7549         * config/s390/s390.c (machine_function): Remove some_ld_name.
7550         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
7551         (print_operand): Assert that get_some_local_dynamic_name is nonnull.
7552         * config/sparc/sparc.c: Include rtl-iter.h.
7553         (machine_function): Remove some_ld_name.
7554         (sparc_print_operand): Report an error if '%&' is used inappropriately.
7555         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
7556
7557 2014-09-03  Richard Henderson  <rth@redhat.com>
7558
7559         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
7560         (aarch64_popwb_pair_reg): Remove.
7561         (aarch64_set_frame_expr): Remove.
7562         (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
7563         the restore ops performed by the insns generated.
7564         (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
7565         insn.  Perform the calls_eh_return addition later; do not attempt to
7566         preserve the CFA in that case.  Don't use aarch64_set_frame_expr.
7567         (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
7568         special markup at all.  Load cfun->machine->frame.hard_fp_offset
7569         into a local variable.
7570         (aarch64_frame_pointer_required): Don't check calls_alloca.
7571
7572 2014-09-03  Richard Biener  <rguenther@suse.de>
7573
7574         * opts.c (default_options_optimization): Adjust
7575         max-combine-insns to 2 for -Og.
7576
7577 2014-09-03  Martin Jambor  <mjambor@suse.cz>
7578
7579         PR ipa/62015
7580         * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
7581         pass-trough jump functions correctly.
7582
7583 2014-09-03  Martin Jambor  <mjambor@suse.cz>
7584
7585         PR ipa/61986
7586         * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
7587         created replacements in ascending order of offsets.
7588         (known_aggs_to_agg_replacement_list): Likewise.
7589
7590 2014-09-03  Martin Liska  <mliska@suse.cz>
7591
7592         * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
7593         is set to set uninitialized value for vnresult.
7594
7595 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7596
7597         * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
7598         for TARGET_MUST_PASS_IN_STACK.
7599
7600 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7601
7602         * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
7603         for TARGET_ARG_PARTIAL_BYTES.
7604
7605 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7606
7607         * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
7608         instructions for varargs implementation.
7609         (nds32_expand_epilogue): Emit stack adjustment instructions for
7610         varargs implementation.
7611
7612 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7613
7614         * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
7615         optimization detection.
7616
7617 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7618
7619         * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
7620         arguments.
7621         (nds32_function_arg_advance): Deal with nameless arguments.
7622         * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
7623         (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
7624         (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
7625
7626 2014-09-03  Richard Biener  <rguenther@suse.de>
7627
7628         * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
7629         (struct bb_bitmap_sets): Remove deferred member.
7630         (BB_DEFERRED): Remove.
7631         (defer_or_phi_translate_block): Remove.
7632         (compute_antic_aux): Remove deferring of blocks, assert
7633         proper iteration order.
7634         (compute_antic): Do not set BB_DEFERRED.
7635         (eliminate): Allocate el_avail of proper size initially.
7636
7637 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7638
7639         * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
7640         according to the value of crtl->args.pretend_args_size.
7641
7642 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7643
7644         * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
7645         varargs information.
7646
7647 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7648
7649         * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
7650         implementation for TARGET_SETUP_INCOMING_VARARGS.
7651         (nds32_strict_argument_naming): Refine comment.
7652         * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
7653         Define for future implementation.
7654
7655 2014-09-03  Ilya Tocar  <ilya.tocar@intel.com>
7656
7657         * config/i386/adxintrin.h (_subborrow_u32): New.
7658         (_addcarry_u32): Ditto.
7659         (_subborrow_u64): Ditto.
7660         (_addcarry_u64): Ditto.
7661         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
7662         IX86_BUILTIN_SBB64.
7663         (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
7664         __builtin_ia32_sbb_u64
7665
7666 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7667
7668         * config/nds32/nds32.c (nds32_function_arg): Define and rename some
7669         GPR-specific stuff.
7670         (nds32_function_arg_advance): Likewise.
7671         (nds32_init_cumulative_args): Likewise.
7672         * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
7673         (NDS32_FIRST_GPR_REGNUM): Define.
7674         (NDS32_LAST_GPR_REGNUM): Define.
7675         (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
7676         (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
7677         (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
7678         (machine_function): Use GRP-specific stuff.
7679
7680 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7681
7682         * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
7683         (nds32_expand_epilogue): Likewise.
7684         (nds32_expand_prologue_v3push): Likewise.
7685         (nds32_expand_epilogue_v3pop): Likewise.
7686
7687 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7688
7689         * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
7690         v3push/v3pop for variadic function.
7691         * config/nds32/nds32.md (prologue, epilogue): Likewise.
7692
7693 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7694
7695         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
7696         Check rtx for varargs implementation.
7697         (nds32_output_stack_pop): Likewise.
7698         * config/nds32/nds32-protos.h: Have a rtx argument for
7699         nds32_output_stack_push and nds32_output_stack_pop.
7700         * config/nds32/nds32.md: Likewise.
7701
7702 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7703
7704         * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
7705         to check if FUNC is an interrupt service routine.
7706         * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
7707
7708 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7709
7710         * config/nds32/nds32.h (machine_function): Add some fields for variadic
7711         arguments implementation.
7712
7713 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7714
7715         * config/nds32/nds32-predicates.c
7716         (nds32_valid_stack_push_pop): Rename to ...
7717         (nds32_valid_stack_push_pop_p): ... this.
7718         * config/nds32/nds32-protos.h: Likewise.
7719         * config/nds32/predicates.md: Likewise.
7720
7721 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7722
7723         * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
7724         (nds32_emit_stack_v3push): ... this.
7725         (nds32_gen_stack_v3pop): Rename to ...
7726         (nds32_emit_stack_v3pop): ... this and consider CFA restore
7727         information.
7728
7729 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7730
7731         * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
7732         (nds32_emit_stack_push_multiple): ... this.
7733         (nds32_gen_stack_pop_multiple): Rename to ...
7734         (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
7735         information.
7736
7737 2014-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7738
7739         PR target/61078
7740         * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
7741         and add a second splitter to handle the remaining cases.
7742
7743 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7744
7745         * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
7746
7747 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
7748
7749         * cfgexpand.c (label_rtx_for_bb): Change type to
7750         hash_map<basic_block, rtx_code_label *> *.
7751         (expand_gimple_basic_block): Adjust.
7752         (pass_expand::execute): Likewise.
7753
7754 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
7755
7756         * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
7757         config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
7758         config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
7759         config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
7760         config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
7761         config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
7762         stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
7763         of rtx.
7764
7765 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
7766
7767         * alloc-pool.c: Include coretypes.h.
7768         * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
7769         function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
7770         hash_set instead of htab.
7771         * ggc-page.c (in_gc): New variable.
7772         (ggc_free): Do nothing if a collection is taking place.
7773         (ggc_collect): Set in_gc appropriately.
7774         * ggc.h (gt_ggc_mx(const char *)): New function.
7775         (gt_pch_nx(const char *)): Likewise.
7776         (gt_ggc_mx(int)): Likewise.
7777         (gt_pch_nx(int)): Likewise.
7778         * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
7779         (hash_map::hash_entry::pch_nx): Likewise.
7780         (hash_map::hash_entry::pch_nx_helper): Likewise.
7781 (hash_map::hash_map): Adjust.
7782 (hash_map::create_ggc): New function.
7783 (gt_ggc_mx): Likewise.
7784 (gt_pch_nx): Likewise.
7785         * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
7786 (default_hashset_traits::pch_nx): Likewise.
7787 (hash_set::hash_entry::ggc_mx): Likewise.
7788 (hash_set::hash_entry::pch_nx): Likewise.
7789 (hash_set::hash_entry::pch_nx_helper): Likewise.
7790 (hash_set::hash_set): Adjust.
7791 (hash_set::create_ggc): New function.
7792 (hash_set::elements): Likewise.
7793 (gt_ggc_mx): Likewise.
7794 (gt_pch_nx): Likewise.
7795         * hash-table.h (hash_table::hash_table): Adjust.
7796 (hash_table::m_ggc): New member.
7797         (hash_table::~hash_table): Adjust.
7798         (hash_table::expand): Likewise.
7799         (hash_table::empty): Likewise.
7800 (gt_ggc_mx): New function.
7801         (hashtab_entry_note_pointers): Likewise.
7802 (gt_pch_nx): Likewise.
7803
7804 2014-09-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7805
7806         * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE):  New
7807         built-in definition.
7808         (XVCVUXDDP_SCALE): Likewise.
7809         (XVCVDPSXDS_SCALE): Likewise.
7810         (XVCVDPUXDS_SCALE): Likewise.
7811         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):  Add
7812         entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
7813         VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
7814         VSX_BUILTIN_XVCVDPUXDS_SCALE.
7815         * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
7816         prototype.
7817         * config/rs6000/rs6000.c (real.h): New include.
7818         (rs6000_scale_v2df): New function.
7819         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
7820         (UNSPEC_VSX_XVCVUXDDP): Likewise.
7821         (UNSPEC_VSX_XVCVDPSXDS): Likewise.
7822         (UNSPEC_VSX_XVCVDPUXDS): Likewise.
7823         (vsx_xvcvsxddp_scale): New define_expand.
7824         (vsx_xvcvsxddp): New define_insn.
7825         (vsx_xvcvuxddp_scale): New define_expand.
7826         (vsx_xvcvuxddp): New define_insn.
7827         (vsx_xvcvdpsxds_scale): New define_expand.
7828         (vsx_xvcvdpsxds): New define_insn.
7829         (vsx_xvcvdpuxds_scale): New define_expand.
7830         (vsx_xvcvdpuxds): New define_insn.
7831         * doc/extend.texi (vec_ctf): Add new prototypes.
7832         (vec_cts): Likewise.
7833         (vec_ctu): Likewise.
7834         (vec_splat): Likewise.
7835         (vec_div): Likewise.
7836         (vec_mul): Likewise.
7837
7838 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7839
7840         PR target/62275
7841         * config/arm/neon.md
7842         (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
7843         <v_cmp_result>): New pattern.
7844         * config/arm/iterators.md (NEON_VCVT): New int iterator.
7845         * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
7846         vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
7847         vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
7848         * config/arm/arm.c (arm_builtin_vectorized_function): Handle
7849         BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
7850
7851 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7852
7853         PR target/62275
7854         * config/arm/iterators.md (FIXUORS): New code iterator.
7855         (VCVT): New int iterator.
7856         (su_optab): New code attribute.
7857         (su): Likewise.
7858         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
7859
7860 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7861
7862         * config/aarch64/predicates.md (aarch64_comparison_operation):
7863         New special predicate.
7864         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
7865         aarch64_comparison_operation instead of matching an operator.
7866         Update operand numbers.
7867         (csinc3<mode>_insn): Likewise.
7868         (*csinv3<mode>_insn): Likewise.
7869         (*csneg3<mode>_insn): Likewise.
7870         (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
7871         * config/aarch64/aarch64.c (aarch64_get_condition_code):
7872         Return -1 instead of aborting on invalid condition codes.
7873         (aarch64_print_operand): Update aarch64_get_condition_code callsites
7874         to assert that the returned condition code is valid.
7875         * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
7876
7877 2014-09-02  Aldy Hernandez  <aldyh@redhat.com>
7878
7879         * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
7880         tree.def, and gimple.def
7881
7882 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
7883             Balaji V. Iyer  <balaji.v.iyer@intel.com>
7884             Igor Zamyatin  <igor.zamyatin@intel.com>
7885
7886         * cilk-builtins.def (__cilkrts_cilk_for_32): New.
7887         (__cilkrts_cilk_for_64): Likewise.
7888         * cilk-common.c (declare_cilk_for_builtin): New function.
7889         (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
7890         __cilkrts_cilk_for_64 bultins.
7891         * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
7892         CILK_TI_F_LOOP_64.
7893         (cilk_for_32_fndecl): New define.
7894         (cilk_for_64_fndecl): Likewise.
7895         * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
7896         GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
7897         * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
7898         GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
7899         GF_OMP_FOR_COMBINED_INTO.
7900         * gimplify.c (gimplify_scan_omp_clauses): Added
7901         OMP_CLAUSE__CILK_FOR_COUNT_ case.
7902         (gimplify_adjust_omp_clauses): Ditto.
7903         (gimplify_omp_for): Added CILK_FOR case.
7904         (gimplify_expr): Ditto.
7905         * omp-low.c: Include cilk.h.
7906         (extract_omp_for_data): Set appropriate kind for
7907         GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
7908         (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
7909         (create_omp_child_function_name): Added second argument to handle
7910         cilk_for case.
7911         (cilk_for_check_loop_diff_type): New function.
7912         (expand_cilk_for_call): Likewise.
7913         (expand_cilk_for): Likewise.
7914         (create_omp_child_function): Set cilk_for_count; handle the cases when
7915         it is true; call create_omp_child_function_name with second argument.
7916         (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
7917         (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
7918         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
7919         * tree-nested.c (convert_nonlocal_omp_clauses): Added
7920         OMP_CLAUSE__CILK_FOR_COUNT_ case.
7921         (convert_local_omp_clauses): Ditto.
7922         * tree-pretty-print.c (dump_omp_clause): Added
7923         OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
7924         (dump_generic_node): Added CILK_FOR case.
7925         * tree.c (omp_clause_num_ops): New element
7926         OMP_CLAUSE__CILK_FOR_COUNT_ (1).
7927         (omp_clause_code_name): New element _Cilk_for_count_.
7928         (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
7929         * tree.def: Add tree code for CILK_FOR.
7930
7931 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
7932
7933         * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
7934         (ppc403-compare): Add "exts with dot" case.
7935         * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
7936         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
7937         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
7938         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
7939         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
7940         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
7941         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
7942         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
7943         cell-cmp-microcoded): Similarly.
7944         * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
7945         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
7946         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
7947         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
7948         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
7949         * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
7950         * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
7951         * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
7952         (power6-compare): Add "exts with dot" case.
7953         * config/rs6000/power7.md (power7-integer, power7-compare): As before.
7954         * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
7955         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
7956
7957         * config/rs6000/predicates.md (lwa_operand): Don't allow memory
7958         if avoiding Cell microcode.
7959         * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
7960         (is_cracked_insn): Ditto.
7961         (insn_must_be_first_in_group): Ditto.
7962         * config/rs6000/rs6000.md (dot): Adjust comment.
7963         (cell_micro): Handle exts+dot.
7964         (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
7965         *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
7966         extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
7967         (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
7968         extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
7969         *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
7970         *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
7971
7972 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
7973
7974         * config/rs6000/rs6000.md (QHSI): Delete.
7975         (EXTQI, EXTHI, EXTSI): New mode iterators.
7976         (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
7977         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
7978         *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
7979         9 anonymous instructions, and 8 splitters): Delete.
7980         (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
7981         *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
7982         *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
7983         zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
7984         *zero_extendsi<mode>2_dot2): New.
7985
7986 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
7987
7988         * config/rs6000/rs6000.md (any_extend): New code iterator.
7989         (u, su): New code attributes.
7990         (dmode, DMODE): New mode attributes.
7991         (<su>mul<mode>3_highpart): New.
7992         (*<su>mul<mode>3_highpart): New.
7993         (<su>mulsi3_highpart_le): New.
7994         (<su>muldi3_highpart_le): New.
7995         (<su>mulsi3_highpart_64): New.
7996         (<u>mul<mode><dmode>3): New.
7997         (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
7998         splitters): Delete.
7999         (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
8000         splitters): Delete.
8001
8002 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
8003
8004         * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
8005         *mulsi3_internal2, and two splitters): Delete.
8006         (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
8007         Delete.
8008         (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
8009
8010 2014-09-02  Richard Biener  <rguenther@suse.de>
8011
8012         PR tree-optimization/62695
8013         * tree-ssa-structalias.c (find_func_clobbers): Add missing
8014         vector truncate.
8015
8016 2014-09-01  Oleg Endo  <olegendo@gcc.gnu.org>
8017
8018         PR target/62312
8019         * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
8020
8021 2014-09-01  Andi Kleen  <ak@linux.intel.com>
8022
8023         * file-find.c (add_prefix_begin): Add.
8024         (do_add_prefix): Rename from add_prefix with first argument.
8025         (add_prefix): Add new wrapper.
8026         * file-find.h (add_prefix_begin): Add.
8027         * gcc-ar.c (main): Support -B option.
8028
8029 2014-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
8030
8031         * genemit.c: Include dumpfile.h.
8032         (gen_split): Print name of splitter function to dump file.
8033
8034 2014-09-01  Richard Biener  <rguenther@suse.de>
8035
8036         * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
8037         Use stack auto_vecs for constraint expressions.
8038         (find_func_aliases_for_call): Likewise.
8039         (find_func_aliases): Likewise.
8040         (find_func_clobbers): Likewise.
8041
8042 2014-09-01  Richard Biener  <rguenther@suse.de>
8043
8044         * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
8045         operands vector in most cases.  Remove redundant code.
8046
8047 2014-09-01  Olivier Hainque  <hainque@adacore.com>
8048
8049         * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
8050         $WIND_BASE instead of designating a harcoded arbitrary home dir.
8051         (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
8052
8053 2014-09-01  Richard Biener  <rguenther@suse.de>
8054
8055         * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
8056         copy_reference_ops_from_call, vn_nary_op_compute_hash,
8057         vn_reference_compute_hash, vn_reference_insert): Remove.
8058         (vn_reference_lookup_call): New function.
8059         * tree-ssa-sccvn.c (vn_reference_compute_hash,
8060         copy_reference_ops_from_ref, copy_reference_ops_from_call,
8061         vn_reference_insert, vn_nary_op_compute_hash): Make static.
8062         (create_reference_ops_from_call): Remove.
8063         (vn_reference_lookup_3): Properly update shared_lookup_references.
8064         (vn_reference_lookup_pieces): Assert that we updated
8065         shared_lookup_references properly.
8066         (vn_reference_lookup): Likewise.
8067         (vn_reference_lookup_call): New function.
8068         (visit_reference_op_call): Use it.  Avoid re-building the
8069         reference ops.
8070         (visit_reference_op_load): Remove redundant lookup.
8071         (visit_reference_op_store): Perform special tail-merging work
8072         only when possibly doing tail-merging.
8073         (visit_use): Likewise.
8074         * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
8075
8076 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
8077
8078         PR target/62025
8079         * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
8080         returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
8081         (find_inc): Revert 2014-08-13 change.
8082
8083 2014-09-01  Marek Polacek  <polacek@redhat.com>
8084
8085         PR middle-end/61903
8086         * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
8087         Change the type of V to unsigned HOST_WIDE_INT.
8088
8089 2014-09-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8090
8091         * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
8092         the size of byte markers.
8093         (do_shift_rotate): Fix confusion between host, target and marker byte
8094         size.
8095         (verify_symbolic_number_p): Likewise.
8096         (find_bswap_or_nop_1): Likewise.
8097         (find_bswap_or_nop): Likewise.
8098
8099 2014-09-01  Olivier Hainque  <hainque@adacore.com>
8100
8101         * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
8102         INSTALL_SCRIPT and INSTALL_PROGRAM as well.
8103
8104 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
8105
8106         * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
8107         * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
8108         (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
8109
8110 2014-09-01  Yury Gribov  <y.gribov@samsung.com>
8111
8112         PR sanitizer/61897
8113         PR sanitizer/62140
8114         * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
8115         (build_check_stmt): Likewise.
8116         (instrument_strlen_call): Likewise.
8117         (asan_expand_check_ifn): Likewise and fix types.
8118         (maybe_cast_to_ptrmode): New function.
8119
8120 2014-09-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8121
8122         * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
8123
8124 2014-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
8125
8126         * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
8127
8128 2014-08-30  John David Anglin  <danglin@gcc.gnu.org>
8129
8130         * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
8131         prefix to function labels when generating fast indirect calls.
8132
8133 2014-08-30  David Malcolm  <dmalcolm@redhat.com>
8134
8135         PR bootstrap/62304
8136
8137         * gcc/reorg.c (skip_consecutive_labels): Convert return type and
8138         param back from rtx_insn * to rtx.  Rename param from "label" to
8139         "label_or_return", reintroducing "label" as an rtx_insn * after
8140         we've ensured it's not a RETURN.
8141         (first_active_target_insn): Likewise for return type and param;
8142         add a checked cast to rtx_insn * once we've ensured "insn" is not
8143         a RETURN.
8144         (steal_delay_list_from_target): Convert param "pnew_thread" back
8145         from rtx_insn ** to rtx *.  Replace use of JUMP_LABEL_AS_INSN
8146         with JUMP_LABEL.
8147         (own_thread_p): Convert param "thread" back from an rtx_insn * to
8148         an rtx.  Introduce local rtx_insn * "thread_insn" with a checked
8149         cast once we've established we're not dealing with a RETURN,
8150         renaming subsequent uses of "thread" to "thread_insn".
8151         (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
8152         to JUMP_LABEL.
8153         (follow_jumps): Convert return type and param "label" from
8154         rtx_insn * back to rtx.  Move initialization of "value" to after
8155         the handling for ANY_RETURN_P, adding a checked cast there to
8156         rtx_insn *.  Convert local rtx_insn * "this_label" to an rtx and
8157         rename to "this_label_or_return", reintroducing "this_label" as
8158         an rtx_insn * once we've handled the case where it could be an
8159         ANY_RETURN_P.
8160         (fill_slots_from_thread): Rename param "thread" to
8161         "thread_or_return", converting from an rtx_insn * back to an rtx.
8162         Reintroduce name "thread" as an rtx_insn * local with a checked
8163         cast once we've handled the case of it being an ANY_RETURN_P.
8164         Convert local "new_thread" from an rtx_insn * back to an rtx.
8165         Add a checked cast when assigning to "trial" from "new_thread".
8166         Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL.  Add a
8167         checked cast to rtx_insn * from "new_thread" when invoking
8168         get_label_before.
8169         (fill_eager_delay_slots): Convert locals "target_label",
8170         "insn_at_target" from rtx_insn * back to rtx.
8171         Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
8172         (relax_delay_slots): Convert locals "trial", "target_label" from
8173         rtx_insn * back to rtx.  Convert uses of JUMP_LABEL_AS_INSN back
8174         to JUMP_LABEL.  Add a checked cast to rtx_insn * on "trial" when
8175         invoking update_block.
8176         (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
8177         JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
8178
8179         * resource.h (mark_target_live_regs): Undo erroneous conversion
8180         of second param of r214693, converting it back from rtx_insn * to
8181         rtx, since it could be a RETURN.
8182
8183         * resource.c (find_dead_or_set_registers): Similarly, convert
8184         param "jump_target" back from an rtx_insn ** to an rtx *, as we
8185         could be writing back a RETURN.  Rename local rtx_insn * "next" to
8186         "next_insn", and introduce "lab_or_return" as a local rtx,
8187         handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
8188         (mark_target_live_regs): Undo erroneous conversion
8189         of second param of r214693, converting it back from rtx_insn * to
8190         rtx, since it could be a RETURN.  Rename it from "target" to
8191         "target_maybe_return", reintroducing the name "target" as a local
8192         rtx_insn * with a checked cast, after we've handled the case of
8193         ANY_RETURN_P.
8194
8195 2014-08-29  DJ Delorie  <dj@redhat.com>
8196
8197         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
8198         pointer size up to a power of two.
8199         * defaults.h (DWARF2_ADDR_SIZE): Round up.
8200         (POINTER_SIZE_UNITS): New, rounded up value.
8201         * dwarf2asm.c (size_of_encoded_value): Use it.
8202         (dw2_output_indirect_constant_1): Likewise.
8203         * expmed.c (init_expmed_one_conv): We now know the sizes of
8204         partial int modes.
8205         * loop-iv.c (iv_number_of_iterations): Use precision, not size.
8206         * optabs.c (expand_float): Use precision, not size.
8207         (expand_fix): Likewise.
8208         * simplify-rtx (simplify_unary_operation_1): Likewise.
8209         * tree-dfa.c (get_ref_base_and_extent): Likewise.
8210         * varasm.c (assemble_addr_to_section): Round up pointer sizes.
8211         (default_assemble_integer) Likewise.
8212         (dump_tm_clone_pairs): Likewise.
8213         * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
8214         * var-tracking.c (adjust_mems): Allow partial-int modes also.
8215         (prepare_call_arguments): Likewise.
8216         * stor-layout.c (finalize_type_size): Preserve precision.
8217         (layout_type): Use precision, not size.
8218
8219         * expr.c (convert_move): If the target has an explicit converter,
8220         use it.
8221
8222 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
8223
8224         * gdbinit.in: Skip various inline functions in rtl.h when
8225         stepping.
8226
8227 2014-08-29  Richard Sandiford  <richard.sandiford@arm.com>
8228
8229         PR bootstrap/62301
8230         * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
8231
8232 2014-08-29  Richard Biener  <rguenther@suse.de>
8233
8234         PR tree-optimization/62291
8235         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
8236         exactly the vector size needed and use quick_push.
8237         (phi_translate_1): Adjust comment.
8238         (valid_in_sets): Remove block argument and remove pointless
8239         checking of NAMEs.
8240         (dependent_clean): Adjust for removal of block argument.
8241         (clean): Likewise.
8242         (compute_antic_aux): Likewise.
8243         (compute_partial_antic_aux): Likewise.
8244
8245 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8246             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8247             Anna Tikhonova  <anna.tikhonova@intel.com>
8248             Ilya Tocar  <ilya.tocar@intel.com>
8249             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8250             Ilya Verbin  <ilya.verbin@intel.com>
8251             Kirill Yukhin  <kirill.yukhin@intel.com>
8252             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8253
8254         * config/i386/sse.md
8255         (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
8256         (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
8257         (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
8258         (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
8259
8260 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8261             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8262             Anna Tikhonova  <anna.tikhonova@intel.com>
8263             Ilya Tocar  <ilya.tocar@intel.com>
8264             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8265             Ilya Verbin  <ilya.verbin@intel.com>
8266             Kirill Yukhin  <kirill.yukhin@intel.com>
8267             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8268
8269         * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
8270         * config/i386/sse.md
8271         (define_mode_iterator VI4_128_8_256): New.
8272         (define_mode_iterator VI2_128_4_256): Ditto.
8273         (define_mode_iterator PMOV_DST_MODE): Rename into
8274         (define_mode_iterator PMOV_DST_MODE_1): this.
8275         (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
8276         Use PMOV_DST_MODE_1 mode iterator.
8277         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
8278         Ditto.
8279         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
8280         Ditto.
8281         (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
8282         (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
8283         (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
8284         (define_mode_iterator PMOV_DST_MODE_2): New.
8285         (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
8286         (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
8287         (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
8288         Ditto.
8289         (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
8290         (define_mode_attr pmov_dst_3): Ditto.
8291         (define_mode_attr pmov_dst_zeroed_3): Ditto.
8292         (define_mode_attr pmov_suff_3): Ditto.
8293         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
8294         (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
8295         (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
8296         (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
8297         (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
8298         (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
8299         (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
8300         (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
8301         (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
8302         (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
8303         (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
8304         (define_mode_attr pmov_dst_4): Ditto.
8305         (define_mode_attr pmov_dst_zeroed_4): Ditto.
8306         (define_mode_attr pmov_suff_4): Ditto.
8307         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
8308         (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
8309         (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
8310         (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
8311         (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
8312         (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
8313         (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
8314         (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
8315         (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
8316         (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
8317         (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
8318
8319 2014-08-29  Richard Biener  <rguenther@suse.de>
8320
8321         * tree-cfg.c (verify_gimple_assign_unary): Do not allow
8322         NON_LVALUE_EXPR in gimple.
8323
8324 2014-08-29  Richard Biener  <rguenther@suse.de>
8325
8326         PR middle-end/62292
8327         * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
8328         from previous refactoring.
8329         (gimple_fold_builtin_strncpy): Likewise.
8330
8331 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
8332
8333         PR bootstrap/62300
8334         * function.c (assign_parm_setup_reg): Remove erroneous checked
8335         cast to rtx_insn * on result of gen_extend_insn in favor of
8336         introducing a new local rtx "pat".
8337
8338 2014-08-29  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8339
8340         * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
8341         to silence warning.
8342         * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
8343
8344 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8345
8346         * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
8347         (next_insn): Likewise.
8348         * emit-rtl.c (next_insn): Likewise.
8349         (previous_insn): Likewise.
8350         * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
8351         "insn" and "next" from rtx to rtx_insn *.
8352         * config/picochip/picochip.c (picochip_reorg): Likewise for locals
8353         "insn", "insn1", "vliw_start",  "prologue_end_note",
8354         "last_insn_in_packet".
8355
8356 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8357
8358         * shrink-wrap.h (active_insn_between): Strengthen both params from
8359         rtx to rtx_insn *.
8360         * function.c (active_insn_between): Likewise.
8361
8362 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8363
8364         * genattr.c (main): When writing out insn-attr.h, strengthen param
8365         of dfa_clear_single_insn_cache from rtx to rtx_insn *.
8366         * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
8367         writing out the definition of dfa_clear_single_insn_cache to the
8368         generated insn-automata.c
8369
8370 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8371
8372         * resource.h (clear_hashed_info_for_insn): Strengthen param from
8373         rtx to rtx_insn *.
8374         (incr_ticks_for_insn): Likewise.
8375         (init_resource_info): Likewise.
8376
8377         * resource.c (init_resource_info): Likewise.
8378         (clear_hashed_info_for_insn): Likewise.
8379         (incr_ticks_for_insn): Likewise.
8380
8381         * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
8382         rtx to rtx_insn *.
8383         (steal_delay_list_from_target): Use methods of "seq".
8384         (try_merge_delay_insns): Use methods of "merged_insns".
8385         (update_block): Strengthen param "insn" from rtx to rtx_insn *.
8386         (reorg_redirect_jump): Likewise for param "jump".
8387
8388 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8389
8390         * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
8391         rtx to rtx_insn *.
8392         * config/s390/s390.c (s390_split_branches): Eliminate top-level
8393         local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
8394         "set_insn".
8395         (s390_mainpool_finish): In three places, split out a local rtx
8396         "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
8397         "insn".  Strengthen local "pool_end" from rtx to rtx_code_label *
8398         and split another local rtx "insn" out into rtx "pat" and
8399         rtx_insn * "insn".
8400         * config/sh/sh.c (output_branchy_insn): Rather than working
8401         directly on operands[9], introduce local rtx_code_label *
8402         variables named "lab" in two places, working on them, and then
8403         assigning them to operands[9], so that the intervening operations
8404         are known by the type system to be on insns.
8405
8406 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8407
8408         * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
8409         const rtx_insn *.
8410
8411         * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
8412         in invocation of INSN_HAS_LOCATION.
8413
8414 2014-08-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8415
8416         * config/rs6000/altivec.h (vec_xl): New #define.
8417         (vec_xst): Likewise.
8418         * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
8419         (XXSPLTD_V2DI): Likewise.
8420         (DIV_V2DI): Likewise.
8421         (UDIV_V2DI): Likewise.
8422         (MUL_V2DI): Likewise.
8423         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8424         entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
8425         VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
8426         VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
8427         * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
8428         (UNSPEC_VSX_DIVSD): Likewise.
8429         (UNSPEC_VSX_DIVUD): Likewise.
8430         (UNSPEC_VSX_MULSD): Likewise.
8431         (vsx_mul_v2di): New insn-and-split.
8432         (vsx_div_v2di): Likewise.
8433         (vsx_udiv_v2di): Likewise.
8434         (vsx_xxspltd_<mode>): New insn.
8435
8436 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8437
8438         * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
8439         NEXT_INSN.
8440         (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
8441         (NEXT_INSN): Likewise.
8442         (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
8443         (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
8444         const rtx_insn *.
8445         (no_labels_between_p): Likewise for both params.
8446
8447         * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
8448         cast when using NEXT_INSN on operands[2].
8449         * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
8450         "insn" from rtx to rtx_insn *, adding a checked cast.
8451         (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
8452         rtx_insn *.
8453         * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
8454         for third param.
8455         (arc_text_label): Likewise for param "insn".
8456         * config/arc/arc.c (arc_expand_epilogue): Likewise for local
8457         "insn".
8458         (arc_ccfsm_record_condition): Likewise for param "jump".
8459         (arc_text_label): Likewise for local "label".
8460         * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
8461         Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
8462         a method for typesafety.  Add a checked cast.
8463         * config/arc/constraints.md (Clb): Add a checked cast when getting
8464         the CODE_LABEL from a LABEL_REF.
8465         * config/arm/arm.c (require_pic_register): Strengthen locals
8466         "seq", "insn" from rtx to rtx_insn *.
8467         (create_fix_barrier): Likewise for locals "selected", "next".
8468         (thumb1_reorg): Likewise for locals "prev", "insn".
8469         (arm_expand_prologue): Likewise for local "last".
8470         (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
8471         operands[0].
8472         (thumb2_output_casesi): Likewise for operands[2].
8473         * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
8474         strengthen local "insn" from rtx to rtx_insn *.
8475         * config/bfin/bfin.c (find_next_insn_start): Likewise for return
8476         type and param "insn".
8477         (find_prev_insn_start): Likewise.
8478         (hwloop_optimize): Likewise for locals "insn", "last_insn",
8479         "prev".
8480         (gen_one_bundle): Likewise for loal "t".
8481         (find_load): Likewise for param "insn".
8482         (workaround_speculation): Likewise for locals "insn", "next",
8483         "target", "next_tgt".
8484         * config/c6x/c6x.c (assign_reservations): Likewise for both params
8485         and for locals "insn", "within", "last".
8486         (count_unit_reqs): Likewise for params "head", "tail" and local
8487         "insn".
8488         (try_rename_operands): Likewise for params "head", "tail".
8489         (reshuffle_units): Likewise for locals "head", "tail", "insn".
8490         (struct c6x_sched_context): Likewise for fields
8491         "last_scheduled_insn", "last_scheduled_iter0".
8492         (init_sched_state): Replace NULL_RTX with NULL.
8493         (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
8494         to rtx_insn *.
8495         (undo_split_delayed_nonbranch): Likewise for param and for local
8496         "prev".
8497         (conditionalize_after_sched): Likewise for local "insn".
8498         (bb_earliest_end_cycle): Likewise.
8499         (filter_insns_above): Likewise for locals "insn", "next".
8500         (hwloop_optimize): Remove redundant checked cast.
8501         (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
8502         * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
8503         NULL_RTX with NULL.
8504         (cris_simple_epilogue): Likewise.
8505         (cris_expand_prologue): Likewise.
8506         (cris_expand_epilogue): Likewise.
8507         * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
8508         local "insn" from rtx to rtx_insn *.
8509         (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
8510         (struct frv_packet_group): Likewise for the elements within array
8511         fields "insns", "sorted", and for field "nop".
8512         (frv_packet): Likewise for the elements within array field
8513         "insns".
8514         (frv_add_insn_to_packet): Likewise for param "insn".
8515         (frv_insert_nop_in_packet): Likewise for param "insn" and local
8516         "last".
8517         (frv_for_each_packet): Likewise for locals "insn", "next_insn".
8518         (frv_sort_insn_group_1): Likewise for local "insn".
8519         (frv_optimize_membar_local): Likewise.
8520         (frv_align_label): Likewise for locals "x", "last", "barrier",
8521         "label".
8522         * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
8523         local.
8524         (ia64_sched_init): Likewise for local "insn".
8525         (scheduled_good_insn): Likewise for param "last".
8526         (struct _ia64_sched_context): Likewise for field
8527         "last_scheduled_insn".
8528         (ia64_init_sched_context): Replace NULL_RTX with NULL.
8529         (struct bundle_state): Likewise for field "insn".
8530         (issue_nops_and_insn): Likewise for param "insn".
8531         (get_next_important_insn): Likewise for return type and both
8532         params.
8533         (ia64_add_bundle_selector_before): Likewise for param "insn".
8534         (bundling): Likewise for params "prev_head_insn", "tail" and
8535         locals "insn", "next_insn", "b".  Eliminate top-level local rtx
8536         "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
8537         * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
8538         Strengthen final param from rtx to rtx_insn *.
8539         (iq2000_move_1word): Likewise for second param.
8540         * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
8541         param "cur_insn" and local "next_insn".
8542         (iq2000_move_1word): Likewise for param "insn".
8543         * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
8544         casts when using NEXT_INSN on operands[1].
8545         * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
8546         "insn" from rtx to rtx_insn *.
8547         * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
8548         "x", introducing local rtx_insn * "insn" for when working with the
8549         CODE_LABEL of the LABEL_REF.
8550         (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
8551         rtx_insn *.
8552         * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
8553         param.
8554         * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
8555         type.
8556         (conditionalize_block): Likewise for return type and param.
8557         (mcore_is_dead): Likewise for param "first" and local "insn".
8558         (emit_new_cond_insn): Likewise for return type.
8559         (conditionalize_block): Likewise for return type, param, and
8560         locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
8561         "newinsn".
8562         (conditionalize_optimization): Likewise for local "insn".
8563         * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
8564         using NEXT_INSN.
8565         * config/microblaze/microblaze.md: Add checked casts when using
8566         NEXT_INSN.
8567         * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
8568         rtx "insn" in favor of various more tightly-scoped rtx "insn" and
8569         and rtx_insn * "insn".
8570         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
8571         checked cast when using NEXT_INSN on operands[2].
8572         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
8573         local "insn" from rtx to rtx_insn *.
8574         * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
8575         Likewise.
8576         * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
8577         Add a checked cast when using NEXT_INSN on operands[1].
8578         * config/pa/pa-protos.h (pa_following_call): Strengthen param from
8579         rtx to rtx_insn *.
8580         (pa_output_cbranch): Likewise for final param.
8581         (pa_output_lbranch): Likewise for second param.
8582         (pa_output_bb): Likewise for third param.
8583         (pa_output_bvb): Likewise.
8584         (pa_output_dbra): Likewise for second param.
8585         (pa_output_movb): Likewise.
8586         (pa_output_parallel_movb): Likewise.
8587         (pa_output_parallel_addb): Likewise.
8588         (pa_output_millicode_call): Likewise for first param.
8589         (pa_output_mul_insn): Likewise for second param.
8590         (pa_output_div_insn): Likewise for third param.
8591         (pa_output_mod_insn): Likewise for second param.
8592         (pa_jump_in_call_delay): Likewise for param.
8593         * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
8594         (pa_output_div_insn): Likewise.
8595         (pa_output_mod_insn): Likewise.
8596         (pa_output_cbranch): Likewise.
8597         (pa_output_lbranch): Likewise.
8598         (pa_output_bb): Likewise.
8599         (pa_output_bvb): Likewise.
8600         (pa_output_dbra): Likewise.
8601         (pa_output_movb): Likewise.
8602         (pa_output_millicode_call): Likewise; use method of rtx_sequence *
8603         to simplify and for typesafety.
8604         (pa_output_call): Use method of rtx_sequence *.
8605         (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
8606         (pa_jump_in_call_delay): Likewise.
8607         (pa_output_parallel_movb): Likewise.
8608         (pa_output_parallel_addb): Likewise.
8609         (pa_following_call): Likewise.
8610         (pa_combine_instructions): Likewise for locals "anchor",
8611         "floater".
8612         (pa_can_combine_p): Likewise for params "anchor", "floater" and
8613         locals "start", "end".
8614         * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
8615         param "insn" and local "local_insn".
8616         (picochip_final_prescan_insn): Likewise for local "local_insn".
8617         * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
8618         local "insn".
8619         (uses_TOC): Likewise.
8620         * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
8621         (s390_mainpool_finish): Eliminate top-level local rtx "insn",
8622         splitting out to more tightly-scoped locals, 3 as rtx and one as
8623         rtx_insn *.
8624         (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
8625         to rtx_insn *.
8626         (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
8627         where needed.
8628         * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
8629         to rtx_insn *.
8630         (fixup_addr_diff_vecs): Likewise.
8631         (reg_unused_after): Likewise for param 2.
8632         (sh_can_redirect_branch): Likewise for both params.
8633         (check_use_sfunc_addr): Likewise for param 1.
8634         * config/sh/sh.c (fixup_mova): Likewise for local "worker".
8635         (find_barrier): Likewise for local "last_got".
8636         (gen_block_redirect): Likewise for return type, param "jump" and
8637         locals "prev", "scan", "next", "insn".
8638         (struct far_branch): Likewise for fields "near_label",
8639         "insert_place", "far_label".
8640         (gen_far_branch): Likewise for local "jump".
8641         (fixup_addr_diff_vecs): Likewise for param "first" and locals
8642         "insn", "prev".
8643         (barrier_align): Likewise for param and for locals "prev", "x".
8644         Introduce local rtx_sequence * "prev_seq" and use insn method for
8645         typesafety and clarity.
8646         (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
8647         (get_dest_uid): Likewise for local "dest".
8648         (split_branches): Likewise for locals "next", "beyond", "label",
8649         "block", "far_label".  Add checked casts when assigning to
8650         bp->far_label and "far_label".
8651         (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
8652         (sequence_insn_p): Likewise.
8653         (mark_constant_pool_use): Likewise for locals "insn", "lab".  Add a
8654         more loop-scoped rtx "insn" when walking LABEL_REFS.
8655         (sh_can_redirect_branch): Strengthen both params from rtx to
8656         rtx_insn *.
8657         (check_use_sfunc_addr): Likewise for param "insn".  Introduce a
8658         new local rtx_sequence * "seq" via a dyn_cast, and use a method
8659         for clarity and typesafety.
8660         * config/sh/sh.md (define_expand "epilogue"): Strengthen local
8661         "insn" from rtx to rtx_insn *.
8662         (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
8663         when using NEXT_INSN on the CODE_LABEL in operands[2].
8664         (define_insn "casesi_worker_2"): Likewise.
8665         (define_insn "casesi_shift_media"): Likewise.
8666         (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
8667         operands[3].
8668         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
8669         Strengthen field "insn" from rtx to rtx_insn *.
8670         (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
8671         (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
8672         param "start_insn" and local "start_insn".
8673         * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
8674         field "insn".
8675         (find_set_of_reg_bb): Likewise for param "insn".
8676         (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
8677         (trace_reg_uses): Likewise for param "start_insn".
8678         (sh_treg_combine::cbranch_trace): Likewise for field
8679         "cbranch_insn".
8680         (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
8681         param "insn".
8682         (sh_treg_combine::record_set_of_reg): Likewise for param
8683         "start_insn" and local "i".
8684         (sh_treg_combine::can_remove_cstore): Likewise for local
8685         "prev_insn".
8686         (sh_treg_combine::try_optimize_cbranch): Likewise for param
8687         "insn".
8688         (sh_treg_combine::execute): Likewise for local "i".
8689         * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
8690         param.
8691         (sparc_check_64): Likewise for second param.
8692         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
8693         locals "insn", "next".  Introduce local rtx_sequence * "seq" via a
8694         dyn_cast, using its insn method for typesafety and clarity.
8695         (empty_delay_slot): Strengthen param "insn" from rtx to
8696         rtx_insn *.
8697         (set_extends): Likewise.
8698         (sparc_check_64): Likewise.
8699         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
8700         for locals "seq", "last_insn".
8701         (combine_bnp): Likewise for param "insn".
8702         (xstormy16_reorg): Likewise for local "insn".
8703         * config/v850/v850.c (substitute_ep_register): Likewise for params
8704         "first_insn", "last_insn" and local "insn".
8705         (v850_reorg): Likewise for fields "first_insn", "last_insn" within
8706         elements of "regs" array, and local "insn".
8707         * except.c (emit_note_eh_region_end): Likewise for param "insn".
8708         * final.c (final_sequence): Strengthen this global from rtx to
8709         rtx_sequence *.
8710         (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
8711         rtx_insn *.
8712         (final_scan_insn): Update assignment to "final_sequence" to be
8713         from "seq", the cast version of "body", for type-safety.
8714         * function.c (assign_parm_setup_reg): Strengthen locals "insn",
8715         "insns" from rtx to rtx_insn *.
8716         (thread_prologue_and_epilogue_insns): Likewise for local "seq".
8717         * genattr.c (main): When writing out generated insn-attr.h,
8718         strengthen params 1 and 3 of eligible_for_delay,
8719         eligible_for_annul_true, eligible_for_annul_false from rtx to
8720         rtx_insn *.
8721         * genattrtab.c (write_eligible_delay): Likewise when writing out
8722         generated insn-attrtab.c; also local "insn" the generated
8723         functions.
8724         * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
8725         to rtx_insn *.
8726         * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
8727         "start_label" from rtx to rtx_insn *.
8728         * ira.c (decrease_live_ranges_number): Likewise for local "p".
8729         (ira_update_equiv_info_by_shuffle_insn): Likewise for param
8730         "insns" and local "insn".
8731         (validate_equiv_mem): Likewise for param "start" and local "insn".
8732         (memref_used_between_p): Likewise for params "start", "end" and
8733         local "insn".
8734         * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
8735         final param.
8736         * loop-doloop.c (doloop_optimize): Within region guarded by
8737         INSN_P (doloop_pat), introduce a new local rtx_insn *
8738         "doloop_insn" via a checked cast, and use it for typesafety,
8739         eventually writing the value back into doloop_pat.
8740         * output.h (final_sequence): Strengthen this global from rtx to
8741         rtx_sequence *.
8742         * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
8743         reintroducing "insn" as an rtx_insn * via a checked cast.
8744         Strengthen param "attempt" and local "new_insn"from rtx to
8745         rtx_insn *.
8746         (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
8747         to rtx_insn *.
8748         * ree.c (emit_note_eh_region_end): Likewise for local "insn".
8749         * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
8750         "p" in favor of more tightly-scoped replacements, sometimes rtx
8751         and sometimes rtx_insn *, as appropriate.
8752         (delete_output_reload): Eliminate top-level rtx "i1", splitting
8753         into two loop-scoped locals, one an rtx, the other an rtx_insn *.
8754         * reorg.c (delete_scheduled_jump): Add checked cast.  Strengthen
8755         local "trial" from rtx to rtx_insn *.
8756         (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
8757         rtx to rtx_insn *.  Strenghten local "pat" from rtx to
8758         rtx_sequence * and use methods for clarity and typesafety.
8759         (redirect_with_delay_list_safe_p): Strengthen param "jump" from
8760         rtx to rtx_insn *.  Strenghten local "li" from rtx to
8761         rtx_insn_list * and use its methods for clarity and typesafety.
8762         (steal_delay_list_from_target): Strengthen param "insn" from rtx
8763         to rtx_insn *.
8764         (steal_delay_list_from_fallthrough): Likewise.
8765         (try_merge_delay_insns): Likewise for param "thread" and locals
8766         "trial", "next_trial", "delay_insn".
8767         (redundant_insn): Likewise for param "target" and local "trial".
8768         (own_thread_p): Likewise for param "thread" and locals
8769         "active_insn", "insn".
8770         (get_label_before): Likewise for param "insn".
8771         (fill_simple_delay_slots): Likewise for local "new_label"; use
8772         JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
8773         (label_before_next_insn): Strengthen return type and local "insn"
8774         from rtx to rtx_insn *.
8775         (relax_delay_slots): Likewise for locals "other", "tmp".
8776         (make_return_insns): Likewise for param "first" and locals "insn",
8777         "jump_insn", "prev".  Move declaration of "pat" to its assignment
8778         and strengthen from rtx to rtx_sequence *.  Use its methods for
8779         clarity and typesafety.
8780         * rtlanal.c (no_labels_between_p): Strengthen params from
8781         const_rtx to const rtx_insn *.  Strengthen local "p" from rtx to
8782         rtx_insn *.
8783         (reg_used_between_p): Strengthen params "from_insn", "to_insn"
8784         from const_rtx to const rtx_insn *.
8785         (reg_set_between_p): Rename param "from_insn" to
8786         "uncast_from_insn", and reintroduce "from_insn" as a
8787         const rtx_insn * via a checked cast.
8788         (modified_between_p): Likewise for param "start" as "uncast_start".
8789         (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
8790         * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
8791         "tmp", head" from rtx to rtx_insn *.
8792         (recompute_rev_top_order): Likewise for local "insn".
8793         * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
8794         * store-motion.c (build_store_vectors): Likewise for local "insn".
8795         Strengthen local "st" from rtx to rtx_insn_list * and use methods
8796         for clarity and typesafety.
8797         * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
8798         rtx to rtx_insn *.
8799         (computation_cost): Likewise for local "seq".
8800         (get_address_cost): Likewise.
8801
8802 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8803
8804         * rtl.h (tablejump_p): Strengthen first param from const_rtx to
8805         const rtx_insn *.
8806         (label_is_jump_target_p): Likewise for second param.
8807
8808         * rtlanal.c (tablejump_p): Likewise for param "insn".
8809         (label_is_jump_target_p): Likewise for param "jump_insn".
8810
8811 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8812
8813         * rtl.h (find_first_parameter_load): Strengthen return type and
8814         both params from rtx to rtx_insn *.
8815         * rtlanal.c (find_first_parameter_load): Strengthen return type,
8816         both params and locals "before", "first_set" from rtx to
8817         rtx_insn *.  Remove now-redundant cast.
8818         * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
8819
8820 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8821
8822         * rtl.h (find_last_value): Delete.
8823         * rtlanal.c (find_last_value): Delete.
8824
8825 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8826
8827         * cfgexpand.c (pass_expand::execute): Strengthen local "after"
8828         from rtx to rtx_insn *.
8829         * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
8830         rtx "note" with new local rtx_insn * "new_head" when calculating
8831         head insn of new basic block.
8832         * combine.c (combine_split_insns): Strengthen return type and local
8833         "ret" from rtx to rtx_insn *.
8834         (likely_spilled_retval_p): Likewise for locals "use" and "p".
8835         (try_combine): Eliminate local "m_split", splitting into new
8836         locals "m_split_insn" and "m_split_pat".
8837         (find_split_point): Strengthen local "seq" from rtx into
8838         rtx_insn *.
8839         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
8840         locals "label", "branch".
8841         * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
8842         for local "insn".
8843         (define_expand "umulsi3_highpart"): Likewise for local "insn".
8844         * dse.c (note_add_store_info): Likewise for fields "first",
8845         "current".
8846         (note_add_store): Likewise for local "insn".
8847         (emit_inc_dec_insn_before): Likewise for locals "insn",
8848         "new_insn", "cur".
8849         (find_shift_sequence): Likewise for locals "shift_seq", "insn".
8850         (replace_read): Likewise for locals "insns", "this_insn".
8851         * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
8852         (notice_eh_throw): Likewise for param "insn".
8853         (before_next_cfi_note): Likewise for return type, param, and local
8854         "prev".
8855         (connect_traces): Likewise for local "note".
8856         * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
8857         (verify_rtl_sharing): Likewise.
8858         (unshare_all_rtl_in_chain): Likewise for param "insn".
8859         (get_first_nonnote_insn): Likewise for local "insn".
8860         (get_last_nonnote_insn): Likewise.  Introduce local rtx_sequence *
8861         "seq" and use its methods to clarify things.
8862         (next_insn): Strengthen return type from rtx to rtx_insn *.
8863         Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
8864         local rtx_insn * using a checked cast, dropping a checked cast
8865         made redundant by this change.  Use a cast to and method of
8866         rtx_sequence to clarify the code.
8867         (previous_insn): Rename param "insn" to "uncast_insn" and
8868         reintroduce "insn" as a local rtx_insn * using a checked cast,
8869         dropping a checked cast made redundant by this change.  Use a cast
8870         to and method of rtx_sequence to clarify the code.
8871         (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
8872         reintroduce "insn" as a local rtx_insn * using a checked cast,
8873         dropping a checked cast made redundant by this change.
8874         (next_nonnote_insn_bb): Likewise.
8875         (prev_nonnote_insn): Likewise.
8876         (prev_nonnote_insn_bb): Likewise.
8877         (next_nondebug_insn): Likewise.
8878         (prev_nondebug_insn): Likewise.
8879         (next_nonnote_nondebug_insn): Likewise.
8880         (prev_nonnote_nondebug_insn): Likewise.
8881         (next_real_insn): Likewise.
8882         (prev_real_insn): Likewise.
8883         (next_active_insn): Likewise.
8884         (prev_active_insn): Likewise.
8885         (next_cc0_user): Likewise.  Use rtx_sequence and a method for
8886         clarity.
8887         (prev_cc0_setter): Likewise.
8888         (try_split): Rename param "trial" to "uncast_trial" and
8889         reintroduce "insn" as a local rtx_insn * using a checked cast,
8890         dropping checked casts made redundant by this change.
8891         Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
8892         rtx to rtx_insn *.
8893         (remove_insn): Rename param "insn" to "uncast_insn" and
8894         reintroduce "insn" as a local rtx_insn * using a checked cast.
8895         (emit_pattern_after_setloc): Likewise for param "after", as
8896         "uncast_after".
8897         (emit_pattern_after): Likewise.  Strengthen local "prev" from
8898         rtx to rtx_insn *.
8899         (emit_pattern_before_setloc): Rename param "before" to
8900         "uncast_before" and reintroduce "before" as a local rtx_insn *
8901         using a checked cast.  Strengthen locals "first", "last" from
8902         rtx to rtx_insn *.
8903         (emit_pattern_before): Likewise rename/cast param "before" to
8904         "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
8905         * except.c (copy_reg_eh_region_note_forward): Strengthen param
8906         "first" and local "insn" from rtx to rtx_insn *.
8907         (copy_reg_eh_region_note_backward): Likewise for param "last"
8908         and local "insn".
8909         * expr.c (fixup_args_size_notes): Rename param "last" to
8910         "uncast_last" and reintroduce "last" as a local rtx_insn *
8911         using a checked cast.  Strengthen local "insn" from rtx to
8912         rtx_insn *.
8913         * function.c (set_insn_locations): Strengthen param "insn" from
8914         rtx to rtx_insn *.
8915         (record_insns): Likewise for param "insns" and local "tmp".
8916         (active_insn_between): Rename param "tail" to
8917         "uncast_tail" and reintroduce "tail" as a local rtx_insn *
8918         using a checked cast.
8919         (thread_prologue_and_epilogue_insns): Split out top-level local
8920         rtx "seq" into three different rtx_insn * locals.  Strengthen
8921         local "prologue_seq" from rtx to rtx_insn *.
8922         * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
8923         from rtx to rtx_insn *.
8924         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
8925         (priority): Likewise for locals "prev_first", "twin".
8926         (setup_insn_max_reg_pressure): Likewise for param "after".
8927         (sched_setup_bb_reg_pressure_info): Likewise.
8928         (no_real_insns_p): Strengthen params from const_rtx to
8929         const rtx_insn *.
8930         (schedule_block): Strengthen local "next_tail" from rtx to
8931         rtx_insn *.
8932         * ifcvt.c (find_active_insn_before): Strengthen return type and
8933         param "insn" from rtx to rtx_insn *.
8934         (find_active_insn_after): Likewise.
8935         (cond_exec_process_insns): Likewise for param "start" and local "insn".
8936         (cond_exec_process_if_block): Likewise for locals "then_start",
8937         "then_end", "else_start", "else_end", "insn", "start", "end", "from".
8938         (noce_process_if_block): Likewise for local "jump".
8939         (merge_if_block): Likewise for two locals named "end".
8940         (cond_exec_find_if_block): Likewise for local "last_insn".
8941         * jump.c (delete_related_insns): Rename param "insn" to
8942         "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
8943         checked cast.  Strengthen local "p" from rtx to rtx_insn *.
8944         * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
8945         NULL.
8946         (split_reg): Likewise.
8947         * lra.c (lra_process_new_insns): Likewise.
8948         * modulo-sched.c (permute_partial_schedule): Strengthen param
8949         "last" from rtx to rtx_insn *.
8950         * optabs.c (add_equal_note): Likewise for param "insns" and local
8951         "last_insn".
8952         (expand_binop_directly): Add checked casts to rtx_insn * within
8953         NEXT_INSN (pat) uses.
8954         (expand_unop_direct): Likewise.
8955         (maybe_emit_unop_insn): Likewise.
8956         * recog.c (peep2_attempt): Strengthen locals "last",
8957         "before_try", "x" from rtx to rtx_insn *.
8958         * reorg.c (optimize_skip): Strengthen return type and local
8959         "delay_list" from rtx to rtx_insn_list *.  Strengthen param "insn"
8960         and locals "trial", "next_trial" from rtx to rtx_insn *.
8961         * resource.c (next_insn_no_annul): Strengthen return type and
8962         param "insn" from rtx to rtx_insn *.  Use a cast to and method of
8963         rtx_sequence to clarify the code.
8964         (mark_referenced_resources): Add a checked cast to rtx_insn *
8965         within PREV_INSN (x).
8966         (find_dead_or_set_registers): Strengthen return type, param
8967         "target", locals "insn", "next", "jump_insn", "this_jump_insn"
8968         from rtx to rtx_insn *.  Strengthen param "jump_target" from rtx *
8969         to rtx_insn **.
8970         (mark_target_live_regs): Strengthen params "insns" and "target",
8971         locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
8972         to rtx_insn *.  Use cast to and method of rtx_sequence to clarify
8973         the code.
8974         * resource.h (mark_target_live_regs): Strengthen params 1 and 2
8975         from rtx to rtx_insn *.
8976         * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
8977         from rtx to rtx_insn *.
8978         (copy_reg_eh_region_note_backward): Likewise.
8979         (unshare_all_rtl_in_chain): Likewise for sole param.
8980         (dump_rtl_slim): Strengthen second and third params from const_rtx
8981         to const rtx_insn *.
8982         * sched-deps.c (sched_free_deps): Strengthen params "head" and
8983         "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
8984         * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
8985         "next_tail" from rtx to rtx_insn *.
8986         (begin_move_insn): Likewise for local "next".
8987         * sched-int.h (sched_free_deps): Likewise for first and second
8988         params.
8989         (no_real_insns_p): Strengthen both params from const_rtx to
8990         const rtx_insn *.
8991         (sched_setup_bb_reg_pressure_info): Strengthen second params from
8992         rtx to rtx_insn *.
8993         * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
8994         "next_tail".
8995         * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
8996         and locals "insn", "tail" from const_rtx to const rtx_insn *.
8997         (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
8998         rtx_insn *.
8999         (debug_rtl_slim): Strengthen params "first" and "last" from
9000         const_rtx to const rtx_insn *.
9001         * shrink-wrap.c (try_shrink_wrapping): Strengthen param
9002         "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
9003         (convert_to_simple_return): Likewise for param "returnjump".
9004         * shrink-wrap.h (try_shrink_wrapping): Likewise for param
9005         "prologue_seq".
9006         (convert_to_simple_return): Likewise for param "returnjump".
9007         * valtrack.c (propagate_for_debug): Likewise for params
9008         "insn", "last".
9009         * valtrack.h (propagate_for_debug): Likewise for second param.
9010
9011 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
9012
9013         * output.h (insn_current_reference_address): Strengthen param
9014         from rtx to rtx_insn *.
9015         * final.c (insn_current_reference_address): Likewise.
9016
9017 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
9018
9019         * basic-block.h (inside_basic_block_p): Strengthen param from
9020         const_rtx to const rtx_insn *.
9021         * cfgbuild.c (inside_basic_block_p): Likewise.
9022
9023 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
9024
9025         * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
9026         rtx_insn *.
9027         (get_trace_info): Likewise for param "insn".
9028         (save_point_p): Likewise.
9029         (maybe_record_trace_start): Likewise for both params.
9030         (maybe_record_trace_start_abnormal): Likewise.
9031         (create_trace_edges): Likewise for sole param and for three of the
9032         locals named "lab".
9033         (scan_trace): Strengthen local "prev", "insn", "control" from rtx
9034         to rtx_insn *, and update a call to pat->element to pat->insn.
9035
9036 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
9037
9038         * function.h (struct expr_status): Convert field "x_forced_labels"
9039         from rtx_expr_list * to rtx_insn_list *.
9040
9041         * cfgbuild.c (make_edges): Convert local "x" from an
9042         rtx_expr_list * to an rtx_insn_list *, replacing use of
9043         "element" method with "insn" method.
9044         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
9045         * except.c (sjlj_emit_dispatch_table): Replace use of
9046         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
9047         forced_labels.
9048         * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
9049         rtx_expr_list * to an rtx_insn_list *, replacing use of
9050         "element" method with "insn" method.
9051         * reload1.c (set_initial_label_offsets): Likewise for local "x".
9052         * stmt.c (label_rtx): Strengthen local "ref" from rtx to
9053         rtx_insn *, adding a checked cast.  Replace use of
9054         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
9055         forced_labels.
9056         (expand_label): Likewise for local "label_r".
9057
9058 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
9059
9060         * function.h (struct rtl_data): Convert field
9061         "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
9062         rtx_insn_list *.
9063         * rtl.h (remove_node_from_insn_list): New prototype.
9064
9065         * builtins.c (expand_builtin): When prepending to
9066         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
9067         gen_rtx_EXPR_LIST.
9068         * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
9069         to rtx_insn_list *, and use its "insn" method rather than
9070         "element" method.
9071         * cfgrtl.c (delete_insn): Use new function
9072         remove_node_from_insn_list rather than
9073         remove_node_from_expr_list.
9074         (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
9075         to rtx_insn_list *, and use its "insn" method rather than
9076         "element" method.
9077         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
9078         * reload1.c (set_initial_label_offsets): Likewise for local "x".
9079         * rtlanal.c (remove_node_from_insn_list): New function, adapted
9080         from remove_node_from_expr_list.
9081         * stmt.c (expand_label): When prepending to
9082         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
9083         gen_rtx_EXPR_LIST.
9084
9085 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
9086
9087         * function.h (struct rtl_data): Strengthen fields "x_return_label"
9088         and "x_naked_return_label" from rtx to rtx_code_label *.
9089
9090 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
9091
9092         * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
9093         (SET_NEXT_INSN): Likewise.
9094         (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
9095
9096         * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
9097         rtx * to rtx_insn **.  Introduce a new local rtx "seq", using it
9098         to split out the SEQUENCE from local "bundle", strengthening the
9099         latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
9100         Strengthen locals "t" and "insn" from rtx to rtx_insn *.
9101         (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
9102         and the type of the elements of the "slot" array from rtx to
9103         rtx_insn *.
9104         (reorg_split_calls): Likewise for locals "insn" and "next", and
9105         the type of the elements of the "slot" array.
9106
9107         * config/frv/frv.c (frv_nops): Likewise for the elements of this
9108         array.
9109         (frv_function_prologue): Likewise for locals "insn", "next",
9110         "last_call".
9111         (frv_register_nop): Introduce a local "nop_insn" to be the
9112         rtx_insn * containing rtx "nop".
9113
9114         * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
9115         used as an insn and sometimes as a pattern, so rename it to
9116         "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
9117         using it where dealing with the core insn.
9118
9119         * config/picochip/picochip.c (reorder_var_tracking_notes):
9120         Strengthen locals "insn", "next", "last_insn", "queue",
9121         "next_queue", "prev" from rtx to rtx_insn *.
9122
9123         * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
9124         the second param is an rtx_insn ** rather than an rtx **.
9125         (link_insn_into_chain): Strengthen locals "seq" and "sequence"
9126         from rtx to rtx_sequence *, and introduce local named "sequence",
9127         using methods of rtx_sequence to clarify the code.
9128         (remove_insn): Introduce local rtx_sequence * named "sequence" and
9129         use its methods.
9130         (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
9131         Rename param "after" to "uncast_after", reintroducing "after" as a
9132         local rtx_insn * with a checked cast.
9133         (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
9134         reintroducing "after" as a local rtx_insn * with a checked cast.
9135         Strengthen local "last" from rtx to rtx_insn * and remove the
9136         now-redundant checked casts.
9137         (copy_delay_slot_insn): Strengthen return type and param from rtx
9138         to rtx_insn *.
9139
9140         * haifa-sched.c (reemit_notes): Strengthen params "insn" and
9141         "last" from rtx to rtx_insn *.
9142
9143 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
9144
9145         * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
9146         param from rtx to rtx_insn *.
9147
9148         * emit-rtl.c (copy_delay_slot_insn): Likewise.
9149
9150         * reorg.c (skip_consecutive_labels): Strengthen return type, param
9151         and local "insn" from rtx to rtx_insn *.
9152         (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
9153         (unfilled_slots_next): Likewise.
9154         (function_return_label): Strengthen from rtx to rtx_code_label *.
9155         (function_simple_return_label): Likewise.
9156         (first_active_target_insn): Strengthen return type and param from
9157         rtx to rtx_insn *.
9158         (find_end_label): Strengthen return type from rtx to
9159         rtx_code_label *; strengthen locals as appropriate.
9160         (emit_delay_sequence): Strengthen return type, param "insn" and
9161         local "seq_insn" from rtx to rtx_insn *.  Strengthen param "list"
9162         and local "li" from rtx to rtx_insn_list *, using methods of
9163         rtx_insn_list for clarity and typesafety.
9164         (add_to_delay_list): Strengthen return type and param "insn" from
9165         rtx to rtx_insn *.  Strengthen param "delay_list" from rtx to
9166         rtx_insn_list * and use methods of rtx_insn_list.
9167         (delete_from_delay_slot): Strengthen return type, param "insn",
9168         locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
9169         Strengthen local "seq" from rtx to rtx_sequence *, and local
9170         "delay_list" from rtx to rtx_insn_list *, using methods of
9171         rtx_sequence for clarity and type-safety.
9172         (delete_scheduled_jump): Add checked cast when invoking
9173         delete_from_delay_slot.  Strengthen local "trial" from rtx to
9174         rtx_insn *.
9175         (optimize_skip): Strengthen return type and local "delay_list"
9176         from rtx to rtx_insn_list *.  Strengthen local "trial" from rtx to
9177         rtx_insn *.
9178         (steal_delay_list_from_target): Strengthen return type, param
9179         "delay_list" and local "new_delay_list" from rtx to
9180         rtx_insn_list *.  Strengthen param "seq" from rtx to
9181         rtx_sequence *.  Strengthen param "pnew_thread" from rtx * to
9182         rtx_insn **.
9183         Split out local "temp" into multiple more-tightly scoped locals:
9184         sometimes an rtx_insn_list *, and once a rtx_insn *.  Use methods
9185         of rtx_insn_list and rtx_sequence for clarity and typesafety.
9186         Strengthen locals named "trial" from rtx to rtx_insn *.
9187         (steal_delay_list_from_fallthrough): Strengthen return type and
9188         param "delay_list" from rtx to rtx_insn_list *.  Strengthen param
9189         "seq" from rtx to rtx_sequence *.  Use methods of rtx_sequence.
9190         Strengthen local "trial" from rtx to rtx_insn *.
9191         (try_merge_delay_insns): Strength local "merged_insns" from rtx
9192         to rtx_insn_list * and use its methods.  Strengthen local "pat"
9193         from rtx to rtx_sequence * and use its methods.  Strengthen locals
9194         "dtrial" and "new_rtx" from rtx to rtx_insn *.
9195         (get_label_before): Strengthen return type and local "label" from
9196         rtx to rtx_insn *.
9197         (fill_simple_delay_slots): Likewise for locals "insn", "trial",
9198         "next_trial", "next", prev".  Strengthen local "delay_list" from
9199         rtx to rtx_insn_list *  Strengthen local "tmp" from rtx * to
9200         rtx_insn **.
9201         (follow_jumps): Strengthen return type, param "label" and locals
9202         "insn", "next", "value", "this_label" from rtx to rtx_insn *.
9203         (fill_slots_from_thread): Strengthen return type, param
9204         "delay_list" from rtx to rtx_insn_list *.  Strengthen params
9205         "insn", "thread", "opposite_thread" and locals "new_thread",
9206         "trial", "temp", "ninsn" from rtx to rtx_insn *.  Introduce local
9207         "sequence" from a checked cast to rtx_sequence so that we can call
9208         steal_delay_list_from_target and steal_delay_list_from_fallthrough
9209         with an rtx_sequence *.
9210         (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
9211         "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
9212         Strengthen local "delay_list" from rtx to rtx_insn_list *.
9213         (relax_delay_slots): Strengthen param "first" and locals "insn",
9214         "next", "trial", "delay_insn", "target_label" from rtx to
9215         rtx_insn *.  Strengthen local "pat" from rtx to rtx_sequence *.
9216         Introduce a local "trial_seq" for PATTERN (trial) of type
9217         rtx_sequence *, in both cases using methods of rtx_sequence.
9218         (dbr_schedule): Strengthen param "first" and locals "insn",
9219         "next", "epilogue_insn" from rtx to rtx_insn *.
9220
9221 2014-08-28  Richard Biener  <rguenther@suse.de>
9222
9223         PR tree-optimization/62283
9224         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9225         Do not peel loops for alignment where the vector loop likely
9226         doesn't run at least VF times.
9227
9228 2014-08-28  Bin Cheng  <bin.cheng@arm.com>
9229
9230         * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
9231         important_candidates.  Consider all important candidates if
9232         IVS doesn't give any result.  Remove check on ivs->upto.
9233         (try_add_cand_for): Call iv_ca_add_use only once.
9234
9235 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9236             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9237             Anna Tikhonova  <anna.tikhonova@intel.com>
9238             Ilya Tocar  <ilya.tocar@intel.com>
9239             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9240             Ilya Verbin  <ilya.verbin@intel.com>
9241             Kirill Yukhin  <kirill.yukhin@intel.com>
9242             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9243
9244         (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
9245         (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
9246         masking.
9247         (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
9248         (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
9249         (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
9250         (define_insn "*mul<mode>3"): Add EVEX version.
9251
9252 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9253             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9254             Anna Tikhonova  <anna.tikhonova@intel.com>
9255             Ilya Tocar  <ilya.tocar@intel.com>
9256             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9257             Ilya Verbin  <ilya.verbin@intel.com>
9258             Kirill Yukhin  <kirill.yukhin@intel.com>
9259             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9260
9261         * config/i386/sse.md
9262         (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
9263         (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
9264         (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
9265         (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
9266         (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
9267         (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
9268         (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
9269         (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
9270         (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
9271         (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
9272         (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
9273         (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
9274         (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
9275         (define_insn "vec_interleave_highv16qi<mask_name>"): New.
9276         (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
9277         (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
9278
9279 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9280             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9281             Anna Tikhonova  <anna.tikhonova@intel.com>
9282             Ilya Tocar  <ilya.tocar@intel.com>
9283             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9284             Ilya Verbin  <ilya.verbin@intel.com>
9285             Kirill Yukhin  <kirill.yukhin@intel.com>
9286             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9287
9288         * config/i386/sse.md
9289         (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
9290         (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
9291         (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
9292
9293 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9294             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9295             Anna Tikhonova  <anna.tikhonova@intel.com>
9296             Ilya Tocar  <ilya.tocar@intel.com>
9297             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9298             Ilya Verbin  <ilya.verbin@intel.com>
9299             Kirill Yukhin  <kirill.yukhin@intel.com>
9300             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9301
9302         * config/i386/sse.md
9303         (define_mode_iterator VI128_256): New.
9304         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
9305
9306 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9307             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9308             Anna Tikhonova  <anna.tikhonova@intel.com>
9309             Ilya Tocar  <ilya.tocar@intel.com>
9310             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9311             Ilya Verbin  <ilya.verbin@intel.com>
9312             Kirill Yukhin  <kirill.yukhin@intel.com>
9313             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9314
9315         * config/i386/sse.md
9316         (define_mode_iterator VI8_256_512): New.
9317         (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
9318         Ditto.
9319         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
9320         (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
9321         Ditto.
9322         (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
9323
9324 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9325
9326         * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx.  Remove the
9327         pointer to the cumulative reloc value and return the value for
9328         this reloc instead.
9329         (compute_reloc_for_rtx): Take a const_rtx.  Call
9330         compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
9331         avoiding any recursion.  Use FOR_EACH_SUBRTX rather than
9332         for_each_rtx for the CONST case.
9333
9334 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9335
9336         * varasm.c (mark_constant): Replace this for_each_rtx callback with...
9337         (mark_constants_in_pattern): ...this new function to iterate over
9338         all the subrtxes.
9339         (mark_constants): Update accordingly.
9340
9341 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9342
9343         * varasm.c: Include rtl-iter.h.
9344         (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
9345         Remove the pointer to the cumulative hashval_t and just return
9346         the hash for this rtx instead.  Remove recursive CONST_VECTOR case.
9347         (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9348         Accumulate the hashval_ts here instead of const_rtx_hash_1.
9349
9350 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9351
9352         * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
9353         Give real type of data parameter.  Remove return value.
9354         (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
9355         to iterate over subrtxes.
9356
9357 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9358
9359         * var-tracking.c (use_narrower_mode_test): Turn from being a
9360         for_each_rtx callback to being a function that examines each
9361         subrtx itself.
9362         (adjust_mems): Update accordingly.
9363
9364 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9365
9366         * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
9367         callback to being a function that examines each subrtx itself.
9368         Remove handling of null rtxes.
9369         (add_uses): Update accordingly.
9370
9371 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9372
9373         * var-tracking.c: Include rtl-iter.h.
9374         (rtx_debug_expr_p): Turn from being a for_each_rtx callback
9375         to being a function that examines each subrtx itself.
9376         (use_type): Update accordingly.
9377
9378 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9379
9380         * store-motion.c: Include rtl-iter.h.
9381         (extract_mentioned_regs_1): Delete.
9382         (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
9383         for_each_rtx to iterate over subrtxes.
9384
9385 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9386
9387         * sel-sched.c: Include rtl-iter.h
9388         (count_occurrences_1): Delete.
9389         (count_occurrences_equiv): Turn rtxes into const_rtxes.
9390         Use FOR_EACH_SUBRTX rather than for_each_rtx.
9391
9392 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9393
9394         * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
9395         * rtlanal.c (tls_referenced_p_1): Delete.
9396         (tls_referenced_p): Take a const_rtx rather than an rtx.
9397         Use FOR_EACH_SUBRTX rather than for_each_rtx.
9398
9399 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9400
9401         * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
9402         (for_each_inc_dec): Take an rtx rather than an rtx *.
9403         * cselib.c (cselib_record_autoinc_cb): Update accordingly.
9404         (cselib_record_sets): Likewise.
9405         * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
9406         (check_for_inc_dec): Likewise.
9407         * rtlanal.c (for_each_inc_dec_ops): Delete.
9408         (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
9409         rather than a pointer to the memory address.  Replace
9410         for_each_inc_dec_ops argument with separate function and data
9411         arguments.  Abort on non-autoinc addresses.
9412         (for_each_inc_dec_find_mem): Delete.
9413         (for_each_inc_dec): Take an rtx rather than an rtx *.  Use
9414         FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
9415
9416 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9417
9418         * rtl.h (find_all_hard_regs): Declare.
9419         * rtlanal.c (find_all_hard_regs): New function.
9420         (record_hard_reg_uses_1): Delete.
9421         (record_hard_reg_uses): Use find_all_hard_regs.
9422
9423 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9424
9425         * rtl.h (replace_label_data): Delete.
9426         (replace_label): Take the old label, new label and update-nuses flag
9427         as direct arguments.  Return void.
9428         * cfgcleanup.c (outgoing_edges_match): Update accordingly.
9429         * rtlanal.c (replace_label): Update interface as above.  Handle
9430         JUMP_TABLE_DATA as a special case.  Handle JUMPs outside the
9431         iterator.  Use FOR_EACH_SUBRTX_PTR.
9432
9433 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9434
9435         * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
9436         with const_rtx parameters.
9437         * varasm.c (get_pool_constant): Likewise.
9438         * rtlanal.c (rtx_referenced_p_1): Delete.
9439         (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9440         Assert that the rtx we're looking for is nonnull.  Allow searches
9441         for constant pool SYMBOL_REFs.
9442
9443 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9444
9445         * reload1.c: Include rtl-iter.h.
9446         (note_reg_elim_costly): Turn from being a for_each_rtx callback
9447         to being a function that examines each subrtx itself.
9448         (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
9449
9450 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9451
9452         * regcprop.c (cprop_find_used_regs_1): Delete.
9453         (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9454
9455 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9456
9457         * regcprop.c: Include rtl-iter.h.
9458         (kill_value): Take a const_rtx.
9459         (kill_autoinc_value): Turn from being a for_each_rtx callback
9460         to being a function that examines each subrtx itself.
9461         (copyprop_hardreg_forward_1): Update accordingly.
9462
9463 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9464
9465         * reg-stack.c: Include rtl-iter.h.
9466         (subst_stack_regs_in_debug_insn): Delete.
9467         (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
9468         instead of for_each_rtx.
9469
9470 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9471
9472         * lower-subreg.c (find_decomposable_subregs): Turn from being
9473         a for_each_rtx callback to being a function that examines each
9474         subrtx itself.  Remove handling of null rtxes.
9475         (decompose_multiword_subregs): Update accordingly.
9476
9477 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9478
9479         * lower-subreg.c (adjust_decomposed_uses): Delete.
9480         (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
9481         Remove handling of null rtxes.
9482
9483 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9484
9485         * lower-subreg.c: Include rtl-iter.h.
9486         (resolve_subreg_use): Turn from being a for_each_rtx callback
9487         to being a function that examines each subrtx itself.  Remove
9488         handling of null rtxes.
9489         (resolve_reg_notes, resolve_simple_move): Update accordingly.
9490         (decompose_multiword_subregs): Likewise.
9491
9492 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9493
9494         * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
9495         to being a function that examines each subrtx itself.
9496         (simplify_using_condition, simplify_using_initial_values): Update
9497         accordingly.
9498
9499 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9500
9501         * loop-iv.c: Include rtl-iter.h.
9502         (find_single_def_src): New function.
9503         (replace_single_def_regs): Turn from being a for_each_rtx callback
9504         to being a function that examines each subrtx itself.
9505         (replace_in_expr, simplify_using_initial_values): Update accordingly.
9506
9507 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9508
9509         * jump.c (eh_returnjump_p_1): Delete.
9510         (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
9511         Remove handling of null rtxes.
9512
9513 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9514
9515         * jump.c: Include rtl-iter.h.
9516         (returnjump_p_1): Delete.
9517         (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
9518         Remove handling of null rtxes.
9519
9520 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9521
9522         * ira.c: Include rtl-iter.h.
9523         (set_paradoxical_subreg): Turn from being a for_each_rtx callback
9524         to being a function that examines each subrtx itself.  Remove
9525         handling of null rtxes.
9526         (update_equiv_regs): Update call accordingly.
9527
9528 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9529
9530         * fwprop.c: Include rtl-iter.h.
9531         (varying_mem_p): Turn from being a for_each_rtx callback to being
9532         a function that examines each subrtx itself.
9533         (propagate_rtx): Update accordingly.
9534
9535 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9536
9537         * function.c: Include rtl-iter.h
9538         (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
9539         callback to being a function that examines each subrtx itself.
9540         Return the changed flag.
9541         (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
9542         (instantiate_virtual_regs): Update calls accordingly.
9543
9544 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9545
9546         * final.c: Include rtl-iter.h.
9547         (mark_symbol_ref_as_used): Delete.
9548         (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
9549         for_each_rtx.
9550
9551 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9552
9553         * emit-rtl.c: Include rtl-iter.h.
9554         (find_auto_inc): Turn from being a for_each_rtx callback to being
9555         a function that examines each subrtx itself.  Assume the first operand
9556         to an RTX_AUTOINC is the automodified register.
9557         (try_split): Update call accordingly.
9558
9559 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9560
9561         * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
9562         Return a bool, inverting the result so that 0/false means "not ok".
9563         Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
9564         subrtxes of a CONST.
9565         (mem_loc_descriptor, add_const_value_attribute)
9566         (resolve_addr_in_expr): Update calls accordingly.
9567
9568 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9569
9570         * dwarf2out.c: Include rtl-iter.h.
9571         (const_ok_for_output_1): Take the rtx instead of a pointer to it.
9572         Remove unused data parameter.  Return a bool, inverting the result
9573         so that 0/false means "not ok".
9574         (const_ok_for_output): Update accordingly.  Use FOR_EACH_SUBRTX_VAR
9575         instead of for_each_rtx.
9576
9577 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9578
9579         * dse.c: Include rtl-iter.h.
9580         (check_mem_read_rtx): Change void * parameter to real type.
9581         Remove return value.
9582         (check_mem_read_use): Fix comment.  Use FOR_EACH_SUBRTX_PTR instead of
9583         for_each_rtx.  Don't handle null rtxes.
9584
9585 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9586
9587         * df-problems.c: Include rtl-iter.h.
9588         (find_memory): Turn from being a for_each_rtx callback to being
9589         a function that examines each subrtx itself.  Continue to look for
9590         volatile references even after a nonvolatile one has been found.
9591         (can_move_insns_across): Update calls accordingly.
9592
9593 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9594
9595         * ddg.c (walk_mems_2, walk_mems_1): Delete.
9596         (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
9597         to iterate over subrtxes.  Return a bool rather than an int.
9598
9599 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9600
9601         * ddg.c: Include rtl-iter.h.
9602         (mark_mem_use_1): Rename to...
9603         (mark_mem_use): ...deleting old mark_mem_use.  Use FOR_EACH_SUBRTX
9604         instead of for_each_rtx.
9605         (mem_read_insn_p): Update accordingly.
9606
9607 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9608
9609         * cse.c (change_cc_mode_args): Delete.
9610         (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
9611         a function that examines each subrtx itself.  Take the fields of
9612         change_cc_mode_args as argument and return void.
9613         (cse_change_cc_mode_insn): Update calls accordingly.
9614
9615 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9616
9617         * cse.c (is_dead_reg): Change argument to const_rtx.
9618         (dead_debug_insn_data): Delete.
9619         (is_dead_debug_insn): Expand commentary.  Turn from being a
9620         for_each_rtx callback to being a function that examines
9621         each subrtx itself.  Take the fields of dead_debug_insn_data
9622         as argument.
9623         (delete_trivially_dead_insns): Update call accordingly.
9624
9625 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9626
9627         * cse.c (check_for_label_ref): Move earlier in file.  Turn from
9628         being a for_each_rtx callback to being a function that examines
9629         each subrtx itself.
9630         (cse_extended_basic_block): Update call accordingly.
9631
9632 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9633
9634         * cse.c (check_dependence_data): Delete.
9635         (check_dependence): Change from being a for_each_rtx callback to being
9636         a function that examines all subrtxes itself.  Don't handle null rtxes.
9637         (invalidate): Update call accordingly.
9638
9639 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9640
9641         * cse.c: Include rtl-iter.h.
9642         (approx_reg_cost_1): Delete.
9643         (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9644         Don't handle null rtxes.
9645
9646 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9647
9648         * cfgcleanup.c: Include rtl-iter.h.
9649         (mentions_nonequal_regs): Turn from being a for_each_rtx callback
9650         to being a function that examines each subrtx itself.
9651         (thread_jump): Update accordingly.
9652
9653 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9654
9655         * combine-stack-adj.c: Include rtl-iter.h.
9656         (record_stack_refs_data): Delete.
9657         (record_stack_refs): Turn from being a for_each_rtx callback
9658         to being a function that examines each subrtx itself.
9659         Take a pointer to the reflist.  Invert sense of return value
9660         so that true means success and false means failure.  Don't
9661         handle null rtxes.
9662         (combine_stack_adjustments_for_block): Update accordingly.
9663
9664 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9665
9666         * combine.c (record_truncated_value): Turn from being a for_each_rtx
9667         callback to a function that takes an rtx and returns a bool
9668         (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
9669         for_each_rtx.
9670
9671 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9672
9673         * combine.c: Include rtl-iter.h.
9674         (unmentioned_reg_p_1): Delete.
9675         (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
9676         Don't handle null rtxes.
9677
9678 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9679
9680         * calls.c: Include rtl-iter.h.
9681         (internal_arg_pointer_based_exp_1): Delete.
9682         (internal_arg_pointer_based_exp): Take a const_rtx.
9683         Use FOR_EACH_SUBRTX to iterate over subrtxes.
9684
9685 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9686
9687         * caller-save.c: Include rtl-iter.h.
9688         (add_used_regs_1): Delete.
9689         (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
9690         to iterate over subrtxes.  Assert that any remaining pseudos
9691         have been spilled.
9692
9693 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9694
9695         * bt-load.c: Include rtl-iter.h.
9696         (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
9697         (find_btr_use): Move further up file.  Use FOR_EACH_SUBRTX_PTR
9698         to iterate over subrtxes.
9699         (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
9700         find_btr_use rather than btr_referenced_p.
9701
9702 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9703
9704         * alias.c: Include rtl-iter.h.
9705         (refs_newer_value_cb): Delete.
9706         (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9707
9708 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9709
9710         * rtl-iter.h: New file.
9711         * rtlanal.c: Include it.
9712         (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
9713         (generic_subrtx_iterator <T>::add_single_to_queue)
9714         (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
9715         (generic_subrtx_iterator <T>::free_array): New functions.
9716         (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
9717         (generic_subrtx_iterator <const_rtx_accessor>)
9718         (generic_subrtx_iterator <rtx_var_accessor>
9719         (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
9720         (setup_reg_subrtx_bounds): New function.
9721         (init_rtlanal): Call it.
9722
9723 2014-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
9724
9725         PR target/62261
9726         * config/sh/sh.md (ashlsi3): Handle negative shift count for
9727         TARGET_SHMEDIA.
9728         (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
9729
9730 2014-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
9731
9732         * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
9733
9734 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9735
9736         * rtl.h (JUMP_LABEL_AS_INSN): New.
9737
9738 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9739
9740         * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
9741         rtx_expr_list **.
9742         (alloc_EXPR_LIST): Strengthen return type from rtx to
9743         rtx_expr_list *.
9744         (remove_free_EXPR_LIST_node): Likewise for param.
9745         * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
9746         from rtx to rtx_expr_list *.
9747         * sched-int.h (struct deps_desc): Strengthen fields
9748         "pending_read_mems" and "pending_write_mems" from rtx to
9749         rtx_expr_list *.
9750
9751         * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
9752         rtx to rtx_expr_list *.
9753         * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
9754         (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
9755         rtx_expr_list **.
9756         (remove_free_EXPR_LIST_node): Likewise.  Strengthen local "node"
9757         from rtx to rtx_expr_list *.
9758         * loop-iv.c (simplify_using_initial_values): Strengthen local
9759         "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
9760         "pnote_next" from rtx * to rtx_expr_list **.
9761         * sched-deps.c (remove_from_both_dependence_lists):  Strengthen
9762         param "exprp" from rtx * to rtx_expr_list **.
9763         (add_insn_mem_dependence): Strengthen local "mem_list" from
9764         rtx * to rtx_expr_list **.  Strengthen local "mem_node" from rtx
9765         to rtx_expr_list *.
9766         * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
9767         and local "new_mems" from rtx to rtx_expr_list *.  Strengthen
9768         param "old_mems_p" from rtx * to rtx_expr_list **.
9769         * var-tracking.c (struct adjust_mem_data): Strengthen field
9770         "side_effects" from rtx to rtx_expr_list *.
9771         (adjust_insn): Replace NULL_RTX with NULL when assigning to
9772         rtx_expr_list *.
9773         (prepare_call_arguments): Likewise.
9774
9775 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9776
9777         * function.h (struct rtl_data): Strengthen field
9778         "x_stack_slot_list" from rtx to rtx_expr_list *.
9779
9780         * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
9781         when assigning to stack_slot_list.
9782
9783 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9784
9785         * function.h (struct rtl_data): Strengthen field
9786         x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
9787         * rtl.h (remove_node_from_expr_list): Strengthen second param from
9788         rtx * to rtx_expr_list **.
9789
9790         * cfgbuild.c (make_edges): In loop over
9791         nonlocal_goto_handler_labels, strengthen local "x" from rtx to
9792         rtx_expr_list *, and use methods of the latter class to clarify
9793         the code.
9794         * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
9795         rtx_expr_list *, and use methods of the latter class to clarify
9796         the code.
9797         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
9798         * reload1.c (set_initial_label_offsets): Likewise for local "x".
9799         * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
9800         from rtx * to rtx_expr_list **.  Strengthen local "temp" from rtx
9801         to rtx_expr_list *.  Use methods of the latter class to clarify
9802         the code.
9803
9804 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9805
9806         * function.h (struct expr_status): Strengthen field
9807         "x_forced_labels" from rtx to rtx_expr_list *.
9808
9809         * cfgbuild.c (make_edges): Split local "x" into two locals,
9810         strengthening one from rtx to rtx_expr_list *, and using methods
9811         of said class.
9812         * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
9813         loop over forced_labels, introduce strengthen it from rtx to
9814         rtx_expr_list *, using methods to clarify the code.
9815         * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
9816         to rtx_expr_list *, using methods of said class to clarify the
9817         code.
9818         * reload1.c (set_initial_label_offsets): Split local "x" into two
9819         per-loop variables, strengthening the first from rtx to
9820         rtx_expr_list * and using methods.
9821
9822 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9823
9824         * coretypes.h (class rtx_expr_list): Add forward declaration.
9825         * emit-rtl.c (gen_rtx_EXPR_LIST): New.
9826         * gengenrtl.c (special_rtx): Add EXPR_LIST.
9827         * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
9828         invariant: GET_CODE (X) == EXPR_LIST.
9829         (is_a_helper <rtx_expr_list *>::test): New.
9830         (rtx_expr_list::next): New.
9831         (rtx_expr_list::element): New.
9832         (gen_rtx_EXPR_LIST): New.
9833
9834 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9835
9836         * varasm.c (mark_constants): Convert a GET_CODE check into a
9837         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
9838         Use methods of rtx_sequence to clarify the code.
9839
9840 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9841
9842         * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
9843         local "seq" via a checked cast, and use methods of rtx_sequence
9844         to simplify the code.
9845
9846 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9847
9848         * resource.c (mark_referenced_resources): Strengthen local
9849         "sequence" from rtx to rtx_sequence *, adding a checked cast, and
9850         using methods of rtx_sequence to clarify the code.
9851         (find_dead_or_set_registers): Within the switch statement, convert
9852         a GET_CODE check to a dyn_cast, introducing local "seq".  Within
9853         the JUMP_P handling, introduce another local "seq", adding a
9854         checked cast to rtx_sequence *.  In both cases, use methods of
9855         rtx_sequence to clarify the code.
9856         (mark_set_resources): Within SEQUENCE case, introduce local "seq"
9857         via a checked cast, and use methods of rtx_sequence to simplify
9858         the code.
9859
9860 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9861
9862         * reorg.c (redundant_insn): In two places in the function, replace
9863         a check of GET_CODE with a dyn_cast, introducing local "seq", and
9864         usings methods of rtx_sequence to clarify the code.
9865
9866 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9867
9868         * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
9869         local "seq" with a checked cast, and use methods of rtx_sequence
9870         to clarify the code.
9871
9872 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9873
9874         * function.c (contains): Introduce local "seq" for PATTERN (insn),
9875         with a checked cast, in the region for where we know it's a
9876         SEQUENCE.  Use methods of rtx_sequence.
9877
9878 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9879
9880         * final.c (get_attr_length_1): Replace GET_CODE check with a
9881         dyn_cast, introducing local "seq" and the use of methods of
9882         rtx_sequence.
9883         (shorten_branches): Likewise, introducing local "body_seq".
9884         Strengthen local "inner_insn" from rtx to rtx_insn *.
9885         (reemit_insn_block_notes): Replace GET_CODE check with a
9886         dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
9887         Use methods of rtx_sequence.
9888         (final_scan_insn): Likewise, introducing local "seq" for when
9889         "body" is known to be a SEQUENCE, using its methods.
9890
9891 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9892
9893         * except.c (can_throw_external): Strengthen local "seq" from rtx
9894         to rtx_sequence *.  Use methods of rtx_sequence.
9895         (insn_nothrow_p): Likewise.
9896
9897 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9898
9899         * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
9900         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
9901         Use methods of rtx_sequence.
9902         (scan_trace): Likewise for local "pat".
9903
9904 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9905
9906         * coretypes.h (class rtx_sequence): Add forward declaration.
9907         * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
9908         invariant: GET_CODE (X) == SEQUENCE.
9909         (is_a_helper <rtx_sequence *>::test): New.
9910         (is_a_helper <const rtx_sequence *>::test): New.
9911         (rtx_sequence::len): New.
9912         (rtx_sequence::element): New.
9913         (rtx_sequence::insn): New.
9914
9915 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9916
9917         * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
9918         rtx_insn_list **.
9919         (alloc_INSN_LIST): Strengthen return type from rtx to
9920         rtx_insn_list *.
9921         (copy_INSN_LIST): Likewise for return type and param.
9922         (concat_INSN_LIST): Likewise for both params and return type.
9923         (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
9924         rtx_insn *.  Strengthen second param from rtx * to rtx_insn_list **.
9925         (remove_free_INSN_LIST_node): Strenghten return type from rtx to
9926         rtx_insn *.  Strengthen param from rtx * to rtx_insn_list **.
9927
9928         * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
9929         "implicit_sets", "control_uses", "clobbers" from rtx to
9930         rtx_insn_list *.
9931         (struct deps_desc): Likewise for fields "pending_read_insns",
9932         "pending_write_insns", "pending_jump_insns",
9933         "last_pending_memory_flush", "last_function_call",
9934         "last_function_call_may_noreturn", "sched_before_next_call",
9935         "sched_before_next_jump".
9936         (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
9937         (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
9938
9939         * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
9940         from rtx to rtx_insn_list *.
9941         (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
9942         rtx_insn_list *.
9943
9944         * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
9945         to rtx_insn_list **.
9946         (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
9947         rtx_insn_list *.
9948         (queue_insn): Likewise for local "link".
9949         (struct haifa_saved_data): Strengthen field "insn_queue" from
9950         rtx * to rtx_insn_list **.
9951         (save_backtrack_point): Update allocation of save->insn_queue to
9952         reflect the strengthening of elements from rtx to rtx_insn_list *.
9953         (queue_to_ready): Strengthen local "link" from rtx to
9954         rtx_insn_list *; use methods "next" and "insn" when traversing the
9955         list.
9956         (early_queue_to_ready): Likewise for locals "link", "next_link",
9957         "prev_link".
9958         (schedule_block): Update allocation of insn_queue to reflect the
9959         strengthening of elements from rtx to rtx_insn_list *.  Strengthen
9960         local "link" from rtx to rtx_insn_list *, and use methods when
9961         working it.
9962         (add_to_speculative_block): Strengthen locals "twins" and
9963         "next_node" from rtx to rtx_insn_list *, and use methods when
9964         working with them.  Strengthen local "twin" from rtx to
9965         rtx_insn *, eliminating a checked cast.
9966         (fix_recovery_deps): Strengthen locals "ready_list" and "link"
9967         from rtx to rtx_insn_list *, and use methods when working with
9968         them.
9969
9970         * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
9971         from rtx to rtx_insn_list *, adding a checked cast.
9972         (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
9973         rtx_insn_list **.
9974         (copy_INSN_LIST): Strengthen return type and locals "new_queue",
9975         "newlink" from rtx to rtx_insn_list *.  Strengthen local
9976         "pqueue" from rtx * to rtx_insn_list **.  Strengthen local "x"
9977         from rtx to rtx_insn *.
9978         (concat_INSN_LIST): Strengthen return type and local "new_rtx",
9979         from rtx to rtx_insn_list *.  Use methods of the latter class.
9980         (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
9981         rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
9982         (remove_free_INSN_LIST_node): Strengthen return type and local
9983         "elem" from rtx to rtx_insn *.  Strenghten param "listp" from
9984         rtx * to rtx_insn_list **.  Strengthen local "node" from rtx to
9985         rtx_insn_list *, using "insn" method.
9986
9987         * sched-deps.c (add_dependence_list):  Strengthen param "list"
9988         from rtx to rtx_insn_list *, and use methods when working with it.
9989         (add_dependence_list_and_free):  Strengthen param "listp" from
9990         rtx * to rtx_insn_list **.
9991         (remove_from_dependence_list): Strenghten param "listp" from rtx *
9992         to rtx_insn_list **, and use methods when working with *listp.
9993         (remove_from_both_dependence_lists): Strengthen param "listp" from
9994         rtx * to rtx_insn_list **
9995         (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
9996         to rtx_insn_list **.  Eliminate local "link", in favor of two new
9997         locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
9998         respectively.
9999         (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
10000         by introducing local "cond_deps".
10001         (remove_from_deps): Strengthen param "insn" from rtx to
10002         rtx_insn *.
10003
10004         * sched-rgn.c (concat_insn_mem_list): Strengthen param
10005         "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
10006         Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
10007         Use methods of rtx_insn_list.
10008
10009         * store-motion.c (struct st_expr): Strengthen fields
10010         "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
10011         (st_expr_entry): Replace NULL_RTX with NULL when dealing with
10012         rtx_insn_list *.
10013         (find_moveable_store): Split out "tmp" into multiple more-tightly
10014         scoped locals.  Use methods of rtx_insn_list *.
10015         (compute_store_table): Strengthen local "tmp" from rtx to
10016         rtx_insn *.  Use methods of rtx_insn_list *.
10017
10018 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
10019
10020         * coretypes.h (class rtx_insn_list): Add forward declaration.
10021         * rtl.h (class rtx_insn_list): New subclass of rtx_def
10022         (is_a_helper <rtx_insn_list *>::test): New.
10023         (rtx_insn_list::next): New.
10024         (rtx_insn_list::insn): New.
10025         (gen_rtx_INSN_LIST): Add prototype.
10026         * emit-rtl.c (gen_rtx_INSN_LIST): New.
10027         * gengenrtl.c (special_rtx): Add INSN_LIST.
10028
10029 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
10030
10031         * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
10032         "prev" from rtx to rtx_insn *.
10033
10034 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
10035
10036         * rtl.h (INSN_UID): Convert from a macro to a pair of inline
10037         functions.  Require merely an rtx for now, not an rtx_insn *.
10038         (BLOCK_FOR_INSN): Likewise.
10039         (INSN_LOCATION): Likewise.
10040         (INSN_HAS_LOCATION): Convert from a macro to an inline function.
10041
10042 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
10043
10044         * rtl.h (PATTERN): Convert this macro into a pair of inline
10045         functions, for now, requiring const_rtx and rtx.
10046
10047 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
10048
10049         * target.def (unwind_emit): Strengthen param "insn" from rtx to
10050         rtx_insn *.
10051         (final_postscan_insn): Likewise.
10052         (adjust_cost): Likewise.
10053         (adjust_priority): Likewise.
10054         (variable_issue): Likewise.
10055         (macro_fusion_pair_p): Likewise.
10056         (dfa_post_cycle_insn): Likewise.
10057         (first_cycle_multipass_dfa_lookahead_guard): Likewise.
10058         (first_cycle_multipass_issue): Likewise.
10059         (dfa_new_cycle): Likewise.
10060         (adjust_cost_2): Likewise for params "insn" and "dep_insn".
10061         (speculate_insn): Likewise for param "insn".
10062         (gen_spec_check): Likewise for params "insn" and "label".
10063         (get_insn_spec_ds): Likewise for param "insn".
10064         (get_insn_checked_ds): Likewise.
10065         (dispatch_do): Likewise.
10066         (dispatch): Likewise.
10067         (cannot_copy_insn_p): Likewise.
10068         (invalid_within_doloop): Likewise.
10069         (legitimate_combined_insn): Likewise.
10070         (needed): Likewise.
10071         (after): Likewise.
10072
10073         * doc/tm.texi: Automatically updated to reflect changes to
10074         target.def.
10075
10076         * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
10077         working with insn.
10078         (schedule_block): Likewise.
10079         (sched_init): Likewise.
10080         (sched_speculate_insn): Strengthen param "insn" from rtx to
10081         rtx_insn *.
10082         (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
10083         working with insn.
10084         * hooks.c (hook_bool_rtx_true): Rename to...
10085         hook_bool_rtx_insn_true): ...this, and strengthen first param from
10086         rtx to rtx_insn *.
10087         (hook_constcharptr_const_rtx_null): Rename to...
10088         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
10089         first param from const_rtx to const rtx_insn *.
10090         (hook_bool_rtx_int_false): Rename to...
10091         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
10092         param from rtx to rtx_insn *.
10093         (hook_void_rtx_int): Rename to...
10094         (hook_void_rtx_insn_int): ...this, and strengthen first param from
10095         rtx to rtx_insn *.
10096
10097         * hooks.h (hook_bool_rtx_true): Rename to...
10098         (hook_bool_rtx_insn_true): ...this, and strengthen first param from
10099         rtx to rtx_insn *.
10100         (hook_bool_rtx_int_false): Rename to...
10101         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
10102         param from rtx to rtx_insn *.
10103         (hook_void_rtx_int): Rename to...
10104         (hook_void_rtx_insn_int): ...this, and strengthen first param from
10105         rtx to rtx_insn *.
10106         (hook_constcharptr_const_rtx_null): Rename to...
10107         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
10108         first param from const_rtx to const rtx_insn *.
10109
10110         * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
10111         and local "prev" from rtx to rtx_insn *.
10112
10113         * sched-int.h (sched_speculate_insn): Strengthen first param from
10114         rtx to rtx_insn *.
10115
10116         * sel-sched.c (create_speculation_check): Likewise for local "label".
10117         * targhooks.c (default_invalid_within_doloop): Strengthen param
10118         "insn" from const_rtx to const rtx_insn *.
10119         * targhooks.h (default_invalid_within_doloop): Strengthen param
10120         from const_rtx to const rtx_insn *.
10121
10122         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
10123         (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
10124
10125         * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
10126         "insn".
10127         (arc_invalid_within_doloop): Likewise, with const.
10128
10129         * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
10130         (arm_cannot_copy_insn_p): Likewise for param "insn".
10131         (arm_unwind_emit): Likewise.
10132
10133         * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
10134         "dep_insn".
10135
10136         * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
10137         (c6x_variable_issue): Likewise.  Removed now-redundant checked
10138         cast.
10139         (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
10140
10141         * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
10142         Likewise for param "insn".
10143         (epiphany_mode_after): Likewise.
10144         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
10145         params "insn", "dep_insn".
10146         (epiphany_mode_needed): Likewise for param "insn".
10147         (epiphany_mode_after): Likewise.
10148
10149         * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
10150         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
10151         (ix86_avx_u128_mode_needed): Likewise.
10152         (ix86_i387_mode_needed): Likewise.
10153         (ix86_mode_needed): Likewise.
10154         (ix86_avx_u128_mode_after): Likewise.
10155         (ix86_mode_after): Likewise.
10156         (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
10157         (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
10158         (ix86_adjust_priority): Likewise for param "insn".
10159         (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
10160         (do_dispatch): Likewise.
10161         (has_dispatch): Likewise.
10162         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
10163
10164         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
10165         reflect renaming of default hook implementation from
10166         hook_constcharptr_const_rtx_null to
10167         hook_constcharptr_const_rtx_insn_null.
10168         (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
10169         rtx to rtx_insn *.
10170         (ia64_variable_issue): Likewise for param "insn".
10171         (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
10172         (ia64_dfa_new_cycle): Likewise.
10173         (ia64_get_insn_spec_ds): Likewise.
10174         (ia64_get_insn_checked_ds): Likewise.
10175         (ia64_speculate_insn): Likewise.
10176         (ia64_gen_spec_check): Likewise for params "insn", "label".
10177         (ia64_asm_unwind_emit): Likewise for param "insn".
10178
10179         * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
10180
10181         * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
10182         "insn", "def_insn".
10183         (m68k_sched_variable_issue): Likewise for param "insn".
10184
10185         * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
10186         "def_insn".
10187
10188         * config/microblaze/microblaze.c (microblaze_adjust_cost):
10189         Likewise for params "insn", "dep".
10190
10191         * config/mips/mips.c (mips_adjust_cost): Likewise.
10192         (mips_variable_issue): Likewise for param "insn".
10193         (mips_final_postscan_insn): Likewise.
10194
10195         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
10196         for params "insn", "dep".
10197
10198         * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
10199         "dep_insn".
10200         (pa_adjust_priority): Likewise for param "insn".
10201
10202         * config/picochip/picochip.c (picochip_sched_adjust_cost):
10203         Likewise for params "insn", "dep_insn".
10204
10205         * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
10206         param "insn".
10207         (rs6000_variable_issue): Likewise.
10208         (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
10209         (rs6000_debug_adjust_cost): Likewise.
10210         (rs6000_adjust_priority): Likewise for param "insn".
10211         (rs6000_use_sched_lookahead_guard): Likewise.
10212         (get_next_active_insn): Likewise for return type and both params.
10213         (redefine_groups): Likewise for params "prev_head_insn", "tail"
10214         and locals "insn", "next_insn".
10215         (pad_groups): Likewise.
10216
10217         * config/s390/s390.c (s390_adjust_priority): Likewise for param
10218         "insn".
10219         (s390_cannot_copy_insn_p): Likewise.
10220         (s390_sched_variable_issue): Likewise for third param, eliminating
10221         checked cast.
10222         (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
10223         default hook implementation from hook_constcharptr_const_rtx_null
10224         to hook_constcharptr_const_rtx_insn_null.
10225
10226         * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
10227         from rtx to rtx_insn *.
10228         (sh_adjust_cost): Likewise for params "insn", "dep_insn".
10229         (sh_variable_issue): Likewise for param "insn".
10230         (sh_dfa_new_cycle): Likewise.
10231         (sh_mode_needed): Likewise.
10232         (sh_mode_after): Likewise.
10233
10234         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
10235         params "insn", "dep_insn".
10236         (hypersparc_adjust_cost): Likewise.
10237         (sparc_adjust_cost): Likewise.
10238
10239         * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
10240         param, eliminated checked cast.
10241         (spu_sched_adjust_cost): Likewise for first and third params.
10242
10243         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
10244         params "insn" and "dep_insn" from rtx to rtx_insn *.
10245
10246         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
10247
10248 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
10249
10250         * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
10251         (set_is_load_p): ...this, updating to work on a SET pattern rather
10252         than an insn.
10253         (is_store_insn): Rename to...
10254         (set_is_store_p): ...this, updating to work on a SET pattern
10255         rather than an insn.
10256         (mn10300_adjust_sched_cost): Move call to get_attr_timings from
10257         top of function to where it is needed.  Rewrite the bogus
10258         condition that checks for "insn" and "dep" being PARALLEL to
10259         instead use single_set, introducing locals "insn_set" and
10260         "dep_set".  Given that we only ever returned "cost" for a non-pair
10261         of SETs, bail out early if we don't have a pair of SET.
10262         Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
10263         use the new locals "insn_set" and "dep_set", and update calls to
10264         is_load_insn and is_store_insn to be calls to set_is_load_p and
10265         set_is_store_p.
10266
10267 2014-08-27  Guozhi Wei  <carrot@google.com>
10268
10269         PR target/62262
10270         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
10271         amount before using it.
10272
10273 2014-08-27  Richard Biener  <rguenther@suse.de>
10274
10275         * gimple-fold.c (get_maxval_strlen): Add overload wrapping
10276         get_maxval_strlen inside a more useful API.
10277         (gimple_fold_builtin_with_strlen): Remove and fold into ...
10278         (gimple_fold_builtin): ... caller.
10279         (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
10280         gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
10281         gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
10282         gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
10283         gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
10284         gimple_fold_builtin_sprintf): Adjust to compute maxval
10285         themselves.
10286
10287 2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
10288
10289         PR other/62248
10290         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
10291
10292 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10293             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10294             Anna Tikhonova  <anna.tikhonova@intel.com>
10295             Ilya Tocar  <ilya.tocar@intel.com>
10296             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10297             Ilya Verbin  <ilya.verbin@intel.com>
10298             Kirill Yukhin  <kirill.yukhin@intel.com>
10299             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10300
10301         * config/i386/sse.md
10302         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
10303         Use `concat_tg_mode' attribute to determine asm register size.
10304
10305 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10306             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10307             Anna Tikhonova  <anna.tikhonova@intel.com>
10308             Ilya Tocar  <ilya.tocar@intel.com>
10309             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10310             Ilya Verbin  <ilya.verbin@intel.com>
10311             Kirill Yukhin  <kirill.yukhin@intel.com>
10312             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10313
10314         * config/i386/sse.md
10315         (define_mode_iterator VI48_AVX512VL): New.
10316         (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
10317         (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
10318         (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
10319         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10320         with VI1): Change mode iterator.
10321         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10322         with VI_ULOADSTORE_BW_AVX512VL): New.
10323         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10324         with VI_ULOADSTORE_F_AVX512VL): Ditto.
10325         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10326         with VI1): Change mode iterator.
10327         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10328         with VI_ULOADSTORE_BW_AVX512VL): New.
10329         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10330         with VI_ULOADSTORE_F_AVX512VL): Ditto.
10331         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
10332         with VI1): Change mode iterator.
10333         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
10334         with VI_ULOADSTORE_BW_AVX512VL): New.
10335         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
10336         with VI_ULOADSTORE_BW_AVX512VL): Ditto.
10337         (define_insn "avx512f_storedqu<mode>_mask"): Delete.
10338         (define_insn "<avx512>_storedqu<mode>_mask" with
10339         VI48_AVX512VL): New.
10340         (define_insn "<avx512>_storedqu<mode>_mask" with
10341         VI12_AVX512VL): Ditto.
10342
10343 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10344             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10345             Anna Tikhonova  <anna.tikhonova@intel.com>
10346             Ilya Tocar  <ilya.tocar@intel.com>
10347             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10348             Ilya Verbin  <ilya.verbin@intel.com>
10349             Kirill Yukhin  <kirill.yukhin@intel.com>
10350             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10351
10352         * config/i386/sse.md
10353         (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
10354         (define_mode_iterator VI48_AVX512BW): New.
10355         (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
10356         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
10357         with VI48_AVX2_48_AVX512F): New.
10358         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
10359         with VI2_AVX512VL): Ditto.
10360
10361 2014-08-27  Richard Biener  <rguenther@suse.de>
10362
10363         PR middle-end/62239
10364         * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
10365         (fold_builtin_3): Do not fold strcat_chk here.
10366         * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
10367         from builtins.c.
10368         (gimple_fold_builtin): Fold strcat_chk here.
10369
10370 2014-08-26  Aldy Hernandez  <aldyh@redhat.com>
10371
10372         * dwarf2out.h (dwarf2out_decl): Remove prototype.
10373         * dwarf2out.c (dwarf2out_decl): Make static.
10374
10375 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
10376
10377         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
10378
10379 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10380
10381         * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
10382         from rtx to rtx_insn *.
10383         (cselib_lookup_from_insn): Likewise for final param.
10384         (cselib_subst_to_values_from_insn): Likewise.
10385         (cselib_add_permanent_equiv): Likewise.
10386
10387         * cselib.c (cselib_current_insn): Likewise for this variable.
10388         (cselib_subst_to_values_from_insn): Likewise for param "insn".
10389         (cselib_lookup_from_insn): Likewise.
10390         (cselib_add_permanent_equiv): Likewise for param "insn" and local
10391         "save_cselib_current_insn".
10392         (cselib_process_insn): Replace use of NULL_RTX with NULL.
10393
10394         * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
10395         from rtx to rtx_insn *.
10396
10397 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10398
10399         * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
10400         rtx_insn *.
10401
10402 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10403
10404         * df.h (df_dump_insn_problem_function): Strengthen first param of
10405         this callback from const_rtx to const rtx_insn *.
10406         (struct df_insn_info): Strengthen field "insn" from rtx to
10407         rtx_insn *.
10408         (DF_REF_INSN): Eliminate this function, reinstating the older
10409         macro definition.
10410         (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
10411         (df_reg_defined): Likewise.
10412         (df_find_use): Likewise.
10413         (df_reg_used): Likewise.
10414         (df_dump_insn_top): Strengthen param 1 from const_rtx to
10415         const rtx_insn *.
10416         (df_dump_insn_bottom): Likewise.
10417         (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
10418         (df_insn_debug_regno): Likewise.
10419         (debug_df_insn): Likewise.
10420         (df_rd_simulate_one_insn): Likewise for param 2.
10421         (df_word_lr_simulate_defs): Likewise for param 1.
10422         (df_word_lr_simulate_uses): Likewise.
10423         (df_md_simulate_one_insn): Likewise for param 2.
10424         (df_simulate_find_noclobber_defs): Likewise for param 1.
10425         (df_simulate_find_defs): Likewise.
10426         (df_simulate_defs): Likewise.
10427         (df_simulate_uses): Likewise.
10428         (df_simulate_one_insn_backwards): Likewise for param 2.
10429         (df_simulate_one_insn_forwards): Likewise.
10430         (df_uses_create): Likewise for param 2.
10431         (df_insn_create_insn_record): Likewise for param 1.
10432         (df_insn_delete): Likewise.
10433         (df_insn_rescan): Likewise.
10434         (df_insn_rescan_debug_internal): Likewise.
10435         (df_insn_change_bb): Likewise.
10436         (df_notes_rescan): Likewise.
10437         * rtl.h (remove_death): Likewise for param 2.
10438         (print_rtl_with_bb): Strengthen param 2 from const_rtx to
10439         const rtx_insn *.
10440         * sched-int.h (reemit_notes): Strengthen param from rtx to
10441         rtx_insn *.
10442         * valtrack.h (propagate_for_debug): Likewise for param 1.
10443
10444         * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
10445         local "tmp_rtx" from const_rtx to const rtx_insn *.
10446         * combine.c (remove_death): Strengthen param "insn" from rtx to
10447         rtx_insn *.
10448         (move_deaths): Likewise for local "where_dead".
10449         * cse.c (delete_trivially_dead_insns): Introduce local
10450         "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
10451         * df-core.c (df_find_def): Strengthen param "insn" from rtx to
10452         rtx_insn *.
10453         (df_reg_defined): Likewise.
10454         (df_find_use): Likewise.
10455         (df_reg_used): Likewise.
10456         (df_dump_insn_problem_data): Strengthen param "insn" from
10457         const_rtx to const rtx_insn *.
10458         (df_dump_insn_top): Likewise.
10459         (df_dump_insn_bottom): Likewise.
10460         (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
10461         (df_insn_debug_regno): Likewise.
10462         (debug_df_insn): Likewise.
10463         (DF_REF_INSN): Delete.
10464         * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
10465         from rtx to rtx_insn *.
10466         (df_chain_insn_top_dump): Strengthen param "insn" from
10467         const_rtx to const rtx_insn *.
10468         (df_chain_insn_bottom_dump): Likewise.
10469         (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
10470         rtx_insn *.
10471         (df_word_lr_simulate_uses): Likewise.
10472         (df_print_note): Likewise.
10473         (df_remove_dead_and_unused_notes): Likewise.
10474         (df_set_unused_notes_for_mw): Likewise.
10475         (df_set_dead_notes_for_mw): Likewise.
10476         (df_create_unused_note): Likewise.
10477         (df_simulate_find_defs): Likewise.
10478         (df_simulate_find_uses): Likewise.
10479         (df_simulate_find_noclobber_defs): Likewise.
10480         (df_simulate_defs): Likewise.
10481         (df_simulate_uses): Likewise.
10482         (df_simulate_one_insn_backwards): Likewise.
10483         (df_simulate_one_insn_forwards): Likewise.
10484         (df_md_simulate_one_insn): Likewise.
10485         * df-scan.c (df_uses_create): Likewise.
10486         (df_insn_create_insn_record): Likewise.
10487         (df_insn_delete): Likewise.
10488         (df_insn_rescan): Likewise.
10489         (df_insn_rescan_debug_internal): Likewise.
10490         (df_insn_change_bb): Likewise.
10491         (df_notes_rescan): Likewise.
10492         (df_refs_add_to_chains): Likewise.
10493         (df_insn_refs_verify): Likewise.
10494         * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
10495         when invoking df_insn_delete.
10496         (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
10497         (set_unique_reg_note): Add checked cast.
10498         * final.c (cleanup_subreg_operands): Likewise.
10499         * gcse.c (update_ld_motion_stores): Likewise, strengthening local
10500         "insn" from rtx to rtx_insn *.
10501         * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
10502         "last" from rtx to rtx_insn *.
10503         * ira-emit.c (change_regs_in_insn): New function.
10504         (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
10505         Invoke change_regs_in_insn rather than change_regs.
10506         * ira.c (update_equiv_regs): Strengthen locals "insn",
10507         "init_insn", "new_insn" from rtx to rtx_insn *.  Invoke
10508         for_each_rtx_in_insn rather than for_each_rtx.
10509         * recog.c (confirm_change_group): Add checked casts.
10510         (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
10511         Add checked cast.
10512         (peep2_fill_buffer): Add checked cast.
10513         * rtlanal.c (remove_note): Likewise.
10514         * valtrack.c (propagate_for_debug): Strengthen param "insn" and
10515         locals "next" "end" from rtx to rtx_insn *.
10516
10517 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10518
10519         * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
10520         to rtx_insn *.
10521         (struct reg_use_data): Likewise for field "insn".
10522         (insn_cost): Likewise for param.
10523         (real_insn_for_shadow): Likewise for return type and param.
10524         (increase_insn_priority): Likewise for param 1.
10525         (debug_dependencies): Likewise for both params.
10526
10527         * haifa-sched.c (insn_delay): Likewise for param "insn".
10528         (real_insn_for_shadow): Likewise for return type and param "insn".
10529         (update_insn_after_change): Likewise for param "insn".
10530         (recompute_todo_spec): Likewise for param "next" and locals "pro",
10531         "other".
10532         (insn_cost): Likewise for param "insn".
10533         (increase_insn_priority): Likewise.
10534         (calculate_reg_deaths): Likewise.
10535         (setup_insn_reg_pressure_info): Likewise.
10536         (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
10537         (model_index): Strengthen param "insn" from rtx to rtx_insn *.
10538         (model_recompute): Likewise.
10539         (must_restore_pattern_p): Likewise for param "next".
10540         (model_excess_cost): Likewise for param "insn".
10541         (queue_remove): Likewise.
10542         (adjust_priority): Likewise for param "prev".
10543         (update_register_pressure): Likewise for param "insn".
10544         (setup_insn_max_reg_pressure): Likewise for local "insn".
10545         (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
10546         (model_add_to_schedule): Likewise.
10547         (model_reset_queue_indices): Likewise for local "insn".
10548         (unschedule_insns_until): Strengthen local "recompute_vec" from
10549         auto_vec<rtx> to auto_vec<rtx_insn *>.  Strengthen locals "last",
10550         "con" from rtx to rtx_insn *.
10551         (restore_last_backtrack_point): Likewise for both locals "x". Add
10552         checked casts.
10553         (estimate_insn_tick): Likewise for param "insn".
10554         (commit_schedule): Likewise for params "prev_head", "tail" and
10555         local "x".
10556         (verify_shadows): Likewise for locals "i1", "i2".
10557         (dump_insn_stream): Likewise for params "head", "tail" and locals
10558         "next_tail", "insn".
10559         (schedule_block): Likewise for locals "insn", "x".  Add a checked
10560         cast.
10561         (fix_inter_tick): Likewise for params "head", "tail".
10562         (create_check_block_twin): Likewise for local "jump".
10563         (haifa_change_pattern): Likewise for param "insn".
10564         (haifa_speculate_insn): Likewise.
10565         (dump_new_block_header): Likewise for params "head", "tail".
10566         (fix_jump_move): Likewise for param "jump".
10567         (move_block_after_check): Likewise.
10568         (sched_init_insn_luid): Likewise for param "insn".
10569         (sched_init_luids): Likewise for local "insn".
10570         (insn_luid): Likewise for param "insn".
10571         (init_h_i_d): Likewise.
10572         (haifa_init_h_i_d): Likewise for local "insn".
10573         (haifa_init_insn): Likewise for param "insn".
10574         * sched-deps.c (add_dependence): Likewise for local "real_pro",
10575         "other".
10576         (create_insn_reg_use): Likewise for param "insn".
10577         (setup_insn_reg_uses): Likewise.  Add a checked cast.
10578         * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
10579         "tail" from rtx to rtx_insn *.
10580         * sched-rgn.c (void debug_dependencies): Likewise, also for locals
10581         "insn", "next_tail".
10582
10583 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10584
10585         * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
10586         from rtx to rtx_insn *.
10587         (model_add_to_schedule): Likewise for locals "start", "end",
10588         "iter".
10589
10590 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10591
10592         * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
10593         rtx_insn *.
10594         * cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
10595         "to" and locals "insn", "next", "copy".  Remove now-redundant
10596         checked cast.
10597
10598 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10599
10600         * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
10601         rtx_insn * and param 4 from rtx * to rtx_insn **.
10602         (get_condition): Strengthen param 1 from rtx to rtx_insn * and
10603         param 2 from rtx * to rtx_insn **.
10604
10605         * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
10606         rtx_insn * and final param from rtx * to rtx_insn **.
10607
10608         * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
10609         from rtx to rtx_insn *.
10610         (try_head_merge_bb): Likewise for both locals named "move_upto".
10611         * df-problems.c (can_move_insns_across): Likewise for params
10612         "from", "to", "across_from", "across_to" and locals "insn",
10613         "next", "max_to".  Strengthen param "pmove_upto" from rtx * to
10614         rtx_insn **.
10615         * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
10616         from rtx to rtx_insn *.
10617         (noce_get_alt_condition): Strengthen param "earliest" from rtx *
10618         to rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
10619         (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
10620         rtx_insn *.
10621         (noce_try_abs): Likewise.
10622         (noce_get_condition): Likewise for param "jump".  Strengthen param
10623         "earliest" from rtx * to rtx_insn **.
10624         (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
10625         rtx_insn *.
10626         (find_cond_trap): Likewise.
10627         (dead_or_predicable): Likewise for local "earliest".
10628         * loop-iv.c (check_simple_exit): Likewise for local "at".  Add
10629         checked cast.
10630         * rtlanal.c (canonicalize_condition): Likewise for param "insn"
10631         and local "prev".  Strengthen param "earliest" from rtx * to
10632         rtx_insn **.
10633         (get_condition): Strengthen param "jump" from rtx to rtx_insn *
10634         Strengthen param "earliest" from rtx * to rtx_insn **.
10635
10636 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10637
10638         * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
10639         "to" and local "insn" from rtx to rtx_insn *.
10640
10641 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10642
10643         * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
10644         from rtx to rtx_insn *.
10645         (need_nop_to_preserve_insn_bb): Likewise for param "insn".
10646         (code_motion_path_driver): Likewise for local "last_insn".
10647         (simplify_changed_insns): Likewise for local "insn".
10648
10649 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10650
10651         * rtl.h (push_to_sequence): Strengthen param from rtx to
10652         rtx_insn *.
10653         (push_to_sequence2): Likewise for both params.
10654         (delete_insns_since): Likewise for param.
10655         (reorder_insns_nobb): Likewise for all three params.
10656         (set_new_first_and_last_insn): Likewise for both params.
10657
10658         * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
10659         rtx_insn *.  Remove now-redundant cast.
10660         (set_last_insn): Likewise.
10661
10662         * builtins.c (expand_builtin_return): Strengthen local
10663         "call_fusage" from rtx to rtx_insn *.
10664         * cfgrtl.c (create_basic_block_structure): Likewise for local
10665         "after".
10666         * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
10667         "first", "last" and local "insn".
10668         (delete_insns_since): Likewise for param "from".
10669         (reorder_insns_nobb): Likewise for params "from", "to", "after"
10670         and local "x".
10671         (push_to_sequence): Likewise for param "first" and local "last".
10672         (push_to_sequence2): Likewise for params "first" and "last".
10673         * lra.c (emit_add3_insn): Likewise for local "last".
10674         (lra_emit_add): Likewise.
10675         * lra-constraints.c (base_to_reg): Likewise for locals "insn",
10676         "last_insn".
10677         (process_address_1): Likewise for locals "insn", last".
10678         * modulo-sched.c (ps_first_note): Likewise for return type.
10679         * optabs.c (expand_binop_directly): Likewise for param "last".
10680
10681 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10682
10683         * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
10684         to rtx_insn*.
10685         * emit-rtl.c (get_last_insn_anywhere): Likewise.
10686
10687 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10688
10689         * function.h (struct sequence_stack): Strengthen fields "first"
10690         and "last" from rtx to rtx_insn *.
10691         (struct emit_status): Likewise for fields "x_first_insn" and
10692         "x_last_insn".
10693
10694         * emit-rtl.h (get_insns): Remove now-redundant checked cast.
10695         (set_first_insn): Add checked cast.
10696         (get_last_insn): Remove now-redundant checked cast.
10697         (set_last_insn): Add checked cast.
10698
10699         * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
10700         "saved_first" and "saved_last" from rtx to rtx_insn *.
10701
10702 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10703
10704         * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
10705         (unlink_insn_chain): Strengthen both params from rtx to
10706         rtx_insn *.
10707
10708         * cfgrtl.c (cfg_layout_function_header): Likewise for this
10709         variable.
10710         (unlink_insn_chain): Likewise for params "first" and "last".
10711         Remove now-redundant checked cast.
10712         (record_effective_endpoints): Replace use of NULL_RTX with NULL.
10713         (fixup_reorder_chain): Strengthen local "insn" from rtx to
10714         rtx_insn *.
10715         * emit-rtl.c (link_insn_into_chain): Likewise for all three
10716         params.
10717         (add_insn): Likewise for param "insn" and local "prev".
10718         (add_insn_after_nobb): Likewise for both params and local "next".
10719         (add_insn_before_nobb): Likewise for both params and local "prev".
10720         (add_insn_after): Rename param "after" to "uncast_after",
10721         introducing local "after" with another checked cast.
10722         (add_insn_before): Rename params "insn" and "before", giving them
10723         "uncast_" prefixes, adding the old names back using checked casts.
10724         (emit_note_after): Likewise for param "after".
10725         (emit_note_before): Likewise for param "before".
10726         (emit_label): Add a checked cast.
10727
10728 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10729
10730         * cselib.h (cselib_record_sets_hook):  Strengthen initial param
10731         "insn" from rtx to rtx_insn *.
10732
10733         * cselib.c (cselib_record_sets_hook): Likewise.
10734
10735         * var-tracking.c (add_with_sets): Likewise, renaming back from
10736         "uncast_insn" to "insn" and eliminating the checked cast from rtx
10737         to rtx_insn *.
10738
10739 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10740
10741         * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
10742         and "header_" from rtx to rtx_insn *.
10743         (struct basic_block_d): Likewise for field "head_" within "x"
10744         field of union basic_block_il_dependent.
10745         (BB_HEAD): Drop function...
10746         (SET_BB_HEAD): ...and this function in favor of...
10747         (BB_HEAD): ...reinstate macro.
10748         (BB_END): Drop function...
10749         (SET_BB_END): ...and this function in favor of...
10750         (BB_END): ...reinstate macro.
10751         (BB_HEADER): Drop function...
10752         (SET_BB_HEADER): ...and this function in favor of...
10753         (BB_HEADER): ...reinstate macro.
10754
10755         * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
10756         (fix_crossing_unconditional_branches): Likewise.
10757         * caller-save.c (save_call_clobbered_regs): Likewise.
10758         (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
10759         * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
10760         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
10761         (merge_blocks_move_successor_nojumps): Likewise.
10762         (outgoing_edges_match): Update use of for_each_rtx to
10763         for_each_rtx_in_insn.
10764         * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
10765         (expand_gimple_cond): Likewise.
10766         (expand_gimple_tailcall): Likewise.
10767         (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
10768         SET_BB_END.
10769         (construct_exit_block): Drop use of SET_BB_END.
10770         * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
10771         rtx_insn *.
10772         (delete_insn): Rename param "insn" to "uncast_insn", introducing
10773         a new local "insn" with a checked cast to rtx_insn *.  Drop use of
10774         SET_BB_HEAD and SET_BB_END.
10775         (create_basic_block_structure): Drop use of SET_BB_HEAD and
10776         SET_BB_END.
10777         (rtl_delete_block): Drop use of SET_BB_HEAD.
10778         (rtl_split_block): Drop use of SET_BB_END.
10779         (emit_nop_for_unique_locus_between): Likewise.
10780         (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
10781         (block_label): Drop use of SET_BB_HEAD.
10782         (fixup_abnormal_edges): Drop use of SET_BB_END.
10783         (record_effective_endpoints): Drop use of SET_BB_HEADER.
10784         (relink_block_chain): Likewise.
10785         (fixup_reorder_chain): Drop use of SET_BB_END.
10786         (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
10787         (cfg_layout_delete_block): Strengthen local "to" from rtx * to
10788         rtx_insn **.  Drop use of SET_BB_HEADER.
10789         (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
10790         SET_BB_HEAD.
10791         (BB_HEAD): Delete this function.
10792         (SET_BB_HEAD): Likewise.
10793         (BB_END): Likewise.
10794         (SET_BB_END): Likewise.
10795         (BB_HEADER): Likewise.
10796         (SET_BB_HEADER): Likewise.
10797         * emit-rtl.c (add_insn_after):  Rename param "insn" to
10798         "uncast_insn", adding a new local "insn" and a checked cast to
10799         rtx_insn *.  Drop use of SET_BB_END.
10800         (remove_insn): Strengthen locals "next" and "prev" from rtx to
10801         rtx_insn *.  Drop use of SET_BB_HEAD and SET_BB_END.
10802         (reorder_insns): Drop use of SET_BB_END.
10803         (emit_insn_after_1): Strengthen param "first" and locals "last",
10804         "after_after" from rtx to rtx_insn *.  Drop use of SET_BB_END.
10805         (emit_pattern_after_noloc): Add checked cast.
10806         * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
10807         (restore_other_notes): Likewise.
10808         (move_insn): Likewise.
10809         (sched_extend_bb): Likewise.
10810         (fix_jump_move): Likewise.
10811         * ifcvt.c (noce_process_if_block): Likewise.
10812         (dead_or_predicable): Likewise.
10813         * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
10814         * reg-stack.c (change_stack): Drop use of SET_BB_END.
10815         * sel-sched-ir.c (sel_move_insn): Likewise.
10816         * sel-sched.c (move_nop_to_previous_block): Likewise.
10817
10818         * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
10819         SET_BB_END.
10820         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
10821
10822 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10823
10824         * basic-block.h (create_basic_block_structure): Strengthen params
10825         1 "head" and 2 "end" from rtx to rtx_insn *.
10826         * cfgrtl.c (create_basic_block_structure): Likewise.
10827         (rtl_create_basic_block): Update casts from void * to rtx to
10828         rtx_insn *, so that we can pass them as rtx_insn * to
10829         create_basic_block_structure.
10830         * sel-sched-ir.c (sel_create_basic_block): Likewise.
10831
10832 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10833
10834         * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
10835         rtx_insn **.
10836         (check_for_inc_dec): Strengthen param "insn" from rtx to
10837         rtx_insn *.
10838
10839         * cselib.h (cselib_process_insn): Likewise.
10840
10841         * cselib.c (cselib_record_sets): Likewise.
10842         (cselib_process_insn): Likewise.
10843
10844         * dse.c (struct insn_info): Likewise for field "insn".
10845         (check_for_inc_dec_1): Likewise for local "insn".
10846         (check_for_inc_dec): Likewise for param "insn".
10847         (scan_insn): Likewise.
10848         (dse_step1): Likewise for local "insn".
10849
10850         * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
10851         rtx_insn **.  Use for_each_rtx_in_insn rather than for_each_rtx.
10852
10853 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10854
10855         * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
10856         from rtx to rtx_insn *.
10857         (DEP_PRO): Delete this function and...
10858         (SET_DEP_PRO): ...this function in favor of...
10859         (DEP_PRO): ...reinstate this macro.
10860         (DEP_CON): Delete this function and...
10861         (SET_DEP_CON): ...this function in favor of...
10862         (DEP_CON): ...reinstate this old macro.
10863         (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
10864         (init_dep): Likewise.
10865         (set_priorities): Likewise for both params.
10866         (sd_copy_back_deps): Likewise for params 1 and 2.
10867
10868         * haifa-sched.c (priority): Likewise for param "insn" and local
10869         "next".
10870         (set_priorities): Likewise for params "head" and "tail" and local
10871         "insn".
10872         (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
10873         local "consumer".
10874         (add_to_speculative_block): Add a checked cast.
10875         (create_check_block_twin): Drop use of SET_DEP_CON.
10876         (add_jump_dependencies): Strengthen params "insn" and "jump" from
10877         rtx to rtx_insn *.
10878
10879         * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
10880         Drop use of SET_DEP_PRO
10881         (init_dep): Strengthen params "pro" and "con" from rtx to
10882         rtx_insn *.
10883         (sd_copy_back_deps): Likewise for params "to" and "from".  Drop
10884         use of SET_DEP_CON.
10885         (DEP_PRO): Delete.
10886         (DEP_CON): Delete.
10887         (SET_DEP_PRO): Delete.
10888         (SET_DEP_CON): Delete.
10889
10890 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10891
10892         * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
10893         from rtx to rtx_insn *.
10894         (VINSN_INSN_RTX): Eliminate rvalue function and...
10895         (SET_VINSN_INSN): ...lvalue function in favor of...
10896         (VINSN_INSN_RTX): reinstate this old macro.
10897
10898         * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
10899         in favor of VINSN_INSN_RTX.
10900         (VINSN_INSN_RTX): Delete this function.
10901         (SET_VINSN_INSN_RTX): Likewise.
10902
10903 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10904
10905         * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
10906         (BND_TO): Delete this function and...
10907         (SET_BND_TO): ...this functions in favor of...
10908         (BND_TO): ...reinstating this macro.
10909         (struct _fence): Strengthen field "executing_insns" from
10910         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.  Strengthen fields
10911         "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
10912         (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
10913         and param "insn" from rtx to insn_t.
10914         (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
10915         rtx_insn *.
10916
10917         * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
10918         vec<rtx_insn *> .
10919         (rtx_vec_t): Likewise.
10920         (struct sched_deps_info_def): Strengthen param of "start_insn"
10921         callback from rtx to rtx_insn *.  Likewise for param "insn2" of
10922         "note_mem_dep" callback and first param of "note_dep" callback.
10923
10924         * haifa-sched.c (add_to_speculative_block): Strengthen param
10925         "insn" from rtx to rtx_insn *.
10926         (clear_priorities): Likewise.
10927         (calc_priorities): Likewise for local "insn".
10928
10929         * sched-deps.c (haifa_start_insn): Likewise for param "insn".
10930         Remove redundant checked cast.
10931         (haifa_note_mem_dep): Likewise for param "pending_insn".
10932         (haifa_note_dep): Likewise for param "elem".
10933         (note_mem_dep): Likewise for param "e".
10934         (sched_analyze_1): Add checked casts.
10935         (sched_analyze_2): Likewise.
10936
10937         * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
10938         from rtx to rtx_insn *.
10939         (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
10940         from vec<rtx> * to vec<rtx_insn *> *.
10941
10942         * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
10943         scaffolding.
10944         (flist_add): Strengthen param "executing_insns" from
10945         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
10946         (advance_deps_context): Remove now-redundant checked cast.
10947         (init_fences): Replace uses of NULL_RTX with NULL.
10948         (merge_fences): Strengthen params "last_scheduled_insn" and
10949         "sched_next" from rtx to rtx_insn * and "executing_insns" from
10950         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
10951         (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
10952         (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
10953         an instruction, rather than doing double-duty as a pattern.
10954         (return_nop_to_pool): Update for change of insn_t.
10955         (deps_init_id): Remove now-redundant checked cast.
10956         (struct sched_scan_info_def): Strengthen param of "init_insn"
10957         callback from rtx to insn_t.
10958         (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
10959         (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
10960         NULL.
10961         (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
10962         "end" from rtx to rtx_insn *.
10963         (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
10964         (rtx insn_rtx, bool force_unique_p)
10965         (BND_TO): Delete function.
10966         (SET_BND_TO): Delete function.
10967
10968         * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
10969         rtx to rtx_insn *.
10970         (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
10971         (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
10972         rtx to rtx_insn *.
10973         (undo_transformations): Likewise for param "insn".
10974         (update_liveness_on_insn): Likewise.
10975         (compute_live_below_insn): Likewise for param "insn" and local
10976         "succ".
10977         (update_data_sets): Likewise for param "insn".
10978         (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
10979         (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
10980         (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
10981         rtx_insn *.
10982         (move_cond_jump): Likewise for param "insn".
10983         (move_cond_jump): Drop use of SET_BND_TO.
10984         (compute_av_set_on_boundaries): Likewise.
10985         (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
10986         (update_and_record_unavailable_insns): Strengthen local "bb_end"
10987         from rtx to rtx_insn *.
10988         (maybe_emit_renaming_copy): Likewise for param "insn".
10989         (maybe_emit_speculative_check): Likewise.
10990         (handle_emitting_transformations): Likewise.
10991         (remove_insn_from_stream): Likewise.
10992         (code_motion_process_successors): Strengthen local "succ" from rtx
10993         to insn_t.
10994
10995 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10996
10997         * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
10998         ilist_t, not _xlist_t;
10999         (ILIST_INSN): Define in terms of new union field "insn".
11000         (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
11001         _XLIST_NEXT.
11002         (struct _list_node): Add new field "insn" to the union, of type
11003         insn_t.
11004         (ilist_add): Replace macro with an inline function, requiring an
11005         insn_t.
11006         (ilist_remove): Define this macro directly in terms of
11007         _list_remove, rather than indirectly via _xlist_remove.
11008         (ilist_clear): Likewise, in terms of _list_clear rather than
11009         _xlist_clear.
11010         (ilist_is_in_p): Replace macro with an inline function, requiring
11011         an insn_t.
11012         (_list_iter_cond_insn): New function.
11013         (ilist_iter_remove): Define this macro directly in terms of
11014         _list_iter_remove, rather than indirectly via _xlist_iter_remove.
11015         (ilist_iterator): Define directly in terms of _list_iterator
11016         rather than indirectly through _xlist_iterator.
11017         (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
11018         than in terms of _FOR_EACH_X.
11019         (FOR_EACH_INSN_1): Likewise.
11020
11021 2014-08-26  Joseph Myers  <joseph@codesourcery.com>
11022
11023         PR target/60606
11024         PR target/61330
11025         * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
11026         DECL_HARD_REGISTER and return for invalid register specifications.
11027         * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
11028         DECL_HARD_REGISTER, call expand_one_error_var.
11029         * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
11030         CC_REGNUM with non-MODE_CC modes.
11031         (arm_regno_class): Return NO_REGS for PC_REGNUM.
11032
11033 2014-08-26  Marek Polacek  <polacek@redhat.com>
11034
11035         PR c/61271
11036         * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
11037
11038 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
11039
11040         * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
11041         qi cost; add di cost.
11042         (cortexa57_addrcost_table): Likewise.
11043
11044 2014-08-26  Marek Polacek  <polacek@redhat.com>
11045
11046         PR c/61271
11047         * expr.c (is_aligning_offset): Remove logical not.
11048
11049 2014-08-26  Marek Polacek  <polacek@redhat.com>
11050
11051         PR c/61271
11052         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
11053         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
11054
11055 2014-08-26  Richard Biener  <rguenther@suse.de>
11056
11057         PR tree-optimization/62175
11058         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
11059         expand possibly trapping operations.
11060
11061 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
11062
11063         * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
11064         "insn" from rtx to rtx_insn *.
11065         (permute_load): Likewise for param "insn".
11066         (permute_store): Likewise.
11067         (handle_special_swappables): Likewise for local "insn".
11068         (replace_swap_with_copy): Likewise for locals "insn" and
11069         "new_insn".
11070         (rs6000_analyze_swaps): Likewise for local "insn".
11071
11072 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11073
11074         * regrename.h (struct du_chain): Strengthen field "insn" from rtx
11075         to rtx_insn *.
11076
11077 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11078
11079         * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
11080         "note_list" from rtx to rtx_insn *.
11081         (BB_NOTE_LIST): Replace this function and...
11082         (SET_BB_NOTE_LIST): ...this function with...
11083         (BB_NOTE_LIST): ...the former macro implementation.
11084
11085         * sched-int.h (concat_note_lists): Strengthen param "from_end" and
11086         local "from_start" from rtx to rtx_insn *.  Strengthen param
11087         "to_endp" from rtx * to rtx_insn **.
11088
11089         * haifa-sched.c (concat_note_lists): Likewise.
11090         * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
11091         BB_NOTE_LIST.
11092         (sel_restore_notes): Likewise.
11093         (move_bb_info): Likewise.
11094         (BB_NOTE_LIST): Delete this function.
11095         (SET_BB_NOTE_LIST): Delete this function.
11096         * sel-sched.c (create_block_for_bookkeeping): Eliminate
11097         SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
11098
11099 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11100
11101         * target.def (reorder): Strengthen param "ready" of this DEFHOOK
11102         from rtx * to rtx_insn **.
11103         (reorder2): Likewise.
11104         (dependencies_evaluation_hook): Strengthen params "head", "tail"
11105         from rtx to rtx_insn *.
11106
11107         * doc/tm.texi: Update mechanically for above change to target.def.
11108
11109         * sched-int.h (note_list): Strengthen this variable from rtx to
11110         rtx_insn *.
11111         (remove_notes): Likewise for both params.
11112         (restore_other_notes): Likewise for return type and first param.
11113         (struct ready_list): Strengthen field "vec" from rtx * to
11114         rtx_insn **.
11115         (struct dep_replacement): Strenghten field "insn" from rtx to
11116         rtx_insn *.
11117         (struct deps_desc): Likewise for fields "last_debug_insn",
11118         "last_args_size".
11119         (struct haifa_sched_info): Likewise for callback field
11120         "can_schedule_ready_p"'s param, for first param of "new_ready"
11121         callback field, for both params of "rank" callback field, for
11122         first field of "print_insn" callback field (with a const), for
11123         both params of "contributes_to_priority" callback, for param
11124         of "insn_finishes_block_p" callback, for fields "prev_head",
11125         "next_tail", "head", "tail", for first param of "add_remove_insn"
11126         callback, for first param of "begin_schedule_ready" callback, for
11127         both params of "begin_move_insn" callback, and for second param
11128         of "advance_target_bb" callback.
11129         (add_dependence): Likewise for params 1 and 2.
11130         (sched_analyze): Likewise for params 2 and 3.
11131         (deps_analyze_insn): Likewise for param 2.
11132         (ready_element): Likewise for return type.
11133         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
11134         (try_ready): Strenghten param from rtx to rtx_insn *.
11135         (sched_emit_insn): Likewise for return type.
11136         (record_delay_slot_pair): Likewise for params 1 and 2.
11137         (add_delay_dependencies): Likewise for param.
11138         (contributes_to_priority): Likewise for both params.
11139         (find_modifiable_mems): Likewise.
11140
11141         * config/arm/arm.c (cortexa7_sched_reorder):  Strengthen param
11142         "ready" from rtx * to rtx_insn **.  Strengthen locals "insn",
11143         "first_older_only_insn" from rtx to rtx_insn *.
11144         (arm_sched_reorder):  Strengthen param "ready"  from rtx * to
11145         rtx_insn **.
11146
11147         * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
11148         "last_scheduled_iter0" from rtx to rtx_insn *.
11149         (init_sched_state): Replace use of NULL_RTX with NULL for insn.
11150         (c6x_sched_reorder_1): Strengthen param "ready" and locals
11151         "e_ready", "insnp" from rtx * to rtx_insn **.  Strengthen local
11152         "insn" from rtx to rtx_insn *.
11153         (c6x_sched_reorder): Strengthen param "ready" from rtx * to
11154         rtx_insn **.
11155         (c6x_sched_reorder2): Strengthen param "ready" and locals
11156         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
11157         "insn" from rtx to rtx_insn *.
11158         (c6x_variable_issue):  Add a checked cast when assigning from insn
11159         to ss.last_scheduled_iter0.
11160         (split_delayed_branch): Strengthen param "insn" and local "i1"
11161         from rtx to rtx_insn *.
11162         (split_delayed_nonbranch): Likewise.
11163         (undo_split_delayed_nonbranch): Likewise for local "insn".
11164         (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
11165         "entry_after", "end_packet", "head_insn", "tail_insn",
11166         "new_insns", "last_insn", "this_iter", "prev_stage_insn".
11167         Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
11168         to rtx_insn **.  Remove now-redundant checked cast on last_insn,
11169         but add a checked cast on loop->start_label.  Consolidate calls to
11170         avoid assigning result of gen_spkernel to "insn", now an
11171         rtx_insn *.
11172
11173         * config/i386/i386.c (do_reorder_for_imul): Strengthen param
11174         "ready" from rtx * to rtx_insn **.  Strengthen local "insn" from
11175         rtx to rtx_insn *.
11176         (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
11177         rtx_insn **.  Strengthen locals "top", "next" from rtx to
11178         rtx_insn *.
11179         (ix86_sched_reorder): Strengthen param "ready" from rtx * to
11180         rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
11181         (add_parameter_dependencies): Strengthen params "call", "head" and
11182         locals "insn", "last", "first_arg" from rtx to rtx_insn *.
11183         (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
11184         (add_dependee_for_func_arg): Likewise for param "arg" and local
11185         "insn".
11186         (ix86_dependencies_evaluation_hook): Likewise for params "head",
11187         "tail" and locals "insn", "first_arg".
11188
11189         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
11190         for params "head", "tail" and locals "insn", "next", "next_tail".
11191         (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
11192         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
11193         "insn", "lowest", "highest" from rtx to rtx_insn *.
11194         (ia64_sched_reorder): Strengthen param "ready" from rtx * to
11195         rtx_insn **.
11196         (ia64_sched_reorder2): Likewise.
11197
11198         * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
11199         and local "insn" from rtx to rtx_insn *.  Strengthen param "ready"
11200         from rtx * to rtx_insn **.
11201         (mep_move_ready_insn): Strengthen param "ready" from rtx * to
11202         rtx_insn **.
11203         (mep_print_sched_insn): Strengthen param "insn" from rtx to
11204         rtx_insn *.
11205         (mep_sched_reorder): Strengthen param "ready" from rtx * to
11206         rtx_insn **.  Strengthen locals "core_insn", "cop_insn" from rtx
11207         to rtx_insn *.
11208
11209         * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
11210         from rtx * to rtx_insn **.  Strengthen local "new_head" from rtx
11211         to rtx_insn *.
11212         (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
11213         rtx_insn **.  Strengthen local "temp" from rtx to rtx_insn *.
11214         (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
11215         rtx_insn **.
11216         (vr4130_reorder): Likewise.
11217         (mips_74k_agen_reorder): Likewise.  Strengthen local "insn" from
11218         rtx to rtx_insn *.
11219         (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
11220         rtx_insn **.
11221         (mips_sched_reorder): Likewise.
11222         (mips_sched_reorder2): Likewise.
11223
11224         * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
11225
11226         * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
11227         Strengthen local "tmp" from rtx to rtx_insn *.
11228         (rs6000_sched_reorder2): Likewise.
11229
11230         * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
11231         Likewise.  Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
11232         (s390_sched_reorder): Strengthen param "ready" from rtx * to
11233         rtx_insn **.  Strengthen local "tmp" from rtx to rtx_insn *.
11234
11235         * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
11236         "tmp2" from rtx to rtx_insn *.
11237         (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
11238         Strengthen local "insn" from rtx to rtx_insn *.
11239         (ready_reorder): Strengthen param "ready" from rtx * to
11240         rtx_insn **.  Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
11241         (sh_reorder):  Strengthen param "ready" from rtx * to rtx_insn **.
11242         (sh_reorder2): Likewise.
11243
11244         * config/spu/spu.c (spu_sched_reorder): Likewise.  Strengthen
11245         local "insn" from rtx to rtx_insn *.
11246
11247         * haifa-sched.c (note_list): Strengthen this variable from rtx to
11248         rtx_insn *.
11249         (scheduled_insns): Strengthen this variable from vec<rtx> to
11250         vec<rtx_insn *>.
11251         (set_modulo_params): Likewise for locals "i1", "i2".
11252         (record_delay_slot_pair): Likewise for params "i1", "i2".
11253         (add_delay_dependencies): Likewise for param "insn".
11254         (cond_clobbered_p): Likewise.
11255         (recompute_todo_spec): Likewise for local "prev".
11256         (last_scheduled_insn): Likewise for this variable.
11257         (nonscheduled_insns_begin): Likewise.
11258         (model_set_excess_costs): Strengthen param "insns" from rtx * to
11259         rtx_insn **.
11260         (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
11261         rtx_insn *.
11262         (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
11263         Strengthen local "insn" from rtx to rtx_insn *.
11264         (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
11265         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
11266         (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
11267         (ready_remove_first): Likewise for return type and local "t".
11268         (ready_element): Likewise for return type.
11269         (ready_remove): Likewise for return type and local "t".
11270         (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
11271         (check_clobbered_conditions): Strengthen local "x" from rtx to
11272         rtx_insn *, adding a checked cast.
11273         (schedule_insn): Likewise for param "insn".
11274         (remove_notes): Likewise for params "head", "tail" and locals
11275         "next_tail", "insn", "next".
11276         (struct haifa_saved_data): Likewise for fields
11277         "last_scheduled_insn", "nonscheduled_insns_begin".
11278         (save_backtrack_point): Update for change to field "vec" of
11279         struct ready_list.
11280         (toggle_cancelled_flags): Strengthen local "first" from rtx * to
11281         rtx_insn **.
11282         (restore_last_backtrack_point): Likewise.  Strengthen local "insn"
11283         from rtx to rtx_insn *
11284         (resolve_dependencies): Strengthen param "insn" from rtx to
11285         rtx_insn *
11286         (restore_other_notes): Likewise for return type, for param "head"
11287         and local "note_head".
11288         (undo_all_replacements): Likewise for local "insn".
11289         (first_nonscheduled_insn): Likewise for return type and local "insn".
11290         (queue_to_ready): Likewise for local "insn", adding checked casts.
11291         (early_queue_to_ready): Likewise for local "insn".
11292         (debug_ready_list_1): Strengthen local "p" from rtx * to
11293         rtx_insn **.
11294         (move_insn): Strengthen param "insn" and local "note" from rtx to
11295         rtx_insn *
11296         (insn_finishes_cycle_p): Likewise for param "insn".
11297         (max_issue): Likewise for local "insn".
11298         (choose_ready): Likewise.  Strengthen param "insn_ptr" from rtx *
11299         to rtx_insn **.
11300         (commit_schedule): Strengthen param "prev_head" and local "insn"
11301         from rtx to rtx_insn *
11302         (prune_ready_list): Likewise for local "insn".
11303         (schedule_block): Likewise for locals "prev_head", "head", "tail",
11304         "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
11305         (set_priorities): Likewise for local "prev_head".
11306         (try_ready): Likewise for param "next".
11307         (fix_tick_ready): Likewise.
11308         (change_queue_index): Likewise.
11309         (sched_extend_ready_list): Update for change to field "vec" of
11310         struct ready_list.
11311         (generate_recovery_code): Strengthen param "insn" from rtx to
11312         rtx_insn *.
11313         (begin_speculative_block): Likewise.
11314         (create_check_block_twin): Likewise for param "insn" and locals
11315         "label", "check", "twin".  Introduce local "check_pat" to avoid
11316         "check" being used as a plain rtx before being used as an insn.
11317         (fix_recovery_deps): Add a checked cast to rtx_insn * when
11318         extracting elements from ready_list.
11319         (sched_remove_insn): Strengthen param "insn" from rtx to
11320         rtx_insn *.
11321         (sched_emit_insn): Likewise for return type.
11322         (ready_remove_first_dispatch): Likewise for return type and local
11323         "insn".
11324
11325         * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
11326
11327         * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
11328         const rtx_insn *.
11329
11330         * sched-deps.c (add_dependence): Strengthen params "con", "pro"
11331         from rtx to rtx_insn *.
11332         (add_dependence_list): Likewise for param "insn".  Add a checked
11333         cast.
11334         (add_dependence_list_and_free): Strengthen param "insn" from rtx
11335         to rtx_insn *.  Strengthen param "list_p" from rtx * to
11336         rtx_insn **.
11337         (chain_to_prev_insn): Strengthen param "insn" and locals
11338         "prec_nonnote", "i" from rtx to rtx_insn *.
11339         (flush_pending_lists): Likewise for param "insn".
11340         (cur_insn): Likewise for this variable.
11341         (haifa_start_insn): Add a checked cast.
11342         (note_dep): Strengthen param "e" from rtx to rtx_insn *.
11343         (sched_analyze_reg): Likewise for param "insn".
11344         (sched_analyze_1): Likewise.
11345         (sched_analyze_2): Likewise.  Add checked casts.
11346         (sched_analyze_insn): Likewise.  Also for local "prev".
11347         (deps_analyze_insn): Likewise for param "insn".
11348         (sched_analyze): Likewise for params "head", "tail" and local "insn".
11349         (add_dependence_1): Likewise for params "insn", "elem".
11350         (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
11351         (parse_add_or_inc): Likewise for param "insn".
11352         (find_inc): Likewise for local "inc_cand".
11353         (find_modifiable_mems): Likewise for params "head", "tail" and
11354         locals "insn", "next_tail".
11355
11356         * sched-ebb.c (init_ready_list): Likewise for local "insn".
11357         (begin_schedule_ready): Likewise for param "insn".
11358         (begin_move_insn): Likewise for params "insn" and "last".
11359         (ebb_print_insn): Strengthen param "insn" from const_rtx to
11360         const rtx_insn *.
11361         (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
11362         (ebb_contributes_to_priority): Likewise for params "next", "insn".
11363         (ebb_add_remove_insn): Likewise for param "insn".
11364         (advance_target_bb): Likewise.
11365
11366         * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
11367         "insn".
11368         (check_live): Likewise for param "insn".
11369         (init_ready_list): Likewise for local "insn".
11370         (can_schedule_ready_p): Likewise for param "insn".
11371         (begin_schedule_ready): Likewise.
11372         (new_ready): Likewise for param "next".
11373         (rgn_print_insn): Likewise for param "insn".
11374         (rgn_rank): Likewise for params "insn1", "insn2".
11375         (contributes_to_priority): Likewise for params "next", "insn".
11376         (rgn_insn_finishes_block_p): Likewise for param "insn".
11377         (add_branch_dependences): Likewise for params "head", "tail" and
11378         locals "insn", "last".
11379         (rgn_add_remove_insn): Likewise for param "insn".
11380         (advance_target_bb): Likewise.
11381
11382         * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
11383         const_rtx to const rtx_insn *.
11384
11385         * sel-sched-dump.h (sel_print_insn): Likewise.
11386
11387         * sel-sched-ir.c (advance_deps_context): Add a checked cast.
11388         (deps_init_id): Likewise.
11389
11390         * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
11391         (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
11392         rtx_insn **.
11393
11394 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11395
11396         * output.h (final_start_function): Strengthen param 1 from rtx to
11397         rtx_insn *.
11398
11399         * final.c (final_start_function): Likewise, renaming back from
11400         "uncast_first" to "first", and dropping the checked cast from rtx
11401         to rtx_insn *.
11402
11403 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11404
11405         * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
11406         * final.c (final): Likewise.  Rename param back from
11407         "uncast_first" to "first" and eliminate the checked cast from rtx
11408         to rtx_insn *.
11409
11410 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11411
11412         * output.h (shorten_branches): Strengthen param from rtx to
11413         rtx_insn *.
11414
11415         * final.c (shorten_branches): Likewise, renaming param back from
11416         "uncast_first" to "first", and dropping the checked cast from rtx
11417         to rtx_insn *.
11418
11419         * genattr.c (gen_attr): Likewise when writing out the prototype of
11420         shorten_branches.
11421
11422 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11423
11424         * sched-int.h (struct haifa_sched_info): Strengthen fields
11425         "prev_head" and "next_tail" from rtx to rtx_insn *.
11426
11427 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11428
11429         * rtl.h (rtx_jump_table_data::get_labels): New method.
11430         * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
11431         with use of the new rtx_jump_table_data::get_labels method.
11432         (purge_dead_tablejump_edges): Strengthen param "table" from rtx
11433         to rtx_jump_table_data *.  Simplify by using get_labels method.
11434         * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
11435         a dyn_cast, introducing local "table", using it to replace
11436         label-lookup logic with a get_labels method call.
11437         (patch_jump_insn): Simplify using get_labels method.
11438         * dwarf2cfi.c (create_trace_edges): Likewise.
11439         * rtlanal.c (label_is_jump_target_p): Likewise.
11440
11441 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11442
11443         * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
11444         to rtx_insn *.
11445
11446         * emit-rtl.c (unshare_all_rtl_1): Likewise.
11447         (unshare_all_rtl_again): Likewise, also for local "p".
11448
11449 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11450
11451         * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
11452         to rtx_insn *.
11453         * cfgrtl.c (delete_insn_and_edges): Likewise.
11454
11455 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11456
11457         * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
11458         from rtx to rtx_insn *.
11459
11460         * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
11461
11462 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11463
11464         * function.c (thread_prologue_and_epilogue_insns): Likewise for
11465         locals "returnjump", "epilogue_end", "insn", "next".
11466
11467         * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
11468         "returnjump" from rtx * to rtx_insn **.
11469         * shrink-wrap.c (get_unconverted_simple_return): Likewise.
11470
11471 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11472
11473         * basic-block.h (struct edge_def). Strengthen "r" within
11474         union edge_def_insns from rtx to rtx_insn *.
11475
11476         * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
11477         from rtx to rtx_insn *.  Strengthen local "insns" from rtx to
11478         rtx_insn *.
11479         * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
11480         from rtx to rtx_insn *.
11481         * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
11482         rtx_insn *.
11483         * postreload-gcse.c (reg_killed_on_edge): Likewise.
11484         (reg_used_on_edge): Likewise.
11485         * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
11486         (gt_pch_nx): New overload for rtx_insn *&.
11487         * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
11488         from rtx to rtx_insn *.
11489
11490 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11491
11492         * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
11493         from rtx to rtx_insn *.
11494         (BB_FOOTER): Replace function with access macro.
11495         (SET_BB_FOOTER): Delete.
11496
11497         * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
11498         with BB_FOOTER.
11499         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
11500         (emit_barrier_after_bb): Likewise.
11501         (record_effective_endpoints): Likewise.
11502         (relink_block_chain): Likewise.
11503         (fixup_fallthru_exit_predecessor): Likewise.
11504         (cfg_layout_duplicate_bb): Likewise.
11505         (cfg_layout_split_block): Likewise.
11506         (cfg_layout_delete_block): Likewise.
11507         (cfg_layout_merge_blocks): Likewise.
11508         (BB_FOOTER): Delete function.
11509         (SET_BB_FOOTER): Delete function.
11510         * combine.c (update_cfg_for_uncondjump): Replace uses of
11511         SET_BB_FOOTER with BB_FOOTER.
11512
11513 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11514
11515         * except.h (struct eh_landing_pad_d): Strengthen field
11516         "landing_pad" from rtx to rtx_code_label *.
11517
11518         * except.c (sjlj_emit_dispatch_table): Likewise for param
11519         "dispatch_label"
11520         (sjlj_build_landing_pads): Likewise for local "dispatch_label".
11521
11522 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11523
11524         * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
11525         first param from rtx to rtx_insn *.
11526         * config/xtensa/xtensa.c (struct machine_function): Likewise for
11527         field "set_frame_ptr_insn".
11528         (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
11529         "csend" from rtx to rtx_code_label *.
11530         (xtensa_expand_atomic): Likewise for local "csloop".
11531         (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
11532         rtx_insn *.
11533         (xtensa_call_tls_desc): Likewise for return type and locals
11534         "call_insn", "insns".
11535         (xtensa_legitimize_tls_address): Likewise for local "insns".
11536         (xtensa_expand_prologue): Likewise for locals "insn", "first".
11537
11538 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11539
11540         * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
11541         first param from rtx to rtx_insn *.
11542         * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
11543         "insn".
11544
11545 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11546
11547         * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
11548         Strengthen param 1 from rtx to rtx_insn *.
11549         (tilepro_output_cbranch): Likewise.
11550         (tilepro_adjust_insn_length): Likewise.
11551         (tilepro_final_prescan_insn): Likewise for sole param.
11552
11553         * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
11554         Likewise for local "last".
11555         (cbranch_predicted_p): Likewise for param "insn".
11556         (tilepro_output_simple_cbranch_with_opcode): Likewise.
11557         (tilepro_output_cbranch_with_opcode): Likewise.
11558         (tilepro_output_cbranch): Likewise.
11559         (frame_emit_load): Likewise for return type and locals "seq",
11560         "insn".
11561         (emit_sp_adjust): Likewise for return type and local "insn".
11562         (tilepro_expand_epilogue): Likewise for locals "last_insn",
11563         "insn".
11564         (tilepro_adjust_insn_length): Likewise for param "insn".
11565         (next_insn_to_bundle): Likewise for return type and params
11566         "r", "end".
11567         (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
11568         (replace_pc_relative_symbol_ref): Likewise for param "insn" and
11569         local "new_insns".
11570         (match_addli_pcrel): Likewise for param "insn".
11571         (replace_addli_pcrel): Likewise.
11572         (match_auli_pcrel): Likewise.
11573         (replace_auli_pcrel): Likewise.
11574         (tilepro_fixup_pcrel_references): Likewise for locals "insn",
11575         "next_insn".
11576         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
11577         "queue", "next_queue", "prev".
11578         (tilepro_asm_output_mi_thunk): Likewise for local "insn".
11579         (tilepro_final_prescan_insn): Likewise for param "insn".
11580
11581 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11582
11583         * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
11584         Strengthen param 1 from rtx to rtx_insn *.
11585         (tilegx_output_cbranch): Likewise.
11586         (tilegx_adjust_insn_length): Likewise.
11587         (tilegx_final_prescan_insn): Likewise for sole param.
11588
11589         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
11590         or local "last".
11591         (cbranch_predicted_p): Likewise for param "insn".
11592         (tilegx_output_simple_cbranch_with_opcode): Likewise.
11593         (tilegx_output_cbranch_with_opcode): Likewise.
11594         (tilegx_output_cbranch): Likewise.
11595         (frame_emit_load): Likewise for return type.
11596         (set_frame_related_p): Likewise for locals "seq", "insn".
11597         (emit_sp_adjust): Likewise for return type, and for local "insn".
11598         Introduce local "pat" for use in place of "insn" where the latter
11599         isn't an instruction.
11600         (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
11601         from rtx to rtx_insn *.
11602         (tilegx_adjust_insn_length): Likewise for param "insn".
11603         (next_insn_to_bundle): Likewise for return type and params "r" and
11604         "end".
11605         (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
11606         "end".
11607         (replace_insns): Likewise for params "old_insn", "new_insns".
11608         (replace_mov_pcrel_step1): Likewise for param "insn" and local
11609         "new_insns".
11610         (replace_mov_pcrel_step2): Likewise.
11611         (replace_mov_pcrel_step3): Likewise.
11612         (tilegx_fixup_pcrel_references): Likewise for locals "insn",
11613         "next_insn".
11614         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
11615         "queue", "next_queue", "prev".
11616         (tilegx_output_mi_thunk): Likewise for local "insn".
11617         (tilegx_final_prescan_insn): Likewise for param "insn".
11618
11619 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11620
11621         * config/spu/spu.c (frame_emit_store): Strengthen return type from
11622         rtx to rtx_insn *.
11623         (frame_emit_load): Likewise.
11624         (frame_emit_add_imm): Likewise, also for local "insn".
11625         (spu_expand_prologue): Likewise for local "insn".
11626         (struct spu_bb_info): Likewise for field "prop_jump".
11627         (emit_nop_for_insn): Likewise for param "insn" and local
11628         "new_insn".
11629         (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
11630         "hbr_insn".
11631         (spu_emit_branch_hint): Likewise for params "before", "branch" and
11632         locals "hint", "insn".
11633         (get_branch_target): Likewise for param "branch".
11634         (insn_clobbers_hbr): Likewise for param "insn".
11635         (insert_hbrp_for_ilb_runout): Likewise for param "first" and
11636         locals "insn", "before_4", "before_16".
11637         (insert_hbrp): Likewise for local "insn".
11638         (spu_machine_dependent_reorg): Likewise for locals "branch",
11639         "insn", "next", "bbend".
11640         (uses_ls_unit): Likewise for param "insn".
11641         (get_pipe): Likewise.
11642         (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
11643         introducing a checked cast.
11644         (spu_sched_adjust_cost): Likewise for params "insn" and
11645         "dep_insn".
11646         (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
11647         (spu_sms_res_mii): Likewise.
11648
11649 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11650
11651         * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
11652         from rtx to rtx_insn *.
11653         (output_cbranch): Likewise for param 6.
11654         (output_return): Likewise for param 1.
11655         (output_sibcall): Likewise.
11656         (output_v8plus_shift): Likewise.
11657         (output_v8plus_mult): Likewise.
11658         (output_v9branch): Likewise for param 7.
11659         (output_cbcond):  Likewise for param 3.
11660
11661         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
11662         for local "insn".
11663         (sparc_legitimize_pic_address): Likewise.
11664         (sparc_emit_call_insn): Likewise.
11665         (emit_save_or_restore_regs): Likewise.
11666         (emit_window_save): Likewise for return type and local "insn".
11667         (sparc_expand_prologue): Likewise for local "insn".
11668         (sparc_flat_expand_prologue): Likewise.
11669         (output_return): Likewise for param "insn".
11670         (output_sibcall): Likewise for param "insn" and local "delay".
11671         (output_ubranch): Likewise for param "insn".
11672         (output_cbranch): Likewise.
11673         (output_cbcond): Likewise.
11674         (output_v9branch): Likewise.
11675         (output_v8plus_shift): Likewise.
11676         (sparc_output_mi_thunk): Likewise for local "insn".
11677         (get_some_local_dynamic_name): Likewise.
11678         (output_v8plus_mult): Likewise for param "insn".
11679
11680 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11681
11682         * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
11683         from rtx to rtx_insn *.
11684         (output_branchy_insn): Likewise for param 3.
11685         (output_far_jump): Likewise for param 1.
11686         (final_prescan_insn): Likewise.
11687         (sh_insn_length_adjustment): Likewise for sole param.
11688
11689         * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
11690         (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
11691         rtx_code_label *.
11692         (sh_emit_compare_and_set): Likewise for local "lab".
11693         (output_far_jump): Strengthen param "insn" and local "prev" from
11694         rtx to rtx_insn *.
11695         (output_branchy_insn): Likewise for param "insn" and local
11696         "next_insn".
11697         (output_ieee_ccmpeq): Likewise for param "insn".
11698         (struct label_ref_list_d): Strengthen field "label" from rtx to
11699         rtx_code_label *.
11700         (pool_node): Likewise.
11701         (pool_window_label): Likewise for this global.
11702         (add_constant): Likewise for return type and locals "lab", "new_rtx".
11703         (dump_table): Strengthen params "start", "barrier" and local
11704         "scan" from rtx to rtx_insn *.
11705         (broken_move): Likewise for param "insn".
11706         (untangle_mova): Likewise for params "first_mova" and "new_mova".
11707         Strengthen param "first_mova" from rtx * to rtx_insn **.
11708         (mova_p): Likewise for param "insn".
11709         (fixup_mova): Likewise for param "mova".
11710         (find_barrier): Likewise for return type, params "mova" and
11711         "from", and locals "barrier_before_mova", "found_barrier",
11712         "good_barrier", "orig", "last_symoff", "next".  Strengthen local
11713         "label" from rtx to rtx_code_label *.
11714         (sh_loop_align): Strengthen locals "first", "insn", "mova" from
11715         rtx to rtx_insn *.
11716         (sh_reorg): Likewise for locals "link", "scan", "barrier".
11717         (split_branches): Likewise for param "first" and local "insn".
11718         (final_prescan_insn): Likewise for param "insn".
11719         (sequence_insn_p): Likewise for locals "prev", "next".
11720         (sh_insn_length_adjustment): Likewise for param "insn".
11721         (sh_can_redirect_branch): Likewise for local "insn".
11722         (find_r0_life_regions): Likewise for locals "end", "insn".
11723         (sh_output_mi_thunk): Likewise for local "insns".
11724
11725 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11726
11727         * config/score/score.c (score_output_mi_thunk): Strengthen local
11728         "insn" from rtx to rtx_insn *.
11729         (score_prologue): Likewise.
11730
11731 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11732
11733         * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
11734         1 from rtx to rtx_insn *.
11735         (s390_emit_jump): Likewise for return type.
11736         (s390_emit_call): Likewise.
11737         (s390_load_got): Likewise.
11738
11739         * config/s390/s390.c (last_scheduled_insn): Likewise for this
11740         variable.
11741         (s390_match_ccmode): Likewise for param "insn".
11742         (s390_emit_jump): Likewise for return type.
11743         (s390_split_branches): Likewise for local "label".
11744         (struct constant): Strengthen field "label" from rtx to
11745         rtx_code_label *.
11746         (struct constant_pool): Likewise for field "label".  Strengthen
11747         fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
11748         rtx_insn *.
11749         (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
11750         insns.
11751         (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
11752         (s390_end_pool): Likewise.
11753         (s390_dump_pool): Likewise for local "insn".
11754         (s390_mainpool_start): Likewise.
11755         (s390_chunkify_start): Likewise.
11756         (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
11757         with insns.  Strengthen locals "label", "jump", "barrier", "next",
11758         "prev", "vec_insn", "insn" from rtx to rtx_insn *.
11759         (s390_chunkify_finish): Strengthen local "insn" from rtx to
11760         rtx_insn *.
11761         (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
11762         "jump", "label", "next_insn".
11763         (s390_regs_ever_clobbered): Likewise for local "cur_insn".
11764         (s390_optimize_nonescaping_tx): Likewise for locals "insn",
11765         "tbegin_insn".
11766         (s390_load_got): Likewise for return type and local "insns".
11767         (s390_save_gprs_to_fprs): Likewise for local "insn".
11768         (s390_restore_gprs_from_fprs): Likewise.
11769         (pass_s390_early_mach::execute): Likewise.
11770         (s390_emit_prologue): Likewise for local "insns".
11771         (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
11772         rtx_code_label *.
11773         (s390_emit_call): Strengthen return type and local "insn" from
11774         rtx to rtx_insn *.
11775         (s390_emit_tpf_eh_return): Likewise for local "insn".
11776         (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
11777         "next_insn", introducing locals "s_pat", "rpat" to allow this.
11778         (s390_fix_long_loop_prediction): Likewise for param "insn" and
11779         local "cur_insn".
11780         (s390_non_addr_reg_read_p): Likewise for param "insn".
11781         (find_cond_jump): Likewise for return type and param "insn".
11782         (s390_swap_cmp): Likewise for param "insn".
11783         (s390_z10_optimize_cmp): Likewise for param "insn" and locals
11784         "prev_insn", "next_insn".
11785         (s390_reorg): Likewise for locals "insn", "target".
11786         (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
11787         (s390_sched_variable_issue): For now, rename param "insn" to
11788         "uncast_insn", introducing a checked cast.
11789         (s390_sched_init): Replace NULL_RTX with NULL when dealing with
11790         insn.
11791         (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
11792         rtx_insn *.  Use for_each_rtx_in_insn rather than for_each_rtx.
11793
11794 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11795
11796         * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
11797         param from rtx to rtx_insn *.
11798         * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
11799
11800 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11801
11802         * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
11803         4 from rtx to rtx_insn *.
11804         (rs6000_final_prescan_insn): Likewise for first param.
11805         * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
11806         local "insn".
11807         (rs6000_get_some_local_dynamic_name): Likewise.
11808         (output_cbranch): Likewise for param "insn".
11809         (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
11810         (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
11811         (rs6000_emit_allocate_stack): Likewise for local "insn".
11812         (load_cr_save): Likewise.
11813         (restore_saved_cr): Likewise.
11814         (restore_saved_lr): Likewise.
11815         (emit_cfa_restores): Likewise.
11816         (rs6000_output_function_epilogue): Likewise for locals "insn" and
11817         "deleted_debug_label".
11818         (rs6000_output_mi_thunk): Likewise for local "insn".
11819         (rs6000_final_prescan_insn): Likewise for param "insn".
11820
11821 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11822
11823         * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
11824         Strengthen param "insn" from rtx to rtx_insn *.
11825         * config/picochip/picochip.c (picochip_current_prescan_insn):
11826         Likewise for this variable.
11827         (picochip_final_prescan_insn): Likewise for param "insn".
11828
11829 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11830
11831         * config/pa/pa-protos.h (pa_output_call): Strengthen first param
11832         from rtx to rtx_insn *.
11833         (pa_output_indirect_call): Likewise.
11834         (pa_adjust_insn_length): Likewise.
11835         (pa_attr_length_millicode_call): Likewise.
11836         (pa_attr_length_call): Likewise.
11837         (pa_attr_length_indirect_call): Likewise.
11838
11839         * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
11840         "insn".
11841         (pa_attr_length_millicode_call): Likewise.
11842         (pa_attr_length_call): Likewise.
11843         (pa_output_call): Likewise.
11844         (pa_attr_length_indirect_call): Likewise.
11845         (pa_output_indirect_call): Likewise.
11846
11847 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11848
11849         * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
11850         Strengthen first param from rtx to rtx_insn *.
11851         * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
11852         param "insn".
11853
11854 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11855
11856         * config/mips/mips-protos.h (mips_emit_move): Strengthen return
11857         type from rtx to rtx_insn *.
11858         (mips_expand_call): Likewise.
11859         (mips_adjust_insn_length): Likewise for first param.
11860         (mips_output_conditional_branch): Likewise.
11861         (mips_output_order_conditional_branch): Likewise.
11862         (mips_final_prescan_insn): Likewise.
11863
11864         * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
11865         rtx_insn * for the SEQUENCE case.
11866         (SEQ_END): Likewise.
11867         (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
11868         (mips_emit_call_insn): Likewise, also for local "insn".
11869         (mips16_gp_pseudo_reg): Likewise for local "scan".
11870         (mips16_build_call_stub): Likewise for return type and for local
11871         "insn".  Introduce a new local "pattern" so that "insn" can indeed
11872         be an insn.
11873         (mips_expand_call): Strengthen return type and local "insn" from
11874         rtx to rtx_insn *.
11875         (mips_block_move_loop): Strengthen local "label" from rtx to
11876         rtx_code_label *.
11877         (mips_expand_synci_loop): Likewise for locals "label",
11878         "end_label".
11879         (mips_set_frame_expr): Strengthen local "insn" from rtx to
11880         rtx_insn *.
11881         (mips16e_collect_argument_saves): Likewise for locals "insn",
11882         "next".
11883         (mips_find_gp_ref): Likewise for param of callback for "pred"
11884         param, and for local "insn".
11885         (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
11886         (mips_insn_has_flexible_gp_ref_p): Likewise.
11887         (mips_epilogue_emit_cfa_restores): Likewise for return type and
11888         local "insn".
11889         (mips_epilogue_set_cfa): Likewise for local "insn".
11890         (mips_expand_epilogue): Likewise.
11891         (mips_adjust_insn_length): Likewise for param "insn".
11892         (mips_output_conditional_branch): Likewise.
11893         (mips_output_order_conditional_branch): Likewise.
11894         (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
11895         "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
11896         "falu2_turn_enabled_insn".
11897         (mips_builtin_branch_and_move): Strengthen locals "true_label",
11898         "done_label" from rtx to rtx_code_label *.
11899         (struct mips16_constant): Likewise for field "label".
11900         (mips16_add_constant): Likewise for return type.
11901         (mips16_emit_constants_1): Strengthen return type and param "insn"
11902         from rtx to rtx_insn *.
11903         (mips16_emit_constants): Likewise for param "insn".
11904         (mips16_insn_length): Likewise.
11905         (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
11906         to rtx_code_label *.
11907         (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
11908         from rtx to rtx_insn *.
11909         (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
11910         "jump".  Strengthen local "label" from rtx to rtx_code_label *.
11911         (r10k_simplify_address): Strengthen param "insn" and local
11912         "def_insn" from rtx to rtx_insn *.
11913         (r10k_safe_address_p): Strengthen param "insn" from rtx to
11914         rtx_insn *.
11915         (r10k_needs_protection_p_1): Update target type of cast of data
11916         from to rtx to rtx_insn *.
11917         (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
11918         rtx * to rtx_insn **.
11919         (r10k_needs_protection_p): Strengthen param "insn" from rtx to
11920         rtx_insn *.
11921         (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
11922         (mips_call_expr_from_insn): Likewise for param "insn".
11923         (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
11924         (mips_find_pic_call_symbol): Likewise for param "insn".
11925         (mips_annotate_pic_calls): Likewise for local "insn".
11926         (mips_sim_insn): Likewise for this variable.
11927         (struct mips_sim): Likewise for field "insn" within elements of
11928         last_set array.
11929         (mips_sim_wait_reg): Likewise for param "insn".
11930         (mips_sim_wait_regs): Likewise.
11931         (mips_sim_wait_units): Likewise.
11932         (mips_sim_wait_insn): Likewise.
11933         (mips_sim_issue_insn): Likewise.
11934         (mips_sim_finish_insn): Likewise.
11935         (mips_seq_time): Likewise for param "seq" and local "insn".
11936         (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
11937         locals "first", "second".
11938         (vr4130_align_insns): Likewise for locals "insn", "subinsn",
11939         "last", "last2", "next".
11940         (mips_avoid_hazard): Likewise for params "after", "insn".
11941         (mips_reorg_process_insns): Likewise for locals "insn",
11942         "last_insn", "subinsn", "next_insn".
11943         (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
11944         (mips16_split_long_branches): Likewise for locals "insn" "jump",
11945         "jump_sequence".
11946         (mips_output_mi_thunk): Likewise for local "insn".
11947         (mips_final_prescan_insn): Likewise for param "insn".
11948
11949 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11950
11951         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
11952         Strengthen return type and local "insns" from rtx to rtx_insn *.
11953         (microblaze_legitimize_tls_address): Likewise for local "insns".
11954         (microblaze_block_move_loop): Strengthen local "label" from rtx
11955         to rtx_code_label *.
11956         (microblaze_expand_prologue): Strengthen two locals named "insn"
11957         from rtx to rtx_insn *.
11958         (microblaze_asm_output_mi_thunk): Likewise for local "insn".
11959         (microblaze_expand_divide): Likewise for locals "jump", "cjump",
11960         "insn".  Strengthen locals "div_label", "div_end_label" from rtx
11961         to rtx_code_label *.
11962
11963 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11964
11965         * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
11966         param from rtx to rtx_insn *.
11967         (mep_reuse_lo): Likewise for third param.
11968         (mep_use_post_modify_p): Likewise for first param.
11969         (mep_core_address_length): Likewise.
11970         (mep_cop_address_length): Likewise.
11971         (mep_final_prescan_insn): Likewise.
11972         (mep_store_data_bypass_p): Likewise for both params.
11973         (mep_mul_hilo_bypass_p): Likewise.
11974         (mep_ipipe_ldc_p): Likewise for param.
11975
11976         * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
11977         (mep_rewrite_mult): Likewise.
11978         (mep_rewrite_mulsi3): Likewise.
11979         (mep_rewrite_maddsi3): Likewise.
11980         (mep_reuse_lo_p_1): Likewise.
11981         (mep_reuse_lo_p): Likewise.
11982         (mep_frame_expr): Likewise.
11983         (mep_make_parallel): Likewise for both params.
11984         (mep_use_post_modify_p_1): Likewise for param "set_insn" and
11985         local "insn".
11986         (mep_use_post_modify_p): Likewise for param "insn".
11987         (mep_core_address_length): Likewise.
11988         (mep_cop_address_length): Likewise.
11989         (mep_reg_set_in_function): Likewise for local "insn".
11990         (mep_asm_without_operands_p): Likewise.
11991         (F): Likewise for return type and param "x".
11992         (add_constant): Likewise for local "insn".
11993         (maybe_dead_move): Likewise for return type and local "insn".
11994         (mep_expand_prologue): Likewise for local "insn".
11995         (mep_final_prescan_insn): Likewise for param "insn".
11996         (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
11997         "next", "follow", "x".
11998         (mep_insert_repeat_label_last): Likewise for return type, param
11999         "last_insn", and locals "next", "prev".  Strengthen param "label"
12000         from rtx to rtx_code_label *.
12001         (struct mep_doloop_begin): Strengthen field "insn" from rtx to
12002         rtx_insn *.
12003         (struct mep_doloop_end): Likewise for fields "insn" and
12004         "fallthrough".
12005         (mep_reorg_repeat): Likewise for param "insns" and local "insn".
12006         Strengthen local "repeat_label" from rtx to rtx_code_label *.
12007         (mep_invertable_branch_p): Strengthen param "insn" from rtx to
12008         rtx_insn *.
12009         (mep_invert_branch): Likewise for params "insn" and "after".
12010         (mep_reorg_erepeat): Likewise for param "insns" and locals
12011         "insn", "prev", "new_last", "barrier", "user".  Strengthen local
12012         "l" from rtx to rtx_code_label *.
12013         (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
12014         from rtx to rtx_insn *.
12015         (mep_reorg_addcombine): Likewise for param "insns" and locals
12016         "i", "n".
12017         (add_sp_insn_p): Likewise for param "insn".
12018         (mep_reorg_noframe): Likewise for param "insns" and locals
12019         "start_frame_insn", "end_frame_insn", "next".
12020         (mep_reorg): Likewise for local "insns".
12021         (mep_store_data_bypass_1): Likewise for param "prev".  Add checked
12022         cast.
12023         (mep_store_data_bypass_p): Likewise for params "prev", "insn".
12024         (mep_mul_hilo_bypass_p): Likewise.
12025         (mep_ipipe_ldc_p): Likewise for param "insn".
12026         (mep_make_bundle): Likewise for return type, param "cop" and local
12027         "insn", splitting out the latter into a new local "seq" for when it
12028         is a SEQUENCE rather than an insn.
12029         (core_insn_p): Likewise for param "insn".
12030         (mep_bundle_insns): Likewise for param "insns" and locals "insn",
12031         "last", "first", "note", "prev", "core_insn".
12032
12033 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12034
12035         * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
12036         rtx to rtx_insn *.
12037         (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
12038         (m68k_final_prescan_insn): Likewise for first param.
12039
12040         * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
12041         (m68k_set_frame_related): Likewise for param "insn".
12042         (output_btst): Likewise for param "insn".
12043         (m68k_final_prescan_insn): Likewise.
12044         (m68k_move_to_reg): Likewise for local "insn".
12045         (m68k_call_tls_get_addr): Likewise for local "insns".
12046         (m68k_call_m68k_read_tp): Likewise.
12047         (strict_low_part_peephole_ok): Likewise for param "first_insn".
12048         (m68k_output_mi_thunk): Likewise for local "insn".
12049
12050 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12051
12052         * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
12053         first param from rtx to rtx_insn *.
12054         (iq2000_adjust_insn_length): Likewise.
12055         (iq2000_output_conditional_branch): Likewise.
12056         * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
12057         "insn" and local "nop_insn".
12058         (iq2000_annotate_frame_insn): Likewise for param "insn".
12059         (iq2000_expand_prologue): Likewise for both locals "insn".
12060         (iq2000_adjust_insn_length): Likewise for param "insn".
12061         (iq2000_output_conditional_branch): Likewise.
12062
12063 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12064
12065         * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
12066         "insns" from rtx to rtx_insn *.
12067         (ia64_emit_cond_move): Likewise for locals "insn", "first".
12068         (struct spill_fill_data): Likewise for field "init_after" and for
12069         elements of array field "prev_insn".
12070         (spill_restore_mem): Likewise for locals "insn", "first".
12071         (do_spill): Likewise for local "insn".
12072         (do_restore): Likewise.
12073         (ia64_expand_prologue): Likewise.
12074         (ia64_expand_epilogue): Likewise.
12075         (emit_insn_group_barriers): Likewise for locals "insn",
12076         "last_label".
12077         (emit_all_insn_group_barriers): Likewise for locals "insn",
12078         "last".
12079         (dfa_stop_insn): Likewise for this global.
12080         (dfa_pre_cycle_insn): Likewise.
12081         (ia64_nop): Likewise.
12082         (final_emit_insn_group_barriers): Likewise for locals "insn",
12083         "last".
12084         (emit_predicate_relation_info): Likewise for locals "head", "n",
12085         "insn", "b", "a".
12086         (ia64_reorg): Likewise for local "insn".
12087         (ia64_output_mi_thunk): Likewise.
12088         (expand_vec_perm_interleave_2): Likewise for local "seq".
12089
12090 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12091
12092         * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
12093         param 1 "insn" from rtx to rtx_insn *.
12094         (ix86_use_lea_for_mov): Likewise.
12095         (ix86_avoid_lea_for_addr): Likewise.
12096         (ix86_split_lea_for_addr): Likewise.
12097         (ix86_lea_for_add_ok): Likewise.
12098         (ix86_output_call_insn): Likewise.
12099
12100         * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
12101         (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
12102         (ix86_output_function_epilogue): Likewise for locals "insn",
12103         "deleted_debug_label".
12104         (legitimize_tls_address): Likewise for local "insn".
12105         (get_some_local_dynamic_name): Likewise.
12106         (increase_distance): Likewise for params "prev", "next".
12107         (distance_non_agu_define_in_bb): Likewise for params "insn",
12108         "start" and locals "prev", "next".
12109         (distance_non_agu_define): Likewise for param "insn".
12110         (distance_agu_use_in_bb): Likewise for params "insn", "start" and
12111         locals "next", "prev".
12112         (distance_agu_use): Likewise for param "insn".
12113         (ix86_lea_outperforms): Likewise.
12114         (ix86_ok_to_clobber_flags): Likewise.
12115         (ix86_avoid_lea_for_add): Likewise.
12116         (ix86_use_lea_for_mov): Likewise.
12117         (ix86_avoid_lea_for_addr): Likewise.
12118         (find_nearest_reg_def): Likewise, also for locals "prev", "start".
12119         (ix86_split_lea_for_addr): Likewise for param "insn".
12120         (ix86_lea_for_add_ok): Likewise for param "insn".
12121         (ix86_expand_carry_flag_compare): Likewise for local
12122         "compare_seq".
12123         (ix86_expand_int_movcc): Likewise.
12124         (ix86_output_call_insn): Likewise for param "insn".
12125         (ix86_output_call_insn): Likewise for local "i".
12126         (x86_output_mi_thunk): Introduce local "insn", using it in place
12127         of "tmp" when dealing with insns.
12128         (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
12129         "start".
12130         (ix86_pad_returns): Likewise for locals "ret", "prev".
12131         (ix86_count_insn_bb): Likewise for local "insn".
12132         (ix86_pad_short_function): Likewise for locals "ret", "insn".
12133         (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
12134         (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
12135         (expand_vec_perm_interleave2): Likewise for local "seq".
12136         (expand_vec_perm_vperm2f128_vblend): Likewise.
12137         (ix86_loop_unroll_adjust): Likewise for local "insn".  Convert
12138         call to for_each_rtx with for_each_rtx_in_insn.
12139
12140 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12141
12142         * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
12143         "label" from rtx to rtx_code_label *.
12144         (ix86_expand_prologue): Likewise.
12145         (ix86_expand_split_stack_prologue): Likewise for locals "label",
12146         "varargs_label".
12147         (ix86_split_idivmod): Likewise for locals "end_label" and
12148         "qimode_label".
12149         (ix86_expand_branch): Likewise for local "label2".
12150         (ix86_expand_aligntest): Likewise for return type and local "label".
12151         (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
12152         "top_label".
12153         (expand_movmem_epilogue): Likewise for the various locals named
12154         "label".
12155         (expand_setmem_epilogue): Likewise.
12156         (expand_small_movmem_or_setmem): Likewise for local "label".
12157         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
12158         Strengthen param "done_label" from rtx * to rtx_code_label **.
12159         Strengthen locals "loop_label" and "label" from rtx to
12160         rtx_code_label *.
12161         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
12162         Likewise for locals "loop_label", "label".
12163         (ix86_expand_set_or_movmem): Likewise for locals "label",
12164         "jump_around_label", "hot_label".
12165         (ix86_expand_strlensi_unroll_1): Likewise for locals
12166         "align_2_label", align_3_label", "align_4_label", "end_0_label",
12167         "end_2_label".
12168         (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
12169         (void ix86_emit_i387_log1p): Likewise for locals "label1",
12170         "label2", "jump_label".
12171         (ix86_expand_sse_compare_and_jump): Likewise for return type and
12172         local "label".
12173         (ix86_expand_lfloorceil): Likewise for local "label".
12174         (ix86_expand_rint): Likewise.
12175         (ix86_expand_floorceildf_32): Likewise.
12176         (ix86_expand_floorceil): Likewise.
12177         (ix86_expand_rounddf_32): Likewise.
12178         (ix86_expand_trunc): Likewise.
12179         (ix86_expand_truncdf_32): Likewise.
12180         (ix86_expand_round): Likewise.
12181
12182 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12183
12184         * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
12185         first param from rtx to rtx_insn *.
12186         (h8300_insn_length_from_table): Likewise.
12187         * config/h8300/h8300.c (F): Likewise for return type and param
12188         "x".
12189         (Fpa): Add a checked cast to rtx_insn *.
12190         (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
12191         rtx_insn *.
12192         (final_prescan_insn): Likewise for param "insn".
12193         (h8300_binary_length): Likewise.
12194         (h8300_insn_length_from_table): Likewise.
12195
12196 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12197
12198         * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
12199         Strengthen first param "insn" from rtx to rtx_insn *.
12200
12201         * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
12202         Likewise.
12203         (frame_insn): Likewise for return type.  Introduce local "insn"
12204         for use in place of local "x" for use as an rtx_insn *.
12205         (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
12206         (epiphany_expand_prologue): Likewise for local "insn".
12207         * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
12208         * config/epiphany/resolve-sw-modes.c
12209         (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
12210         "seq".
12211
12212 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12213
12214         * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
12215         param from rtx to rtx_insn *.
12216         (c6x_final_prescan_insn): Likewise for first param.
12217
12218         * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
12219         (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
12220         (c6x_expand_compare): Strengthen local "insns" from rtx to
12221         rtx_insn *.
12222         (c6x_get_unit_specifier): Likewise for param "insn".
12223         (c6x_print_unit_specifier_field): Likewise.
12224         (c6x_final_prescan_insn): Likewise.
12225         (emit_add_sp_const): Likewise for local "insn".
12226         (c6x_expand_prologue): Likewise.
12227
12228 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12229
12230         * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
12231         param 1 from rtx to rtx_insn *.
12232         * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
12233         the various locals named "insn".
12234         (expand_epilogue_reg_restore): Likewise.
12235         (frame_related_constant_load): Likewise.
12236         (add_to_reg): Likewise.
12237         (emit_link_insn): Likewise.
12238         (do_link): Likewise.
12239         (expand_interrupt_handler_prologue): Likewise.
12240         (branch_dest): Likewise for param "branch".
12241         (asm_conditional_branch): Likewise for param "insn".
12242         (gen_one_bundle): Likewise for elements of param "slot" and local
12243         "t".
12244         (bfin_gen_bundles): Likewise for locals "insn", "next" and
12245         elements of local "slot".
12246         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
12247         "queue", "next_queue", "prev".
12248         (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
12249         (add_sched_insns_for_speculation): Likewise for local "insn".
12250
12251 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12252
12253         * config/avr/avr-protos.h (output_movqi): Strengthen first param
12254         from rtx to rtx_insn *.
12255         (output_movhi): Likewise.
12256         (output_movsisf): Likewise.
12257         (avr_out_tstsi): Likewise.
12258         (avr_out_tsthi): Likewise.
12259         (avr_out_tstpsi): Likewise.
12260         (avr_out_compare): Likewise.
12261         (avr_out_compare64): Likewise.
12262         (avr_out_movpsi): Likewise.
12263         (ashlqi3_out): Likewise.
12264         (ashlhi3_out): Likewise.
12265         (ashlsi3_out): Likewise.
12266         (ashrqi3_out): Likewise.
12267         (ashrhi3_out): Likewise.
12268         (ashrsi3_out): Likewise.
12269         (lshrqi3_out): Likewise.
12270         (lshrhi3_out): Likewise.
12271         (lshrsi3_out): Likewise.
12272         (avr_out_ashlpsi3): Likewise.
12273         (avr_out_ashrpsi3): Likewise.
12274         (avr_out_lshrpsi3): Likewise.
12275         (avr_out_fract): Likewise.
12276         (avr_out_sbxx_branch): Likewise.
12277         (avr_out_round): Likewise.
12278         (avr_out_xload): Likewise.
12279         (avr_out_movmem): Likewise.
12280         (adjust_insn_length): Likewise.
12281         (avr_out_lpm): Likewise.
12282         (reg_unused_after): Likewise.
12283         (_reg_unused_after): Likewise.
12284         (avr_jump_mode): Likewise for second param.
12285         (jump_over_one_insn): Likewise for first param.
12286         (avr_final_prescan_insn): Likewise.
12287         (out_shift_with_cnt): Likewise for second param.
12288
12289         * config/avr/avr.c (get_sequence_length): Likewise for param
12290         "insns" and local "insn".
12291         (emit_push_byte): Likewise for local "insn".
12292         (emit_push_sfr): Likewise.
12293         (avr_prologue_setup_frame): Likewise for locals "insn",
12294         "fp_plus_insns", "sp_plus_insns".
12295         (avr_expand_epilogue): Likewise for local "fp_plus_insns",
12296         "sp_plus_insns".
12297         (avr_jump_mode): Likewise for param "insn".
12298         (avr_final_prescan_insn): Likewise.
12299         (avr_find_unused_d_reg): Likewise.
12300         (avr_out_lpm_no_lpmx): Likewise.
12301         (avr_out_lpm): Likewise.
12302         (avr_out_xload): Likewise.
12303         (output_movqi): Likewise.
12304         (output_movhi): Likewise.
12305         (out_movqi_r_mr): Likewise.
12306         (out_movhi_r_mr): Likewise.
12307         (out_movsi_r_mr): Likewise.
12308         (out_movsi_mr_r): Likewise.
12309         (output_movsisf): Likewise.
12310         (avr_out_load_psi): Likewise.
12311         (avr_out_store_psi): Likewise.
12312         (avr_out_movpsi): Likewise.
12313         (out_movqi_mr_r): Likewise.
12314         (avr_out_movhi_mr_r_xmega): Likewise.
12315         (out_movhi_mr_r): Likewise.
12316         (compare_condition): Likewise for param "insn" and local "next".
12317         (compare_sign_p): Likewise for param "insn".
12318         (compare_diff_p): Likewise.
12319         (compare_eq_p): Likewise.
12320         (avr_out_compare): Likewise.
12321         (avr_out_compare64): Likewise.
12322         (avr_out_tsthi): Likewise.
12323         (avr_out_tstpsi): Likewise.
12324         (avr_out_tstsi): Likewise.
12325         (out_shift_with_cnt): Likewise.
12326         (ashlqi3_out): Likewise.
12327         (ashlhi3_out): Likewise.
12328         (avr_out_ashlpsi3): Likewise.
12329         (ashlsi3_out): Likewise.
12330         (ashrqi3_out): Likewise.
12331         (ashrhi3_out): Likewise.
12332         (avr_out_ashrpsi3): Likewise.
12333         (ashrsi3_out): Likewise.
12334         (lshrqi3_out): Likewise.
12335         (lshrhi3_out): Likewise.
12336         (avr_out_lshrpsi3): Likewise.
12337         (lshrsi3_out): Likewise.
12338         (avr_out_fract): Likewise.
12339         (avr_out_round): Likewise.
12340         (avr_adjust_insn_length): Likewise.
12341         (reg_unused_after): Likewise.
12342         (_reg_unused_after): Likewise.
12343         (avr_compare_pattern): Likewise.
12344         (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
12345         and locals "branch1", "branch2", "insn2", "jump".
12346         (avr_reorg): Likewise for local "insn".
12347         (avr_2word_insn_p): Likewise for param "insn".
12348         (jump_over_one_insn_p): Likewise.
12349         (avr_out_sbxx_branch): Likewise.
12350         (avr_out_movmem): Likewise.
12351
12352 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12353
12354         * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
12355         param from rtx to rtx_insn *.
12356         (thumb1_final_prescan_insn): Likewise.
12357         (thumb2_final_prescan_insn): Likewise.
12358
12359         * config/arm/arm.c (emit_set_insn): Strengthen return type from
12360         rtx to rtx_insn *.
12361         (struct minipool_node): Likewise for field "insn".
12362         (dump_minipool): Likewise for param "scan".
12363         (create_fix_barrier): Likewise for local "from".  Strengthen local
12364         "label" from rtx to rtx_code_label *.
12365         (push_minipool_barrier): Strengthen param "insn" from rtx to
12366         rtx_insn *.
12367         (push_minipool_fix): Likewise.
12368         (note_invalid_constants): Likewise.
12369         (thumb2_reorg): Likewise for local "insn".
12370         (arm_reorg): Likewise.
12371         (thumb2_final_prescan_insn): Likewise for param
12372         "insn" and local "first_insn".
12373         (arm_final_prescan_insn): Likewise for param "insn" and locals
12374         "start_insn", "this_insn".
12375         (arm_debugger_arg_offset): Likewise for param "insn".
12376         (thumb1_emit_multi_reg_push): Likewise for return type and local
12377         "insn".
12378         (thumb1_final_prescan_insn): Likewise for param "insn".
12379         (thumb_far_jump_used_p): Likewise for local "insn".
12380         (thumb1_expand_prologue): Likewise.
12381         (arm_expand_epilogue_apcs_frame): Likewise.
12382         (arm_expand_epilogue): Likewise for locals "insn", "tmp".
12383         (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
12384         from rtx to rtx_code_label *.
12385         (arm_split_atomic_op): Likewise for local "label".
12386         (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
12387
12388 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12389
12390         * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
12391         first param from rtx to rtx_insn *.
12392         (arc_verify_short): Likewise.
12393         (arc_short_long): Likewise.
12394         (arc_need_delay): Likewise.
12395
12396         * config/arc/arc.c (struct arc_ccfsm): Likewise for field
12397         "target_insn".
12398         (arc_ccfsm_advance): Likewise for param "insn" and locals
12399         "start_insn", "this_insn".
12400         (arc_ccfsm_record_condition): Likewise for local "seq_insn".
12401         (arc_ccfsm_post_advance): Likewise for param "insn".
12402         (arc_next_active_insn): Likewise for return type and param "insn".
12403         Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
12404         (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
12405         (output_short_suffix): Likewise for local "insn".
12406         (arc_final_prescan_insn): Likewise for param "insn".  Remove
12407         now-redundant checked cast.
12408         (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
12409         "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
12410         rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
12411         for use where lc_set became an insn.
12412         (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
12413         rtx to rtx_insn *.
12414         (arc_get_insn_variants): Likewise for local "prev".
12415         (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
12416         "next".
12417         (arc_predicate_delay_insns): Likewise for local "insn".
12418         (arc_pad_return): Likewise for local "prev".  For now, add a
12419         checked cast when extracting the insn from "final_sequence".
12420         (arc_short_long): Likewise for param "insn".
12421         (arc_need_delay): Likewise for param "insn" and local "next".
12422         (arc_label_align): Likewise for locals "prev", "next".
12423
12424 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12425
12426         * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
12427         "insn" from rtx to rtx_insn *.
12428         (alpha_gp_save_rtx): Likewise for local "seq".
12429         (alpha_instantiate_decls): Likewise for local "top".
12430         (get_some_local_dynamic_name): Likewise for local "insn".
12431         (alpha_does_function_need_gp): Likewise.
12432         (set_frame_related_p): Likewise for return type and for locals
12433         "seq" and "insn".
12434         (emit_frame_store_1): Likewise for local "insn".
12435         (alpha_expand_prologue): Likewise for locals "insn", "seq".
12436         (alpha_end_function): Likewise for local "insn".
12437         (alpha_output_mi_thunk_osf): Likewise.
12438         (alphaev4_insn_pipe): Likewise for param "insn".
12439         (alphaev5_insn_pipe): Likewise.
12440         (alphaev4_next_group): Likewise for return type and param 1
12441         "insn".
12442         (alphaev5_next_group): Likewise.
12443         (alpha_align_insns_1): Likewise for return type and param 1 of
12444         callback param "next_group", and for locals "i", "next", "prev",
12445         "where", "where2", "insn".
12446
12447 2014-08-25  Bernd Schmidt  <bernds@codesourcery.com>
12448
12449         * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
12450         rather than modifying the stmt.
12451
12452 2014-08-25  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12453
12454         * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
12455         cgraph_state conversion.
12456
12457 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12458
12459         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
12460         Strengthen local "insns" from rtx to rtx_insn *.
12461         (aarch64_set_frame_expr): Likewise for local "insn".
12462         (aarch64_save_or_restore_fprs): Likewise.
12463         (aarch64_save_or_restore_callee_save_registers): Likewise.
12464         (aarch64_expand_prologue): Likewise.
12465         (aarch64_expand_epilogue): Likewise.
12466         (aarch64_output_mi_thunk): Likewise.
12467         (aarch64_split_compare_and_swap): Strengthen locals "label1" and
12468         "label2" from rtx to rtx_code_label *.
12469         (aarch64_split_atomic_op): Likewise for local "label".
12470
12471 2014-08-25  Martin Liska  <mliska@suse.cz>
12472
12473         * cgraph.h (symtab_node):
12474         (bool needed_p (void)): created from decide_is_symbol_needed
12475         (bool referred_to_p (void)): created from referred_to_p
12476         (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
12477         * cgraph.h (cgraph_node):
12478         (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
12479         (void expand (void)): created from expand_function
12480         (static void finalize_function (tree, bool)): created from cgraph_finalize_function
12481         (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
12482         (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
12483         (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
12484         * cgraph.h (varpool_node):
12485         (static void add (tree decl): created from varpool_add_new_variable
12486         * cgraph.h (cgraph_edge):
12487         void remove (void);
12488         (void remove_caller (void)): created from cgraph_edge_remove_caller
12489         (void remove_callee (void)): created from cgraph_edge_remove_callee
12490         (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
12491           created from cgraph_set_call_stmt
12492         (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
12493         (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
12494         (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
12495           gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
12496         (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
12497           created from cgraph_speculative_call_info
12498         (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
12499           int freq_scale, bool update_original)): created from cgraph_clone_edge
12500         (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
12501         (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
12502         (bool recursive_p (void)): created from cgraph_edge_recursive_p
12503         (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
12504         (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
12505         (static void rebuild_references (void)): created from cgraph_rebuild_references
12506         * cgraph.h (symbol_table):
12507         (create_reference): renamed from add_reference
12508         (maybe_create_reference): renamed from maybe_add_reference
12509         (void register_symbol (symtab_node *node)): new function
12510         (void clear_asm_symbols (void)): new function
12511         (void unregister (symtab_node *node)): new function
12512         (void release_symbol (cgraph_node *node, int uid)): new function
12513         (cgraph_node * allocate_cgraph_symbol (void)): new function
12514         (void initialize (void)): created from cgraph_init
12515         (symtab_node *first_symbol (void)):new function
12516         (asm_node *first_asm_symbol (void)):new function
12517         (symtab_node *first_defined_symbol (void)):new function
12518         (varpool_node *first_variable (void)):new function
12519         (varpool_node *next_variable (varpool_node *node)):new function
12520         (varpool_node *first_static_initializer (void)):new function
12521         (varpool_node *next_static_initializer (varpool_node *node)):new function
12522         (varpool_node *first_defined_variable (void)):new function
12523         (varpool_node *next_defined_variable (varpool_node *node)):new function
12524         (cgraph_node *first_defined_function (void)):new function
12525         (cgraph_node *next_defined_function (cgraph_node *node)):new function
12526         (cgraph_node *first_function (void)):new function
12527         (cgraph_node *next_function (cgraph_node *node)):new function
12528         (cgraph_node *first_function_with_gimple_body (void)):new function
12529         (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
12530         (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
12531           created from symtab_remove_unreachable_nodes
12532         (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
12533         (void process_new_functions (void)): created from cgraph_process_new_functions
12534         (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
12535         (bool output_variables (void)): created from varpool_node::output_variables
12536         (void output_asm_statements (void)): created from output_asm_statements
12537         (void finalize_compilation_unit (void)): created from finalize_compilation_unit
12538         (void compile (void)): created from compile
12539         (void output_weakrefs (void)): created from output_weakrefs
12540         (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
12541         (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
12542           gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
12543         (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
12544         (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
12545           created from cgraph_next_function_with_gimple_body
12546         (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
12547           created from cgraph_remove_edge_removal_hook
12548         (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
12549           created from cgraph_add_node_removal_hook
12550         (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
12551           created from cgraph_remove_node_removal_hook
12552         (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
12553           created from varpool_add_node_removal_hook
12554         (void remove_varpool_removal_hook (varpool_node_hook_list *)):
12555           created from varpool_remove_node_removal_hook
12556         (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
12557           created from cgraph_add_function_insertion_hook
12558         (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
12559           created from cgraph_remove_function_insertion_hook
12560         (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
12561           created from varpool_add_variable_insertion_hook
12562         (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
12563           created from varpool_remove_variable_insertion_hook
12564         (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
12565           created from cgraph_add_edge_duplication_hook
12566         (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
12567           created from cgraph_remove_edge_duplication_hook
12568         (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
12569           created from cgraph_add_node_duplication_hook
12570         (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
12571           created from cgraph_remove_node_duplication_hook
12572         (void call_edge_removal_hooks (cgraph_edge *e)):
12573           created from cgraph_call_edge_removal_hooks
12574         (void call_cgraph_insertion_hooks (cgraph_node *node)):
12575           created from call_function_insertion_hooks
12576         (void call_cgraph_removal_hooks (cgraph_node *node)):
12577           created from cgraph_call_node_removal_hooks
12578         (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
12579           created from cgraph_node::call_duplication_hooks
12580         (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
12581           created from cgraph_call_edge_duplication_hooks
12582         (void call_varpool_removal_hooks (varpool_node *node)):
12583           created from varpool_call_node_removal_hooks
12584         (void call_varpool_insertion_hooks (varpool_node *node)):
12585           created from varpool_call_variable_insertion_hooks
12586         (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
12587           created from insert_to_assembler_name_hash
12588         (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
12589           created from unlink_from_assembler_name_hash
12590         (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
12591           created from symtab_prevail_in_asm_name_hash
12592         (void symtab_initialize_asm_name_hash (void)):
12593           created from symtab_initialize_asm_name_hash
12594         (void change_decl_assembler_name (tree decl, tree name)):
12595           created from change_decl_assembler_name
12596         (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
12597         (static hashval_t decl_assembler_name_hash (const_tree asmname)):
12598           created from decl_assembler_name_hash
12599         (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
12600           created from decl_assembler_name_equal
12601         (static hashval_t hash_node_by_assembler_name (const void *p)):
12602           created from hash_node_by_assembler_name
12603         (static int eq_assembler_name (const void *p1, const void *p2)):
12604           created from eq_assembler_name
12605
12606 2014-08-25  Marek Polacek  <polacek@redhat.com>
12607
12608         * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
12609
12610 2014-08-25  Petr Murzin  <petr.murzin@intel.com>
12611
12612         * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
12613         (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
12614         SWI1248_AVX512BW mode iterator.
12615
12616 2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
12617
12618         PR target/62111
12619         * config/sh/predicates.md (general_extend_operand): Disable
12620         TRUNCATE before reload completes.
12621
12622 2014-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
12623
12624         * doc/invoke.texi (Optimize Options): Fix markup in two cases.
12625
12626 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
12627
12628         PR target/61996
12629         * config/sh/sh.opt (musermode): Allow negative form.
12630         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
12631         targets that don't support it.
12632         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
12633         Document -mno-usermode option.
12634
12635 2014-08-24  Kito Cheng  <kito@0xlab.org>
12636
12637         * system.h (CALLER_SAVE_PROFITABLE): Poison.
12638         * regs.h (CALLER_SAVE_PROFITABLE): Remove.
12639         * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
12640         * doc/tm.texi: Regenerate.
12641
12642 2014-08-24  Kito Cheng  <kito@0xlab.org>
12643
12644         * ira.c: Fix typo in comment.
12645
12646 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
12647
12648         * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
12649         Deprecate c++1y. Change language to reflect greater confidence in C++14.
12650
12651 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
12652
12653         PR target/62038
12654         * config/pa/pa.c (pa_output_function_epilogue): Don't set
12655         last_address when the current function is a thunk.
12656         (pa_asm_output_mi_thunk): When we don't have named sections or they
12657         are not being used, check that thunk can reach the stub table with a
12658         short branch.
12659
12660 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
12661
12662         * web.c (union_match_dups): Strengthen param "insn" from rtx to
12663         rtx_insn *.
12664         (pass_web::execute): Likewise for local "insn".
12665
12666 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
12667
12668         * var-tracking.c (struct micro_operation_def): Strengthen field
12669         "insn" from rtx to rtx_insn *.
12670         (struct emit_note_data_def): Likewise.
12671         (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
12672         (vt_stack_adjustments): Likewise for local "insn".
12673         (adjust_insn): Likewise for param "insn".
12674         (val_store): Likewise.
12675         (val_resolve): Likewise.
12676         (struct count_use_info): Likewise for field "insn".
12677         (log_op_type): Likewise for param "insn".
12678         (reverse_op): Likewise.
12679         (prepare_call_arguments): Likewise.
12680         (add_with_sets):  The initial param takes an insn, but we can't
12681         yet strengthen it from rtx to rtx_insn * since it's used as a
12682         cselib_record_sets_hook callback.  For now rename initial param
12683         from "insn" to "uncast_insn", and introduce a local "insn" of
12684         the stronger rtx_insn * type, with a checked cast.
12685         (compute_bb_dataflow): Strengthen local "insn" from rtx to
12686         rtx_insn *.
12687         (emit_note_insn_var_location): Likewise.
12688         (emit_notes_for_changes): Likewise.
12689         (emit_notes_for_differences): Likewise.
12690         (next_non_note_insn_var_location): Likewise for return type and
12691         for param "insn".
12692         (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
12693         (vt_initialize): Likewise for local "insn".
12694         (delete_debug_insns): Likewise for locals "insn" and "next".
12695
12696 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
12697
12698         * varasm.c (mark_constants): Strengthen param "insn" from rtx to
12699         rtx_insn *.
12700         (mark_constant_pool): Likewise for local "insn".
12701
12702 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
12703
12704         * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
12705         rtx to rtx_insn *.
12706         (dead_debug_promote_uses): Likewise.
12707         (dead_debug_insert_temp): Likewise.
12708
12709 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
12710
12711         * store-motion.c (store_killed_in_insn): Strengthen param "insn"
12712         from const_rtx to const rtx_insn *.
12713         (store_killed_after): Likewise.  Strengthen locals "last", "act"
12714         from rtx to rtx_insn *.
12715         (store_killed_before): Strengthen param "insn" from const_rtx to
12716         const rtx_insn *.  Strengthen local "first" from rtx to rtx_insn *.
12717         (find_moveable_store): Strengthen param "insn" from rtx to
12718         rtx_insn *.
12719         (compute_store_table): Likewise for local "insn".
12720         (insert_insn_start_basic_block): Likewise for param "insn" and
12721         locals "prev", "before", "insn".
12722         (insert_store): For now, add a checked cast to rtx_insn * on the
12723         result of gen_move_insn.
12724         (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
12725         to rtx_insn *.
12726         (replace_store_insn): Likewise.  For now, add a checked cast to
12727         rtx_insn * on the result of gen_move_insn.
12728
12729 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12730
12731         * stmt.c (expand_case): Strengthen local "before_case" from rtx to
12732         rtx_insn *.
12733         (expand_sjlj_dispatch_table): Likewise.
12734
12735 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12736
12737         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
12738         "insn" from rtx to rtx_insn *.
12739
12740 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12741
12742         * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
12743         "insn" from rtx to rtx_insn *.
12744         (dup_block_and_redirect): Likewise for param 3 "before".
12745
12746         * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
12747         from rtx to rtx_insn *.
12748         (move_insn_for_shrink_wrap): Likewise.
12749         (prepare_shrink_wrap): Likewise for locals "insn", "curr".
12750         (dup_block_and_redirect): Likewise for param "before" and local
12751         "insn".
12752         (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
12753         "end".
12754         (convert_to_simple_return): Likewise for local "start".
12755
12756         * config/i386/i386.c (ix86_finalize_stack_realign_flags):
12757         Strengthen local "insn" from rtx to rtx_insn *, for use when
12758         invoking requires_stack_frame_p.
12759
12760 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12761
12762         * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
12763         rtx_insn *.
12764         (speculate_expr): Likewise for locals "orig_insn_rtx",
12765         "spec_insn_rtx".
12766         (eq_transformed_insns): Likewise for locals "i1", "i2".
12767         (check_for_new_jump): Likewise for return type and local "end".
12768         (find_new_jump): Likewise for return type and local "jump".
12769         (sel_split_edge): Likewise for local "jump".
12770         (sel_create_recovery_block): Likewise.
12771         (sel_redirect_edge_and_branch_force): Likewise.
12772         (sel_redirect_edge_and_branch): Likewise.
12773
12774 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12775
12776         * sel-sched.c (substitute_reg_in_expr): Strengthen local
12777         "new_insn" from rtx to rtx_insn *.
12778         (create_insn_rtx_with_rhs): Likewise for return type and for local
12779         "insn_rtx".
12780         (create_insn_rtx_with_lhs): Likewise.
12781         (create_speculation_check): Likewise for local "insn_rtx".
12782         (implicit_clobber_conflict_p): Likewise for local "insn".
12783         (get_expr_cost): Likewise.
12784         (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
12785         (move_cond_jump): Likewise for locals "next", "prev", "link",
12786         "head", "from", "to".
12787
12788 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12789
12790         * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
12791         "next" from rtx to rtx_insn *.
12792         (find_conditional_protection): Likewise for local "next".
12793         (is_conditionally_protected): Likewise for local "insn1".
12794         (is_pfree): Likewise for locals "insn1", "insn2".
12795
12796 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12797
12798         * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
12799         from rtx to rtx_insn *.
12800
12801         * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
12802         locals "insn1", "insn2" from rtx to rtx_insn *.
12803         (add_deps_for_risky_insns): Likewise for params "head", "tail" and
12804         locals "insn", "prev", "last_jump", "next_tail".
12805         (schedule_ebb): Likewise for params "head", "tail".
12806         (schedule_ebbs): Likewise for locals "tail", "head".
12807
12808         * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
12809         to rtx_insn on "last_insn" in one of the invocations of
12810         schedule_ebb.
12811
12812 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12813
12814         * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
12815         "elem", "insn" from rtx to rtx_insn *.
12816         (change_spec_dep_to_hard): Likewise.
12817         (get_back_and_forw_lists): Likewise for local "con".
12818         (sd_add_dep): Likewise for locals "elem", "insn".
12819         (sd_resolve_dep): Likewise for locals "pro", "con".
12820         (sd_unresolve_dep): Likewise.
12821         (sd_delete_dep): Likewise.
12822         (chain_to_prev_insn): Likewise for local "pro".
12823         (find_inc): Likewise for locals "pro", "con".
12824
12825 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12826
12827         * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
12828         to rtx_insn *.
12829         (reg_set_between_p): Strengthen local "insn" from const_rtx to
12830         const rtx_insn *.
12831         (modified_between_p): Strengthen local "insn" from rtx to
12832         rtx_insn *.
12833         (remove_reg_equal_equiv_notes_for_regno): Likewise.
12834         (keep_with_call_p): Strengthen local "i2" from const_rtx to
12835         const rtx_insn *.
12836
12837 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12838
12839         * resource.c (next_insn_no_annul): Strengthen local "next" from
12840         rtx to rtx_insn *.
12841         (mark_referenced_resources): Likewise for local "insn".
12842
12843 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12844
12845         * reload.h (struct insn_chain): Strengthen field "insn" from rtx
12846         to rtx_insn *.
12847         (find_reloads): Likewise for param 1.
12848         (subst_reloads): Likewise for sole param.
12849         (find_equiv_reg): Likwise for param 2.
12850         (regno_clobbered_p): Likwise for param 2.
12851         (reload): Likewise for param 1.
12852
12853         * caller-save.c (save_call_clobbered_regs): Strengthen local
12854         "insn" from rtx to rtx_insn *.
12855         (insert_one_insn): Likewise for local "insn".
12856
12857         * reload.c (this_insn): Likewise for this global.
12858         (find_reloads): Likewise for param "insn".
12859         (find_reloads_toplev): Likewise.
12860         (find_reloads_address): Likewise.
12861         (subst_reg_equivs): Likewise.
12862         (update_auto_inc_notes): Likewise.
12863         (find_reloads_address_1): Likewise.
12864         (find_reloads_subreg_address): Likewise.
12865         (subst_reloads): Likewise.
12866         (find_equiv_reg): Likewise, also for local "p".
12867         (regno_clobbered_p): Likewise for param "insn".
12868
12869         * reload1.c (reg_reloaded_insn): Likewise for the elements of this
12870         array.
12871         (spill_reg_store): Likewise for the elements of this array.
12872         (remove_init_insns): Likewise for local "equiv_insn".
12873         (will_delete_init_insn_p): Likewise for param "insn".
12874         (reload): Likewise for param ""first" and local "insn".
12875         (calculate_needs_all_insns): Strengthen local "insn" from rtx to
12876         rtx_insn *.
12877         (calculate_elim_costs_all_insns): Likewise.
12878         (delete_caller_save_insns): Likewise.
12879         (spill_failure): Likewise for param "insn".
12880         (delete_dead_insn): Likewise.
12881         (set_label_offsets): Likewise.
12882         (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
12883         "prev_insn".
12884         (elimination_costs_in_insn): Likewise for param "insn".
12885         (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
12886         when referring to an insn.
12887         (set_initial_label_offsets): Likewise.
12888         (set_offsets_for_label): Strengthen param "insn" from rtx to
12889         rtx_insn *.
12890         (init_eliminable_invariants): Likewise for param "first" and local
12891         "insn".
12892         (fixup_eh_region_note): Likewise for param "insn".
12893         (reload_as_needed): Likewise for locals "prev", "insn",
12894         "old_next", "old_prev", "next".
12895         (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
12896         "last".
12897         (reload_inheritance_insn): Strengthen elements of this array from
12898         rtx to rtx_insn *.
12899         (failed_reload): Likewise for param "insn".
12900         (choose_reload_regs): Likewise for local "insn".  Replace use of
12901         NULL_RTX with NULL when referring to an insn.
12902         (input_reload_insns): Strengthen elements of this array from rtx
12903         to rtx_insn *.
12904         (other_input_address_reload_insns): Likewise for this global.
12905         (other_input_reload_insns): Likewise for this global.
12906         (input_address_reload_insns): Likwise for the elements of this
12907         array.
12908         (inpaddr_address_reload_insns): Likwise for the elements of this
12909         array.
12910         (output_reload_insns): Likewise for the elements of this array.
12911         (output_address_reload_insns): Likewise for the elements of this
12912         array.
12913         (outaddr_address_reload_insns): Likewise for the elements of this
12914         array.
12915         (operand_reload_insns): Likewise for this global.
12916         (other_operand_reload_insns): Likewise for this global.
12917         (other_output_reload_insns): Likewise for the elements of this
12918         array.
12919         (new_spill_reg_store): Likewise for the elements of this
12920         array.
12921         (emit_input_reload_insns): Likewise for locals "insn", "temp".
12922         Strengthen local "where" from rtx * to rtx_insn **.
12923         (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
12924         from rtx to rtx_insn *.
12925         (do_input_reload): Likewise for local "insn".
12926         (do_output_reload): Likewise for local "insn".
12927         (emit_reload_insns): Likewise for locals "insn" and "store_insn".
12928         (emit_insn_if_valid_for_reload): Likewise for return type and local
12929         "last".  Add checked cast to rtx_insn when returning "insn" since
12930         this has been through emit_insn.
12931         (gen_reload): Strengthen return type and locals "last", "insn", "set"
12932         from rtx to rtx_insn *.  Add checked cast to rtx_insn when
12933         returning "insn" since it's been through
12934         emit_insn_if_valid_for_reload at this point.
12935         (delete_output_reload): Strengthen param "insn" and locals
12936         "output_reload_insn", "i2" from rtx to rtx_insn *.
12937         (delete_address_reloads): Likewise for params "dead_insn",
12938         "current_insn" and locals "prev", "next".
12939         (delete_address_reloads_1): Likewise for params "dead_insn",
12940         "current_insn" and locals "prev", "i2".
12941         (inc_for_reload): Likewise for locals "last", "add_insn".
12942         (add_auto_inc_notes): Strengthen param "insn" from rtx to
12943         rtx_insn *.
12944
12945         * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
12946         param of this duplicate of the prototype from reload.h
12947
12948 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12949
12950         * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
12951         rtx to rtx_insn *.
12952         (regstat_bb_compute_calls_crossed): Likewise.
12953
12954 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12955
12956         * regrename.c (create_new_chain): Strengthen param "insn" from rtx
12957         to rtx_insn *.
12958         (init_rename_info): Replace use of NULL_RTX with NULL when dealing
12959         with an insn.
12960         (regrename_analyze): Strengthen local "insn" from rtx to
12961         rtx_insn *.
12962         (scan_rtx_reg): Likewise for param "insn".
12963         (scan_rtx_address): Likewise.
12964         (scan_rtx): Likewise.
12965         (restore_operands): Likewise.
12966         (record_out_operands): Likewise.
12967         (build_def_use): Likewise for local "insn".  Replace use of
12968         NULL_RTX with NULL when dealing with an insn.
12969
12970 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12971
12972         * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
12973         * reginfo.c (reg_scan): Likewise, also for local "insn".
12974         (reg_scan_mark_refs): Likewise for param "insn".
12975         (init_subregs_of_mode): Likewise for local "insn".
12976
12977 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12978
12979         * regcprop.c (struct queued_debug_insn_change): Strengthen field
12980         "insn" from rtx to rtx_insn *.
12981         (replace_oldest_value_reg): Likewise for param "insn".
12982         (replace_oldest_value_addr): Likewise.
12983         (replace_oldest_value_mem): Likewise.
12984         (apply_debug_insn_changes): Likewise for local "last_insn".
12985         (copyprop_hardreg_forward_1): Likewise for local "insn".
12986
12987 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12988
12989         * reg-stack.c (next_flags_user): Strengthen return type and param
12990         "insn" from rtx to rtx_insn *.
12991         (straighten_stack): Likewise for param "insn".
12992         (check_asm_stack_operands): Likewise.
12993         (remove_regno_note): Likewise.
12994         (emit_pop_insn): Likewise for return type, param "insn", local
12995         "pop_insn".
12996         (emit_swap_insn):  Strengthen param "insn" and locals "i1", "tmp",
12997         "limit" from rtx to rtx_insn *.
12998         (swap_to_top): Likewise for param "insn".
12999         (move_for_stack_reg): Likewise.
13000         (move_nan_for_stack_reg): Likewise.
13001         (swap_rtx_condition): Likewise.
13002         (compare_for_stack_reg): Likewise.
13003         (subst_all_stack_regs_in_debug_insn): Likewise.
13004         (subst_stack_regs_pat): Likewise, and local "insn2".
13005         (subst_asm_stack_regs): Strengthen param "insn" from rtx to
13006         rtx_insn *.
13007         (subst_stack_regs): Likewise.
13008         (change_stack): Likewise.
13009         (convert_regs_1): Likewise for locals "insn", "next".
13010
13011 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13012
13013         * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
13014         rtx_insn *.
13015         (combine_set_extension): Likewise for param "curr_insn".
13016         (transform_ifelse): Likewise for param "def_insn".
13017         (get_defs): Likewise for param "def_insn".  Strengthen param "dest"
13018         from vec<rtx> * to vec<rtx_insn *> *.
13019         (is_cond_copy_insn): Likewise for param "insn".
13020         (struct ext_state): Strengthen the four vec fields from vec<rtx>
13021         to vec<rtx_insn *>.
13022         (make_defs_and_copies_lists): Strengthen param "extend_insn" and
13023         local "def_insn" from rtx to rtx_insn *.
13024         (get_sub_rtx): Likewise for param "def_insn".
13025         (merge_def_and_ext): Likewise.
13026         (combine_reaching_defs): Likewise.
13027         (add_removable_extension): Likewise for param "insn".
13028         (find_removable_extensions): Likewise for local "insn".
13029         (find_and_remove_re): Likewise for locals "curr_insn" and
13030         "def_insn".  Strengthen locals "reinsn_del_list" and
13031         "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
13032
13033 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13034
13035         * recog.c (split_insn): Strengthen param "insn" and locals
13036         "first", "last" from rtx to rtx_insn *.
13037         (split_all_insns): Likewise for locals "insn", "next".
13038         (split_all_insns_noflow): Likewise.
13039
13040 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13041
13042         * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
13043         const rtx_insn *.
13044         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
13045         (debug_rtx_find): Likewise for param 1 "x".
13046
13047         * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
13048         const_rtx to const rtx_insn *.  Likewise for local "insn".
13049         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
13050         (debug_rtx_find): Likewise for param 1 "x".
13051         (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
13052         from const_rtx to const rtx_insn * within the appropriate cases of
13053         the switch statement.
13054
13055         * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
13056         Strengthen local "insns" from rtx to rtx_insn * since this is
13057         passed to a call to debug_rtx_list.
13058
13059 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13060
13061         * predict.h (predict_insn_def): Strengthen param "insn" from rtx
13062         to rtx_insn *.
13063
13064         * function.c (stack_protect_epilogue): Add checked cast to
13065         rtx_insn for now when invoking predict_insn_def.
13066
13067         * predict.c (predict_insn): Strengthen param "insn" from rtx to
13068         rtx_insn *.
13069         (predict_insn_def): Likewise.
13070         (rtl_predict_edge): Likewise for local "last_insn".
13071         (can_predict_insn_p): Strengthen param "insn" from const_rtx to
13072         const rtx_insn *.
13073         (combine_predictions_for_insn): Strengthen param "insn" from rtx
13074         to rtx_insn *.
13075         (bb_estimate_probability_locally): Likewise for local "last_insn".
13076         (expensive_function_p): Likewise for local "insn".
13077
13078         * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
13079         local "jmp", since this is used when invoking predict_insn_def.
13080
13081 2014-08-22  Marek Polacek  <polacek@redhat.com>
13082
13083         PR c++/62199
13084         * doc/invoke.texi: Update -Wlogical-not-parentheses description.
13085
13086 2014-08-22  Marek Polacek  <polacek@redhat.com>
13087
13088         PR c/61271
13089         * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
13090         a comparison in parens.
13091         * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
13092         in parens.
13093
13094 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13095
13096         * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
13097         rtx_insn *.
13098
13099         * cprop.c (fis_get_condition): Likewise.
13100
13101         * postreload.c (reload_cse_regs): Likewise for param "first".
13102         (reload_cse_simplify): Likewise for param "insn".
13103         (reload_cse_regs_1): Likewise for local "insn".
13104         (reload_cse_simplify_set): Likewise for param "insn".
13105         (reload_cse_simplify_operands): Likewise.
13106         (struct reg_use): Likewise for field "insn".
13107         (reload_combine_purge_insn_uses): Likewise for param "insn".
13108         (fixup_debug_insns): Likewise for params "from", "to" and local
13109         "insn".
13110         (try_replace_in_use): Likewise for local "use_insn".
13111         (reload_combine_recognize_const_pattern): Likewise for param
13112         "insn" and locals "add_moved_after_insn", "use_insn".
13113         (reload_combine_recognize_pattern): Likewise for param "insn" and
13114         local "prev".
13115         (reload_combine): Likewise for locals "insn", "prev".
13116         (reload_combine_note_use): Likewise for param "insn".
13117         (move2add_use_add2_insn): Likewise.
13118         (move2add_use_add3_insn): Likewise.
13119         (reload_cse_move2add): Likewise, also for local "next".
13120         (move2add_note_store): Likewise for local "insn".
13121
13122 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13123
13124         * postreload-gcse.c (struct occr): Strengthen field "insn" from
13125         rtx to rtx_insn *.
13126         (struct unoccr): Likewise.
13127         (struct modifies_mem): Likewise.
13128         (alloc_mem): Likewise for local "insn".
13129         (insert_expr_in_table): Likewise for param "insn".
13130         (dump_expr_hash_table_entry): Likewise for local "insn".
13131         (oprs_unchanged_p): Likewise for param "insn".
13132         (load_killed_in_block_p): Likewise for local "setter".
13133         (record_last_reg_set_info): Likewise for param "insn".
13134         (record_last_reg_set_info_regno): Likewise.
13135         (record_last_mem_set_info): Likewise.
13136         (record_last_set_info): Likewise for local "last_set_insn".
13137         (record_opr_changes): Likewise for param "insn".
13138         (hash_scan_set): Likewise.
13139         (compute_hash_table): Likewise for local "insn".
13140         (get_avail_load_store_reg): Likewise for param "insn".
13141         (eliminate_partially_redundant_load): Likewise, also for locals
13142         "avail_insn", "next_pred_bb_end".  Replace use of NULL_RTX with
13143         RTX for insns.
13144         (eliminate_partially_redundant_loads): Likewise for local "insn".
13145
13146 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13147
13148         * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
13149         rtx to rtx_insn *.
13150         (expand_binop): Likewise for locals "entry_last", "last", "insns"
13151         (expand_twoval_unop): Likewise for locals entry_last", "last".
13152         (expand_twoval_binop): Likewise.
13153         (expand_twoval_binop_libfunc): Likewise for local "insns".
13154         (widen_leading): Likewise for local "last".
13155         (expand_doubleword_clz): Likewise for local "seq".  Strengthen
13156         locals "hi0_label", "after_label" from rtx to rtx_code_label *.
13157         (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
13158         (expand_parity): Likewise for locals "last" and "seq".
13159         (expand_ffs): Likewise for local "seq".  Strengthen local
13160         "nonzero_label" from rtx to rtx_code_label *.
13161         (expand_absneg_bit): Strengthen local "insns" from rtx to
13162         rtx_insn *.
13163         (expand_unop_direct): Likewise for local "last".
13164         (expand_unop): Likewise for locals "last", "insns".
13165         (expand_abs_nojump): Likewise for local "last".
13166         (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
13167         (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
13168         rtx_insn *.
13169         (expand_copysign_absneg): Strengthen local "label" from rtx to
13170         rtx_code_label *.
13171         (expand_copysign_bit): Strengthen local "insns" from rtx to
13172         rtx_insn *.
13173         (struct no_conflict_data): Likewise for fields "first", "insn".
13174         (emit_libcall_block_1): Likewise for param "insns" and locals
13175         "next", "last", "insn".
13176         (emit_libcall_block): For now, add a checked cast to rtx_insn *
13177         on "insns" when invoking emit_libcall_block_1.  Ultimately we
13178         want to strengthen insns itself.
13179         (prepare_cmp_insn): Strengthen local "last" from rtx to
13180         rtx_insn *.
13181         (emit_cmp_and_jump_insn_1): Likewise for local "insn".
13182         (prepare_float_lib_cmp): Likewise for local "insns".
13183         (emit_conditional_move): Likewise for local "last".
13184         (emit_conditional_add): Likewise.
13185         (have_sub2_insn): Likewise for local "seq".
13186         (expand_float): Likewise for local "insns".  Strengthen locals
13187         "label", "neglabel" from rtx to rtx_code_label *.
13188         (expand_fix): Likewise for locals "last", "insn", "insns" (to
13189         rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
13190         (expand_fixed_convert): Likewise for local "insns" (to
13191         rtx_insn *).
13192         (expand_sfix_optab): Likewise for local "last".
13193         (expand_compare_and_swap_loop): Strengthen local "label" from rtx
13194         to rtx_code_label *.
13195         (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
13196         from rtx to rtx_insn *.
13197         (expand_atomic_fetch_op): Likewise for local "insn".
13198         (maybe_legitimize_operand_same_code): Likewise for local "last".
13199         (maybe_legitimize_operands): Likewise.
13200
13201 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13202
13203         * modulo-sched.c (struct ps_reg_move_info): Strengthen field
13204         "insn" from rtx to rtx_insn *.
13205         (ps_rtl_insn): Likewise for return type.
13206         (doloop_register_get): Likewise for params "head", "tail" and
13207         locals "insn", "first_insn_not_to_check".
13208         (schedule_reg_move): Likewise for local "this_insn".
13209         (schedule_reg_moves): Add a checked cast to rtx_insn * to result
13210         of gen_move_insn for now.
13211         (reset_sched_times): Strengthen local "insn" from rtx to
13212         rtx_insn *.
13213         (permute_partial_schedule): Likewise.
13214         (duplicate_insns_of_cycles): Likewise for local "u_insn".
13215         (dump_insn_location): Likewise for param "insn".
13216         (loop_canon_p): Likewise for local "insn".
13217         (sms_schedule): Likewise.
13218         (print_partial_schedule): Likewise.
13219         (ps_has_conflicts): Likewise.
13220
13221 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13222
13223         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
13224         "tailp" from rtx * to rtx_insn **.
13225
13226         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
13227         from rtx to rtx_insn *.
13228         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
13229         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
13230         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
13231         rtx to rtx_insn *.
13232         * modulo-sched.c (const_iteration_count): Strengthen return type
13233         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
13234         use of NULL_RTX with NULL when working with insns.
13235         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
13236         to rtx_insn *.
13237         (sms_schedule): Likewise.
13238         * sched-rgn.c (init_ready_list): Likewise, also for locals
13239         "src_head" and "src_next_tail".
13240         (compute_block_dependences): Likewise.
13241         (free_block_dependencies): Likewise.
13242         (debug_rgn_dependencies): Likewise.
13243         (free_rgn_deps): Likewise.
13244         (compute_priorities): Likewise.
13245         (schedule_region): Likewise.
13246         * sel-sched.c (find_ebb_boundaries): Likewise.
13247
13248         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
13249         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
13250
13251 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13252
13253         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
13254         from rtx to rtx_insn *.
13255         (new_seginfo): Likewise for param "insn".
13256         (create_pre_exit): Likewise for locals "last_insn",
13257         "before_return_copy", "return_copy".
13258         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
13259         "mode_set".
13260
13261 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13262
13263         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
13264         from rtx to rtx_insn *.
13265         (lra_push_insn): Likewise for 1st param.
13266         (lra_push_insn_and_update_insn_regno_info): Likewise.
13267         (lra_pop_insn): Likewise for return type.
13268         (lra_invalidate_insn_data): Likewise for 1st param.
13269         (lra_set_insn_deleted): Likewise.
13270         (lra_delete_dead_insn): Likewise.
13271         (lra_process_new_insns): Likewise for first 3 params.
13272         (lra_set_insn_recog_data): Likewise for 1st param.
13273         (lra_update_insn_recog_data): Likewise.
13274         (lra_set_used_insn_alternative): Likewise.
13275         (lra_invalidate_insn_regno_info): Likewise.
13276         (lra_update_insn_regno_info): Likewise.
13277         (lra_former_scratch_operand_p): Likewise.
13278         (lra_eliminate_regs_1): Likewise.
13279         (lra_get_insn_recog_data): Likewise.
13280
13281         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
13282         rtx to rtx_insn *.
13283
13284         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
13285         "mv1" and "mv2".
13286         (substitute_within_insn): New.
13287         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
13288         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
13289         Replace call to "substitute" with call to substitute_within_insn.
13290
13291         * lra-constraints.c (curr_insn): Strengthen from rtx to
13292         rtx_insn *.
13293         (get_equiv_with_elimination): Likewise for param "insn".
13294         (match_reload): Strengthen params "before" and "after" from rtx *
13295         to rtx_insn **.
13296         (emit_spill_move): Likewise for return type.  Add a checked cast
13297         to rtx_insn * on result of gen_move_insn for now.
13298         (check_and_process_move): Likewise for local "before".  Replace
13299         NULL_RTX with NULL when referring to insns.
13300         (process_addr_reg): Strengthen params "before" and "after" from
13301         rtx * to rtx_insn **.
13302         (insert_move_for_subreg): Likewise.
13303         (simplify_operand_subreg): Strengthen locals "before" and "after"
13304         from rtx to rtx_insn *.
13305         (process_address_1): Strengthen params "before" and "after" from
13306         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
13307         rtx to rtx_insn *.
13308         (process_address): Strengthen params "before" and "after" from
13309         rtx * to rtx_insn **.
13310         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
13311         (curr_insn_transform): Strengthen locals "before" and "after"
13312         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
13313         to insns.
13314         (loc_equivalence_callback): Update cast of "data", changing
13315         resulting type from rtx to rtx_insn *.
13316         (substitute_pseudo_within_insn): New.
13317         (inherit_reload_reg): Strengthen param "insn" from rtx to
13318         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
13319         NULL when referring to insns.  Add a checked cast to rtx_insn *
13320         when using usage_insn to invoke lra_update_insn_regno_info.
13321         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
13322         likewise for locals "restore", "save".  Add checked casts to
13323         rtx_insn * when using usage_insn to invoke
13324         lra_update_insn_regno_info and lra_process_new_insns.  Replace
13325         NULL_RTX with NULL when referring to insns.
13326         (split_if_necessary): Strengthen param "insn" from rtx to
13327         rtx_insn *.
13328         (update_ebb_live_info): Likewise for params "head", "tail" and local
13329         "prev_insn".
13330         (get_last_insertion_point): Likewise for return type and local "insn".
13331         (get_live_on_other_edges): Likewise for local "last".
13332         (inherit_in_ebb): Likewise for params "head", "tail" and locals
13333         "prev_insn", "next_insn", "restore".
13334         (remove_inheritance_pseudos): Likewise for local "prev_insn".
13335         (undo_optional_reloads): Likewise for local "insn".
13336
13337         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
13338         "insn".
13339         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
13340         insns.
13341         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
13342         rtx_insn *.
13343         (spill_pseudos): Likewise for local "insn".
13344         (init_elimination): Likewise.
13345         (process_insn_for_elimination): Likewise for param "insn".
13346
13347         * lra-lives.c (curr_insn): Likewise.;
13348
13349         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
13350         (remove_pseudos): Likewise for param "insn".
13351         (spill_pseudos): Likewise for local "insn".
13352         (lra_final_code_change): Likewise for locals "insn", "curr".
13353
13354         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
13355         (lra_set_insn_deleted): Likewise.
13356         (lra_delete_dead_insn): Likewise, and for local "prev".
13357         (new_insn_reg): Likewise for param "insn".
13358         (lra_set_insn_recog_data): Likewise.
13359         (lra_update_insn_recog_data): Likewise.
13360         (lra_set_used_insn_alternative): Likewise.
13361         (get_insn_freq): Likewise.
13362         (invalidate_insn_data_regno_info): Likewise.
13363         (lra_invalidate_insn_regno_info): Likewise.
13364         (lra_update_insn_regno_info): Likewise.
13365         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
13366         vec<rtx_insn *>.
13367         (lra_push_insn_1): Strengthen param "insn" from rtx to
13368         rtx_insn *.
13369         (lra_push_insn): Likewise.
13370         (lra_push_insn_and_update_insn_regno_info): Likewise.
13371         (lra_pop_insn): Likewise for return type and local "insn".
13372         (push_insns): Likewise for params "from", "to", and local "insn".
13373         (setup_sp_offset): Likewise for params "from", "last" and locals
13374         "before", "insn".
13375         (lra_process_new_insns): Likewise for params "insn", "before",
13376         "after" and local "last".
13377         (struct sloc): Likewise for field "insn".
13378         (lra_former_scratch_operand_p): Likewise for param "insn".
13379         (remove_scratches): Likewise for locals "insn", "last".
13380         (check_rtl): Likewise for local "insn".
13381         (add_auto_inc_notes): Likewise for param "insn".
13382         (update_inc_notes): Likewise for local "insn".
13383         (lra): Replace NULL_RTX with NULL when referring to insn.
13384
13385 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13386
13387         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
13388         to rtx_insn *.
13389         (resolve_reg_notes): Likewise.
13390         (resolve_simple_move): Likewise for return type, param "insn", and
13391         locals "insns", "minsn".
13392         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
13393         (resolve_use): Likewise.
13394         (resolve_debug): Likewise.
13395         (find_decomposable_shift_zext): Likewise.
13396         (resolve_shift_zext): Likewise for return type, param "insn", and
13397         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
13398         (decompose_multiword_subregs): Likewise for local "insn",
13399         "orig_insn", "decomposed_shift", "end".
13400
13401 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13402
13403         * basic-block.h (basic_block split_edge_and_insert): Strengthen
13404         param "insns" from rtx to rtx_insn *.
13405
13406         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
13407         rtx to rtx_insn *.
13408         (struct iv_to_split): Likewise.
13409         (loop_exit_at_end_p): Likewise for local "insn".
13410         (split_edge_and_insert): Likewise for param "insns".
13411         (compare_and_jump_seq): Likewise for return type, param "cinsn",
13412         and locals "seq", "jump".
13413         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
13414         "branch_code"; update invocations of compare_and_jump_seq to
13415         eliminate NULL_RTX in favor of NULL.
13416         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
13417         rtx to rtx_insn *.
13418         (reset_debug_uses_in_loop): Likewise.
13419         (analyze_insn_to_expand_var): Likewise for param "insn".
13420         (analyze_iv_to_split_insn): Likewise.
13421         (analyze_insns_in_loop): Likewise for local "insn".
13422         (insert_base_initialization): Likewise for param
13423         "insn" and local "seq".
13424         (split_iv): Likewise for param "insn" and local "seq".
13425         (expand_var_during_unrolling): Likewise for param "insn".
13426         (insert_var_expansion_initialization): Likewise for local "seq".
13427         (combine_var_copies_in_loop_exit): Likewise.
13428         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
13429         "insn".
13430         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
13431         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
13432         "next".
13433
13434 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13435
13436         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
13437         rtx_insn *.
13438         (iv_analyze_result): Likewise.
13439         (iv_analyze_expr): Likewise.
13440         (biv_p): Likewise.
13441
13442         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
13443         local "def_insn" from rtx to rtx_insn *.
13444         (get_biv_step_1): Likewise for local "insn".
13445         (iv_analyze_expr): Likewise for param "insn".
13446         (iv_analyze_def): Likewise for local "insn".
13447         (iv_analyze_op): Likewise for param "insn".
13448         (iv_analyze): Likewise.
13449         (iv_analyze_result): Likewise.
13450         (biv_p): Likewise.
13451         (suitable_set_for_replacement): Likewise.
13452         (simplify_using_initial_values): Likewise for local "insn".
13453         (iv_number_of_iterations): Likewise for param "insn".
13454         (check_simple_exit): Add checked cast to rtx_insn when invoking
13455         iv_number_of_iterations for now (until get_condition is
13456         strengthened).
13457
13458         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
13459         "insn" from rtx to rtx_insn *.
13460         (analyze_insns_in_loop): Likewise for local "insn".
13461
13462 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13463
13464         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
13465         to rtx_insn *.
13466         (struct invariant): Likewise.
13467         (hash_invariant_expr_1): Likewise for param "insn".
13468         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
13469         (find_exits): Likewise for local "insn".
13470         (create_new_invariant): Likewise for param "insn".
13471         (check_dependencies): Likewise.
13472         (find_invariant_insn): Likewise.
13473         (record_uses): Likewise.
13474         (find_invariants_insn): Likewise.
13475         (find_invariants_bb): Likewise for local "insn".
13476         (get_pressure_class_and_nregs): Likewise for param "insn".
13477         (calculate_loop_reg_pressure): Likewise for local "insn".
13478
13479 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13480
13481         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
13482         to rtx_insn *.
13483         (add_test): Likewise for locals "seq", "jump".
13484         (doloop_modify): Likewise for locals "sequence", "jump_insn".
13485
13486 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13487
13488         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
13489         rtx_insn *.
13490         (rebuild_jump_labels_chain): Likewise for param "chain".
13491
13492         * cfgexpand.c (pass_expand::execute): Add checked cast to
13493         rtx_insn * when calling rebuild_jump_labels_chain in region where
13494         we know e->insns.r is non-NULL.
13495
13496         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
13497         rtx_insn *.
13498         (rebuild_jump_labels): Likewise.
13499         (rebuild_jump_labels_chain): Likewise for param "chain".
13500         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
13501         (init_label_info): Likewise for param "f".
13502         (maybe_propagate_label_ref): Likewise for params "jump_insn",
13503         "prev_nonjump_insn".
13504         (mark_all_labels): Likewise for param "f" and locals "insn",
13505         "prev_nonjump_insn".
13506
13507 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13508
13509         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
13510         from rtx to rtx_insn *insn.
13511         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
13512         (ira_add_allocno_copy): Likewise.
13513         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
13514         rtx to rtx_insn *.
13515         (ira_create_copy): Likewise.
13516         (ira_add_allocno_copy): Likewise.
13517         (create_bb_allocnos): Likewise for local "insn".
13518         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
13519         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
13520         process_regs_for_copy for rtx_insn * param.
13521         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
13522         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
13523         process_regs_for_copy for rtx_insn * param.
13524         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
13525         * ira-costs.c (record_reg_classes): Likewise for param "insn".
13526         (record_operand_costs): Likewise.
13527         (scan_one_insn): Likewise for return type, and for param "insn".
13528         (process_bb_for_costs): Likewise for local "insn".
13529         (process_bb_node_for_hard_reg_moves): Likewise.
13530         * ira-emit.c (struct move): Likewise for field "insn".
13531         (create_move): Eliminate use of NULL_RTX when dealing with an
13532         rtx_insn *.
13533         (emit_move_list): Strengthen return type and locals "result",
13534         "insn" from rtx to rtx_insn *insn.
13535         (emit_moves): Likewise for locals "insns", "tmp".
13536         (ira_emit): Likewise for local "insn".
13537         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
13538         "insn".
13539         (find_call_crossed_cheap_reg): Likewise.
13540         (process_bb_node_lives): Likewise for local "insn".
13541         * ira.c (decrease_live_ranges_number): Likewise.
13542         (compute_regs_asm_clobbered): Likewise.
13543         (build_insn_chain): Likewise.
13544         (find_moveable_pseudos): Likewise, also locals "def_insn",
13545         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
13546         to rtx_insn **.  Add a checked cast when assigning from
13547         "closest_use" into closest_uses array in a region where we know
13548         it's a non-NULL insn.
13549         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
13550         to rtx_insn *.
13551         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
13552         "last_interesting_insn", "uin".
13553         (move_unallocated_pseudos): Likewise for locals "def_insn",
13554         "move_insn", "newinsn".
13555
13556 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13557
13558         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
13559         Strengthen locals "done_label", "do_error" from rtx to
13560         rtx_code_label *.
13561         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
13562         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
13563         rtx_code_label *.
13564         (ubsan_expand_si_overflow_neg_check): Likewise for locals
13565         "done_label", "do_error" to rtx_code_label * and local  "last" to
13566         rtx_insn *.
13567         (ubsan_expand_si_overflow_mul_check): Likewise for locals
13568         "done_label", "do_error", "large_op0", "small_op0_large_op1",
13569         "one_small_one_large", "both_ops_large", "after_hipart_neg",
13570         "after_lopart_neg", "do_overflow", "hipart_different"  to
13571         rtx_code_label * and local  "last" to rtx_insn *.
13572
13573 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13574
13575         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
13576         "insn" and "move_insn" from rtx to rtx_insn *.
13577
13578 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13579
13580         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
13581         rtx_insn *.
13582         (cheap_bb_rtx_cost_p): Likewise.
13583         (first_active_insn): Likewise for return type and local "insn".
13584         (last_active_insn):  Likewise for return type and locals "insn",
13585         "head".
13586         (struct noce_if_info): Likewise for fields "jump", "insn_a",
13587         "insn_b".
13588         (end_ifcvt_sequence): Likewise for return type and locals "insn",
13589         "seq".
13590         (noce_try_move): Likewise for local "seq".
13591         (noce_try_store_flag): Likewise.
13592         (noce_try_store_flag_constants): Likewise.
13593         (noce_try_addcc): Likewise.
13594         (noce_try_store_flag_mask): Likewise.
13595         (noce_try_cmove): Likewise.
13596         (noce_try_minmax): Likewise.
13597         (noce_try_abs): Likewise.
13598         (noce_try_sign_mask): Likewise.
13599         (noce_try_bitop): Likewise.
13600         (noce_can_store_speculate_p): Likewise for local "insn".
13601         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
13602         seq".
13603         (check_cond_move_block): Likewise for local "insn".
13604         (cond_move_convert_if_block): Likewise.
13605         (cond_move_process_if_block): Likewise for locals "seq",
13606         "loc_insn".
13607         (noce_find_if_block): Likewise for local "jump".
13608         (merge_if_block): Likewise for local "last".
13609         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
13610         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
13611         (block_has_only_trap): Likewise for return type and local "trap".
13612         (find_if_case_1): Likewise for local "jump".
13613         (dead_or_predicable): Likewise for locals "head", "end", "jump",
13614         "insn".
13615
13616 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13617
13618         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
13619         "last_insn", "loop_end" from rtx to rtx_insn *.
13620
13621         * hw-doloop.c (scan_loop): Likewise for local "insn".
13622         (discover_loop): Likewise for param "tail_insn".
13623         (discover_loops): Likewise for local "tail".
13624
13625         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
13626         cast to rtx_insn * when assigning from an rtx local to a
13627         hwloop_info's "last_insn" field.
13628
13629 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13630
13631         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
13632         (add_delay_dependencies): Strengthen local "pro" from rtx to
13633         rtx_insn *.
13634         (recompute_todo_spec): Likewise.
13635         (dep_cost_1): Likewise for locals "insn", "used".
13636         (schedule_insn): Likewise for local "dbg".
13637         (schedule_insn): Likewise for locals "pro", "next".
13638         (unschedule_insns_until): Likewise for local "con".
13639         (restore_pattern): Likewise for local "next".
13640         (estimate_insn_tick): Likewise for local "pro".
13641         (resolve_dependencies): Likewise for local "next".
13642         (fix_inter_tick): Likewise.
13643         (fix_tick_ready): Likewise for local "pro".
13644         (add_to_speculative_block): Likewise for locals "check", "twin",
13645         "pro".
13646         (sched_extend_bb): Likewise for locals "end", "insn".
13647         (init_before_recovery): Likewise for local "x".
13648         (sched_create_recovery_block): Likewise for local "barrier".
13649         (create_check_block_twin): Likewise for local "pro".
13650         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
13651         "consumer".
13652         (unlink_bb_notes): Update for change to type of bb_header.
13653         Strengthen locals "prev", "label", "note", "next" from rtx to
13654         rtx_insn *.
13655         (clear_priorities): Likewise for local "pro".
13656
13657 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13658
13659         * gcse.c (struct occr): Strengthen field "insn" from rtx to
13660         rtx_insn *.
13661         (test_insn): Likewise for this global.
13662         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
13663         const rtx_insn *.
13664         (oprs_anticipatable_p): Likewise.
13665         (oprs_available_p): Likewise.
13666         (insert_expr_in_table): Strengthen param "insn" from  rtx to
13667         rtx_insn *.
13668         (hash_scan_set): Likewise.
13669         (hash_scan_clobber): Likewise.
13670         (hash_scan_call): Likewise.
13671         (hash_scan_insn): Likewise.
13672         (compute_hash_table_work): Likewise for local "insn".
13673         (process_insert_insn): Likewise for return type and local "pat".
13674         (insert_insn_end_basic_block): Likewise for locals "new_insn",
13675         "pat", "pat_end", "maybe_cc0_setter".
13676         (pre_edge_insert): Likewise for local "insn".
13677         (pre_insert_copy_insn): Likewise for param "insn".
13678         (pre_insert_copies): Likewise for local "insn".
13679         (struct set_data): Likewise for field "insn".
13680         (single_set_gcse): Likewise for param "insn".
13681         (gcse_emit_move_after): Likewise.
13682         (pre_delete): Likewise for local "insn".
13683         (update_bb_reg_pressure): Likewise for param "from" and local
13684         "insn".
13685         (should_hoist_expr_to_dom): Likewise for param "from".
13686         (hoist_code): Likewise for local "insn".
13687         (get_pressure_class_and_nregs): Likewise for param "insn".
13688         (calculate_bb_reg_pressure): Likewise for local "insn".
13689         (compute_ld_motion_mems): Likewise.
13690
13691 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13692
13693         * genpeep.c (main): Rename param back from "uncast_ins1" to
13694         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
13695         checked cast.
13696
13697         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
13698
13699 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
13700
13701         PR target/62195
13702         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
13703         documentation to state it is only for VSX operations.
13704
13705         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
13706         constraint only active if VSX.
13707
13708         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
13709         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
13710         (lfiwzx): Likewise.
13711
13712 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13713
13714         * fwprop.c (single_def_use_dom_walker::before_dom_children):
13715         Strengthen local "insn" from rtx to rtx_insn *.
13716         (use_killed_between): Likewise for param "target_insn".
13717         (all_uses_available_at): Likewise for param "target_insn" and
13718         local "next".
13719         (update_df_init): Likewise for params "def_insn", "insn".
13720         (update_df): Likewise for param "insn".
13721         (try_fwprop_subst): Likewise for param "def_insn" and local
13722         "insn".
13723         (free_load_extend): Likewise for param "insn".
13724         (forward_propagate_subreg): Likewise for param "def_insn" and
13725         local "use_insn".
13726         (forward_propagate_asm): Likewise for param "def_insn" and local
13727         "use_insn".
13728         (forward_propagate_and_simplify): Likewise for param "def_insn"
13729         and local "use_insn".
13730         (forward_propagate_into): Likewise for locals "def_insn" and
13731         "use_insn".
13732
13733 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13734
13735         * function.c (emit_initial_value_sets): Strengthen local "seq"
13736         from rtx to rtx_insn *.
13737         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
13738         local "seq".
13739         (instantiate_virtual_regs): Likewise for local "insn".
13740         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
13741         (reorder_blocks_1): Likewise for param "insns" and local "insn".
13742         (expand_function_end): Likewise for locals "insn" and "seq".
13743         (epilogue_done): Likewise for local "insn".
13744         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
13745         "last", "trial".
13746         (reposition_prologue_and_epilogue_notes): Likewise for locals
13747         "insn", "last", "note", "first".
13748         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
13749         (pass_match_asm_constraints::execute): Likewise for local "insn".
13750
13751 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13752
13753         * output.h (final_scan_insn): Strengthen return type from rtx to
13754         rtx_insn *.
13755         (final_forward_branch_p): Likewise for param.
13756         (current_output_insn): Likewise for this global.
13757
13758         * final.c (rtx debug_insn): Likewise for this variable.
13759         (current_output_insn): Likewise.
13760         (get_attr_length_1): Rename param "insn" to "uncast_insn",
13761         adding "insn" back in as an rtx_insn * with a checked cast, so
13762         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
13763         first param.
13764         (compute_alignments): Strengthen local "label" from rtx to
13765         rtx_insn *.
13766         (shorten_branches): Rename param from "first" to "uncast_first",
13767         introducing a new local rtx_insn * "first" using a checked cast to
13768         effectively strengthen "first" from rtx to rtx_insn * without
13769         affecting the type signature.  Strengthen locals "insn", "seq",
13770         "next", "label" from rtx to rtx_insn *.
13771         (change_scope): Strengthen param "orig_insn" and local "insn" from
13772         rtx to rtx_insn *.
13773         (final_start_function): Rename param from "first" to "uncast_first",
13774         introducing a new local rtx_insn * "first" using a checked cast to
13775         effectively strengthen "first" from rtx to rtx_insn * without
13776         affecting the type signature.  Strengthen local "insn" from rtx to
13777         rtx_insn *.
13778         (dump_basic_block_info): Strengthen param "insn" from rtx to
13779         rtx_insn *.
13780         (final): Rename param from "first" to "uncast_first",
13781         introducing a new local rtx_insn * "first" using a checked cast to
13782         effectively strengthen "first" from rtx to rtx_insn * without
13783         affecting the type signature.  Strengthen locals "insn", "next"
13784         from rtx to rtx_insn *.
13785         (output_alternate_entry_point): Strengthen param "insn" from rtx to
13786         rtx_insn *.
13787         (call_from_call_insn): Strengthen param "insn" from rtx to
13788         rtx_call_insn *.
13789         (final_scan_insn): Rename param from "insn" to "uncast_insn",
13790         introducing a new local rtx_insn * "insn" using a checked cast to
13791         effectively strengthen "insn" from rtx to rtx_insn * without
13792         affecting the type signature.  Strengthen return type and locals
13793         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
13794         now-redundant checked cast to rtx_insn * from both invocations of
13795         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
13796         introducing a local "call_insn" for use when invoking
13797         call_from_call_insn.
13798         (notice_source_line): Strengthen param "insn" from rtx to
13799         rtx_insn *.
13800         (leaf_function_p): Likewise for local "insn".
13801         (final_forward_branch_p): Likewise.
13802         (leaf_renumber_regs): Likewise for param "first".
13803         (rest_of_clean_state): Likewise for locals "insn" and "next".
13804         (self_recursive_call_p): Likewise for param "insn".
13805         (collect_fn_hard_reg_usage): Likewise for local "insn".
13806         (get_call_fndecl): Likewise for param "insn".
13807         (get_call_cgraph_rtl_info): Likewise.
13808         (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
13809         introducing a new local rtx_insn * "insn" using a checked cast to
13810         effectively strengthen "insn" from rtx to rtx_insn * without
13811         affecting the type signature.
13812
13813         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
13814         cast when assigning from param "insn" to current_output_insn.
13815         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
13816         so that we can assign it back to current_output_insn.
13817
13818 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13819
13820         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
13821         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
13822         atmxt540s and atmxt540sreva devices.
13823         * config/avr/avr-tables.opt: Regenerate.
13824         * config/avr/t-multilib: Regenerate.
13825         * doc/avr-mmcu.texi: Regenerate.
13826
13827 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13828
13829         * expr.c (convert_move): Strengthen local "insns" from rtx to
13830         rtx_insn *.
13831         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
13832         "top_label" from rtx to rtx_code_label *.
13833         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
13834         rtx_insn *.
13835         (emit_single_push_insn): Likewise for locals "prev", "last".
13836         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
13837         to rtx_code_label *.
13838         (store_constructor): Likewise for locals "loop_start", "loop_end".
13839         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
13840         rtx_insn *.
13841         (expand_expr_real_2): Likewise.
13842         (expand_expr_real_1): Strengthen local "label" from rtx to
13843         rtx_code_label *.
13844
13845 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13846
13847         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
13848         from rtx to rtx_insn *.
13849         (store_bit_field_1): Likewise.
13850         (extract_bit_field_1): Likewise.
13851         (expand_mult_const): Likewise for local "insns".
13852         (expmed_mult_highpart): Strengthen local "label" from rtx to
13853         rtx_code_label *.
13854         (expand_smod_pow2): Likewise.
13855         (expand_sdiv_pow2): Likewise.
13856         (expand_divmod): Strengthen locals "last", "insn" from rtx to
13857         rtx_insn *.  Strengthen locals "label", "label1", "label2",
13858         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
13859         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
13860         (emit_store_flag): Likewise.
13861         (emit_store_flag_force): Strengthen local "label" from rtx to
13862         rtx_code_label *.
13863         (do_cmp_and_jump): Likewise for param "label".
13864
13865 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13866
13867         * explow.c (force_reg): Strengthen local "insn" from rtx to
13868         rtx_insn *.
13869         (adjust_stack_1): Likewise.
13870         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
13871         "final_label", "available_label", "space_available" from rtx to
13872         rtx_code_label *.
13873         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
13874         (anti_adjust_stack_and_probe): Likewise.
13875
13876 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13877
13878         * except.h (sjlj_emit_function_exit_after): Strengthen param
13879         "after" from rtx to rtx_insn *.  This is only called with
13880         result of get_last_insn (in function.c) so type-change should be
13881         self-contained.
13882
13883         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
13884         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
13885         to rtx_insn *.  These fields are only used from except.c so this
13886         type-change should be self-contained to this patch.
13887
13888         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
13889         local "last" from rtx to rtx_insn *.
13890         (dw2_build_landing_pads): Likewise for local "seq".
13891         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
13892         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
13893         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
13894         rtx to rtx_insn *.
13895         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
13896         to rtx_insn *.
13897         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
13898         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
13899         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
13900         referring to an insn.  Strengthen local "dispatch_label" from
13901         rtx to rtx_code_label *.
13902         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
13903         rtx_insn *.
13904         (expand_eh_return): Strengthen local "around_label" from
13905         rtx to rtx_code_label *.
13906         (convert_to_eh_region_ranges): Strengthen locals "iter",
13907         "last_action_insn", "first_no_action_insn",
13908         "first_no_action_insn_before_switch",
13909         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
13910
13911 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13912
13913         * dwarf2out.c (last_var_location_insn): Strengthen this variable
13914         from rtx to rtx_insn *.
13915         (cached_next_real_insn): Likewise.
13916         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
13917         working with insns.
13918         (dwarf2out_var_location): Strengthen locals "next_real",
13919         "next_note", "expected_next_loc_note", "last_start", "insn" from
13920         rtx to rtx_insn *.
13921
13922 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13923
13924         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
13925         from rtx to rtx_insn *.
13926         (create_pseudo_cfg): Likewise for local "insn".
13927
13928 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13929
13930         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
13931         from rtx to rtx_insn *.
13932         (df_bb_regno_last_def_find): Likewise.
13933
13934         * df-problems.c (df_rd_bb_local_compute): Likewise.
13935         (df_lr_bb_local_compute): Likewise.
13936         (df_live_bb_local_compute): Likewise.
13937         (df_chain_remove_problem): Likewise.
13938         (df_chain_create_bb): Likewise.
13939         (df_word_lr_bb_local_compute): Likewise.
13940         (df_remove_dead_eq_notes): Likewise for param "insn".
13941         (df_note_bb_compute): Likewise for local "insn".
13942         (simulate_backwards_to_point): Likewise.
13943         (df_md_bb_local_compute): Likewise.
13944
13945         * df-scan.c (df_scan_free_bb_info): Likewise.
13946         (df_scan_start_dump): Likewise.
13947         (df_scan_start_block): Likewise.
13948         (df_install_ref_incremental): Likewise for local "insn".
13949         (df_insn_rescan_all): Likewise.
13950         (df_reorganize_refs_by_reg_by_insn): Likewise.
13951         (df_reorganize_refs_by_insn_bb): Likewise.
13952         (df_recompute_luids): Likewise.
13953         (df_bb_refs_record): Likewise.
13954         (df_update_entry_exit_and_calls): Likewise.
13955         (df_bb_verify): Likewise.
13956
13957 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13958
13959         * ddg.h (struct ddg_node): Strengthen fields "insn" and
13960         "first_note" from rtx to rtx_insn *.
13961         (get_node_of_insn): Likewise for param 2 "insn".
13962         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
13963
13964         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
13965         rtx_insn *.
13966         (mem_write_insn_p): Likewise.
13967         (mem_access_insn_p): Likewise.
13968         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
13969         (def_has_ccmode_p): Likewise for param "insn".
13970         (add_cross_iteration_register_deps): Likewise for locals
13971         "def_insn" and "use_insn".
13972         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
13973         (build_intra_loop_deps): Likewise for local "src_insn".
13974         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
13975         to rtx_insn *.
13976         (get_node_of_insn): Likewise for param "insn".
13977
13978 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13979
13980         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
13981         (deletable_insn_p): Strengthen param "insn" from rtx to
13982         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
13983         find_call_stack_args, since this is guarded by CALL_P (insn).
13984         (marked_insn_p): Strengthen param "insn" from rtx to
13985         rtx_insn *.
13986         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
13987         invoking find_call_stack_args, since this is guarded by
13988         CALL_P (insn).
13989         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
13990         rtx_insn *; we know this is an insn since this was called by
13991         mark_nonreg_stores.
13992         (mark_nonreg_stores_2): Likewise.
13993         (mark_nonreg_stores): Strengthen param "insn" from rtx to
13994         rtx_insn *.
13995         (find_call_stack_args): Strengthen param "call_insn" from rtx to
13996         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
13997         to rtx_insn *.
13998         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
13999         from rtx to rtx_insn *.
14000         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
14001         "next", "ref_insn".
14002         (delete_unmarked_insns): Likewise for locals "insn", "next".
14003         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
14004         (mark_reg_dependencies): Likewise for param "insn".
14005         (rest_of_handle_ud_dce): Likewise for local "insn".
14006         (word_dce_process_block): Likewise.
14007         (dce_process_block): Likewise.
14008
14009 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14010
14011         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
14012         from rtx to rtx_insn *.
14013         (struct change_cc_mode_args): Likewise for field "insn".
14014         (this_insn): Strengthen from rtx to rtx_insn *.
14015         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
14016         with insn.
14017         (validate_canon_reg): Strengthen param "insn" from rtx to
14018         rtx_insn *.
14019         (canon_reg): Likewise.
14020         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
14021         dealing with insn.
14022         (record_jump_equiv): Strengthen param "insn" from rtx to
14023         rtx_insn *.
14024         (try_back_substitute_reg): Likewise, also for locals "prev",
14025         "bb_head".
14026         (find_sets_in_insn): Likewise for param "insn".
14027         (canonicalize_insn): Likewise.
14028         (cse_insn): Likewise.  Add a checked cast.
14029         (invalidate_from_clobbers): Likewise for param "insn".
14030         (invalidate_from_sets_and_clobbers): Likewise.
14031         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
14032         dealing with insn.
14033         (cse_prescan_path): Strengthen local "insn" from rtx to
14034         rtx_insn *.
14035         (cse_extended_basic_block): Likewise for locals "insn" and
14036         "prev_insn".
14037         (cse_main): Likewise for param "f".
14038         (check_for_label_ref): Likewise for local "insn".
14039         (set_live_p): Likewise for second param ("insn").
14040         (insn_live_p): Likewise for first param ("insn") and for local
14041         "next".
14042         (cse_change_cc_mode_insn): Likewise for first param "insn".
14043         (cse_change_cc_mode_insns): Likewise for first and second params
14044         "start" and "end".
14045         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
14046         and "end".
14047         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
14048         "cc_src_insn".
14049
14050 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14051             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14052             Anna Tikhonova  <anna.tikhonova@intel.com>
14053             Ilya Tocar  <ilya.tocar@intel.com>
14054             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14055             Ilya Verbin  <ilya.verbin@intel.com>
14056             Kirill Yukhin  <kirill.yukhin@intel.com>
14057             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14058
14059         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
14060         New.
14061         * config/i386/sse.md
14062         (define_mode_iterator VI248_AVX2): Delete.
14063         (define_mode_iterator VI2_AVX2_AVX512BW): New.
14064         (define_mode_iterator VI48_AVX2): Ditto.
14065         (define_insn <shift_insn><mode>3): Delete.
14066         (define_insn "<shift_insn><mode>3<mask_name>" with
14067         VI2_AVX2_AVX512BW): New.
14068         (define_insn "<shift_insn><mode>3<mask_name>" with
14069         VI48_AVX2): Ditto.
14070
14071 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14072             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14073             Anna Tikhonova  <anna.tikhonova@intel.com>
14074             Ilya Tocar  <ilya.tocar@intel.com>
14075             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14076             Ilya Verbin  <ilya.verbin@intel.com>
14077             Kirill Yukhin  <kirill.yukhin@intel.com>
14078             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14079
14080         * config/i386/sse.md
14081         (define_mode_iterator VI4F_BRCST32x2): New.
14082         (define_mode_attr 64x2_mode): Ditto.
14083         (define_mode_attr 32x2mode): Ditto.
14084         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
14085         with VI4F_BRCST32x2): Ditto.
14086         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
14087         with V16FI mode iterator): Ditto.
14088         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
14089         with V16FI): Ditto.
14090         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
14091         with VI8F_BRCST64x2): Ditto.
14092
14093 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14094             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14095             Anna Tikhonova  <anna.tikhonova@intel.com>
14096             Ilya Tocar  <ilya.tocar@intel.com>
14097             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14098             Ilya Verbin  <ilya.verbin@intel.com>
14099             Kirill Yukhin  <kirill.yukhin@intel.com>
14100             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14101
14102         * config/i386/sse.md
14103         (define_mode_iterator VI8_AVX512VL): New.
14104         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
14105
14106 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
14107
14108         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
14109         (define_mode_iterator V48_AVX512VL): New.
14110         (define_mode_iterator V12_AVX512VL): Ditto.
14111         (define_insn <avx512>_load<mode>_mask): Split into two similar
14112         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
14113         Refactor output template.
14114         (define_insn "<avx512>_store<mode>_mask"): Ditto.
14115
14116 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14117
14118         * cprop.c (struct occr): Strengthen field "insn" from rtx to
14119         rtx_insn *.
14120         (reg_available_p): Likewise for param "insn".
14121         (insert_set_in_table): Likewise.
14122         (hash_scan_set): Likewise.
14123         (hash_scan_insn): Likewise.
14124         (make_set_regs_unavailable): Likewise.
14125         (compute_hash_table_work): Likewise for local "insn".
14126         (reg_not_set_p): Strengthen param "insn" from const_rtx to
14127         const rtx_insn *.
14128         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
14129         (try_replace_reg): Likewise.
14130         (find_avail_set): Likewise.
14131         (cprop_jump): Likewise for params "setcc", "jump".
14132         (constprop_register): Likewise for param "insn".
14133         (cprop_insn): Likewise.
14134         (do_local_cprop): Likewise.
14135         (local_cprop_pass): Likewise for local "insn".
14136         (bypass_block): Likewise for params "setcc" and "jump".
14137         (bypass_conditional_jumps): Likewise for locals "setcc" and
14138         "insn".
14139         (one_cprop_pass): Likewise for local "insn".
14140
14141 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14142
14143         * compare-elim.c (struct comparison_use): Strengthen field "insn"
14144         from rtx to rtx_insn *.
14145         (struct comparison): Likewise, also for field "prev_clobber".
14146         (conforming_compare): Likewise for param "insn".
14147         (arithmetic_flags_clobber_p): Likewise.
14148         (find_flags_uses_in_insn): Likewise.
14149         (find_comparison_dom_walker::before_dom_children): Likewise for
14150         locals "insn", "next", "last_clobber".
14151         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
14152
14153 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14154
14155         * combine-stack-adj.c (struct csa_reflist): Strengthen field
14156         "insn" from rtx to rtx_insn *.
14157         (single_set_for_csa): Likewise for param "insn".
14158         (record_one_stack_ref): Likewise.
14159         (try_apply_stack_adjustment): Likewise.
14160         (struct record_stack_refs_data): Likewise for field "insn".
14161         (maybe_move_args_size_note): Likewise for params "last" and "insn".
14162         (prev_active_insn_bb): Likewise for return type and param "insn".
14163         (next_active_insn_bb): Likewise.
14164         (force_move_args_size_note): Likewise for params "prev" and "last"
14165         and locals "test", "next_candidate", "prev_candidate".
14166         (combine_stack_adjustments_for_block): Strengthen locals
14167         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
14168         rtx_insn *.
14169
14170 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14171
14172         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
14173         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
14174         (subst_insn): Likewise for this variable.
14175         (added_links_insn): Likewise.
14176         (struct insn_link): Likewise for field "insn".
14177         (alloc_insn_link): Likewise for param "insn".
14178         (struct undobuf): Likewise for field "other_insn".
14179         (find_single_use): Likewise for param "insn" and local "next".
14180         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
14181         (delete_noop_moves): Likewise for locals "insn", "next".
14182         (create_log_links): Likewise for locals "insn", "use_insn".
14183         Strengthen local "next_use" from rtx * to rtx_insn **.
14184         (insn_a_feeds_b): Likewise for params "a", "b".
14185         (combine_instructions): Likewise for param "f" and locals "insn",
14186         "next", "prev", "first", "last_combined_insn", "link", "link1",
14187         "temp".  Replace use of NULL_RTX with NULL when referring to
14188         insns.
14189         (setup_incoming_promotions): Likewise for param "first"
14190         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
14191         (can_combine_p): Likewise for params "insn", "i3", "pred",
14192         "pred2", "succ", "succ2" and for local "p".
14193         (combinable_i3pat): Likewise for param "i3".
14194         (cant_combine_insn_p): Likewise for param "insn".
14195         (likely_spilled_retval_p): Likewise.
14196         (adjust_for_new_dest): Likewise.
14197         (update_cfg_for_uncondjump): Likewise, also for local "insn".
14198         (try_combine): Likewise for return type and for params "i3", "i2",
14199         "i1", "i0", "last_combined_insn", and for locals "insn",
14200         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
14201         "i0_insn".  Eliminate local "tem" in favor of new locals
14202         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
14203         checked cast for now to rtx_insn * on the return type of
14204         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
14205         insns.
14206         (find_split_point): Strengthen param "insn" from rtx to
14207         rtx_insn *.
14208         (simplify_set): Likewise for local "other_insn".
14209         (recog_for_combine): Likewise for param "insn".
14210         (record_value_for_reg): Likewise.
14211         (record_dead_and_set_regs_1): Likewise for local
14212         "record_dead_insn".
14213         (record_dead_and_set_regs): Likewise for param "insn".
14214         (record_promoted_value): Likewise.
14215         (check_promoted_subreg): Likewise.
14216         (get_last_value_validate): Likewise.
14217         (reg_dead_at_p): Likewise.
14218         (move_deaths): Likewise for param "to_insn".
14219         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
14220         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
14221         in favor of new locals "tem_note" and "tem_insn", the latter being
14222         an rtx_insn *.
14223         (distribute_links): Strengthen locals "place", "insn" from rtx to
14224         rtx_insn *.
14225
14226 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14227
14228         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
14229         than a const_rtx.
14230         (can_delete_label_p): Require a const rtx_code_label * rather than
14231         a const_rtx.
14232         (delete_insn): Add checked cast to rtx_code_label * when we know
14233         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
14234         rtx to rtx_insn *.
14235         (delete_insn_chain): Strengthen locals "prev" and "current" from
14236         rtx to rtx_insn *.  Add a checked cast when assigning from
14237         "finish" (strengthening the params will come later).  Add a
14238         checked cast to rtx_note * in region where we know
14239         NOTE_P (current).
14240         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
14241         rtx_insn *.
14242         (compute_bb_for_insn): Likewise.
14243         (free_bb_for_insn): Likewise for local "insn".
14244         (compute_bb_for_insn): Likewise.
14245         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
14246         local "insn" from rtx to rtx_insn *
14247         (flow_active_insn_p): Require a const rtx_insn * rather than a
14248         const_rtx.
14249         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
14250         rtx_insn *.
14251         (can_fallthru): Likewise for locals "insn" and "insn2".
14252         (bb_note): Likewise for local "note".
14253         (first_insn_after_basic_block_note): Likewise for local "note" and
14254         for return type.
14255         (rtl_split_block): Likewise for locals "insn" and "next".
14256         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
14257         "end".
14258         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
14259         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
14260         "prev", "tmp".
14261         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
14262         them), "kill_from", "barrier", "new_insn".
14263         (patch_jump_insn): Likewise for params "insn", "old_label".
14264         (redirect_branch_edge): Likewise for locals "old_label", "insn".
14265         (force_nonfallthru_and_redirect): Likewise for locals "insn",
14266         "old_label", "new_label".
14267         (rtl_tidy_fallthru_edge): Likewise for local "q".
14268         (rtl_split_edge): Likewise for locals "before", "last".
14269         (commit_one_edge_insertion): Likewise for locals "before",
14270         "after", "insns", "tmp", "last", adding a checked cast where
14271         currently necessary.
14272         (commit_edge_insertions): Likewise.
14273         (rtl_dump_bb): Likewise for locals "insn", "last".
14274         (print_rtl_with_bb): Likewise for local "x".
14275         (rtl_verify_bb_insns): Likewise for local "x".
14276         (rtl_verify_bb_pointers): Likewise for local "insn".
14277         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
14278         "head", "end".
14279         (rtl_verify_fallthru): Likewise for local "insn".
14280         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
14281         (purge_dead_edges): Likewise for local "insn".
14282         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
14283         (skip_insns_after_block): Likewise for return type and for locals
14284         "insn", "last_insn", "next_head", "prev".
14285         (record_effective_endpoints): Likewise for locals "next_insn",
14286         "insn", "end".
14287         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
14288         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
14289         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
14290         (duplicate_insn_chain): For now, add checked cast from rtx to
14291         rtx_insn * when returning insn.
14292         (cfg_layout_duplicate_bb): Likewise for local "insn".
14293         (cfg_layout_delete_block): Likewise for locals "insn", "next",
14294         "prev", "remaints".
14295         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
14296         (rtl_block_empty_p): Likewise.
14297         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
14298         "split_point", "last".
14299         (rtl_block_ends_with_call_p): Likewise for local "insn".
14300         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
14301         const rtx_insn *.
14302         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
14303         "split_at_insn" from rtx to rtx_insn *.
14304         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
14305         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
14306         to const rtx_insn *.
14307         (rtl_account_profile_record): Likewise.
14308
14309 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14310
14311         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
14312         rtx to rtx_insn *.
14313         (average_num_loop_insns): Likewise.
14314         (init_set_costs): Likewise for local "seq".
14315         (seq_cost): Likewise for param "seq", from const_rtx to const
14316         rtx_insn *.
14317
14318 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14319
14320         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
14321         rtx to rtx_insn *.
14322
14323 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14324
14325         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
14326         "f1" and "f2" from rtx * to rtx_insn **.
14327         (flow_find_head_matching_sequence): Likewise.
14328
14329         * cfgcleanup.c (try_simplify_condjump): Strengthen local
14330         "cbranch_insn" from rtx to rtx_insn *.
14331         (thread_jump): Likewise for local "insn".
14332         (try_forward_edges): Likewise for local "last".
14333         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
14334         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
14335         "real_b_end".
14336         (can_replace_by): Likewise for params "i1", "i2".
14337         (old_insns_match_p): Likewise.
14338         (merge_notes): Likewise.
14339         (walk_to_nondebug_insn): Likewise for param "i1".
14340         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
14341         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
14342         "afterlast1", "afterlast2" from rtx to rtx_insn *.
14343         (flow_find_head_matching_sequence): Strengthen params "f1" and
14344         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
14345         "last1", "last2", "beforelast1", "beforelast2" from rtx to
14346         rtx_insn *.
14347         (outgoing_edges_match): Likewise for locals "last1", "last2".
14348         (try_crossjump_to_edge): Likewise for local "insn".
14349         Replace call to for_each_rtx with for_each_rtx_in_insn.
14350
14351         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
14352         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
14353         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
14354         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
14355         (try_optimize_cfg): Strengthen local "last" from rtx to
14356         rtx_insn *.
14357         (delete_dead_jumptables): Likewise for locals "insn", "next",
14358         "label".
14359
14360         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
14361         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
14362         "rtx else_first_tail", to reflect the basic-block.h changes above.
14363
14364 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14365
14366         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
14367         rtx_insn *.
14368         (purge_dead_tablejump_edges): Likewise.
14369         (find_bb_boundaries): Likewise for locals "insn", "end",
14370         "flow_transfer_insn".
14371
14372 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14373
14374         * caller-save.c (save_call_clobbered_regs): Strengthen locals
14375         "ins" and "prev" from rtx to rtx_insn *.
14376
14377 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14378
14379         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
14380         rtx_insn *.
14381         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
14382         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
14383         "scan_start".
14384         (load_register_parameters): Likewise for local "before_arg".
14385         (check_sibcall_argument_overlap): Likewise for param "insn".
14386         (expand_call): Likewise for locals "normal_call_insns",
14387         "tail_call_insns", "insns", "before_call", "after_args",
14388         "before_arg", "last", "prev".  Strengthen one of the "last" from
14389         rtx to rtx_call_insn *.
14390         (fixup_tail_calls): Strengthen local "insn" from rtx to
14391         rtx_insn *.
14392         (emit_library_call_value_1): Likewise for locals "before_call" and
14393         "last".
14394
14395 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14396
14397         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
14398         and "last" from rtx to rtx_insn *.
14399         (expand_builtin_nonlocal_goto): Likewise for local "insn".
14400         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
14401         rtx_call_insn *.
14402         (expand_errno_check): Strengthen local "lab" from rtx to
14403         rtx_code_label *.
14404         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
14405         rtx_insn *.
14406         (expand_builtin_mathfn_2): Likewise.
14407         (expand_builtin_mathfn_ternary): Likewise.
14408         (expand_builtin_mathfn_3): Likewise.
14409         (expand_builtin_interclass_mathfn): Likewise for local "last".
14410         (expand_builtin_int_roundingfn): Likewise for local "insns".
14411         (expand_builtin_int_roundingfn_2): Likewise.
14412         (expand_builtin_strlen): Likewise for local "before_strlen".
14413         (expand_builtin_strncmp): Likewise for local "seq".
14414         (expand_builtin_signbit): Likewise for local "last".
14415         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
14416         from rtx to rtx_code_label *.
14417         (expand_stack_restore):  Strengthen local "prev" from rtx to
14418         rtx_insn *.
14419
14420 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14421
14422         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
14423         to rtx_insn *.
14424         (struct btr_def_s): Likewise.
14425         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
14426         const rtx_insn *.
14427         (add_btr_def): Likewise.
14428         (new_btr_user): Likewise.
14429         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
14430         rtx to rtx_insn *.
14431         (link_btr_uses): Likewise.
14432         (move_btr_def): Likewise for locals "insp", "old_insn",
14433         "new_insn".  Add checked cast to rtx_insn * for now on result of
14434         gen_move_insn.
14435         (can_move_up): Strengthen param "insn" from const_rtx to
14436         const rtx_insn *.
14437
14438 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14439
14440         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
14441         rtx_insn *.
14442         (get_uncond_jump_length): Likewise for locals "label", "jump".
14443         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
14444         "jump", "insn".
14445         (add_labels_and_missing_jumps): Likewise for local "new_jump".
14446         (fix_up_fall_thru_edges): Likewise for local "old_jump".
14447         (find_jump_block): Likewise for local "insn".
14448         (fix_crossing_conditional_branches): Likewise for locals
14449         "old_jump", "new_jump".
14450         (fix_crossing_unconditional_branches): Likewise for locals
14451         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
14452         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
14453
14454 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14455
14456         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
14457         rtx to rtx_insn *.
14458         (struct mem_insn): Likewise for field "insn".
14459         (reg_next_use): Strengthen from rtx * to rtx_insn **.
14460         (reg_next_inc_use): Likewise.
14461         (reg_next_def): Likewise.
14462         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
14463         from rtx to rtx_insn *.
14464         (move_insn_before): Likewise for param "next_insn" and local "insns".
14465         (attempt_change): Likewise for local "mov_insn".
14466         (try_merge): Likewise for param "last_insn".
14467         (get_next_ref): Likewise for return type and local "insn".
14468         Strengthen param "next_array" from rtx * to rtx_insn **.
14469         (parse_add_or_inc): Strengthen param "insn" from rtx to
14470         rtx_insn *.
14471         (find_inc): Likewise for locals "insn" and "other_insn" (three of
14472         the latter).
14473         (merge_in_block): Likewise for locals "insn", "curr",
14474         "other_insn".
14475         (pass_inc_dec::execute): Update allocations of the arrays to
14476         reflect the stronger types.
14477
14478 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14479
14480         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
14481         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
14482         from rtx to rtx_code_label *.
14483
14484 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14485
14486         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
14487         to rtx_insn *.
14488
14489 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
14490
14491         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
14492         generated a warning and prevented bootstrapping the compiler.
14493
14494 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14495
14496         * rtl.h (delete_related_insns): Strengthen return type from rtx to
14497         rtx_insn *.
14498
14499         * jump.c (delete_related_insns): Likewise, also for locals "next"
14500         and "prev".
14501
14502 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14503
14504         * genautomata.c (output_internal_insn_latency_func): When writing
14505         the function "internal_insn_latency" to insn-automata.c,
14506         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
14507         allowing the optional guard function of (define_bypass) clauses to
14508         expect a pair of rtx_insn *, rather than a pair of rtx.
14509         (output_insn_latency_func): When writing the function
14510         "insn_latency", add an "uncast_" prefix to params "insn" and
14511         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
14512         using checked casts from the params, thus enabling the above
14513         change to the generated "internal_insn_latency" function.
14514
14515 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
14516
14517         PR tree-optimization/62091
14518         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
14519         handle correctly arrays.
14520         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
14521         inheritance binfos.
14522         (record_known_type): Walk into inner type.
14523         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
14524         condition on no type changes.
14525
14526 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14527
14528         * genattrtab.c (write_attr_get): Within the generated get_attr_
14529         functions, rename param "insn" to "uncast_insn" and reintroduce
14530         "insn" as an local rtx_insn * using a checked cast, so that "insn"
14531         is an rtx_insn * within insn-attrtab.c
14532
14533 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14534
14535         * output.h (peephole): Strengthen return type from rtx to
14536         rtx_insn *.
14537         * rtl.h (delete_for_peephole): Likewise for both params.
14538         * genpeep.c (main): In generated "peephole" function, strengthen
14539         return type and local "insn" from rtx to rtx_insn *.  For now,
14540         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
14541         rtx_insn *, with a checked cast.
14542         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
14543         locals "insn", "next", "prev" from rtx to rtx_insn *.
14544
14545 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
14546
14547         PR tree-optimization/62112
14548         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
14549         * gimple-iterator.h (gsi_replace): Return bool.
14550         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
14551         moved from ref_may_alias_global_p.
14552         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
14553         New overloads.
14554         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
14555         (stmt_kills_ref_p_1): Rename...
14556         (stmt_kills_ref_p): ... to this.
14557         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
14558         stmt_kills_ref_p): Declare.
14559         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
14560         Move the self-assignment case...
14561         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
14562
14563 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14564
14565         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
14566
14567         * emit-rtl.c (try_split): Likewise, also for locals "before" and
14568         "after".  For now, don't strengthen param "trial", which requires
14569         adding checked casts when returning it.
14570
14571 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14572
14573         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
14574         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
14575         "var_location" hook from rtx to rtx_insn *.
14576         (debug_nothing_rtx): Delete in favor of...
14577         (debug_nothing_rtx_code_label): New prototype.
14578         (debug_nothing_rtx_rtx): Delete unused prototype.
14579         (debug_nothing_rtx_insn): New prototype.
14580
14581         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
14582         invoking debug_hooks->var_location (in two places, one in a NOTE
14583         case of a switch statement, the other guarded by a CALL_P
14584         conditional.  Add checked cast to rtx_code_label * when invoking
14585         debug_hooks->label (within CODE_LABEL case of switch statement).
14586
14587         * dbxout.c (dbx_debug_hooks): Update "label" hook from
14588         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
14589         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
14590         (xcoff_debug_hooks): Likewise.
14591         * debug.c (do_nothing_debug_hooks): Likewise.
14592         (debug_nothing_rtx): Delete in favor of...
14593         (debug_nothing_rtx_insn): New function.
14594         (debug_nothing_rtx_rtx): Delete unused function.
14595         (debug_nothing_rtx_code_label): New function.
14596         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
14597         debug_nothing_rtx to debug_nothing_rtx_code_label.
14598         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
14599         to rtx_insn *.
14600         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
14601         debug_nothing_rtx to debug_nothing_rtx_insn.
14602         (sdbout_label): Strengthen param "insn" from rtx to
14603         rtx_code_label *.
14604         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
14605         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
14606         "var_location" hook from debug_nothing_rtx to
14607         debug_nothing_rtx_insn.
14608
14609 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14610
14611         * recog.h (insn_output_fn): Update this function typedef to match
14612         the changes below to the generated output functions, strengthening
14613         the 2nd param from rtx to rtx_insn *.
14614
14615         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
14616         insn when invoking an output function, to match the new signature
14617         of insn_output_fn with a stronger second param.
14618
14619         * genconditions.c (write_header): In the generated code for
14620         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
14621         to match the other changes in this patch.
14622
14623         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
14624         the generated "gen_" functions from rtx to rtx_insn * within their
14625         implementations.
14626
14627         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
14628         the subfunctions within the generated "recog_", "split", "peephole2"
14629         function trees from rtx to rtx_insn *.  For now, the top-level
14630         generated functions ("recog", "split", "peephole2") continue to
14631         take a plain rtx for "insn", to avoid introducing dependencies on
14632         other patches.  Rename this 2nd param from "insn" to
14633         "uncast_insn", and reintroduce "insn" as a local variable of type
14634         rtx_insn *, initialized at the top of the generated function with
14635         a checked cast on "uncast_insn".
14636         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
14637         the generated "gen_" functions from rtx to rtx_insn * within their
14638         prototypes.
14639
14640         * genoutput.c (process_template): Strengthen the 2nd param within
14641         the generated "output_" functions "insn" from rtx to rtx_insn *.
14642
14643 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
14644
14645         * tree-profile.c (tree_profiling): Skip external functions
14646         when doing coverage instrumentation.
14647         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
14648
14649 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14650
14651         * config/rs6000/altivec.h (vec_cpsgn): New #define.
14652         (vec_mergee): Likewise.
14653         (vec_mergeo): Likewise.
14654         (vec_cntlz): Likewise.
14655         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
14656         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
14657         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
14658         VMRGEW, and VMRGOW.
14659         * doc/extend.texi: Document various forms of vec_cpsgn,
14660         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
14661         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
14662         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
14663         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
14664         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
14665
14666 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14667
14668         * config/rs6000/rs6000.c (context.h): New include.
14669         (tree-pass.h): Likewise.
14670         (make_pass_analyze_swaps): New decl.
14671         (rs6000_option_override): Register pass_analyze_swaps.
14672         (swap_web_entry): New subsclass of web_entry_base (df.h).
14673         (special_handling_values): New enum.
14674         (union_defs): New function.
14675         (union_uses): Likewise.
14676         (insn_is_load_p): Likewise.
14677         (insn_is_store_p): Likewise.
14678         (insn_is_swap_p): Likewise.
14679         (rtx_is_swappable_p): Likewise.
14680         (insn_is_swappable_p): Likewise.
14681         (chain_purpose): New enum.
14682         (chain_contains_only_swaps): New function.
14683         (mark_swaps_for_removal): Likewise.
14684         (swap_const_vector_halves): Likewise.
14685         (adjust_subreg_index): Likewise.
14686         (permute_load): Likewise.
14687         (permute_store): Likewise.
14688         (handle_special_swappables): Likewise.
14689         (replace_swap_with_copy): Likewise.
14690         (dump_swap_insn_table): Likewise.
14691         (rs6000_analyze_swaps): Likewise.
14692         (pass_data_analyze_swaps): New pass_data.
14693         (pass_analyze_swaps): New rtl_opt_pass.
14694         (make_pass_analyze_swaps): New function.
14695         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
14696
14697 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14698
14699         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
14700         type from rtx to rtx_insn *.
14701         (create_copy_of_insn_rtx): Likewise.
14702         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
14703         (create_copy_of_insn_rtx): Likewise, also for local "res".
14704
14705 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14706
14707         * rtl.h (find_first_parameter_load): Strengthen return type from
14708         rtx to rtx_insn *.
14709         * rtlanal.c (find_first_parameter_load): Strengthen return type
14710         from rtx to rtx_insn *.  Add checked cast for now, to postpone
14711         strengthening the params.
14712
14713 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14714
14715         PR fortran/44054
14716         * diagnostic.c: Set default caret.
14717         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
14718         line is needed.
14719         * diagnostic.h (struct diagnostic_context):
14720
14721 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14722
14723         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
14724         (sel_bb_head): Strengthen return type insn_t (currently just an
14725         rtx) to rtx_insn *.
14726         (sel_bb_end): Likewise.
14727
14728         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
14729         (sel_bb_head): Strengthen return type and local "head" from
14730         insn_t (currently just an rtx) to rtx_insn *.
14731         (sel_bb_end): Likewise for return type.
14732         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
14733         working with insn.
14734
14735 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14736
14737         * basic-block.h (get_last_bb_insn): Strengthen return type from
14738         rtx to rtx_insn *.
14739         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
14740         end".
14741
14742 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14743
14744         PR fortran/44054
14745         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
14746         to here ...
14747         (diagnostic_report_diagnostic): ... from here.
14748         * toplev.c (general_init): Move code to c-family.
14749
14750 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14751
14752         * df.h (web_entry_base): Replace existing struct web_entry with a
14753         new class web_entry_base with only the predecessor member.
14754         (unionfind_root): Remove declaration and move to class member.
14755         (unionfind_union): Remove declaration and move to friend
14756         function.
14757         (union_defs): Remove declaration.
14758         * web.c (web_entry_base::unionfind_root): Modify to be member
14759         function and adjust accessors.
14760         (unionfind_union): Modify to be friend function and adjust
14761         accessors.
14762         (web_entry): New subclass of web_entry_base containing the reg
14763         member.
14764         (union_match_dups): Modify for struct -> class changes.
14765         (union_defs): Likewise.
14766         (entry_register): Likewise.
14767         (pass_web::execute): Likewise.
14768
14769 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
14770
14771         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
14772         builtin define __VEC_ELEMENT_REG_ORDER__.
14773
14774 2014-08-20  Martin Jambor  <mjambor@suse.cz>
14775             Wei Mi  <wmi@google.com>
14776
14777         PR ipa/60449
14778         PR middle-end/61776
14779         * tree-ssa-operands.c (update_stmt_operands): Remove
14780         MODIFIED_NORETURN_CALLS.
14781         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
14782         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
14783         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
14784         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
14785         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
14786         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
14787         (gimple_call_set_ctrl_altering): New func.
14788         (gimple_call_ctrl_altering_p): Ditto.
14789         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
14790         (make_blocks): Use gimple_call_initialize_ctrl_altering.
14791         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
14792         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
14793         remove MODIFIED_NORETURN_CALLS.
14794
14795 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
14796
14797         * coverage.c (coverage_compute_profile_id): Return non-0;
14798         also handle symbols with unique name.
14799         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
14800
14801 2014-08-20  Steve Ellcey  <sellcey@mips.com>
14802
14803         PR middle-end/49191
14804         * doc/sourcebuild.texi (non_strict_align): New.
14805
14806 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
14807
14808         * cgraphunit.c (ipa_passes, compile): Reshedule
14809         symtab_remove_unreachable_nodes passes; update comments.
14810         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
14811         TODO_remove_functions before the pass; the functions ought to be
14812         already removed.
14813         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
14814         TODO_remove_functions.
14815         * passes.c (pass_data_early_local_passes): Do not schedule function
14816         removal.
14817         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
14818
14819 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14820
14821         PR c/59304
14822         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
14823         before setting the option.
14824         * diagnostic.c (diagnostic_classify_diagnostic): Record
14825         command-line status.
14826
14827 2014-08-20  Richard Biener  <rguenther@suse.de>
14828
14829         PR lto/62190
14830         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
14831         to build uint{16,32,64}_type_node.
14832
14833 2014-08-20  Terry Guo  <terry.guo@arm.com>
14834
14835         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
14836         with immediate_operand.
14837
14838 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
14839
14840         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
14841         "insn" from an as_a to a safe_as_a, for the case when "insn" is
14842         NULL.
14843
14844 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14845
14846         PR preprocessor/51303
14847         * incpath.c (remove_duplicates): Use cpp_warning.
14848
14849 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14850
14851         PR c/60975
14852         PR c/53063
14853         * doc/options.texi (CPP): Document it.
14854         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
14855         * optc-gen.awk: Handle CPP.
14856         * opth-gen.awk: Likewise.
14857
14858 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14859
14860         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
14861         rtx_insn *.
14862         (duplicate_insn_chain): Likewise.
14863         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
14864         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
14865         checked cast for now (until we can strengthen the params in the
14866         same way).
14867         (duplicate_insn_chain): Likewise.
14868
14869 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14870
14871         * rtl.h (next_cc0_user): Strengthen return type from rtx to
14872         rtx_insn *.
14873         (prev_cc0_setter): Likewise.
14874
14875         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
14876         rtx_insn *, adding checked casts for now as necessary.
14877         (prev_cc0_setter): Likewise.
14878
14879 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14880
14881         * expr.h (emit_move_insn): Strengthen return type from rtx to
14882         rtx_insn *.
14883         (emit_move_insn_1): Likewise.
14884         (emit_move_complex_push): Likewise.
14885         (emit_move_complex_parts): Likewise.
14886
14887         * expr.c (emit_move_via_integer): Strengthen return type from rtx
14888         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
14889         with insns.
14890         (emit_move_complex_push): Strengthen return type from rtx to
14891         rtx_insn *.
14892         (emit_move_complex): Likewise, also for local "ret".
14893         (emit_move_ccmode): Likewise.
14894         (emit_move_multi_word): Likewise for return type and locals
14895         "last_insn", "seq".
14896         (emit_move_insn_1): Likewise for return type and locals "result",
14897         "ret".
14898         (emit_move_insn): Likewise for return type and local "last_insn".
14899         (compress_float_constant): Likewise.
14900
14901 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14902
14903         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
14904         from rtx to rtx_insn *.
14905
14906         * rtl.h (emit_insn_before): Likewise.
14907         (emit_insn_before_noloc): Likewise.
14908         (emit_insn_before_setloc): Likewise.
14909         (emit_jump_insn_before): Likewise.
14910         (emit_jump_insn_before_noloc): Likewise.
14911         (emit_jump_insn_before_setloc): Likewise.
14912         (emit_call_insn_before): Likewise.
14913         (emit_call_insn_before_noloc): Likewise.
14914         (emit_call_insn_before_setloc): Likewise.
14915         (emit_debug_insn_before): Likewise.
14916         (emit_debug_insn_before_noloc): Likewise.
14917         (emit_debug_insn_before_setloc): Likewise.
14918         (emit_label_before): Likewise.
14919         (emit_insn_after): Likewise.
14920         (emit_insn_after_noloc): Likewise.
14921         (emit_insn_after_setloc): Likewise.
14922         (emit_jump_insn_after): Likewise.
14923         (emit_jump_insn_after_noloc): Likewise.
14924         (emit_jump_insn_after_setloc): Likewise.
14925         (emit_call_insn_after): Likewise.
14926         (emit_call_insn_after_noloc): Likewise.
14927         (emit_call_insn_after_setloc): Likewise.
14928         (emit_debug_insn_after): Likewise.
14929         (emit_debug_insn_after_noloc): Likewise.
14930         (emit_debug_insn_after_setloc): Likewise.
14931         (emit_label_after): Likewise.
14932         (emit_insn): Likewise.
14933         (emit_debug_insn): Likewise.
14934         (emit_jump_insn): Likewise.
14935         (emit_call_insn): Likewise.
14936         (emit_label): Likewise.
14937         (gen_clobber): Likewise.
14938         (emit_clobber): Likewise.
14939         (gen_use): Likewise.
14940         (emit_use): Likewise.
14941         (emit): Likewise.
14942
14943         (emit_barrier_before): Strengthen return type from rtx to
14944         rtx_barrier *.
14945         (emit_barrier_after): Likewise.
14946         (emit_barrier): Likewise.
14947
14948         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
14949         from rtx to rtx_insn *.  Add checked casts for now when converting
14950         "last" from rtx to rtx_insn *.
14951         (emit_insn_before_noloc): Likewise for return type.
14952         (emit_jump_insn_before_noloc): Likewise.
14953         (emit_call_insn_before_noloc): Likewise.
14954         (emit_debug_insn_before_noloc): Likewise.
14955         (emit_barrier_before): Strengthen return type and local "insn"
14956         from rtx to rtx_barrier *.
14957         (emit_label_before): Strengthen return type from rtx to
14958         rtx_insn *.  Add checked cast for now when returning param
14959         (emit_pattern_after_noloc): Strengthen return type from rtx to
14960         rtx_insn *.  Add checked casts for now when converting "last" from
14961         rtx to rtx_insn *.
14962         (emit_insn_after_noloc): Strengthen return type from rtx to
14963         rtx_insn *.
14964         (emit_jump_insn_after_noloc): Likewise.
14965         (emit_call_insn_after_noloc): Likewise.
14966         (emit_debug_insn_after_noloc): Likewise.
14967         (emit_barrier_after): Strengthen return type from rtx to
14968         rtx_barrier *.
14969         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
14970         Add checked cast for now when converting "label" from rtx to
14971         rtx_insn *.
14972         (emit_pattern_after_setloc): Strengthen return type from rtx to
14973         rtx_insn *.  Add checked casts for now when converting "last" from
14974         rtx to rtx_insn *.
14975         (emit_pattern_after): Strengthen return type from rtx to
14976         rtx_insn *.
14977         (emit_insn_after_setloc): Likewise.
14978         (emit_insn_after): Likewise.
14979         (emit_jump_insn_after_setloc): Likewise.
14980         (emit_jump_insn_after): Likewise.
14981         (emit_call_insn_after_setloc): Likewise.
14982         (emit_call_insn_after): Likewise.
14983         (emit_debug_insn_after_setloc): Likewise.
14984         (emit_debug_insn_after): Likewise.
14985         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
14986         when converting "last" from rtx to rtx_insn *.
14987         (emit_pattern_before): Strengthen return type from rtx to
14988         rtx_insn *.
14989         (emit_insn_before_setloc): Likewise.
14990         (emit_insn_before): Likewise.
14991         (emit_jump_insn_before_setloc): Likewise.
14992         (emit_jump_insn_before): Likewise.
14993         (emit_call_insn_before_setloc): Likewise.
14994         (emit_call_insn_before): Likewise.
14995         (emit_debug_insn_before_setloc): Likewise.
14996         (emit_debug_insn_before): Likewise.
14997         (emit_insn): Strengthen return type and locals "last", "insn",
14998         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
14999         within cases where we know we have an insn.
15000         (emit_debug_insn): Likewise.
15001         (emit_jump_insn): Likewise.
15002         (emit_call_insn): Strengthen return type and local "insn" from rtx
15003         to rtx_insn *.
15004         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
15005         a checked cast to rtx_insn * for now on "label".
15006         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
15007         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
15008         (emit_use): Likewise.
15009         (gen_use): Likewise, also for local "seq".
15010         (emit): Likewise for return type and local "insn".
15011         (rtx_insn): Likewise for return type and local "new_rtx".
15012
15013         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
15014         from rtx to rtx_barrier *.
15015
15016         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
15017         changed return type from rtx to rtx_insn *, we must update
15018         "emit_fn" type, and this in turn means updating...
15019         (frame_insn): ...this.  Strengthen return type from rtx to
15020         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
15021
15022 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15023
15024         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
15025         rtx to rtx_jump_table_data *.  Also for local.
15026         * rtl.h (emit_jump_table_data): Likewise.
15027
15028 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15029
15030         * basic-block.h (create_basic_block_structure): Strengthen third
15031         param "bb_note" from rtx to rtx_note *.
15032         * rtl.h (emit_note_before): Strengthen return type from rtx to
15033         rtx_note *.
15034         (emit_note_after): Likewise.
15035         (emit_note): Likewise.
15036         (emit_note_copy): Likewise.  Also, strengthen param similarly.
15037         * function.h (struct rtl_data): Strengthen field
15038         "x_stack_check_probe_note" from rtx to rtx_note *.
15039
15040         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
15041         from rtx to rtx_note *.
15042         * cfgrtl.c (create_basic_block_structure): Strengthen third param
15043         "bb_note" from rtx to rtx_note *.
15044         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
15045         when calling emit_note_copy.
15046         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
15047         rtx_note *.
15048         (emit_note_after): Likewise.
15049         (emit_note_before): Likewise.
15050         (emit_note_copy): Likewise.  Also, strengthen param similarly.
15051         (emit_note): Likewise.
15052         * except.c (emit_note_eh_region_end): Likewise for return type.
15053         Strengthen local "next" from rtx to rtx_insn *.
15054         (convert_to_eh_region_ranges): Strengthen local "note"
15055         from rtx to rtx_note *.
15056         * final.c (change_scope): Likewise.
15057         (reemit_insn_block_notes): Likewise, for both locals named "note".
15058         Also, strengthen local "insn" from rtx to rtx_insn *.
15059         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
15060         rtx to rtx_note *.
15061         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
15062         strengthen local "seq" from rtx to rtx_insn *.
15063         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
15064         to rtx_note *.
15065         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
15066         vec<rtx_note *>.
15067         (get_bb_note_from_pool): Strengthen return type from rtx to
15068         rtx_note *.
15069         (sel_create_basic_block): Strengthen local "new_bb_note" from
15070         insn_t to rtx_note *.
15071         * var-tracking.c (emit_note_insn_var_location): Strengthen local
15072         "note" from rtx to rtx_note *.
15073         (emit_notes_in_bb): Likewise.
15074
15075 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15076
15077         * function.h (struct rtl_data): Strengthen field
15078         "x_parm_birth_insn" from rtx to rtx_insn *.
15079         * function.c (struct assign_parm_data_all): Strengthen fields
15080         "first_conversion_insn" and "last_conversion_insn" from rtx to
15081         rtx_insn *.
15082
15083 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15084
15085         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
15086         to rtx_insn *; also for local "var_end_seq".
15087         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
15088         (maybe_cleanup_end_of_block): Likewise for param "last" and local
15089         "insn".
15090         (expand_gimple_cond): Likewise for locals "last2" and "last".
15091         (mark_transaction_restart_calls): Likewise for local "insn".
15092         (expand_gimple_stmt): Likewise for return type and locals "last"
15093         and "insn".
15094         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
15095         (avoid_complex_debug_insns): Likewise for param "insn".
15096         (expand_debug_locations): Likewise for locals "insn", "last",
15097         "prev_insn" and "insn2".
15098         (expand_gimple_basic_block): Likewise for local "last".
15099         (construct_exit_block): Likewise for locals "head", "end",
15100         "orig_end".
15101         (pass_expand::execute): Likewise for locals "var_seq",
15102         "var_ret_seq", "next".
15103
15104 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15105
15106         * asan.h (asan_emit_stack_protection): Strengthen return type from
15107         rtx to rtx_insn *.
15108         * asan.c (asan_emit_stack_protection): Likewise.  Add local
15109         "insns" to hold the return value.
15110
15111 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15112
15113         * basic-block.h (bb_note): Strengthen return type from rtx to
15114         rtx_note *.
15115         * sched-int.h (bb_note): Likewise.
15116         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
15117
15118 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15119
15120         * rtl.h (make_insn_raw): Strengthen return type from rtx to
15121         rtx_insn *.
15122
15123         * emit-rtl.c (make_insn_raw): Strengthen return type and local
15124         "insn" from rtx to rtx_insn *.
15125         (make_debug_insn_raw): Strengthen return type from rtx to
15126         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
15127         (make_jump_insn_raw):  Strengthen return type from rtx to
15128         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
15129         (make_call_insn_raw):  Strengthen return type from rtx to
15130         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
15131         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
15132         callback from rtx to rtx_insn *; likewise for local "insn" and
15133         "next", adding a checked cast to rtx_insn in the relevant cases of
15134         the switch statement.
15135         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
15136         callback from rtx to rtx_insn *.
15137         (emit_pattern_after_setloc): Likewise.
15138         (emit_pattern_after): Likewise.
15139         (emit_pattern_before_setloc): Likewise.
15140         (emit_pattern_before): Likewise.
15141
15142 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15143
15144         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
15145         rtx_call_insn *.
15146         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
15147         accepting an rtx_insn *.
15148         (last_call_insn): Strengthen return type from rtx to
15149         rtx_call_insn *.
15150
15151 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15152
15153         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
15154         "insns" from rtx to rtx_insn *.
15155         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
15156         locals "insn" and "prev".
15157
15158 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15159
15160         * rtl.h (tablejump_p): Strengthen third param from rtx * to
15161         rtx_jump_table_data **.
15162
15163         * cfgbuild.c (make_edges): Introduce local "table", using it in
15164         place of "tmp" for jump table data.
15165         (find_bb_boundaries): Strengthen local "table" from rtx to
15166         rtx_jump_table_data *.
15167         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
15168         (outgoing_edges_match): Likewise for locals "table1" and "table2".
15169         (try_crossjump_to_edge): Likewise.
15170         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
15171         "table".
15172         (patch_jump_insn): Introduce local "table", using it in place of
15173         "tmp" for jump table data.
15174         (force_nonfallthru_and_redirect): Introduce local "table", so that
15175         call to tablejump_p can receive an rtx_jump_table_data **.  Update
15176         logic around the call to overwrite "note" appropriately if
15177         tablejump_p returns non-zero.
15178         (get_last_bb_insn): Introduce local "table", using it in place of
15179         "tmp" for jump table data.
15180         * dwarf2cfi.c (create_trace_edges): Likewise.
15181
15182         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
15183         from rtx to rtx_jump_table_data *.
15184         (create_fix_barrier): Strengthen local "tmp" from rtx to
15185         rtx_jump_table_data *.
15186         (arm_reorg): Likewise for local "table".
15187
15188         * config/s390/s390.c (s390_chunkify_start): Likewise.
15189
15190         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
15191
15192         * jump.c (delete_related_insns): Strengthen local "lab_next" from
15193         rtx to rtx_jump_table_data *.
15194
15195         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
15196         rtx_jump_table_data **.  Add a checked cast when writing through
15197         the pointer: we know there that local "table" is non-NULL and that
15198         JUMP_TABLE_DATA_P (table) holds.
15199         (label_is_jump_target_p): Introduce local "table", using it in
15200         place of "tmp" for jump table data.
15201
15202 2014-08-19  Marek Polacek  <polacek@redhat.com>
15203
15204         PR c++/62153
15205         * doc/invoke.texi: Document -Wbool-compare.
15206
15207 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15208
15209         * rtl.h (entry_of_function): Strengthen return type from rtx to
15210         rtx_insn *.
15211         * cfgrtl.c (entry_of_function): Likewise.
15212
15213 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15214
15215         * emit-rtl.h (get_insns): Strengthen return type from rtx to
15216         rtx_insn *, adding a checked cast for now.
15217         (get_last_insn): Likewise.
15218
15219 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15220
15221         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
15222         rtx_code_label *.
15223
15224         * emit-rtl.c (gen_label_rtx): Likewise.
15225
15226 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15227
15228         * rtl.h (previous_insn): Strengthen return type from rtx to
15229         rtx_insn *.
15230         (next_insn): Likewise.
15231         (prev_nonnote_insn): Likewise.
15232         (prev_nonnote_insn_bb): Likewise.
15233         (next_nonnote_insn): Likewise.
15234         (next_nonnote_insn_bb): Likewise.
15235         (prev_nondebug_insn): Likewise.
15236         (next_nondebug_insn): Likewise.
15237         (prev_nonnote_nondebug_insn): Likewise.
15238         (next_nonnote_nondebug_insn): Likewise.
15239         (prev_real_insn): Likewise.
15240         (next_real_insn): Likewise.
15241         (prev_active_insn): Likewise.
15242         (next_active_insn): Likewise.
15243
15244         * emit-rtl.c (next_insn): Strengthen return type from rtx to
15245         rtx_insn *, adding a checked cast.
15246         (previous_insn): Likewise.
15247         (next_nonnote_insn): Likewise.
15248         (next_nonnote_insn_bb): Likewise.
15249         (prev_nonnote_insn): Likewise.
15250         (prev_nonnote_insn_bb): Likewise.
15251         (next_nondebug_insn): Likewise.
15252         (prev_nondebug_insn): Likewise.
15253         (next_nonnote_nondebug_insn): Likewise.
15254         (prev_nonnote_nondebug_insn): Likewise.
15255         (next_real_insn): Likewise.
15256         (prev_real_insn): Likewise.
15257         (next_active_insn): Likewise.
15258         (prev_active_insn): Likewise.
15259
15260         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
15261         param "stepfunc" so that it returns an rtx_insn * rather than an
15262         rtx, to track the change to prev_nonnote_insn_bb, which is the
15263         only function this is called with.
15264         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
15265
15266 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
15267
15268         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
15269         assert.
15270
15271 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15272
15273         * coretypes.h (class rtx_debug_insn): Add forward declaration.
15274         (class rtx_nonjump_insn): Likewise.
15275         (class rtx_jump_insn): Likewise.
15276         (class rtx_call_insn): Likewise.
15277         (class rtx_jump_table_data): Likewise.
15278         (class rtx_barrier): Likewise.
15279         (class rtx_code_label): Likewise.
15280         (class rtx_note): Likewise.
15281
15282         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
15283         adding the invariant DEBUG_INSN_P (X).
15284         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
15285         the invariant NONJUMP_INSN_P (X).
15286         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
15287         the invariant JUMP_P (X).
15288         (class rtx_call_insn): New, a subclass of rtx_insn, adding
15289         the invariant CALL_P (X).
15290         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
15291         invariant JUMP_TABLE_DATA_P (X).
15292         (class rtx_barrier): New, a subclass of rtx_insn, adding the
15293         invariant BARRIER_P (X).
15294         (class rtx_code_label): New, a subclass of rtx_insn, adding
15295         the invariant LABEL_P (X).
15296         (class rtx_note): New, a subclass of rtx_insn, adding
15297         the invariant NOTE_P(X).
15298         (is_a_helper <rtx_debug_insn *>::test): New.
15299         (is_a_helper <rtx_nonjump_insn *>::test): New.
15300         (is_a_helper <rtx_jump_insn *>::test): New.
15301         (is_a_helper <rtx_call_insn *>::test): New.
15302         (is_a_helper <rtx_jump_table_data *>::test): New functions,
15303         overloaded for both rtx and rtx_insn *.
15304         (is_a_helper <rtx_barrier *>::test): New.
15305         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
15306         for both rtx and rtx_insn *.
15307         (is_a_helper <rtx_note *>::test): New.
15308
15309 2014-08-19  Marek Polacek  <polacek@redhat.com>
15310
15311         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
15312         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
15313         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
15314         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
15315
15316 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15317
15318         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
15319         rtx_insn *.  To help with transition, for now, convert from an
15320         access macro into a pair of functions: BND_TO, returning an
15321         rtx_insn *, and...
15322         (SET_BND_TO): New function, for use where BND_TO is used as an
15323         lvalue.
15324
15325         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
15326         SET_BND_TO.
15327         (BND_TO): New function, adding a checked cast.
15328         (SET_BND_TO): New function.
15329
15330         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
15331         SET_BND_TO.
15332         (compute_av_set_on_boundaries): Likewise.
15333
15334 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
15335
15336         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
15337         destination if it is used in source.
15338         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
15339         (*popcount<mode>2_falsedep_1): Likewise.
15340
15341 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
15342
15343         PR other/62168
15344         * configure.ac: Set install_gold_as_default to no first.
15345         * configure: Regenerated.
15346
15347 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15348
15349         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
15350         "note_list" field will eventually be an rtx_insn *.  To help with
15351         transition, for now, convert from an access macro into a pair of
15352         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
15353         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
15354         used as an lvalue.
15355
15356         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
15357         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
15358
15359         * sel-sched-ir.c (init_bb): Likewise.
15360         (sel_restore_notes): Likewise.
15361         (move_bb_info): Likewise.
15362         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
15363         (SET_BB_NOTE_LIST): New function.
15364
15365 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15366
15367         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
15368         field will eventually be an rtx_insn *.  To help with transition,
15369         for now, convert from an access macro into a pair of functions:
15370         VINSN_INSN_RTX, returning an rtx_insn *, and...
15371         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
15372         is used as an lvalue.
15373
15374         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
15375         SET_VINSN_INSN_RTX where it's used as an lvalue.
15376         (VINSN_INSN_RTX): New function.
15377         (SET_VINSN_INSN_RTX): New function.
15378
15379 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15380
15381         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
15382         eventually be rtx_insn *, but to help with transition, for now,
15383         convert from an access macro into a pair of functions: DEP_PRO
15384         returning an rtx_insn * and...
15385         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
15386         lvalue, returning an rtx&.
15387         (DEP_CON): Analogous changes to DEP_PRO above.
15388         (SET_DEP_CON): Likewise.
15389
15390         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
15391         an lvalue to SET_DEP_CON.
15392         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
15393         (sd_copy_back_deps): Likewise for DEP_CON.
15394         (DEP_PRO): New function, adding a checked cast for now.
15395         (DEP_CON): Likewise.
15396         (SET_DEP_PRO): New function.
15397         (SET_DEP_CON): Likewise.
15398
15399 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
15400
15401         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
15402         (extra_options): Add i386/cygwin.opt.
15403         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
15404         (CPP_SPEC): Accept -pthread.
15405         (LINK_SPEC): Ditto.
15406         (GOMP_SELF_SPECS): Update comment.
15407         * config/i386/cygwin.opt: New file for -pthread flag.
15408
15409 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15410
15411         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
15412         * df.h (DF_REF_INSN): Convert from a macro to a function, so
15413         that we can return an rtx_insn *.
15414
15415 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
15416
15417         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
15418         when building executables, not DLLs.  Add --large-address-aware
15419         under the same conditions.
15420         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
15421         when building executables, not DLLs.  Add --large-address-aware
15422         under the same conditions when using -m32.
15423
15424         * config/i386/cygwin-stdint.h: Throughout, make type
15425         definitions dependent on target architecture, not host.
15426
15427 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15428
15429         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
15430         the return type from rtx to rtx_insn *,  which will enable various
15431         conversions in followup patches.  For now this is is done by a
15432         checked cast.
15433         (NEXT_INSN): Likewise.
15434         (SET_PREV_INSN): Convert to an inline function.  This is intended
15435         for use as an lvalue, and so returns an rtx& to allow in-place
15436         modification.
15437         (SET_NEXT_INSN): Likewise.
15438
15439 2014-07-08  Mark Wielaard  <mjw@redhat.com>
15440
15441         PR debug/59051
15442         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
15443
15444 2014-08-19  Marek Polacek  <polacek@redhat.com>
15445
15446         PR c/61271
15447         * cgraphunit.c (handle_alias_pairs): Fix condition.
15448
15449 2014-08-19  Richard Biener  <rguenther@suse.de>
15450
15451         * gimple-fold.c (fold_gimple_assign): Properly build a
15452         null-pointer constant when devirtualizing addresses.
15453
15454 2014-07-07  Mark Wielaard  <mjw@redhat.com>
15455
15456         * dwarf2out.c (decl_quals): New function.
15457         (modified_type_die): Take one cv_quals argument instead of two,
15458         one for const and one for volatile.
15459         (add_type_attribute): Likewise.
15460         (generic_parameter_die): Call add_type_attribute with one modifier
15461         argument.
15462         (base_type_for_mode): Likewise.
15463         (add_bounds_info): Likewise.
15464         (add_subscript_info): Likewise.
15465         (gen_array_type_die): Likewise.
15466         (gen_descr_array_type_die): Likewise.
15467         (gen_entry_point_die): Likewise.
15468         (gen_enumeration_type_die): Likewise.
15469         (gen_formal_parameter_die): Likewise.
15470         (gen_subprogram_die): Likewise.
15471         (gen_variable_die): Likewise.
15472         (gen_const_die): Likewise.
15473         (gen_field_die): Likewise.
15474         (gen_pointer_type_die): Likewise.
15475         (gen_reference_type_die): Likewise.
15476         (gen_ptr_to_mbr_type_die): Likewise.
15477         (gen_inheritance_die): Likewise.
15478         (gen_subroutine_type_die): Likewise.
15479         (gen_typedef_die): Likewise.
15480         (force_type_die): Likewise.
15481
15482 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15483
15484         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
15485         if unset.
15486         * configure: Regenerate.
15487
15488 2014-08-19  Richard Biener  <rguenther@suse.de>
15489
15490         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
15491         DECL_EXTERNALs in BLOCKs as non-references.
15492         * tree-streamer-out.c (streamer_write_chain): Likewise.
15493
15494 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15495             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15496             Anna Tikhonova  <anna.tikhonova@intel.com>
15497             Ilya Tocar  <ilya.tocar@intel.com>
15498             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15499             Ilya Verbin  <ilya.verbin@intel.com>
15500             Kirill Yukhin  <kirill.yukhin@intel.com>
15501             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15502
15503         * config/i386/sse.md
15504         (define_mode_iterator VI48_AVX512F): Delete.
15505         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
15506         (define_mode_iterator VI2_AVX512VL): Ditto.
15507         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
15508         Delete.
15509         (define_insn
15510         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
15511         New.
15512         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
15513         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
15514         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
15515         with VI48_AVX512F_AVX512VL): New.
15516         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
15517         with VI2_AVX512VL): Ditto.
15518
15519 2014-08-19  Marek Polacek  <polacek@redhat.com>
15520
15521         * doc/invoke.texi: Document -Wc99-c11-compat.
15522
15523 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15524
15525         * rtl.h (PREV_INSN): Split macro in two: the existing one,
15526         for rvalues, and...
15527         (SET_PREV_INSN): New macro, for use as an lvalue.
15528         (NEXT_INSN, SET_NEXT_INSN): Likewise.
15529
15530         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
15531         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
15532         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
15533         (fixup_abnormal_edges): Likewise.
15534         (unlink_insn_chain): Likewise.
15535         (fixup_reorder_chain): Likewise.
15536         (cfg_layout_delete_block): Likewise.
15537         (cfg_layout_merge_blocks): Likewise.
15538         * combine.c (update_cfg_for_uncondjump): Likewise.
15539         * emit-rtl.c (link_insn_into_chain): Likewise.
15540         (remove_insn): Likewise.
15541         (delete_insns_since): Likewise.
15542         (reorder_insns_nobb): Likewise.
15543         (emit_insn_after_1): Likewise.
15544         * final.c (rest_of_clean_state): Likewise.
15545         (final_scan_insn): Likewise.
15546         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
15547         * haifa-sched.c (concat_note_lists): Likewise.
15548         (remove_notes): Likewise.
15549         (restore_other_notes): Likewise.
15550         (move_insn): Likewise.
15551         (unlink_bb_notes): Likewise.
15552         (restore_bb_notes): Likewise.
15553         * jump.c (delete_for_peephole): Likewise.
15554         * optabs.c (emit_libcall_block_1): Likewise.
15555         * reorg.c (emit_delay_sequence): Likewise.
15556         (fill_simple_delay_slots): Likewise.
15557         * sel-sched-ir.c (sel_move_insn): Likewise.
15558         (sel_remove_insn): Likewise.
15559         (get_bb_note_from_pool): Likewise.
15560         * sel-sched.c (move_nop_to_previous_block): Likewise.
15561
15562         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
15563         * config/c6x/c6x.c (gen_one_bundle): Likewise.
15564         (c6x_gen_bundles): Likewise.
15565         (hwloop_optimize): Likewise.
15566         * config/frv/frv.c (frv_function_prologue): Likewise.
15567         (frv_register_nop): Likewise.
15568         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
15569         (ia64_reorg): Likewise.
15570         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
15571         (mep_make_bundle): Likewise.
15572         (mep_bundle_insns): Likewise.
15573         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
15574         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
15575         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
15576
15577 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15578
15579         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
15580         return type from rtx to rtx_insn *.
15581         (BB_END): Likewise.
15582         (BB_HEADER): Likewise.
15583         (BB_FOOTER): Likewise.
15584         (SET_BB_HEAD): Convert to a function.
15585         (SET_BB_END): Likewise.
15586         (SET_BB_HEADER): Likewise.
15587         (SET_BB_FOOTER): Likewise.
15588
15589         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
15590         Strengthen the return type from rtx to rtx_insn *.  For now, this
15591         is done by adding a checked cast, but this will eventually
15592         become a field lookup.
15593         (BB_END): Likewise.
15594         (BB_HEADER): Likewise.
15595         (BB_FOOTER): Likewise.
15596         (SET_BB_HEAD): New function, from macro of same name.  This is
15597         intended for use as an lvalue, and so returns an rtx& to allow
15598         in-place modification.
15599         (SET_BB_END): Likewise.
15600         (SET_BB_HEADER): Likewise.
15601         (SET_BB_FOOTER): Likewise.
15602
15603 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
15604
15605         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
15606         for rvalues, and...
15607         (SET_BB_HEAD): New macro, for use as a lvalue.
15608         (BB_END, SET_BB_END): Likewise.
15609         (BB_HEADER, SET_BB_HEADER): Likewise.
15610         (BB_FOOTER, SET_BB_FOOTER): Likewise.
15611
15612         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
15613         of BB_* macros into SET_BB_* macros.
15614         (fix_crossing_unconditional_branches): Likewise.
15615         * caller-save.c (save_call_clobbered_regs): Likewise.
15616         (insert_one_insn): Likewise.
15617         * cfgbuild.c (find_bb_boundaries): Likewise.
15618         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
15619         (outgoing_edges_match): Likewise.
15620         (try_optimize_cfg): Likewise.
15621         * cfgexpand.c (expand_gimple_cond): Likewise.
15622         (expand_gimple_tailcall): Likewise.
15623         (expand_gimple_basic_block): Likewise.
15624         (construct_exit_block): Likewise.
15625         * cfgrtl.c (delete_insn): Likewise.
15626         (create_basic_block_structure): Likewise.
15627         (rtl_delete_block): Likewise.
15628         (rtl_split_block): Likewise.
15629         (emit_nop_for_unique_locus_between): Likewise.
15630         (rtl_merge_blocks): Likewise.
15631         (block_label): Likewise.
15632         (try_redirect_by_replacing_jump): Likewise.
15633         (emit_barrier_after_bb): Likewise.
15634         (fixup_abnormal_edges): Likewise.
15635         (record_effective_endpoints): Likewise.
15636         (relink_block_chain): Likewise.
15637         (fixup_reorder_chain): Likewise.
15638         (fixup_fallthru_exit_predecessor): Likewise.
15639         (cfg_layout_duplicate_bb): Likewise.
15640         (cfg_layout_split_block): Likewise.
15641         (cfg_layout_delete_block): Likewise.
15642         (cfg_layout_merge_blocks): Likewise.
15643         * combine.c (update_cfg_for_uncondjump): Likewise.
15644         * emit-rtl.c (add_insn_after): Likewise.
15645         (remove_insn): Likewise.
15646         (reorder_insns): Likewise.
15647         (emit_insn_after_1): Likewise.
15648         * haifa-sched.c (get_ebb_head_tail): Likewise.
15649         (restore_other_notes): Likewise.
15650         (move_insn): Likewise.
15651         (sched_extend_bb): Likewise.
15652         (fix_jump_move): Likewise.
15653         * ifcvt.c (noce_process_if_block): Likewise.
15654         (dead_or_predicable): Likewise.
15655         * ira.c (update_equiv_regs): Likewise.
15656         * reg-stack.c (change_stack): Likewise.
15657         * sel-sched-ir.c (sel_move_insn): Likewise.
15658         * sel-sched.c (move_nop_to_previous_block): Likewise.
15659
15660         * config/c6x/c6x.c (hwloop_optimize): Likewise.
15661         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
15662
15663 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
15664
15665         * rtl.h (for_each_rtx_in_insn): New function.
15666         * rtlanal.c (for_each_rtx_in_insn): Likewise.
15667
15668 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
15669
15670         * coretypes.h (class rtx_insn): Add forward declaration.
15671
15672         * rtl.h: Include is-a.h.
15673         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
15674         workaround to ensure gengtype knows inheritance is occurring,
15675         whilst continuing to use the pre-existing special-casing for
15676         rtx_def.
15677         (class rtx_insn): New subclass of rtx_def, adding the
15678         invariant that we're dealing with something we can sanely use
15679         INSN_UID, NEXT_INSN, PREV_INSN on.
15680         (is_a_helper <rtx_insn *>::test): New.
15681         (is_a_helper <const rtx_insn *>::test): New.
15682
15683 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
15684
15685         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
15686
15687 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
15688
15689         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
15690         comdats as extern.
15691
15692 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
15693
15694         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
15695         to BUILT_IN_UNREACHABLE.
15696
15697 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
15698
15699         PR target/62011
15700         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
15701         New tune flag.
15702         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
15703         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
15704         (ffs<mode>2): Do not expand with tzcnt for
15705         TARGET_AVOID_FALSE_DEP_FOR_BMI.
15706         (ffssi2_no_cmove): Ditto.
15707         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
15708         (ctz<mode>2): New expander.
15709         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
15710         (*ctz<mode>2_falsedep): New insn.
15711         (*ctz<mode>2): Rename from ctz<mode>2.
15712         (clz<mode>2_lzcnt): New expander.
15713         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
15714         (*clz<mode>2_lzcnt_falsedep): New insn.
15715         (*clz<mode>2): Rename from ctz<mode>2.
15716         (popcount<mode>2): New expander.
15717         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
15718         (*popcount<mode>2_falsedep): New insn.
15719         (*popcount<mode>2): Rename from ctz<mode>2.
15720         (*popcount<mode>2_cmp): Remove.
15721         (*popcountsi2_cmp_zext): Ditto.
15722
15723 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
15724
15725         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
15726         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
15727         * config/microblaze/microblaze.h
15728         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
15729
15730 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
15731
15732         PR other/62168
15733         * configure.ac: Set install_gold_as_default to no for
15734         --enable-gold=no.
15735         * configure: Regenerated.
15736
15737 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
15738
15739         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
15740         * config.in: Add undef of HAVE_isl.
15741         * configure: Regenerate.
15742         * configure.ac: Add definition of HAVE_isl.
15743         * graphite-blocking.c: Add checking of HAVE_isl.
15744         * graphite-dependences.c: Likewise.
15745         * graphite-interchange.c: Likewise.
15746         * graphite-isl-ast-to-gimple.c: Likewise.
15747         * graphite-optimize-isl.c: Likewise.
15748         * graphite-poly.c: Likewise.
15749         * graphite-scop-detection.c: Likewise.
15750         * graphite-sese-to-poly.c: Likewise.
15751         * graphite.c: Likewise.
15752         * toplev.c: Replace the checking of HAVE_cloog with the checking
15753         of HAVE_isl.
15754
15755 2014-08-18  Richard Biener  <rguenther@suse.de>
15756
15757         PR tree-optimization/62090
15758         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
15759         (fold_builtin_3): Do not fold snprintf.
15760         (fold_builtin_4): Likewise.
15761         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
15762         moved from builtins.c.
15763         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
15764         (gimple_fold_builtin): Do not fold sprintf here.
15765
15766 2014-08-18  Richard Biener  <rguenther@suse.de>
15767
15768         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
15769         code to ...
15770         (maybe_canonicalize_mem_ref_addr): ... this function.
15771         (fold_stmt_1): Apply it here before all simplification.
15772
15773 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
15774
15775         PR ipa/61800
15776         * cgraph.h (cgraph_node::create_indirect_edge): Add
15777         compute_indirect_info param.
15778         * cgraph.c (cgraph_node::create_indirect_edge): Compute
15779         indirect_info only when it is required.
15780         * cgraphclones.c (cgraph_clone_edge): Do not recompute
15781         indirect_info fore cloned indirect edge.
15782
15783 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15784             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15785             Anna Tikhonova  <anna.tikhonova@intel.com>
15786             Ilya Tocar  <ilya.tocar@intel.com>
15787             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15788             Ilya Verbin  <ilya.verbin@intel.com>
15789             Kirill Yukhin  <kirill.yukhin@intel.com>
15790             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15791
15792         * config/i386/sse.md
15793         (define_mode_iterator VI8_AVX2_AVX512BW): New.
15794         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
15795
15796 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15797             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15798             Anna Tikhonova  <anna.tikhonova@intel.com>
15799             Ilya Tocar  <ilya.tocar@intel.com>
15800             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15801             Ilya Verbin  <ilya.verbin@intel.com>
15802             Kirill Yukhin  <kirill.yukhin@intel.com>
15803             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15804
15805         * config/i386/sse.md
15806         (define_mode_iterator VF1_AVX512VL): New.
15807         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
15808         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
15809         New.
15810
15811 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15812             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15813             Anna Tikhonova  <anna.tikhonova@intel.com>
15814             Ilya Tocar  <ilya.tocar@intel.com>
15815             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15816             Ilya Verbin  <ilya.verbin@intel.com>
15817             Kirill Yukhin  <kirill.yukhin@intel.com>
15818             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15819
15820         * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
15821         * config/i386/i386.md
15822         (define_code_iterator any_float): New.
15823         (define_code_attr floatsuffix): New.
15824         * config/i386/sse.md
15825         (define_mode_iterator VF1_128_256VL): New.
15826         (define_mode_iterator VF2_512_256VL): New.
15827         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
15828         TARGET check.
15829         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
15830         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
15831         New.
15832         (define_mode_attr qq2pssuff): New.
15833         (define_mode_attr sselongvecmode): New.
15834         (define_mode_attr sselongvecmodelower): New.
15835         (define_mode_attr sseintvecmode3): New.
15836         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
15837         New.
15838         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
15839         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
15840         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
15841         (define_insn "ufloatv2siv2df2<mask_name>"): New.
15842
15843 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15844             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15845             Anna Tikhonova  <anna.tikhonova@intel.com>
15846             Ilya Tocar  <ilya.tocar@intel.com>
15847             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15848             Ilya Verbin  <ilya.verbin@intel.com>
15849             Kirill Yukhin  <kirill.yukhin@intel.com>
15850             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15851
15852         * config/i386/sse.md
15853         (define_mode_iterator VF2_AVX512VL): New.
15854         (define_mode_attr sseintvecmode2): New.
15855         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
15856         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
15857         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
15858         (define_insn
15859         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
15860         Ditto.
15861         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
15862         Ditto.
15863         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
15864         Ditto.
15865
15866 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15867             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15868             Anna Tikhonova  <anna.tikhonova@intel.com>
15869             Ilya Tocar  <ilya.tocar@intel.com>
15870             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15871             Ilya Verbin  <ilya.verbin@intel.com>
15872             Kirill Yukhin  <kirill.yukhin@intel.com>
15873             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15874
15875         * config/i386/i386.md
15876         (define_insn "*movoi_internal_avx"): Add evex version.
15877         (define_insn "*movti_internal"): Ditto.
15878
15879 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15880             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15881             Anna Tikhonova  <anna.tikhonova@intel.com>
15882             Ilya Tocar  <ilya.tocar@intel.com>
15883             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15884             Ilya Verbin  <ilya.verbin@intel.com>
15885             Kirill Yukhin  <kirill.yukhin@intel.com>
15886             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15887
15888         * config/i386/i386.md
15889         (define_attr "isa"): Add avx512dq, noavx512dq.
15890         (define_attr "enabled"): Ditto.
15891         * config/i386/sse.md
15892         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
15893
15894 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15895             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15896             Anna Tikhonova  <anna.tikhonova@intel.com>
15897             Ilya Tocar  <ilya.tocar@intel.com>
15898             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15899             Ilya Verbin  <ilya.verbin@intel.com>
15900             Kirill Yukhin  <kirill.yukhin@intel.com>
15901             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15902
15903         * config/i386/i386.c
15904         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
15905         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
15906         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
15907         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
15908         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
15909         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
15910         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
15911         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
15912         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
15913         * config/i386/sse.md
15914         (define_mode_iterator VMOVE): Allow V4TI mode.
15915         (define_mode_iterator V_AVX512VL): New.
15916         (define_mode_iterator V): New handling for AVX512VL.
15917         (define_insn "avx512f_load<mode>_mask"): Delete.
15918         (define_insn "<avx512>_load<mode>_mask"): New.
15919         (define_insn "avx512f_store<mode>_mask"): Delete.
15920         (define_insn "<avx512>_store<mode>_mask"): New.
15921
15922
15923 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
15924
15925         PR sanitizer/62089
15926         * asan.c (instrument_derefs): Fix bitfield check.
15927
15928 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
15929
15930         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
15931         * config/rs6000/htm.md (ttest): Remove clobber.
15932         * config/rs6000/predicates.md (any_mask_operand): New predicate.
15933         (and_operand): Reformat.
15934         (and_2rld_operand): New predicate.
15935         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
15936         parameter.
15937         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
15938         parameter.  Handle AND directly.
15939         (rs6000_split_logical_di): Remove last parameter.
15940         (rs6000_split_logical): Remove last parameter.  Remove obsolete
15941         comment.
15942         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
15943         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
15944         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
15945         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
15946         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
15947         and 5 anonymous splitters):  Delete.
15948         (and<mode>3): New expander.
15949         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
15950         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
15951         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
15952         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
15953         (floatdisf2_internal1): Remove clobbers.
15954         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
15955         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
15956         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
15957         (and<mode>3 for BOOL_128): Remove clobber.
15958         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
15959         rs6000_split_logical.
15960         (*bool<mode>3_internal for BOOL_128): Adjust call of
15961         rs6000_split_logical.
15962         (*boolc<mode>3_internal1 for BOOL_128,
15963         *boolc<mode>3_internal2 for BOOL_128,
15964         *boolcc<mode>3_internal1 for BOOL_128,
15965         *boolcc<mode>3_internal2 for BOOL_128,
15966         *eqv<mode>3_internal1 for BOOL_128,
15967         *eqv<mode>3_internal2 for BOOL_128,
15968         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
15969         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
15970         clobber.
15971         (*vec_reload_and_reg_<mptrsize>): Delete.
15972
15973 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
15974
15975         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
15976         and split, *boolccsi3_internal3 and split): Delete.
15977         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
15978         *boolccdi3_internal3 and split): Delete.
15979         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
15980         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
15981
15982 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
15983
15984         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
15985         and split, *boolcsi3_internal3 and split): Delete.
15986         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
15987         *boolcdi3_internal3 and split): Delete.
15988         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
15989
15990 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
15991
15992         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
15993         <'u'>: Also support printing the low-order 16 bits.
15994         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
15995         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
15996         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
15997         *booldi3_internal3 and split): Delete.
15998         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
15999         *bool<mode>3_dot2): New.
16000         (two anonymous define_splits for non_logical_cint_operand): Merge.
16001
16002 2014-08-17  Marek Polacek  <polacek@redhat.com>
16003             Manuel López-Ibáñez  <manu@gcc.gnu.org>
16004
16005         PR c/62059
16006         * diagnostic.c (adjust_line): Add gcc_checking_assert.
16007         (diagnostic_show_locus): Don't print caret diagnostic
16008         if a column is larger than the line_width.
16009
16010 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
16011
16012         * common.opt: Make the ISL AST generator to be the main code generator
16013         of Graphite.
16014
16015 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
16016
16017         * wide-int.h (generic_wide_int): Declare as class instead of struct.
16018
16019 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
16020
16021         PR target/61641
16022         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
16023         Declare.
16024         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
16025         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
16026         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
16027         Define.
16028         * config/pa/pa.md (begin_brtab): Delete insn.
16029         (end_brtab): Likewise.
16030
16031 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16032
16033         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
16034
16035 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
16036
16037         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
16038         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
16039         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
16040         (get_dynamic_type): Remove.
16041         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
16042         (clear_speculation): Bring to ipa-deivrt.h
16043         (get_class_context): Rename to ...
16044         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
16045         (contains_type_p): Update.
16046         (get_dynamic_type): Rename to ...
16047         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
16048         (possible_polymorphic_call_targets): UPdate.
16049         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
16050         * ipa-prop.c (ipa_analyze_call_uses): Update.
16051
16052 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
16053
16054         * doc/invoke.texi (SH options): Document missing processor variant
16055         options.  Remove references to Hitachi.  Undocument deprecated mspace
16056         option.
16057
16058 2014-08-15  Jason Merrill  <jason@redhat.com>
16059
16060         * tree.c (type_hash_canon): Uncomment assert.
16061
16062 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16063
16064         * input.h (in_system_header_at): Add comment.
16065
16066 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16067
16068         PR fortran/44054
16069         * diagnostic.c (build_message_string): Make it extern.
16070         * diagnostic.h (build_message_string): Make it extern.
16071
16072 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
16073
16074         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
16075         load/store from/to non-floating class pseudo.
16076
16077 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16078
16079         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
16080
16081 2014-08-15  Richard Biener  <rguenther@suse.de>
16082
16083         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
16084         (get_constraint_for_ssa_var): Remove dead code.
16085         (get_constraint_for_1): Adjust.
16086         (find_what_var_points_to): Likewise.
16087         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
16088
16089 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
16090
16091         PR target/61878
16092         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
16093         (_mm512_mask_cmpge_epu32_mask): Ditto.
16094         (_mm512_cmpge_epu32_mask): Ditto.
16095         (_mm512_mask_cmpge_epi64_mask): Ditto.
16096         (_mm512_cmpge_epi64_mask): Ditto.
16097         (_mm512_mask_cmpge_epu64_mask): Ditto.
16098         (_mm512_cmpge_epu64_mask): Ditto.
16099         (_mm512_mask_cmple_epi32_mask): Ditto.
16100         (_mm512_cmple_epi32_mask): Ditto.
16101         (_mm512_mask_cmple_epu32_mask): Ditto.
16102         (_mm512_cmple_epu32_mask): Ditto.
16103         (_mm512_mask_cmple_epi64_mask): Ditto.
16104         (_mm512_cmple_epi64_mask): Ditto.
16105         (_mm512_mask_cmple_epu64_mask): Ditto.
16106         (_mm512_cmple_epu64_mask): Ditto.
16107         (_mm512_mask_cmplt_epi32_mask): Ditto.
16108         (_mm512_cmplt_epi32_mask): Ditto.
16109         (_mm512_mask_cmplt_epu32_mask): Ditto.
16110         (_mm512_cmplt_epu32_mask): Ditto.
16111         (_mm512_mask_cmplt_epi64_mask): Ditto.
16112         (_mm512_cmplt_epi64_mask): Ditto.
16113         (_mm512_mask_cmplt_epu64_mask): Ditto.
16114         (_mm512_cmplt_epu64_mask): Ditto.
16115         (_mm512_mask_cmpneq_epi32_mask): Ditto.
16116         (_mm512_mask_cmpneq_epu32_mask): Ditto.
16117         (_mm512_cmpneq_epu32_mask): Ditto.
16118         (_mm512_mask_cmpneq_epi64_mask): Ditto.
16119         (_mm512_cmpneq_epi64_mask): Ditto.
16120         (_mm512_mask_cmpneq_epu64_mask): Ditto.
16121         (_mm512_cmpneq_epu64_mask): Ditto.
16122         (_mm512_castpd_ps): Ditto.
16123         (_mm512_castpd_si512): Ditto.
16124         (_mm512_castps_pd): Ditto.
16125         (_mm512_castps_si512): Ditto.
16126         (_mm512_castsi512_ps): Ditto.
16127         (_mm512_castsi512_pd): Ditto.
16128         (_mm512_castpd512_pd128): Ditto.
16129         (_mm512_castps512_ps128): Ditto.
16130         (_mm512_castsi512_si128): Ditto.
16131         (_mm512_castpd512_pd256): Ditto.
16132         (_mm512_castps512_ps256): Ditto.
16133         (_mm512_castsi512_si256): Ditto.
16134         (_mm512_castpd128_pd512): Ditto.
16135         (_mm512_castps128_ps512): Ditto.
16136         (_mm512_castsi128_si512): Ditto.
16137         (_mm512_castpd256_pd512): Ditto.
16138         (_mm512_castps256_ps512): Ditto.
16139         (_mm512_castsi256_si512): Ditto.
16140         (_mm512_cmpeq_epu32_mask): Ditto.
16141         (_mm512_mask_cmpeq_epu32_mask): Ditto.
16142         (_mm512_mask_cmpeq_epu64_mask): Ditto.
16143         (_mm512_cmpeq_epu64_mask): Ditto.
16144         (_mm512_cmpgt_epu32_mask): Ditto.
16145         (_mm512_mask_cmpgt_epu32_mask): Ditto.
16146         (_mm512_mask_cmpgt_epu64_mask): Ditto.
16147         (_mm512_cmpgt_epu64_mask): Ditto.
16148         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
16149         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
16150         * config/i386/i386.c (enum ix86_builtins): Add
16151         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
16152         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
16153         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
16154         (bdesc_args): Add __builtin_ia32_si512_256si,
16155         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
16156         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
16157         __builtin_ia32_pd512_pd.
16158         (ix86_expand_args_builtin): Handle new FTYPEs.
16159         * config/i386/sse.md (castmode): Add 512-bit modes.
16160         (AVX512MODE2P): New.
16161         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
16162         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
16163
16164 2014-08-15  Richard Biener  <rguenther@suse.de>
16165
16166         * fold-const.c (tree_swap_operands_p): Put all constants
16167         last, also strip sign-changing NOPs when considering further
16168         canonicalization.  Canonicalize also when optimizing for size.
16169
16170 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16171
16172         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
16173         one_match > zero_match case to just before simple_sequence.
16174
16175 2014-08-15  Richard Biener  <rguenther@suse.de>
16176
16177         * data-streamer.h (streamer_string_index, string_for_index):
16178         Remove.
16179         * data-streamer-out.c (streamer_string_index): Make static.
16180         * data-streamer-in.c (string_for_index): Likewise.
16181         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
16182         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
16183
16184 2014-08-15  Richard Biener  <rguenther@suse.de>
16185
16186         PR tree-optimization/62031
16187         * tree-data-ref.c (dr_analyze_indices): Do not set
16188         DR_UNCONSTRAINED_BASE.
16189         (dr_may_alias_p): All indirect accesses have to go the
16190         formerly DR_UNCONSTRAINED_BASE path.
16191         * tree-data-ref.h (struct indices): Remove
16192         unconstrained_base member.
16193         (DR_UNCONSTRAINED_BASE): Remove.
16194
16195 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
16196
16197         PR middle-end/62092
16198         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
16199         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
16200         in OMP_CLAUSE_MAP in some outer target region.
16201
16202 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
16203
16204         * tree-ssa-loop-ivopts.c (ivopts_data): New field
16205         name_expansion_cache.
16206         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
16207         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
16208         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
16209         (difference_cannot_overflow_p): New parameter.  Use affine
16210         expansion for equality check.
16211         (iv_elimination_compare_lt): Pass new argument.
16212
16213 2014-08-14  DJ Delorie  <dj@redhat.com>
16214
16215         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
16216         variables to the accumulator.
16217
16218         * config/rl78/predicates.md (rl78_near_mem_operand): New.
16219         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
16220         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
16221         with far-far moves.
16222
16223         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
16224         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
16225         (umulqihi3_virt): Likewise.
16226         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
16227         (umulqihi3_real): Likewise.
16228
16229         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
16230
16231 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
16232
16233         PR tree-optimization/62091
16234         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
16235         function_entry_reached.
16236         (walk_aliased_vdefs): Clear it here.
16237         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
16238
16239 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
16240
16241         * ipa-utils.h (compare_virtual_tables): Declare.
16242         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
16243
16244 2014-08-14  Marek Polacek  <polacek@redhat.com>
16245
16246         DR 458
16247         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
16248         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
16249
16250 2014-08-14  Tom de Vries  <tom@codesourcery.com>
16251
16252         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
16253
16254 2014-08-14  Tom de Vries  <tom@codesourcery.com>
16255
16256         PR rtl-optimization/62004
16257         PR rtl-optimization/62030
16258         * ifcvt.c (rtx_interchangeable_p): New function.
16259         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
16260         * emit-rtl.h (mem_attrs_eq_p): Declare.
16261
16262 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
16263
16264         * graphite-scop-detection.c:
16265         Add inclusion of cp-tree.h.
16266         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
16267         in case they are pointers to object types
16268
16269 2014-08-14  Richard Biener  <rguenther@suse.de>
16270
16271         * BASE-VER: Change to 5.0.0
16272
16273 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16274             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16275             Anna Tikhonova  <anna.tikhonova@intel.com>
16276             Ilya Tocar  <ilya.tocar@intel.com>
16277             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16278             Ilya Verbin  <ilya.verbin@intel.com>
16279             Kirill Yukhin  <kirill.yukhin@intel.com>
16280             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16281
16282         * config/i386/sse.md (define_mode_attr avx512): New.
16283         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
16284         V4DI modes.
16285         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
16286         (define_mode_attr ssse3_avx2): Ditto.
16287         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
16288         (define_mode_attr avx2_avx512bw): New.
16289         (define_mode_attr ssedoublemodelower): New.
16290         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
16291         V32HI, V64QI modes.
16292         (define_mode_attr ssebytemode): Allow V8DI modes.
16293         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
16294         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
16295         (define_mode_attr ssePSmode2): New.
16296         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
16297         V16HI, V32HI modes.
16298         (define_mode_attr dbpsadbwmode): New.
16299         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
16300         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
16301         (vi8_sse4_1_avx2_avx512): New.
16302         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
16303         mode attribute.
16304         (define_mode_attr blendbits): Move before its immediate use.
16305
16306 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16307             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16308             Anna Tikhonova  <anna.tikhonova@intel.com>
16309             Ilya Tocar  <ilya.tocar@intel.com>
16310             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16311             Ilya Verbin  <ilya.verbin@intel.com>
16312             Kirill Yukhin  <kirill.yukhin@intel.com>
16313             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16314
16315         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
16316         * config/i386/subst.md
16317         (define_mode_iterator SUBST_V): Update.
16318         (define_mode_iterator SUBST_A): Ditto.
16319         (define_subst_attr "mask_operand7"): New.
16320         (define_subst_attr "mask_operand10"): New.
16321         (define_subst_attr "mask_operand_arg34") : New.
16322         (define_subst_attr "mask_expand_op3"): New.
16323         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
16324         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
16325         (define_subst_attr "mask_avx512vl_condition"): New.
16326         (define_subst_attr "round_mask_operand4"): Ditto.
16327         (define_subst_attr "round_mask_scalar_op3"): Delete.
16328         (define_subst_attr "round_mask_op4"): New.
16329         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
16330         V16SImode.
16331         (define_subst_attr "round_modev8sf_condition"): New.
16332         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
16333         <MODE>mode.
16334         (define_subst_attr "round_saeonly_mask_operand4"): New.
16335         (define_subst_attr "round_saeonly_mask_op4"): New.
16336         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
16337         V8DImode, V16SImode.
16338         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
16339         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
16340         (define_subst_attr "mask_expand4_args"): New.
16341         (define_subst "mask_expand4"): New.
16342
16343 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16344             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16345             Anna Tikhonova  <anna.tikhonova@intel.com>
16346             Ilya Tocar  <ilya.tocar@intel.com>
16347             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16348             Ilya Verbin  <ilya.verbin@intel.com>
16349             Kirill Yukhin  <kirill.yukhin@intel.com>
16350             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16351
16352         * config/i386/i386.md
16353         (define_attr "isa"): Add avx512bw,noavx512bw.
16354         (define_attr "enabled"): Ditto.
16355         (define_split): Add 32/64-bit mask logic.
16356         (define_insn "*k<logic>qi"): New.
16357         (define_insn "*k<logic>hi"): New.
16358         (define_insn "*anddi_1"): Add mask version.
16359         (define_insn "*andsi_1"): Ditto.
16360         (define_insn "*<code><mode>_1"): Ditto.
16361         (define_insn "*<code>hi_1"): Ditto.
16362         (define_insn "kxnor<mode>"): New.
16363         (define_insn "kunpcksi"): New.
16364         (define_insn "kunpckdi"): New.
16365         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
16366         (define_insn "*one_cmplhi2_1"): Ditto.
16367
16368 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16369             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16370             Anna Tikhonova  <anna.tikhonova@intel.com>
16371             Ilya Tocar  <ilya.tocar@intel.com>
16372             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16373             Ilya Verbin  <ilya.verbin@intel.com>
16374             Kirill Yukhin  <kirill.yukhin@intel.com>
16375             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16376
16377         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
16378         V32HImode.
16379
16380 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16381             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16382             Anna Tikhonova  <anna.tikhonova@intel.com>
16383             Ilya Tocar  <ilya.tocar@intel.com>
16384             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16385             Ilya Verbin  <ilya.verbin@intel.com>
16386             Kirill Yukhin  <kirill.yukhin@intel.com>
16387             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16388
16389         * config/i386/i386.c (print_reg): Ð¡orrectly print 64-bit mask
16390         registers.
16391         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
16392         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
16393         xmm/ymm16+ when availble.
16394         * config/i386/i386.h
16395         (HARD_REGNO_NREGS): Add mask regs.
16396         (VALID_AVX512F_REG_MODE): Ditto.
16397         (VALID_AVX512F_REG_MODE) : Define.
16398         (VALID_MASK_AVX512BW_MODE): Ditto.
16399         (reg_class) (MASK_REG_P(X)): Define.
16400         * config/i386/i386.md: Do not split long moves with mask register,
16401         use kmovb if avx512bw is availible.
16402         (movdi_internal): Handle mask registers.
16403
16404 2014-08-14  Richard Biener  <rguenther@suse.de>
16405
16406         PR tree-optimization/62081
16407         * tree-ssa-loop.c (pass_fix_loops): New pass.
16408         (pass_tree_loop::gate):  Do not fixup loops here.
16409         * tree-pass.h (make_pass_fix_loops): Declare.
16410         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
16411
16412 2014-08-14  Richard Biener  <rguenther@suse.de>
16413
16414         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
16415         (type_hash_canon): ... this and avoid 2nd lookup for the add.
16416
16417 2014-08-14  Richard Biener  <rguenther@suse.de>
16418
16419         PR tree-optimization/62090
16420         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
16421         (fold_builtin_2): Do not fold sprintf.
16422         (fold_builtin_3): Likewise.
16423         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
16424         moved from builtins.c.
16425         (gimple_fold_builtin): Fold sprintf.
16426
16427 2014-08-14  Richard Biener  <rguenther@suse.de>
16428
16429         PR rtl-optimization/62079
16430         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
16431         run cleanup_cfg.
16432
16433 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
16434
16435         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
16436         current_function_decl.
16437
16438 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
16439
16440         * cgraph.c (cgraph_node::function_symbol): Fix wrong
16441         cgraph_function_node to cgraph_node::function_symbol
16442         refactoring.
16443
16444 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
16445
16446         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
16447         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
16448
16449 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
16450
16451         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
16452         warning.
16453
16454 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
16455
16456         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
16457         generator.
16458
16459 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
16460
16461         PR target/62025
16462         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
16463         any registers that are used in mem_insn.
16464
16465 2014-08-12  Steve Ellcey  <sellcey@mips.com>
16466
16467         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
16468
16469 2014-08-12  Steve Ellcey  <sellcey@mips.com>
16470
16471         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
16472         (MULTILIB_DIRNAMES): Ditto.
16473         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
16474         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
16475         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
16476         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
16477         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
16478         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
16479
16480 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16481
16482         PR target/61413
16483         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
16484         of __ARM_SIZEOF_WCHAR_T.
16485
16486 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16487
16488         PR target/62098
16489         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
16490         Remove unnecessary attributes.
16491
16492 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
16493
16494         * internal-fn.c (init_internal_fns): Fix off-by-one.
16495
16496 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16497             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16498             Anna Tikhonova  <anna.tikhonova@intel.com>
16499             Ilya Tocar  <ilya.tocar@intel.com>
16500             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16501             Ilya Verbin  <ilya.verbin@intel.com>
16502             Kirill Yukhin  <kirill.yukhin@intel.com>
16503             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16504
16505         * config/i386/i386.c (standard_sse_constant_opcode): Use
16506         vpxord/vpternlog if avx512 is availible.
16507
16508 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16509
16510         PR middle-end/62103
16511         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
16512         bitfields, that is when size doesn't match the size of type or the
16513         size of the constructor.
16514
16515 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
16516
16517         * config/rs6000/constraints.md (wh constraint): New constraint,
16518         for FP registers if direct move is available.
16519         (wi constraint): New constraint, for VSX/FP registers that can
16520         handle 64-bit integers.
16521         (wj constraint): New constraint for VSX/FP registers that can
16522         handle 64-bit integers for direct moves.
16523         (wk constraint): New constraint for VSX/FP registers that can
16524         handle 64-bit doubles for direct moves.
16525         (wy constraint): Make documentation match implementation.
16526
16527         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
16528         scalar_in_vmx_p field to simplify tests of whether SFmode or
16529         DFmode can go in the Altivec registers.
16530         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
16531         (rs6000_setup_reg_addr_masks): Likewise.
16532         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
16533         field, and wh/wi/wj/wk constraints.
16534         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
16535         the wh/wi/wj/wk constraints.
16536         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
16537         upper registers, prefer VSX registers unless the operation is a
16538         memory operation with REG+OFFSET addressing.
16539
16540         * config/rs6000/vsx.md (VSr mode attribute): Add support for
16541         DImode.  Change SFmode to use ww constraint instead of d to allow
16542         SF registers in the upper registers.
16543         (VSr2): Likewise.
16544         (VSr3): Likewise.
16545         (VSr5): Fix thinko in comment.
16546         (VSa): New mode attribute that is an alternative to wa, that
16547         returns the VSX register class that a mode can go in, but may not
16548         be the preferred register class.
16549         (VS_64dm): New mode attribute for appropriate register classes for
16550         referencing 64-bit elements of vectors for direct moves and normal
16551         moves.
16552         (VS_64reg): Likewise.
16553         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
16554         register allocator to only registers the data type can handle.
16555         (vsx_le_perm_load_<mode>): Likewise.
16556         (vsx_le_perm_store_<mode>): Likewise.
16557         (vsx_xxpermdi2_le_<mode>): Likewise.
16558         (vsx_xxpermdi4_le_<mode>): Likewise.
16559         (vsx_lxvd2x2_le_<mode>): Likewise.
16560         (vsx_lxvd2x4_le_<mode>): Likewise.
16561         (vsx_stxvd2x2_le_<mode>): Likewise.
16562         (vsx_add<mode>3): Likewise.
16563         (vsx_sub<mode>3): Likewise.
16564         (vsx_mul<mode>3): Likewise.
16565         (vsx_div<mode>3): Likewise.
16566         (vsx_tdiv<mode>3_internal): Likewise.
16567         (vsx_fre<mode>2): Likewise.
16568         (vsx_neg<mode>2): Likewise.
16569         (vsx_abs<mode>2): Likewise.
16570         (vsx_nabs<mode>2): Likewise.
16571         (vsx_smax<mode>3): Likewise.
16572         (vsx_smin<mode>3): Likewise.
16573         (vsx_sqrt<mode>2): Likewise.
16574         (vsx_rsqrte<mode>2): Likewise.
16575         (vsx_tsqrt<mode>2_internal): Likewise.
16576         (vsx_fms<mode>4): Likewise.
16577         (vsx_nfma<mode>4): Likewise.
16578         (vsx_eq<mode>): Likewise.
16579         (vsx_gt<mode>): Likewise.
16580         (vsx_ge<mode>): Likewise.
16581         (vsx_eq<mode>_p): Likewise.
16582         (vsx_gt<mode>_p): Likewise.
16583         (vsx_ge<mode>_p): Likewise.
16584         (vsx_xxsel<mode>): Likewise.
16585         (vsx_xxsel<mode>_uns): Likewise.
16586         (vsx_copysign<mode>3): Likewise.
16587         (vsx_float<VSi><mode>2): Likewise.
16588         (vsx_floatuns<VSi><mode>2): Likewise.
16589         (vsx_fix_trunc<mode><VSi>2): Likewise.
16590         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
16591         (vsx_x<VSv>r<VSs>i): Likewise.
16592         (vsx_x<VSv>r<VSs>ic): Likewise.
16593         (vsx_btrunc<mode>2): Likewise.
16594         (vsx_b2trunc<mode>2): Likewise.
16595         (vsx_floor<mode>2): Likewise.
16596         (vsx_ceil<mode>2): Likewise.
16597         (vsx_<VS_spdp_insn>): Likewise.
16598         (vsx_xscvspdp): Likewise.
16599         (vsx_xvcvspuxds): Likewise.
16600         (vsx_float_fix_<mode>2): Likewise.
16601         (vsx_set_<mode>): Likewise.
16602         (vsx_extract_<mode>_internal1): Likewise.
16603         (vsx_extract_<mode>_internal2): Likewise.
16604         (vsx_extract_<mode>_load): Likewise.
16605         (vsx_extract_<mode>_store): Likewise.
16606         (vsx_splat_<mode>): Likewise.
16607         (vsx_xxspltw_<mode>): Likewise.
16608         (vsx_xxspltw_<mode>_direct): Likewise.
16609         (vsx_xxmrghw_<mode>): Likewise.
16610         (vsx_xxmrglw_<mode>): Likewise.
16611         (vsx_xxsldwi_<mode>): Likewise.
16612         (vsx_xscvdpspn): Tighten constraints to only use register classes
16613         the types use.
16614         (vsx_xscvspdpn): Likewise.
16615         (vsx_xscvdpspn_scalar): Likewise.
16616
16617         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
16618         wj, and wk constraints.
16619         (GPR_REG_CLASS_P): New helper macro for register classes targeting
16620         general purpose registers.
16621
16622         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
16623         direct moves.
16624         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
16625         DImode instead of wm.  Use wk constraint for direct move of DFmode
16626         instead of wm.
16627         (extendsidi2_lfiwax): Likewise.
16628         (lfiwax): Likewise.
16629         (lfiwzx): Likewise.
16630         (movdi_internal64): Likewise.
16631
16632         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
16633         wk constraints. Make the wy constraint documentation match them
16634         implementation.
16635
16636 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
16637
16638         Replacement of isl_int by isl_val
16639         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
16640         (compute_bounds_for_param): use isl_val instead of isl_int
16641         (compute_bounds_for_loop): likewise
16642         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
16643         (build_linearized_memory_access): use isl_val instead of isl_int
16644         (pdr_stride_in_loop): likewise
16645         * graphite-optimize-isl.c:
16646         (getPrevectorMap): use isl_val instead of isl_int
16647         * graphite-poly.c:
16648         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
16649         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
16650         (extern the_isl_ctx): declare
16651         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
16652         (extract_affine_gmp): likewise
16653         (wrap): likewise
16654         (build_loop_iteration_domains): likewise
16655         (add_param_constraints): likewise
16656
16657 2014-08-11  Richard Biener  <rguenther@suse.de>
16658
16659         PR tree-optimization/62075
16660         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
16661         handle uses in patterns.
16662
16663 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16664             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16665             Anna Tikhonova  <anna.tikhonova@intel.com>
16666             Ilya Tocar  <ilya.tocar@intel.com>
16667             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16668             Ilya Verbin  <ilya.verbin@intel.com>
16669             Kirill Yukhin  <kirill.yukhin@intel.com>
16670             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16671
16672         * common/config/i386/i386-common.c
16673         (OPTION_MASK_ISA_AVX512VL_SET): Define.
16674         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
16675         (ix86_handle_option): Handle OPT_mavx512vl.
16676         * config/i386/cpuid.h (bit_AVX512VL): Define.
16677         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
16678         set -mavx512vl accordingly.
16679         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16680         OPTION_MASK_ISA_AVX512VL.
16681         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
16682         (ix86_option_override_internal): Define PTA_AVX512VL, handle
16683         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
16684         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
16685         * config/i386/i386.h (TARGET_AVX512VL): Define.
16686         (TARGET_AVX512VL_P(x)): Ditto.
16687         * config/i386/i386.opt: Add mavx512vl.
16688
16689 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
16690
16691         PR tree-optimization/62073
16692         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
16693         a basic block.
16694
16695 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16696             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16697             Anna Tikhonova  <anna.tikhonova@intel.com>
16698             Ilya Tocar  <ilya.tocar@intel.com>
16699             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16700             Ilya Verbin  <ilya.verbin@intel.com>
16701             Kirill Yukhin  <kirill.yukhin@intel.com>
16702             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16703
16704         * common/config/i386/i386-common.c
16705         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
16706         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
16707         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
16708         (ix86_handle_option): Handle OPT_mavx512bw.
16709         * config/i386/cpuid.h (bit_AVX512BW): Define.
16710         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
16711         set -mavx512bw accordingly.
16712         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16713         OPTION_MASK_ISA_AVX512BW.
16714         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
16715         (ix86_option_override_internal): Define PTA_AVX512BW, handle
16716         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
16717         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
16718         * config/i386/i386.h (TARGET_AVX512BW): Define.
16719         (TARGET_AVX512BW_P(x)): Ditto.
16720         * config/i386/i386.opt: Add mavx512bw.
16721
16722 2014-08-11  Richard Biener  <rguenther@suse.de>
16723
16724         PR tree-optimization/62070
16725         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
16726         Remove SSA checking.
16727
16728 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
16729
16730         * asan.c (asan_check_flags): New enum.
16731         (build_check_stmt_with_calls): Removed function.
16732         (build_check_stmt): Split inlining logic to
16733         asan_expand_check_ifn.
16734         (instrument_derefs): Rename parameter.
16735         (instrument_mem_region_access): Rename parameter.
16736         (instrument_strlen_call): Likewise.
16737         (asan_expand_check_ifn): New function.
16738         (asan_instrument): Remove old code.
16739         (pass_sanopt::execute): Change handling of
16740         asan-instrumentation-with-call-threshold.
16741         (asan_clear_shadow): Fix formatting.
16742         (asan_function_start): Likewise.
16743         (asan_emit_stack_protection): Likewise.
16744         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
16745         Update description.
16746         * internal-fn.c (expand_ASAN_CHECK): New function.
16747         * internal-fn.def (ASAN_CHECK): New internal function.
16748         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
16749         Update description.
16750         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
16751         * tree.c: Small comment fix.
16752
16753 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
16754
16755         * gimple.c (gimple_call_fnspec): Support internal functions.
16756         (gimple_call_return_flags): Use const.
16757         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
16758         * internal-fn.def: Add fnspec information.
16759         * internal-fn.h (internal_fn_fnspec): New function.
16760         (init_internal_fns): Declare new function.
16761         * internal-fn.c (internal_fn_fnspec_array): New global variable.
16762         (init_internal_fns): New function.
16763         * tree-core.h: Update macro call.
16764         * tree.c (build_common_builtin_nodes): Initialize internal fns.
16765
16766 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
16767
16768         * lto-streamer.h (struct output_block::symbol): Change from
16769         struct symtab_node to plain symtab_node.
16770         (referenced_from_this_partition_p): Change first parameter
16771         from struct symtab_node to plain symtab_node.
16772
16773 2014-08-10  Marek Polacek  <polacek@redhat.com>
16774
16775         PR c/51849
16776         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
16777
16778 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
16779
16780         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
16781         DECL correctly; do not give up on types in static storage.
16782
16783 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
16784
16785         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
16786
16787 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
16788
16789         * graphite-isl-ast-to-gimple.c:
16790         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
16791
16792         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
16793
16794 2014-08-08  Guozhi Wei  <carrot@google.com>
16795
16796         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
16797
16798 2014-08-08  Cary Coutant  <ccoutant@google.com>
16799
16800         * dwarf2out.c (get_skeleton_type_unit): Remove.
16801         (output_skeleton_debug_sections): Remove skeleton type units.
16802         (output_comdat_type_unit): Likewise.
16803         (dwarf2out_finish): Likewise.
16804
16805 2014-08-07  Yi Yang  <ahyangyi@google.com>
16806
16807         * predict.c (expr_expected_value_1): Remove the redundant assignment.
16808
16809 2014-08-08  Richard Biener  <rguenther@suse.de>
16810
16811         * lto-streamer.h (struct lto_input_block): Make it a class
16812         with a constructor.
16813         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
16814         (struct lto_function_header, struct lto_simple_header,
16815         struct lto_simple_header_with_strings,
16816         struct lto_decl_header, struct lto_function_header): Make
16817         a simple inheritance hieararchy.  Remove unused fields.
16818         (struct lto_asm_header): Remove.
16819         * lto-streamer-out.c (produce_asm): Adjust.
16820         (lto_output_toplevel_asms): Likewise.
16821         (produce_asm_for_decls): Likewise.
16822         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
16823         * data-streamer-in.c (string_for_index): Likewise.
16824         * ipa-inline-analysis.c (inline_read_section): Likewise.
16825         * ipa-prop.c (ipa_prop_read_section): Likewise.
16826         (read_replacements_section): Likewise.
16827         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
16828         * lto-section-in.c (lto_create_simple_input_block): Likewise.
16829         (lto_destroy_simple_input_block): Likewise.
16830         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
16831         (lto_input_toplevel_asms): Likewise.
16832
16833 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16834             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16835             Anna Tikhonova  <anna.tikhonova@intel.com>
16836             Ilya Tocar  <ilya.tocar@intel.com>
16837             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16838             Ilya Verbin  <ilya.verbin@intel.com>
16839             Kirill Yukhin  <kirill.yukhin@intel.com>
16840             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16841
16842         * common/config/i386/i386-common.c
16843         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
16844         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
16845         (ix86_handle_option): Handle OPT_mavx512dq.
16846         * config/i386/cpuid.h (bit_AVX512DQ): Define.
16847         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
16848         set -mavx512dq accordingly.
16849         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16850         OPTION_MASK_ISA_AVX512DQ.
16851         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
16852         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
16853         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
16854         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
16855         * config/i386/i386.h (TARGET_AVX512DQ): Define.
16856         (TARGET_AVX512DQ_P(x)): Ditto.
16857         * config/i386/i386.opt: Add mavx512dq.
16858
16859 2014-08-08  Richard Biener  <rguenther@suse.de>
16860
16861         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
16862         target_percent, target_percent_s): Export.
16863         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
16864         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
16865         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
16866         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
16867         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
16868         Move to gimple-fold.c.
16869         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
16870         strcat and strcpy.
16871         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
16872         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
16873         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
16874         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
16875         (rewrite_call_expr_array): Remove.
16876         (fold_builtin_sprintf_chk): Likewise.
16877         (fold_builtin_snprintf_chk): Likewise.
16878         (fold_builtin_varargs): Remove handling of sprintf_chk,
16879         vsprintf_chk, snprintf_chk and vsnprintf_chk.
16880         (gimple_fold_builtin_sprintf_chk): Remove.
16881         (gimple_fold_builtin_snprintf_chk): Likewise.
16882         (gimple_fold_builtin_varargs): Likewise.
16883         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
16884         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
16885         * gimple.c (gimple_seq_add_seq_without_update): New function.
16886         * gimple.h (gimple_seq_add_seq_without_update): Declare.
16887         * gimple-fold.c: Include output.h.
16888         (gsi_replace_with_seq_vops): New function, split out from ...
16889         (gimplify_and_update_call_from_tree): ... here.
16890         (replace_call_with_value): New function.
16891         (replace_call_with_call_and_fold): Likewise.
16892         (var_decl_component_p): Moved from builtins.c.
16893         (gimple_fold_builtin_memory_op): Moved from builtins.c
16894         fold_builtin_memory_op and rewritten to GIMPLE.
16895         (gimple_fold_builtin_memset): Likewise.
16896         (gimple_fold_builtin_strcpy): Likewise.
16897         (gimple_fold_builtin_strncpy): Likewise.
16898         (gimple_fold_builtin_strcat): Likewise.
16899         (gimple_fold_builtin_fputs): Likewise.
16900         (gimple_fold_builtin_memory_chk): Likewise.
16901         (gimple_fold_builtin_stxcpy_chk): Likewise.
16902         (gimple_fold_builtin_stxncpy_chk): Likewise.
16903         (gimple_fold_builtin_snprintf_chk): Likewise.
16904         (gimple_fold_builtin_sprintf_chk): Likewise.
16905         (gimple_fold_builtin_strlen): New function.
16906         (gimple_fold_builtin_with_strlen): New function split out from
16907         gimple_fold_builtin.
16908         (gimple_fold_builtin): Change signature and handle
16909         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
16910         here.  Call gimple_fold_builtin_with_strlen.
16911         (gimple_fold_call): Adjust.
16912
16913 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
16914
16915         * calls.c (precompute_arguments): Check
16916         promoted_for_signed_and_unsigned_p and set the promoted mode.
16917         (promoted_for_signed_and_unsigned_p): New function.
16918         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
16919         and set the promoted mode.
16920         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
16921         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
16922         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
16923
16924
16925 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
16926
16927         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
16928         instead of SUBREG_PROMOTED_UNSIGNED_SET.
16929         (expand_call): Likewise.
16930         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
16931         to get promoted mode.
16932         * combine.c (record_promoted_value): Skip > 0 comparison with
16933         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
16934         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
16935         of SUBREG_PROMOTED_UNSIGNED_P.
16936         (convert_modes): Likewise.
16937         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
16938         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
16939         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
16940         SUBREG_PROMOTED_UNSIGNED_SET.
16941         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
16942         instead of SUBREG_PROMOTED_UNSIGNED_SET.
16943         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
16944         SUBREG_PROMOTED_SET.
16945         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
16946         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
16947         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
16948         of SUBREG_PROMOTED_UNSIGNED_P.
16949         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
16950         (SUBREG_PROMOTED_SET): New define.
16951         (SUBREG_PROMOTED_GET): Likewise.
16952         (SUBREG_PROMOTED_SIGN): Likewise.
16953         (SUBREG_PROMOTED_SIGNED_P): Likewise.
16954         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
16955         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
16956         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
16957         instead of SUBREG_PROMOTED_UNSIGNED_GET.
16958         (nonzero_bits1): Skip > 0 comparison with the results as
16959         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
16960         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
16961         of !SUBREG_PROMOTED_UNSIGNED_P.
16962         * simplify-rtx.c (simplify_unary_operation_1): Use new
16963         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
16964         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
16965         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
16966         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
16967
16968 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
16969
16970         * ipa-devirt.c: Include gimple-pretty-print.h
16971         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
16972         further tests.
16973         (decl_maybe_in_construction_p): Fix conditional on cdtor check
16974         (get_polymorphic_call_info): Fix return value
16975         (type_change_info): New sturcture based on ipa-prop
16976         variant.
16977         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
16978         based on ipa-prop variant.
16979         (extr_type_from_vtbl_ptr_store): New function
16980         based on ipa-prop variant.
16981         (record_known_type): New function.
16982         (check_stmt_for_type_change): New function.
16983         (get_dynamic_type): New function.
16984         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
16985         * tree-ssa-pre.c: ipa-utils.h
16986         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
16987         machinery; sanity check with ipa-prop devirtualization.
16988         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
16989         polymorphic flag.
16990
16991 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
16992
16993         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
16994         * alias.c, cfgexpand.c, cgraphbuild.c,
16995         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
16996         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
16997         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
16998         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
16999         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
17000         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
17001         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
17002         dse.c, except.c, gengtype.c, gimple-expr.c,
17003         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
17004         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
17005         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
17006         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
17007         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
17008         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
17009         pointer-set.h.
17010         * pointer-set.c: Remove file.
17011         * pointer-set.h: Remove file.
17012
17013 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17014
17015         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
17016         * config/arm/types.md (f_sels, f_seld): Delete.
17017
17018 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17019
17020         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
17021         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
17022         (aarch64_movdi_<mode>high): Likewise.
17023         (aarch64_mov<mode>high_di): Likewise.
17024         (aarch64_movdi_<mode>low): Likewise.
17025         (aarch64_mov<mode>low_di): Likewise.
17026         (aarch64_movtilow_tilow): Likewise.
17027         Add comment explaining usage of fp,simd attributes and of
17028         TARGET_FLOAT and TARGET_SIMD.
17029
17030 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
17031             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17032
17033         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
17034         Use MOVN when one of the half-words is 0xffff.
17035
17036 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
17037
17038         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
17039
17040 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
17041
17042         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
17043         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
17044         (rfs_str): String corresponding to RFS_* constants.
17045         (rank_for_schedule_stats_t): New typedef.
17046         (rank_for_schedule_stats): New static variable.
17047         (rfs_result): New static function.
17048         (rank_for_schedule): Track statistics for deciding heuristics.
17049         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
17050         static functions.
17051         (ready_sort): Use them for debug printouts.
17052         (schedule_block): Init statistics state.  Print statistics on
17053         rank_for_schedule decisions.
17054
17055 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
17056
17057         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
17058
17059 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
17060
17061         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
17062         constraint.
17063
17064 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
17065
17066         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
17067         function to not conflict.
17068         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
17069         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
17070         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
17071         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
17072         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
17073         of pointer_map.
17074
17075 2014-08-07  Marek Polacek  <polacek@redhat.com>
17076
17077         * fold-const.c (fold_binary_loc): Add folding of
17078         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
17079
17080 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
17081
17082         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
17083         instead of type size.
17084         (ASM_FINISH_DECLARE_OBJECT): Likewise.
17085
17086 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
17087
17088         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
17089         (*thumb1_movqi_insn): Likewise.
17090         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
17091
17092 2014-08-07  Tom de Vries  <tom@codesourcery.com>
17093
17094         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
17095         (glibc_2_11_or_earlier): Remove effective-target keywords.
17096
17097 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
17098
17099         * config/arm/arm.c (bdesc_2arg): Fix typo.
17100         (arm_atomic_assign_expand_fenv): Remove The default implementation.
17101
17102 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
17103
17104         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
17105
17106 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
17107
17108         PR debug/61923
17109         * haifa-sched.c (advance_one_cycle): Fix dump.
17110         (schedule_block): Don't advance cycle if we are already at the
17111         beginning of the cycle.
17112
17113 2014-08-06  Martin Jambor  <mjambor@suse.cz>
17114
17115         PR ipa/61393
17116         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
17117
17118 2014-08-06  Richard Biener  <rguenther@suse.de>
17119
17120         PR lto/62034
17121         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
17122         SCCs here.
17123         (lto_input_tree): Pop SCCs here.
17124
17125 2014-08-06  Richard Biener  <rguenther@suse.de>
17126
17127         PR tree-optimization/61320
17128         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
17129         handle misaligned loads.
17130
17131 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
17132
17133         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
17134         (aarch64_expand_vec_perm_const): Check for dup before zip.
17135
17136 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17137
17138         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
17139         CONST_INT_P instead of GET_CODE and compare.
17140         (aarch64_select_cc_mode): Likewise.
17141         (aarch64_print_operand): Likewise.
17142         (aarch64_rtx_costs): Likewise.
17143         (aarch64_simd_valid_immediate): Likewise.
17144         (aarch64_simd_check_vect_par_cnst_half): Likewise.
17145         (aarch64_simd_emit_pair_result_insn): Likewise.
17146
17147 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
17148
17149         * gdbhooks.py (find_gcc_source_dir): New helper function.
17150         (class PassNames): New class, locating and parsing passes.def.
17151         (class BreakOnPass): New command "break-on-pass".
17152
17153 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
17154
17155         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
17156         getting olde.
17157
17158 2014-08-05  Richard Biener  <rguenther@suse.de>
17159
17160         PR rtl-optimization/61672
17161         * emit-rtl.h (mem_attrs_eq_p): Declare.
17162         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
17163         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
17164         * cfgcleanup.c (merge_memattrs): Likewise.
17165         Include emit-rtl.h.
17166
17167 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17168
17169         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
17170         rather than singleton vectors.
17171         (vqdmlsls_lane_s32): Likewise.
17172
17173 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17174
17175         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
17176         Use VSDQ_HSI mode iterator.
17177         (aarch64_sqrdmulh_laneq<mode>): Likewise.
17178         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
17179         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
17180         Use BUILTIN_VDQHS macro.
17181         (sqrdmulh_laneq): Likewise.
17182         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
17183         (vqdmlals_laneq_s32): Likewise.
17184         (vqdmlslh_laneq_s16): Likewise.
17185         (vqdmlsls_laneq_s32): Likewise.
17186         (vqdmulhh_laneq_s16): Likewise.
17187         (vqdmulhs_laneq_s32): Likewise.
17188         (vqrdmulhh_laneq_s16): Likewise.
17189         (vqrdmulhs_laneq_s32): Likewise.
17190
17191 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17192
17193         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
17194         (vmuld_laneq_f64): Likewise.
17195         (vmuls_laneq_f32): Likewise.
17196         (vmul_n_f64): Likewise.
17197         (vmuld_lane_f64): Reimplement in C.
17198         (vmuls_lane_f32): Likewise.
17199
17200 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17201
17202         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
17203         to reservation.
17204         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
17205
17206 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17207
17208         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
17209         (rbitsi2): Likewise.
17210         (*arm_rev): Set predicable and predicable_short_it attributes.
17211
17212 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17213
17214         * convert.c (convert_to_integer): Guard transformation to lrint by
17215         -fno-math-errno.
17216
17217 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
17218
17219         * config/aarch64/aarch64-builtins.c
17220         (aarch64_simd_builtin_type_mode): Delete.
17221         (v8qi_UP): Remap to V8QImode.
17222         (v4hi_UP): Remap to V4HImode.
17223         (v2si_UP): Remap to V2SImode.
17224         (v2sf_UP): Remap to V2SFmode.
17225         (v1df_UP): Remap to V1DFmode.
17226         (di_UP): Remap to DImode.
17227         (df_UP): Remap to DFmode.
17228         (v16qi_UP):V16QImode.
17229         (v8hi_UP): Remap to V8HImode.
17230         (v4si_UP): Remap to V4SImode.
17231         (v4sf_UP): Remap to V4SFmode.
17232         (v2di_UP): Remap to V2DImode.
17233         (v2df_UP): Remap to V2DFmode.
17234         (ti_UP): Remap to TImode.
17235         (ei_UP): Remap to EImode.
17236         (oi_UP): Remap to OImode.
17237         (ci_UP): Map to CImode.
17238         (xi_UP): Remap to XImode.
17239         (si_UP): Remap to SImode.
17240         (sf_UP): Remap to SFmode.
17241         (hi_UP): Remap to HImode.
17242         (qi_UP): Remap to QImode.
17243         (aarch64_simd_builtin_datum): Make mode a machine_mode.
17244         (VAR1): Build builtin name.
17245         (aarch64_init_simd_builtins): Remove dead code.
17246
17247 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
17248
17249         * graphite-isl-ast-to-gimple.c:
17250         (set_options): New function.
17251         (scop_to_isl_ast): Add calling of set_options.
17252
17253 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
17254
17255         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
17256         (analyze_iv_to_split_insn): Don't initialize them.
17257         (get_ivts_expr): Removed.
17258         (allocate_basic_variable, insert_base_initialization): Use
17259         SET_SRC instead of *get_ivts_expr.
17260         (split_iv): Use &SET_SRC instead of get_ivts_expr.
17261
17262 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
17263
17264         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
17265         (translate_isl_ast_for_loop): Add checking of the
17266         flag_loop_parallelize_all.
17267         (ast_build_before_for): New function.
17268         (scop_to_isl_ast): Add checking of the
17269         flag_loop_parallelize_all.
17270         * graphite-dependences.c: Move the defenition of the
17271         scop_get_dependences from graphite-optimize-isl.c to this file.
17272         (apply_schedule_on_deps): Add checking of the ux's emptiness.
17273         (carries_deps): Add checking of the x's value.
17274         * graphite-optimize-isl.c: Move the defenition of the
17275         scop_get_dependences to graphite-dependences.c.
17276         * graphite-poly.h: Add declarations of scop_get_dependences
17277         and carries_deps.
17278
17279 2014-08-04  Rohit  <rohitarulraj@freescale.com>
17280
17281         PR target/60102
17282         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
17283         names.
17284         (alt_reg_names): Likewise.
17285         (rs6000_dwarf_register_span): For SPE high registers, replace
17286         dwarf register numbers with GCC hard register numbers.
17287         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
17288         (rs6000_dbx_register_number): For SPE high registers, return dwarf
17289         register number for the corresponding GCC hard register number.
17290         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
17291         newly added GCC hard register numbers for SPE high registers.
17292         (DWARF_FRAME_REGISTERS):  Likewise.
17293         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
17294         (DWARF_FRAME_REGNUM): Likewise.
17295         (FIXED_REGISTERS): Likewise.
17296         (CALL_USED_REGISTERS): Likewise.
17297         (CALL_REALLY_USED_REGISTERS): Likewise.
17298         (REG_ALLOC_ORDER): Likewise.
17299         (enum reg_class): Likewise.
17300         (REG_CLASS_NAMES): Likewise.
17301         (REG_CLASS_CONTENTS): Likewise.
17302         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
17303
17304 2014-08-04  Richard Biener  <rguenther@suse.de>
17305
17306         * gimple-fold.h (gimple_fold_builtin): Remove.
17307         * gimple-fold.c (gimple_fold_builtin): Make static.
17308         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
17309         fold_stmt, not gimple_fold_builtin.
17310
17311 2014-08-04  Martin Liska <mliska@suse.cz>
17312
17313         * cgraph.h (csi_end_p): Removed.
17314         (csi_next): Likewise.
17315         (csi_node): Likewise.
17316         (csi_start): Likewise.
17317         (cgraph_node_in_set_p): Likewise.
17318         (cgraph_node_set_size): Likewise.
17319         (vsi_end_p): Likewise.
17320         (vsi_next): Likewise.
17321         (vsi_node): Likewise.
17322         (vsi_start): Likewise.
17323         (varpool_node_set_size): Likewise.
17324         (cgraph_node_set_nonempty_p): Likewise.
17325         (varpool_node_set_nonempty_p): Likewise.
17326         * cgraphunit.c (cgraph_process_new_functions): vec replaces
17327         cgraph_node_set.
17328         * ipa-inline-transform.c: Likewise.
17329         * ipa-utils.c (cgraph_node_set_new): Removed.
17330         (cgraph_node_set_add): Likewise.
17331         (cgraph_node_set_remove): Likewise.
17332         (cgraph_node_set_find): Likewise.
17333         (dump_cgraph_node_set): Likewise.
17334         (debug_cgraph_node_set): Likewise.
17335         (free_cgraph_node_set): Likewise.
17336         (varpool_node_set_new): Likewise.
17337         (varpool_node_set_add): Likewise.
17338         (varpool_node_set_remove): Likewise.
17339         (varpool_node_set_find): Likewise.
17340         (dump_varpool_node_set): Likewise.
17341         (free_varpool_node_set): Likewise.
17342         (debug_varpool_node_set): Likewise.
17343         * tree-emutls.c (struct tls_var_data):
17344         (emutls_index): Removed.
17345         (emutls_decl): Likewise.
17346         (gen_emutls_addr): Function implementation uses newly added
17347         hash_map<varpool_node *, tls_var_data>.
17348         (clear_access_vars): Likewise.
17349         (create_emultls_var): Likewise.
17350         (ipa_lower_emutls): Likewise.
17351         (reset_access): New function.
17352
17353 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
17354
17355         * config/i386/i386.c (ix86_option_override_internal): Add
17356         PTA_RDRND and PTA_MOVBE for bdver4.
17357
17358 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17359             James Greenhalgh  <james.greenhalgh@arm.com>
17360
17361         * doc/md.texi (clrsb): Document.
17362         (clz): Change reference to x into operand 1.
17363         (ctz): Likewise.
17364         (popcount): Likewise.
17365
17366 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17367
17368         PR target/61713
17369         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
17370         move to subtarget in serial version if result is ignored.
17371
17372 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17373             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17374
17375         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
17376         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
17377         (sched_analyze_insn): Update use of try_group_insn to
17378         sched_macro_fuse_insns.
17379         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
17380         arguments that are not conditional jumps.
17381
17382 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
17383
17384         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
17385         family information. Handle BTVER2 cpu with cpuid family value.
17386
17387 2014-08-04  Tom de Vries  <tom@codesourcery.com>
17388
17389         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
17390         (glibc_2_11_or_earlier): Document effective-target keywords.
17391
17392 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
17393
17394         * ipa-devirt.c (odr_type_warn_count): Add type.
17395         (possible_polymorphic_call_targets): Set it.
17396         (ipa_devirt): Use it.
17397
17398 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
17399
17400         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
17401         Document.
17402         * ipa-devirt.c: Include hash-map.h
17403         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
17404         (clear_speculation): Break out of ...
17405         (get_class_context): ... here; speed up handling obviously useless
17406         speculations.
17407         (odr_type_warn_count, decl_warn_count): New structures.
17408         (final_warning_record): New structure.
17409         (final_warning_records): New static variable.
17410         (possible_polymorphic_call_targets): Cleanup handling of
17411         speculative info; do not build speculation when user do not care;
17412         record info about warnings when asked for.
17413         (add_decl_warning): New function.
17414         (type_warning_cmp): New function.
17415         (decl_warning_cmp): New function.
17416         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
17417         (gate): Enable pass when warnings are requested.
17418         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
17419         options.
17420
17421 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
17422
17423         * hash-map.h (default_hashmap_traits::mark_key_deleted):
17424         Fix cast.
17425         (hash_map::remove): New method.
17426         (hash_map::traverse): New method.
17427         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
17428         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
17429         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
17430         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
17431         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
17432         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
17433         pointer_map.
17434
17435 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
17436
17437         * hash-set.h: new File.
17438         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
17439         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
17440         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
17441         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
17442         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
17443         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
17444         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
17445         varpool.c: Use hash_set instead of pointer_set.
17446
17447 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
17448
17449         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
17450
17451 2014-08-01  Jiong Wang <jiong.wang@arm.com>
17452
17453         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
17454         for frame access when strict_p is false.
17455
17456 2014-08-01  Renlin Li <renlin.li@arm.com>
17457 2014-08-01  Jiong Wang <jiong.wang@arm.com>
17458
17459         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
17460         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
17461         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
17462         Declaration.
17463         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
17464         predicate.
17465         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
17466         aarch64_mem_pair_offset.
17467
17468 2014-08-01  Jiong Wang <jiong.wang@arm.com>
17469
17470         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
17471         offset.
17472         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
17473         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
17474
17475 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
17476
17477         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
17478
17479 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
17480
17481         PR regression/61510
17482         * cgraphunit.c (analyze_functions): Use get_create rather than get
17483         for decls which are clones of abstract functions.
17484
17485 2014-08-01  Martin Liska  <mliska@suse.cz>
17486
17487         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
17488         * ipa-prop.h (count_formal_params): Global function created from static.
17489         * ipa-prop.c (count_formal_params): Likewise.
17490         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
17491         profiles for semantically equivalent functions.
17492         * passes.c (do_per_function): If we load body of a function
17493         during WPA, this condition should behave same.
17494         * varpool.c (ctor_for_folding): More tolerant assert for variable
17495         aliases created during WPA.
17496
17497 2014-08-01  Martin Liska  <mliska@suse.cz>
17498
17499         * doc/invoke.texi (Options That Control Optimization): Documentation
17500         for -foptimize-strlen introduced. Optimization levels default options
17501         fixed.
17502
17503 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
17504
17505         * opts.c (common_handle_option): Handle -fsanitize=alignment.
17506         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
17507         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
17508         type to bool.
17509         * stor-layout.h (min_align_of_type): New prototype.
17510         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
17511         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
17512         check.
17513         * ubsan.c: Include builtins.h.
17514         (ubsan_expand_bounds_ifn): Change return type to bool,
17515         always return true.
17516         (ubsan_expand_null_ifn): Change return type to bool, change
17517         argument to gimple_stmt_iterator *.  Handle both null and alignment
17518         sanitization, take type from ckind argument's type rather than
17519         first argument.
17520         (instrument_member_call): Removed.
17521         (instrument_mem_ref): Remove t argument, add mem and base arguments.
17522         Handle both null and alignment sanitization, don't say whole
17523         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
17524         call instead of 2 argument.
17525         (instrument_null): Adjust instrument_mem_ref caller.  Don't
17526         instrument calls here.
17527         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
17528         like SANITIZE_NULL.
17529         * stor-layout.c (min_align_of_type): New function.
17530         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
17531         Or it into SANITIZE_UNDEFINED.
17532         * doc/invoke.texi (-fsanitize=alignment): Document.
17533
17534 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17535
17536         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
17537
17538 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17539
17540         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
17541         inchash.
17542         (vn_reference_compute_hash): Dito.
17543         (vn_nary_op_compute_hash): Dito.
17544         (vn_phi_compute_hash): Dito.
17545         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
17546
17547 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17548
17549         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
17550         Rename to inchash:add_expr_commutative. Convert to inchash.
17551         (iterative_hash_hashable_expr): Rename to
17552         inchash:add_hashable_expr. Convert to inchash.
17553         (avail_expr_hash): Dito.
17554
17555 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17556
17557         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
17558         Convert to inchash.
17559
17560 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17561
17562         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
17563
17564 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17565
17566         * Makefile.in (OBJS): Add rtlhash.o
17567         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
17568         (loc_checksum): Dito.
17569         (loc_checksum_ordered): Dito.
17570         (hash_loc_operands): Dito.
17571         (hash_locs): Dito.
17572         (hash_loc_list): Dito.
17573         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
17574         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
17575         * rtlhash.c: New file.
17576         * rtlhash.h: New file.
17577
17578 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17579
17580         * inchash.h (inchash): Change inchash class to namespace.
17581         (class hash): ... Rename from inchash.
17582         (add_object): Move from macro to class template.
17583         * lto-streamer-out.c (hash_tree): Change inchash
17584         to inchash::hash.
17585         * tree.c (build_type_attribute_qual_variant): Dito.
17586         (type_hash_list): Dito.
17587         (attribute_hash_list): Dito.
17588         (iterative_hstate_expr): Rename to inchash::add_expr
17589         (build_range_type_1): Change inchash to inchash::hash
17590         and use hash::add_expr.
17591         (build_array_type_1): Dito.
17592         (build_function_type): Dito
17593         (build_method_type_directly): Dito.
17594         (build_offset_type): Dito.
17595         (build_complex_type): Dito.
17596         (make_vector_type): Dito.
17597         * tree.h (iterative_hash_expr): Dito.
17598
17599 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
17600
17601         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
17602
17603 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
17604
17605         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
17606         correct alphabetical position.
17607         (vpaddd_f64): Rewrite using builtins.
17608         (vpaddd_s64): Move to correct alphabetical position.
17609         (vpaddd_u64): New.
17610
17611 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
17612
17613         PR target/61844
17614         * config/sh/sh.c (sh_legitimate_address_p,
17615         sh_legitimize_reload_address): Handle reg+reg address modes when
17616         ALLOW_INDEXED_ADDRESS is false.
17617         * config/sh/predicates.md (general_movsrc_operand,
17618         general_movdst_operand): Likewise.
17619
17620 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
17621
17622         * config/aarch64/aarch64-builtins.c
17623         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
17624         BYTES_BIG_ENDIAN.
17625
17626 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
17627
17628         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
17629         the generated mask based on BYTES_BIG_ENDIAN.
17630         (aarch64_simd_check_vect_par_cnst_half): New.
17631         * config/aarch64/aarch64-protos.h
17632         (aarch64_simd_check_vect_par_cnst_half): New.
17633         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
17634         the check out to aarch64_simd_check_vect_par_cnst_half.
17635         (vect_par_cnst_lo_half): Likewise.
17636         * config/aarch64/aarch64-simd.md
17637         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
17638         (move_hi_quad_<mode>): Always generate a low mask.
17639
17640 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
17641
17642         * doc/invoke.texi (AVR Options): Add documentation about
17643         __AVR_DEVICE_NAME__ built-in macro.
17644
17645 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
17646
17647         PR target/61948
17648         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
17649         constraints are satisfied.
17650         (<shift>di3_neon): Likewise.
17651
17652 2014-07-31  Richard Biener  <rguenther@suse.de>
17653
17654         PR tree-optimization/61964
17655         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
17656         by structural equality.
17657
17658 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
17659
17660         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
17661         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
17662         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
17663         New enums.
17664         * gcc.c (sanitize_spec_function): Support new option.
17665         (SANITIZER_SPEC): Remove now redundant check.
17666         * opts.c (common_handle_option): Support new option.
17667         (finish_options): Check for incompatibilities.
17668         * toplev.c (process_options): Split userspace-specific checks.
17669
17670 2014-07-31  Richard Biener  <rguenther@suse.de>
17671
17672         * lto-streamer.h (struct output_block): Remove global.
17673         (struct data_in): Remove labels, num_named_labels and
17674         num_unnamed_labels.
17675         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
17676         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
17677
17678 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
17679
17680         PR c++/60517
17681         * common.opt (-Wreturn-local-addr): Moved from c.opt.
17682         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
17683         (isolate_path): New argument to avoid inserting a trap.
17684         (find_implicit_erroneous_behaviour): Handle returning the address
17685         of a local variable.
17686         (find_explicit_erroneous_behaviour): Likewise.
17687
17688 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
17689
17690         PR lto/61868
17691         * toplev.c (init_random_seed): Move piece of code never called to
17692         set_random_seed.
17693         (set_random_seed): see above.
17694
17695 2014-07-31  Tom de Vries  <tom@codesourcery.com>
17696
17697         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
17698
17699 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
17700
17701         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
17702         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
17703
17704 2014-07-31  Richard Biener  <rguenther@suse.de>
17705
17706         * data-streamer.h (streamer_write_data_stream): Declare here,
17707         renamed from ...
17708         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
17709         * lto-cgraph.c (lto_output_node): Adjust.
17710         (lto_output_varpool_node): Likewise.
17711         * data-streamer-out.c (streamer_string_index): Likewise.
17712         (streamer_write_data_stream, lto_append_block): Move from ...
17713         * lto-section-out.c (lto_output_data_stream,
17714         lto_append_block): ... here.
17715
17716 2014-07-30  Mike Stump  <mikestump@comcast.net>
17717
17718         * configure.ac: Also check for popen.
17719         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
17720         * configure: Regenerate.
17721         * config.in:  Regenerate.
17722
17723 2014-07-30  Martin Jambor  <mjambor@suse.cz>
17724
17725         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
17726         parameter to gimple.
17727
17728 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17729
17730         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
17731         address as second parameter to __tpf_eh_return routine.
17732
17733 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
17734
17735         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
17736         Thumb2.
17737
17738 2014-07-30  Tom Tromey  <tromey@redhat.com>
17739
17740         PR c/59855
17741         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
17742         * doc/extend.texi (Type Attributes): Document designated_init
17743         attribute.
17744
17745 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
17746
17747         * graphite-isl-ast-to-gimple.c:
17748         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
17749         (gcc_expression_from_isl_expression): Pass type to
17750         gcc_expression_from_isl_ast_expr_id.
17751
17752 2014-07-30  Richard Biener  <rguenther@suse.de>
17753
17754         * lto-streamer.h (lto_write_data): New function.
17755         * langhooks.c (lhd_append_data): Do not free block.
17756         * lto-section-out.c (lto_write_data): New function writing
17757         raw data to the current section.
17758         (lto_write_stream): Adjust for langhook semantic change.
17759         (lto_destroy_simple_output_block): Write header directly.
17760         * lto-opts.c (lto_write_options): Write options directly.
17761         * lto-streamer-out.c (produce_asm): Write heaeder directly.
17762         (lto_output_toplevel_asms): Likewise.
17763         (copy_function_or_variable): Copy data directly.
17764         (write_global_references): Output index table directly.
17765         (lto_output_decl_state_refs): Likewise.
17766         (write_symbol): Write data directly.
17767         (produce_symtab): Adjust.
17768         (produce_asm_for_decls): Output header and refs directly.
17769
17770 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
17771
17772         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
17773         to speculative_targets
17774         (get_class_context): Fix handling of contextes without outer type;
17775         avoid matching non-polymorphic types in LTO.
17776         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
17777         parameter to speculative_targetsp; handle speculation.
17778         (dump_possible_polymorphic_call_targets): Update dumping.
17779
17780 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
17781
17782         * common.opt (Wodr): Enable by default.
17783
17784 2014-07-29  Olivier Hainque  <hainque@adacore.com>
17785
17786         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
17787
17788 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
17789
17790         PR bootstrap/61914
17791         * gengtype.c (strtoken): New function.
17792         (create_user_defined_type): Replace strtok with strtoken.
17793
17794 2014-07-29  Nathan Sidwell  <nathan@acm.org>
17795
17796         * gcov-io.c (gcov_var): Make hidden.
17797         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
17798         (gcov_do_dump): Declare.
17799         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
17800
17801 2014-07-29  Martin Jambor  <mjambor@suse.cz>
17802
17803         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
17804         parameter to gimple.
17805         (sra_modify_assign): Likewise.
17806
17807 2014-07-29  Richard Biener  <rguenther@suse.de>
17808
17809         PR middle-end/52478
17810         * expr.c (expand_expr_real_2): Revert last change.
17811
17812 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
17813
17814         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
17815         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
17816         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
17817         call.
17818         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
17819         (contains_type_p): Forward declare.
17820         (polymorphic_call_target_hasher::hash): Hash speculative info.
17821         (polymorphic_call_target_hasher::equal): Compare speculative info.
17822         (get_class_context): Handle speuclation.
17823         (contains_type_p): Update.
17824         (get_polymorphic_call_info_for_decl): Update.
17825         (walk_ssa_copies): Break out from ...
17826         (get_polymorphic_call_info): ... here; set speculative context
17827         before giving up.
17828         * ipa-prop.c (ipa_write_indirect_edge_info,
17829         ipa_read_indirect_edge_info): Stream speculative context.
17830         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
17831         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
17832         SPECULATIVE_MAYBE_DERIVED_TYPE).
17833         (possible_polymorphic_call_targets overriders): Update.
17834         (dump_possible_polymorphic_call_targets overriders): Update.
17835         (dump_possible_polymorphic_call_target_p overriders): Update.
17836
17837 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
17838
17839         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
17840         ipa-devirt path; fix thinko there.
17841
17842 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
17843
17844         * config/i386/i386.c (ix86_return_in_memory): Replace one
17845         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
17846
17847 2014-07-28  Marek Polacek  <polacek@redhat.com>
17848
17849         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
17850
17851 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
17852
17853         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
17854         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
17855         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
17856         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
17857         (USE_LD_AS_NEEDED): Likewise.
17858         (ASM_APP_ON): Likewise.
17859         (ASM_APP_OFF): Likewise.
17860         (TARGET_POSIX_IO): Likewise.
17861         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
17862         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
17863         (USE_LD_AS_NEEDED): Likewise.
17864         (ASM_APP_ON): Likewise.
17865         (ASM_APP_OFF): Likewise.
17866         (TARGET_POSIX_IO): Likewise.
17867
17868 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
17869
17870         PR middle-end/61734
17871         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
17872         operators other than the equality operators.
17873
17874 2014-07-28  Richard Biener  <rguenther@suse.de>
17875
17876         PR middle-end/52478
17877         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
17878         sure to register SImode ones, not only >= word_mode ones.
17879         * expr.c (expand_expr_real_2): When expanding -ftrapv
17880         binops do not use OPTAB_LIB_WIDEN.
17881
17882 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
17883
17884         PR middle-end/61919
17885         * tree-outof-ssa.c (insert_partition_copy_on_edge)
17886         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
17887         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
17888         inserting them in the insn stream.
17889
17890 2014-07-28  Marek Polacek  <polacek@redhat.com>
17891
17892         PR middle-end/61913
17893         * common.opt (Wodr): Add Var.
17894
17895 2014-07-28  Richard Biener  <rguenther@suse.de>
17896
17897         PR tree-optimization/61921
17898         * tree-ssa-structalias.c (create_variable_info_for_1): Check
17899         if there is a varpool node before dereferencing it.
17900
17901 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
17902
17903         * graphite-sese-to-poly.c:
17904         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
17905         id of the pbb), which contains pointer to the pbb1.
17906
17907         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
17908
17909 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
17910
17911         * graphite-isl-ast-to-gimple.c:
17912         (graphite_create_new_guard): New function.
17913         (translate_isl_ast_node_if): New function.
17914         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
17915
17916         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
17917
17918 2014-07-27  Anthony Green  <green@moxielogic.com>
17919
17920         * config.gcc: Add moxie-*-moxiebox* configuration.
17921         * config/moxie/moxiebox.h: New file.
17922
17923 2014-07-26  Andrew Pinski  <apinski@cavium.com>
17924
17925         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
17926         from the read only register.
17927
17928 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
17929
17930         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
17931         as the allocation class if it isn't likely to be spilled.
17932
17933 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
17934
17935         * rtl.h (tls_referenced_p): Declare.
17936         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
17937         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
17938         (mips_cannot_force_const_mem): Use tls_referenced_p.
17939         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
17940         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
17941         instead of pa_tls_referenced_p.
17942         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
17943         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
17944         (pa_legitimate_constant_p): Likewise.
17945         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
17946         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
17947         (rs6000_cannot_force_const_mem, rs6000_emit_move)
17948         (rs6000_address_for_altivec): Use tls_referenced_p instead of
17949         rs6000_tls_referenced_p.
17950         (rs6000_tls_symbol_ref_1): Delete.
17951
17952 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
17953
17954         PR target/44551
17955         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
17956         Optimize inverse of a VEC_CONCAT.
17957
17958 2014-07-25  Xinliang David Li  <davidxl@google.com>
17959
17960         * params.def: New parameter.
17961         * coverage.c (get_coverage_counts): Check new flag.
17962         (coverage_compute_profile_id): Check new flag.
17963         (coverage_begin_function): Check new flag.
17964         (coverage_end_function): Check new flag.
17965         * value-prof.c (coverage_node_map_initialized_p): New function.
17966         (init_node_map): Populate map with all functions.
17967         * doc/invoke.texi: Document new parameter.
17968
17969 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
17970             Richard Biener <rguenther@suse.de>
17971
17972         * lto-streamer-out.c (struct sccs): Turn to ...
17973         (class DFS): ... this one; refactor the DFS walk so it can
17974         be re-done on per-SCC basis.
17975         (DFS::DFS): New constructor.
17976         (DFS::~DFS): New destructor.
17977         (hash_tree): Add new MAP argument holding in-SCC hash values;
17978         remove POINTER_TYPE hashing hack.
17979         (scc_entry_compare): Rename to ...
17980         (DFS::scc_entry_compare): ... this one.
17981         (hash_scc): Rename to ...
17982         (DFS::hash_scc): ... this one; pass output_block instead
17983         of streamer_cache; work harder to get unique and stable SCC
17984         hashes.
17985         (DFS_write_tree): Rename to ...
17986         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
17987         (lto_output_tree): Update.
17988
17989 2014-07-25  Andi Kleen  <ak@linux.intel.com>
17990
17991         * lto-streamer-out.c (hash_tree): Convert to inchash.
17992
17993 2014-07-25  Andi Kleen  <ak@linux.intel.com>
17994
17995         * tree.c (build_type_attribute_qual_variant): Use inchash.
17996         (type_hash_list): Dito.
17997         (attribute_hash_list): Dito
17998         (iterative_hstate_expr): Dito.
17999         (iterative_hash_expr): Dito.
18000         (build_range_type_1): Dito.
18001         (build_array_type_1): Dito.
18002         (build_function_type): Dito.
18003         (build_method_type_directly): Dito.
18004         (build_offset_type): Dito.
18005         (build_complex_type): Dito.
18006         (make_vector_type): Dito.
18007         * tree.h (iterative_hash_expr): Add compat wrapper.
18008         (iterative_hstate_expr): Add.
18009
18010 2014-07-25  Andi Kleen  <ak@linux.intel.com>
18011
18012         * Makefile.in (OBJS): Add inchash.o.
18013         (PLUGIN_HEADERS): Add inchash.h.
18014         * ipa-devirt.c: Include inchash.h.
18015         * lto-streamer-out.c: Dito.
18016         * tree-ssa-dom.c: Dito.
18017         * tree-ssa-pre.c: Dito.
18018         * tree-ssa-sccvn.c: Dito.
18019         * tree-ssa-tail-merge.c: Dito.
18020         * asan.c: Dito.
18021         * tree.c (iterative_hash_hashval_t): Move to ...
18022         (iterative_hash_host_wide_int): Move to ...
18023         * inchash.c: Here. New file.
18024         * tree.h (iterative_hash_hashval_t): Move to ...
18025         (iterative_hash_host_wide_int): Move to ...
18026         * inchash.h: Here. New file.
18027
18028 2014-07-25  Richard Biener  <rguenther@suse.de>
18029
18030         PR middle-end/61762
18031         PR middle-end/61894
18032         * fold-const.c (native_encode_int): Add and handle offset
18033         parameter to do partial encodings of expr.
18034         (native_encode_fixed): Likewise.
18035         (native_encode_real): Likewise.
18036         (native_encode_complex): Likewise.
18037         (native_encode_vector): Likewise.
18038         (native_encode_string): Likewise.
18039         (native_encode_expr): Likewise.
18040         * fold-const.c (native_encode_expr): Add offset parameter
18041         defaulting to -1.
18042         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
18043         (fold_ctor_reference): Handle all reads from tcc_constant
18044         ctors.
18045
18046 2014-07-25  Richard Biener  <rguenther@suse.de>
18047
18048         * tree-inline.c (estimate_move_cost): Mark speed_p argument
18049         as possibly unused.
18050
18051 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
18052
18053         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
18054
18055 2014-07-24  Kyle McMartin  <kyle@redhat.com>
18056
18057         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
18058
18059 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18060
18061         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
18062         Add prototype.
18063         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
18064         function.
18065         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
18066         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
18067         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
18068
18069 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18070
18071         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
18072         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
18073         aggregate types.  Instead, *all* aggregate types, except for single-
18074         element or homogeneous float/vector aggregates, are quadword-aligned
18075         if required by their type alignment.  Issue -Wpsabi note when a type
18076         is now treated differently than before.
18077
18078 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18079
18080         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
18081         does not fit fully into floating-point registers, and there is still
18082         space in the register parameter area, use GPRs to pass those parts
18083         of the argument.  Issue -Wpsabi note if any parameter is now treated
18084         differently than before.
18085         (rs6000_arg_partial_bytes): Update.
18086
18087 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
18088
18089         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
18090
18091 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
18092
18093         * rtl.h (target_rtl): Remove lang_dependent_initialized.
18094         * toplev.c (initialize_rtl): Don't use it.  Move previously
18095         "language-dependent" calls to...
18096         (backend_init): ...here.
18097         (lang_dependent_init_target): Don't set lang_dependent_initialized.
18098         Assert that RTL initialization hasn't happend yet.
18099
18100 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
18101
18102         PR rtl-optimization/61629
18103         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
18104         they have already been initialized.
18105
18106 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
18107
18108         PR middle-end/61268
18109         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
18110         DECL_INCOMING_RTL and entry_parm.
18111         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
18112         * calls.c (load_register_parameters): Likewise argument values.
18113         (emit_library_call_value_1, store_one_arg): Likewise argument
18114         save areas.
18115         * config/i386/i386.c (assign_386_stack_local): Likewise the local
18116         stack slot.
18117         * explow.c (validize_mem): Modify the argument in-place.
18118
18119 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
18120
18121         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
18122         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
18123
18124 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
18125
18126         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
18127         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
18128
18129 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
18130
18131         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
18132         (aarch64_save_callee_saves): New parameter "skip_wb".
18133         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
18134
18135 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
18136
18137         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
18138         "wb_candidate2".
18139         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
18140
18141 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
18142
18143         * graphite-isl-ast-to-gimple.c:
18144         (graphite_create_new_loop): Add calling of isl_id_free to properly
18145         decrement reference counts.
18146
18147         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
18148
18149 2014-07-24  Martin Liska  <mliska@suse.cz>
18150         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
18151         function used.
18152         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
18153         (rs6000_code_end): Likewise.
18154
18155 2014-07-24  Martin Liska  <mliska@suse.cz>
18156
18157         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
18158         symtab_node funtion used.
18159         (rs6000_xcoff_declare_object_name): Likewise.
18160
18161 2014-07-24  Martin Liska  <mliska@suse.cz>
18162
18163         * cgraphunit.c (compile): Correct function used.
18164
18165 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
18166
18167         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
18168         as non-indexable.
18169
18170 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
18171
18172         PR lto/61802
18173         * varasm.c (bss_initializer_p): Handle offlined ctors.
18174         (align_variable, get_variable_align): Likewise.
18175         (make_decl_one_only): Likewise.
18176         (default_binds_local_p_1): Likewise.
18177         (decl_binds_to_current_def_p): Likewise.
18178         (get_variable_section): Get constructor if it is offlined.
18179         (assemble_variable_contents): Sanity check that the caller
18180         streamed in the ctor in LTO.
18181
18182 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
18183
18184         * graphite-isl-ast-to-gimple.c:
18185         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
18186         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
18187         isl_ast_op_pdiv_r to the different case.
18188
18189         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
18190
18191 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18192
18193         PR middle-end/61876
18194         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
18195         when flag_errno_math is on.
18196
18197 2014-07-24  Martin Liska  <mliska@suse.cz>
18198
18199         * cgraph.h (varpool_node):
18200         (availability get_availability (void)):
18201         created from cgraph_variable_initializer_availability
18202         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
18203         created from: cgraph_variable_initializer_availability
18204         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
18205         (void finalize_named_section_flags (void)):
18206         created from varpool_finalize_named_section_flags
18207         (bool assemble_decl (void)): created from varpool_assemble_decl
18208         (void analyze (void)): created from varpool_analyze_node
18209         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
18210         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
18211         (void remove_initializer (void)): created from varpool_remove_initializer
18212         (tree get_constructor (void)): created from varpool_get_constructor
18213         (bool externally_visible_p (void)): created from varpool_externally_visible_p
18214         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
18215         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
18216         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
18217         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
18218         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
18219         (static bool output_variables (void)): created from varpool_output_variables
18220         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
18221         created from varpool_extra_name_alias
18222         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
18223         (static void dump_varpool (FILE *f)): created from dump_varpool
18224         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
18225         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
18226         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
18227         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
18228         (void assemble_aliases (void)): created from assemble_aliases
18229
18230 2014-07-24  Martin Liska  <mliska@suse.cz>
18231
18232         * cgraph.h (symtab_node):
18233         (void register_symbol (void)): created from symtab_register_node
18234         (void remove (void)): created from symtab_remove_node
18235         (void dump (FILE *f)): created from dump_symtab_node
18236         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
18237         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
18238         (struct ipa_ref *add_reference (symtab_node *referred_node,
18239         enum ipa_ref_use use_type)): created from add_reference
18240         (struct ipa_ref *add_reference (symtab_node *referred_node,
18241         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
18242         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
18243         gimple stmt)): created from maybe_add_reference
18244         (bool semantically_equivalent_p (symtab_node *target)): created from
18245         symtab_semantically_equivalent_p
18246         (void remove_from_same_comdat_group (void)): created from
18247         remove_from_same_comdat_group
18248         (void add_to_same_comdat_group (symtab_node *old_node)): created from
18249         symtab_add_to_same_comdat_group
18250         (void dissolve_same_comdat_group_list (void)): created from
18251         symtab_dissolve_same_comdat_group_list
18252         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
18253         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
18254         created from symtab_alias_ultimate_target
18255         (inline symtab_node *next_defined_symbol (void)): created from
18256         symtab_next_defined_symbol
18257         (bool resolve_alias (symtab_node *target)): created from
18258         symtab_resolve_alias
18259         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
18260         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
18261         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
18262         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
18263         (void set_section (const char *section)): created from set_section_1
18264         (enum availability get_availability (void)): created from symtab_node_availability
18265         (void make_decl_local (void)): created from symtab_make_decl_local
18266         (bool real_symbol_p (void)): created from symtab_read_node
18267         (can_be_discarded_p (void)): created from symtab_can_be_discarded
18268         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
18269         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
18270         symtab_in_same_comdat_p;
18271         (bool address_taken_from_non_vtable_p (void)): created from
18272         address_taken_from_non_vtable_p
18273         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
18274         (static void dump_table (FILE *)): created from dump_symtab
18275         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
18276         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
18277         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
18278         symtab_used_from_object_file_p
18279         (void dump_base (FILE *)): created from dump_symtab_base
18280         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
18281         (void unregister (void)): created from symtab_unregister_node
18282         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
18283         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
18284         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
18285         symtab_nonoverwritable_alias_1
18286         * cgraph.h (cgraph_node):
18287         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
18288         created from cgraph_remove_node_and_inline_clones
18289         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
18290         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
18291         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
18292         (cgraph_node *function_symbol (enum availability *avail = NULL)):
18293         created from cgraph_function_node
18294         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
18295         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
18296         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
18297         created from cgraph_create_clone
18298         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
18299         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
18300         created from cgraph_create_virtual_clone
18301         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
18302         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
18303         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
18304         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
18305         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
18306         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
18307         created from cgraph_function_version_info
18308         (struct cgraph_function_version_info *insert_new_function_version (void)):
18309         created from insert_new_cgraph_node_version
18310         (struct cgraph_function_version_info *function_version (void)): created from
18311         get_cgraph_node_version
18312         (void analyze (void)): created from analyze_function
18313         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
18314         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
18315         tree real_alias) cgraph_add_thunk
18316         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
18317         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
18318         created from cgraph_function_or_thunk_node
18319         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
18320         created from expand_thunk
18321         (void reset (void)): created from cgraph_reset_node
18322         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
18323         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
18324         (void remove (void)): created from cgraph_remove_node
18325         (void dump (FILE *f)): created from dump_cgraph_node
18326         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
18327         (bool get_body (void)): created from cgraph_get_body
18328         (void release_body (void)): created from cgraph_release_function_body
18329         (void unnest (void)): created from cgraph_unnest_node
18330         (void make_local (void)): created from cgraph_make_node_local
18331         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
18332         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
18333         gcov_type count, int freq)): created from cgraph_create_edge
18334         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
18335         gcov_type count, int freq)): created from cgraph_create_indirect_edge
18336         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
18337         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
18338         created from cgraph_create_edge_including_clones
18339         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
18340         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
18341         (void remove_callers (void)): created from cgraph_node_remove_callers
18342         (void remove_callees (void)): created from cgraph_node_remove_callees
18343         (enum availability get_availability (void)): created from cgraph_function_body_availability
18344         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
18345         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
18346         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
18347         (void call_duplication_hooks (cgraph_node *node2)): created from
18348         cgraph_call_node_duplication_hooks
18349         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
18350         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
18351         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
18352         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
18353         (void call_function_insertion_hooks (void)):
18354         created from cgraph_call_function_insertion_hooks
18355         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
18356         (bool local_p (void)): created from cgraph_local_node
18357         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
18358         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
18359         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
18360         (inline bool only_called_directly_or_aliased_p (void)):
18361         created from cgraph_only_called_directly_or_aliased_p
18362         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
18363         created from cgraph_will_be_removed_from_program_if_no_direct_calls
18364         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
18365         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
18366         (bool can_remove_if_no_direct_calls_p (void)):
18367         created from cgraph_can_remove_if_no_direct_calls_p
18368         (inline bool has_gimple_body_p (void)):
18369         created from cgraph_function_with_gimple_body_p
18370         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
18371         (static void dump_cgraph (FILE *f)): created from dump_cgraph
18372         (static inline void debug_cgraph (void)): created from debug_cgraph
18373         (static void record_function_versions (tree decl1, tree decl2)):
18374         created from record_function_versions
18375         (static void delete_function_version (tree decl)):
18376         created from delete_function_version
18377         (static void add_new_function (tree fndecl, bool lowered)):
18378         created from cgraph_add_new_function
18379         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
18380         (static cgraph_node * create (tree decl)): created from cgraph_create_node
18381         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
18382         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
18383         (static cgraph_node *get_for_asmname (tree asmname)):
18384         created from cgraph_node_for_asm
18385         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
18386         created from cgraph_same_body_alias
18387         (static bool used_from_object_file_p_worker (cgraph_node *node,
18388         void *): new function
18389         (static bool non_local_p (cgraph_node *node, void *)):
18390         created from cgraph_non_local_node_p_1
18391         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
18392         created from verify_cgraph
18393         (static bool make_local (cgraph_node *node, void *)):
18394         created from cgraph_make_node_local
18395         (static cgraph_node *create_alias (tree alias, tree target)):
18396         created from cgraph_create_function_alias
18397         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
18398         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
18399         created from cgraph_create_edge_1
18400         * cgraph.h (varpool_node):
18401         (void remove (void)): created from varpool_remove_node
18402         (void dump (FILE *f)): created from dump_varpool_node
18403
18404 2014-07-24  Richard Biener  <rguenther@suse.de>
18405
18406         PR ipa/61823
18407         * tree-ssa-structalias.c (create_variable_info_for_1):
18408         Use varpool_get_constructor.
18409         (create_variable_info_for): Likewise.
18410
18411 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
18412
18413         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
18414         subtract outgoing area size when restoring stack_pointer_rtx.
18415
18416 2014-07-24  Nick Clifton  <nickc@redhat.com>
18417
18418         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
18419         that operations are taking place in parallel.
18420         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
18421
18422 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
18423
18424         * omp-low.c (extract_omp_for_data): Add missing break statement.
18425
18426 2014-07-24  Richard Biener  <rguenther@suse.de>
18427
18428         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
18429         * tree-inline.c (estimate_move_cost): Add speed_p parameter
18430         and adjust MOVE_RATIO query accordingly.
18431         (estimate_num_insns): Adjust callers.
18432         * ipa-prop.c (ipa_populate_param_decls): Likewise.
18433         * ipa-cp.c (gather_context_independent_values,
18434         estimate_local_effects): Likewise.
18435         * ipa-split.c (consider_split): Likewise.
18436
18437 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
18438
18439         * config/i386/driver-i386.c: Remove names of unused arguments and
18440         unnecessary unused attributes.
18441         * config/i386/host-mingw32.c: Likewise.
18442         * config/i386/i386.c: Likewise.
18443         * config/i386/winnt-stubs.c: Likewise.
18444         * config/i386/winnt.c: Likewise.
18445
18446 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18447
18448         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
18449         (aarch64_gen_loadwb_pair): New helper function.
18450         (aarch64_expand_epilogue): Simplify code using new helper functions.
18451         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
18452
18453 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18454
18455         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
18456         (aarch64_gen_storewb_pair): New helper function.
18457         (aarch64_expand_prologue): Simplify code using new helper functions.
18458         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
18459
18460 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18461
18462         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
18463         Rename to aarch64_save_callee_saves, remove restore code.
18464         (aarch64_restore_callee_saves): New function.
18465
18466 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18467
18468         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
18469         (aarch64_save_callee_saves): New function to handle reg save
18470         for both core and vectore regs.
18471
18472 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18473
18474         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
18475         (aarch64_gen_store_pair): New helper function.
18476         (aarch64_save_or_restore_callee_save_registers)
18477         (aarch64_save_or_restore_fprs): Use new helper functions.
18478
18479 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18480
18481         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
18482         (aarch64_save_or_restore_callee_save_registers)
18483         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
18484
18485 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18486
18487         * config/aarch64/aarch64.c
18488         (aarch64_save_or_restore_callee_save_registers)
18489         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
18490
18491 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18492
18493         * config/aarch64/aarch64.c
18494         (aarch64_save_or_restore_callee_save_registers)
18495         (aarch64_save_or_restore_fprs): Remove 'increment'.
18496
18497 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18498
18499         * config/aarch64/aarch64.c
18500         (aarch64_save_or_restore_callee_save_registers)
18501         (aarch64_save_or_restore_fprs): Use register offset in
18502         cfun->machine->frame.reg_offset.
18503
18504 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18505
18506         * config/aarch64/aarch64.c
18507         (aarch64_save_or_restore_callee_save_registers)
18508         (aarch64_save_or_restore_fprs): Remove base_rtx.
18509
18510 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18511
18512         * config/aarch64/aarch64.c
18513         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
18514         to 'start_offset'.  Remove local variable 'start_offset'.
18515
18516 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18517
18518         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
18519         type to HOST_WIDE_INT.
18520
18521 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18522
18523         * config/aarch64/aarch64.c (aarch64_expand_prologue)
18524         (aarch64_save_or_restore_fprs)
18525         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
18526
18527 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18528
18529         * config/arm/t-rtems-eabi: Add
18530         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
18531         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
18532         mbig-endian/mthumb/march=armv7-r, and
18533         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
18534         multilibs.
18535
18536 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18537             Chris Johns <chrisj@rtems.org>
18538             Joel Sherrill <joel.sherrill@oarcorp.com>
18539
18540         * config.gcc: Add nios2-*-rtems*.
18541         * config/nios2/rtems.h: New file.
18542         * gcc/config/nios2/t-rtems: New file.
18543
18544 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
18545
18546         PR target/61396
18547         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
18548         constant numbers, not general constants.
18549         (rs6000_expand_vector_init): Ditto.
18550
18551 2014-07-23  Nathan Sidwell  <nathan@acm.org>
18552
18553         * gcov-tool.c (gcov_list): Declare here.
18554         (set_gcov_list): Remove.
18555         (gcov_output_files): Set gcov_list directly.
18556
18557 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
18558
18559         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
18560
18561 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18562
18563         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
18564         callee-saved registers are available for padding purpose
18565         and r3 is not mandatory, then prefer use those callee-saved
18566         instead of r3.
18567
18568 2014-07-23  Richard Biener  <rguenther@suse.de>
18569
18570         * params.def (PARAM_MAX_COMBINE_INSNS): New.
18571         * combine.c: Include statistics.h and params.h.
18572         (combine_instructions): Guard three and four insn combines
18573         with max-combine-insns value.  Record statistics for combines
18574         performed.
18575         * doc/invoke.texi (max-combine-insns): Document new param.
18576
18577 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
18578
18579         * graphite-isl-ast-to-gimple.c:
18580         (translate_isl_ast_node_block): New function.
18581         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
18582
18583         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
18584         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
18585
18586 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
18587
18588         * graphite-isl-ast-to-gimple.c:
18589         (get_max_schedule_dimensions): New function.
18590         (extend_schedule): Likewise.
18591         (generate_isl_schedule): Add calling of extend_schedule and
18592         get_max_schedule_dimensions.
18593
18594 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18595
18596         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
18597         (case UNSPEC): Handle UNSPEC_RBIT.
18598
18599 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18600
18601         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
18602         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
18603
18604 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18605
18606         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
18607
18608 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
18609
18610         * graphite-isl-ast-to-gimple.c:
18611         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
18612         (ivs_params_clear):
18613         (build_iv_mapping): New function.
18614         (translate_isl_ast_node_user): Likewise.
18615         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
18616
18617         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
18618         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
18619         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
18620
18621 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
18622
18623         PR target/55701
18624         * config/arm/arm.md (setmem): New pattern.
18625         * config/arm/arm-protos.h (struct tune_params): New fields.
18626         (arm_gen_setmem): New prototype.
18627         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
18628         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
18629         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
18630         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
18631         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
18632         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
18633         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
18634         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
18635         (arm_const_inline_cost): New function.
18636         (arm_block_set_max_insns): New function.
18637         (arm_block_set_non_vect_profit_p): New function.
18638         (arm_block_set_vect_profit_p): New function.
18639         (arm_block_set_unaligned_vect): New function.
18640         (arm_block_set_aligned_vect): New function.
18641         (arm_block_set_unaligned_non_vect): New function.
18642         (arm_block_set_aligned_non_vect): New function.
18643         (arm_block_set_vect, arm_gen_setmem): New functions.
18644
18645 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
18646
18647         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
18648
18649 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
18650
18651         PR target/61855
18652         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
18653         out of #ifdef __OPTIMIZE__.
18654
18655 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
18656
18657         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
18658         different trapping status if -fnon-call-exceptions is enabled.
18659
18660 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
18661
18662         * expr.c (store_field): Handle VOIDmode for calls that return values
18663         in multiple locations.
18664
18665 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18666
18667         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
18668         (altivec_vsldoi_<mode>): Likewise.
18669
18670 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
18671
18672         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
18673         to the number of characters in the line.
18674
18675 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
18676
18677         * graphite-isl-ast-to-gimple.c: Add using of
18678         build_nonstandard_integer_type instead of int128_integer_type_node.
18679
18680 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
18681
18682         * toplev.c (output_stack_usage): Adjust the location of the warning.
18683
18684 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
18685
18686         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
18687         (*membar_storeload): Disable for LEON3.
18688
18689 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18690
18691         PR rtl-optimization/61461
18692         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
18693
18694 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
18695
18696         PR target/61794
18697         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
18698         Fix instruction constraint.
18699         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
18700
18701 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
18702
18703         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
18704
18705 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
18706
18707         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
18708         GNU coding standards.
18709         (nds32_register_move_cost): Likewise.
18710         (nds32_memory_move_cost): Likewise.
18711         (nds32_address_cost): Likewise.
18712
18713 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
18714
18715         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
18716
18717 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
18718
18719         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
18720         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
18721         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
18722         (HAVE_sync_compare_and_swapqi): Define.
18723         (HAVE_sync_compare_and_swaphi): Likewise.
18724         (HAVE_sync_compare_and_swapsi): Likewise.
18725
18726 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
18727
18728         * config/mips/p5600.md: Add missing cpu tests.
18729
18730 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18731
18732         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
18733         (vmla_f64): Likewise.
18734         (vfms_f64): Likewise.
18735         (vmls_f64): Likewise.
18736
18737 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18738
18739         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
18740         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
18741
18742 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18743
18744         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
18745         (vmlal_high_lane_s32): Likewise.
18746         (vmlal_high_lane_u16): Likewise.
18747         (vmlal_high_lane_u32): Likewise.
18748         (vmlsl_high_lane_s16): Likewise.
18749         (vmlsl_high_lane_s32): Likewise.
18750         (vmlsl_high_lane_u16): Likewise.
18751         (vmlsl_high_lane_u32): Likewise.
18752
18753 2014-07-17  Terry Guo  <terry.guo@arm.com>
18754
18755         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
18756         (alus_reg): Renamed to alus_sreg.
18757         * config/arm/arm-fixed.md: Change type of non-dsp instructions
18758         from alu_reg to alu_sreg.  Change type of dsp instructions from
18759         alu_reg to alu_dsp_reg.
18760         * config/arm/thumb1.md: Likewise.
18761         * config/arm/thumb2.md: Likewise.
18762         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
18763         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
18764         with alu_sreg and alus_sreg.
18765         * config/arm/arm1026ejs.md (alu_op): Likewise.
18766         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
18767         * config/arm/arm926ejs.md (9_alu_op): Likewise.
18768         * config/arm/fa526.md (526_alu_op): Likewise.
18769         * config/arm/fa606te.md (606te_alu_op): Likewise.
18770         * config/arm/fa626te.md (626te_alu_op): Likewise.
18771         * config/arm/fa726te.md (726te_alu_op): Likewise.
18772         * config/arm/fmp626.md (mp626_alu_op): Likewise.
18773         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
18774         alu_sreg, alu_dsp_reg and alus_sreg.
18775         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
18776         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
18777         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
18778         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
18779         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
18780         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
18781         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
18782         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
18783         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
18784         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
18785         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
18786         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
18787         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
18788         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
18789         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
18790         alus_reg to alus_sreg.
18791
18792 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
18793
18794         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
18795         infinity format.
18796
18797 2014-07-17  Richard Biener  <rguenther@suse.de>
18798
18799         PR rtl-optimization/61801
18800         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
18801         don't set reg_pending_barrier if it appears in a debug-insn.
18802
18803 2014-07-16  DJ Delorie  <dj@redhat.com>
18804
18805         * config/rx/rx.c (rx_option_override): Fix alignment values.
18806         (rx_align_for_label): Likewise.
18807
18808 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
18809
18810         PR target/61737.
18811         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
18812         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
18813         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
18814         functions.
18815         (cris_print_index, cris_print_operand, cris_constant_index_p)
18816         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
18817         (cris_address_cost): Ditto last CONSTANT_P.
18818         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
18819         callers changed.  Yield cris_offsettable_symbol for non-PIC
18820         constant symbolic expressions including labels.  Yield cris_unspec
18821         for all unspecs.
18822         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
18823         target to pic_offset_table_rtx for calls that will likely go
18824         through PLT, const0_rtx when they can't.  All callers changed.
18825         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
18826         symbolic expressions to be PICified.  Remove second, redundant,
18827         assert on can_create_pseudo_p returning non-zero.  Use
18828         replace_equiv_address_nv, not replace_equiv_address, for final
18829         operand update.
18830         * config/cris/cris.md ("movsi"): Move variable t to pattern
18831         toplevel. Adjust assert for new cris_symbol_type member.  Use
18832         CONSTANT_P instead of CONSTANT_ADDRESS_P.
18833         ("*movsi_internal") <case 9>: Make check for valid unspec operands
18834         for lapc stricter.
18835         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
18836         ("call", "call_value"): Use second incoming operand as a marker
18837         for pic-offset-table-register being used.
18838         ("*expanded_call_non_v32", "*expanded_call_v32")
18839         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
18840         second incoming operand to CALL, match cris_call_type_marker.
18841         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
18842         ("*expanded_call_side"): Ditto.  Fix typo in comment.
18843         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
18844         CONSTANT_P.
18845         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
18846         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
18847         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
18848         users changed.  Add members cris_offsettable_symbol and cris_unspec.
18849         (cris_symbol_type): Rename from cris_pic_symbol_type.
18850         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
18851         just CONSTANT_P.
18852         * config/cris/cris-protos.h (cris_symbol_type_of,
18853         cris_expand_pic_call_address): Adjust prototypes.
18854         (cris_legitimate_constant_p): New prototype.
18855
18856         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
18857         an existing tmake_file.  Don't add t-slibgcc and t-linux.
18858
18859 2014-07-17  Jason Merrill  <jason@redhat.com>
18860
18861         PR c++/61623
18862         * symtab.c (symtab_remove_from_same_comdat_group): Also
18863         set_comdat_group to NULL_TREE.
18864         (verify_symtab): Fix diagnostic.
18865
18866 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
18867
18868         PR target/61662
18869         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
18870
18871 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
18872
18873         Support location tracking for built-in macro tokens
18874         * input.h (is_location_from_builtin_token): New function declaration.
18875         * input.c (is_location_from_builtin_token): New function definition.
18876         * toplev.c (general_init): Tell libcpp what the pre-defined
18877         spelling location for built-in tokens is.
18878
18879 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
18880
18881         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
18882         on the FUNCTION_DECL.
18883
18884 2014-07-16  Richard Biener  <rguenther@suse.de>
18885
18886         PR other/61782
18887         * doc/extend.texi (always_inline): Clarify.
18888
18889 2014-07-15  Eric Christopher  <echristo@gmail.com>
18890
18891         * doc/invoke.texi (Link Options): Document -z option.
18892
18893 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
18894
18895         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
18896         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
18897
18898 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
18899
18900         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
18901
18902 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
18903
18904         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
18905         varpool_assemble_decl.
18906         * varpool.c (varpool_assemble_decl): Assert that node->definition is
18907         true.
18908
18909 2014-07-15  Michael Matz  <matz@suse.de>
18910
18911         PR rtl-optimization/61772
18912         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
18913
18914 2014-07-15  Richard Biener  <rguenther@suse.de>
18915
18916         * opts.c (default_options_table): Disable bit-ccp at -Og.
18917
18918 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
18919
18920         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
18921
18922 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
18923
18924         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
18925         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
18926         call langhook for unknown declaration.
18927         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
18928         * tree.h (DECL_ARGUMENTS): Update.
18929         * print-tree.c (print_node): Update.
18930         * tree-core.h (tree_decl_non_common): Remove arguments.
18931         (tree_function_decl): Add arguments.
18932
18933 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
18934
18935         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
18936
18937 2014-07-14  Richard Biener  <rguenther@suse.de>
18938
18939         PR tree-optimization/61779
18940         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
18941         simplifying a condition.
18942
18943 2014-07-14  Richard Biener  <rguenther@suse.de>
18944
18945         * builtins.c (c_strlen): Make only_value == 2 really only
18946         affect warning generation.
18947
18948 2014-07-14  Richard Biener  <rguenther@suse.de>
18949
18950         PR tree-optimization/61757
18951         PR tree-optimization/61783
18952         PR tree-optimization/61787
18953         * tree-ssa-dom.c (record_equality): Revert canonicalization
18954         change and add comment.
18955         (propagate_rhs_into_lhs): Revert previous fix, removing
18956         loop depth restriction again.
18957
18958 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18959
18960         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
18961         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
18962         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
18963         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
18964         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
18965         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
18966         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
18967
18968 2014-07-14  Richard Biener  <rguenther@suse.de>
18969
18970         * cgraph.h (decl_in_symtab_p): Make inline.
18971
18972 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
18973
18974         PR middle-end/61294
18975         * doc/invoke.texi (-Wmemset-transposed-args): Document.
18976
18977         PR target/61656
18978         * config/i386/i386.c (classify_argument): Don't merge classes above
18979         number of words.
18980
18981 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
18982
18983         * cgraph.h (symtab_node): Add nonzero_address.
18984         (decl_in_symtab_p): Break out from ...
18985         (symtab_get_node): ... here.
18986         * fold-const.c: Include cgraph.h
18987         (tree_single_nonzero_warnv_p): Use symtab to determine
18988         if symbol is non-zero.
18989         * symtab.c (symtab_node::nonzero_address): New method.
18990
18991 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
18992
18993         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
18994         forgotten in previous commit.
18995
18996 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
18997
18998         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
18999         on builtin types.
19000         * ipa-devirt.c: Include stor-layout.h and intl.h
19001         (odr_subtypes_equivalent_p): New function.
19002         (warn_odr): New function.
19003         (warn_type_mismatch): New function.
19004         (odr_types_equivalent_p): New function.
19005         (add_type_duplicate): Use it.
19006         * common.opt (Wodr): New flag.
19007         * doc/invoke.texi (Wodr): Document new warning.
19008
19009 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
19010
19011         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
19012         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
19013         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
19014         (varpool_get_constructor): Push CTORS_IN timevar.
19015         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
19016
19017 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
19018
19019         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
19020         Remove VOID_FTYPE_PUSHORT.
19021         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
19022         Change code to USHORT_FTYPE_VOID.
19023         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
19024         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
19025         (ix86_atomic_assign_expand_fenv): Update for
19026         __builtin_ia32_fnstsw changes.
19027         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
19028         (fnstsw): Change operand 0 to nonimmediate operand.
19029
19030 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
19031
19032         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
19033         (varpool_get_constructor): New function.
19034         (varpool_ctor_useable_for_folding_p): Break out from ...
19035         (ctor_for_folding): ... here; use varpool_get_constructor.
19036         (varpool_assemble_decl): Likewise.
19037         * lto-streamer.h (struct output_block): Turn cgraph_node
19038         to symbol filed.
19039         (lto_input_variable_constructor): Declare.
19040         * ipa-visibility.c (function_and_variable_visibility): Use
19041         varpool_get_constructor.
19042         * cgraph.h (varpool_get_constructor): Declare.
19043         (varpool_ctor_useable_for_folding_p): New function.
19044         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
19045         parameter; return error_mark_node for non-trivial constructors.
19046         (lto_write_tree_1, DFS_write_tree): Update use of
19047         get_symbol_initial_value.
19048         (output_function): Update initialization of symbol.
19049         (output_constructor): New function.
19050         (copy_function): Rename to ..
19051         (copy_function_or_variable): ... this one; handle vars too.
19052         (lto_output): Output variable sections.
19053         * lto-streamer-in.c (input_constructor): New function.
19054         (lto_read_body): Rename from ...
19055         (lto_read_body_or_constructor): ... this one; handle vars too.
19056         (lto_input_variable_constructor): New function.
19057         * ipa-prop.c (ipa_prop_write_jump_functions,
19058         ipa_prop_write_all_agg_replacement): Update.
19059         * lto-cgraph.c (compute_ltrans_boundary): Use it.
19060         (output_cgraph_opt_summary): Set symbol to NULL.
19061
19062 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
19063
19064         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
19065         non-polymorphic types.
19066         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
19067         * ipa-devirt.c (types_same_for_odr): Do not explode when one
19068         of types is not polymorphic.
19069
19070 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
19071
19072         * lra-constraints.c (remove_inheritance_pseudos): Process
19073         destination pseudo too.
19074
19075 2014-07-11  Rong Xu  <xur@google.com>
19076
19077         * gcov-tool.c (gcov_output_files): Fix build error introduced in
19078         commit r212448.
19079
19080 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
19081
19082         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
19083         * config/avr/avr-devices.c (AVR_MCU): Same.
19084         (avr_mcu_types): add text start value to end of device list.
19085         * config/avr/avr-mcus.def: Add text section start for all devices.
19086         (ata5782): Add new avr5 device.
19087         (ata5831): Same.
19088         * config/avr/avr-tables.opt: Regenerate.
19089         * config/avr/avr.h: Add declaration for text section start handler.
19090         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
19091         SPEC functions.
19092         (LINK_SPEC): Include text section start handler to linker spec.
19093         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
19094         pass -Ttext option to linker if the text section start for the device
19095         is not zero.
19096         * config/avr/t-multilib: Regenerate.
19097         * doc/avr-mmcu.texi: Regenerate.
19098
19099 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
19100
19101         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
19102         * config/rs6000/aix52.h (LINK_SPEC): Same.
19103         * config/rs6000/aix53.h (LINK_SPEC): Same.
19104         * config/rs6000/aix61.h (LINK_SPEC): Same.
19105         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
19106
19107 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
19108
19109         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
19110         (graphite_verify): New function.
19111         (ivs_params_clear): New function.
19112         (gcc_expression_from_isl_ast_expr_id): New function.
19113         (gcc_expression_from_isl_expr_int): New function.
19114         (binary_op_to_tree): New function.
19115         (ternary_op_to_tree): New function.
19116         (unary_op_to_tree): New function.
19117         (nary_op_to_tree): New function.
19118         (gcc_expression_from_isl_expr_op): New function.
19119         (gcc_expression_from_isl_expression): New function.
19120         (graphite_create_new_loop): New function.
19121         (translate_isl_ast_for_loop): New function.
19122         (get_upper_bound): New function.
19123         (graphite_create_new_loop_guard): New function.
19124         (translate_isl_ast_node_for): New function.
19125         (translate_isl_ast): New function.
19126         (add_parameters_to_ivs_params): New function.
19127         (scop_to_isl_ast): New parameter ip.
19128         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
19129
19130 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
19131
19132         * config/xtensa/predicates.md (call expander): Update for
19133         DECL_SECTION_NAME being string.
19134
19135 2014-07-11  Richard Biener  <rguenther@suse.de>
19136
19137         PR middle-end/61473
19138         * builtins.c (fold_builtin_memory_op): Inline memory moves that
19139         can be implemented with a single load followed by a single store.
19140         (c_strlen): Only warn when only_value is not 2.
19141
19142 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
19143
19144         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
19145
19146 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
19147
19148         PR target/61561
19149         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
19150         (*movhi_bytes): Likewise.
19151         (*arm_movqi_insn): Likewise.
19152
19153 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
19154
19155         PR target/56858
19156         * config/alpha/alpha.c: Include tree-pass.h, context.h
19157         and pass_manager.h.
19158         (pass_data_handle_trap_shadows): New pass.
19159         (pass_handle_trap_shadows::gate): New pass gate function.
19160         (make_pass_handle_trap_shadows): New function.
19161         (rest_of_handle_trap_shadows): Ditto.
19162
19163         (alpha_align_insns_1): Rename from alpha_align_insns.
19164         (pass_data_align_insns): New pass.
19165         (pass_align_insns::gate): New pass gate function.
19166         (make_pass_aling_insns): New function.
19167         (rest_of_align_insns): Ditto.
19168         (alpha_align_insns): Ditto.
19169
19170         (alpha_option_override): Declare handle_trap_shadows info
19171         and align_insns_info.  Register handle_trap_shadows and align_insns
19172         passes here.
19173         (alpha_reorg): Do not call alpha_trap_shadows and
19174         alpha_align_insn from here.
19175
19176         (alpha_pad_function_end): Do not skip BARRIERs.
19177
19178 2014-07-10  Rong Xu  <xur@google.com>
19179
19180         Add gcov-tool: an offline gcda profile processing tool support.
19181         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
19182         (gcov_is_error): Ditto.
19183         (gcov_read_string): Ditto.
19184         (gcov_read_sync): Ditto.
19185         * gcov-io.h: Move counter defines to gcov-counter.def.
19186         * gcov-dump.c (tag_counters): Use gcov-counter.def.
19187         * coverage.c: Ditto.
19188         * gcov-tool.c: Offline gcda profile processing tool.
19189         (unlink_gcda_file): Remove one gcda file.
19190         (unlink_profile_dir): Remove gcda files from the profile path.
19191         (gcov_output_files): Output gcda files to an output dir.
19192         (profile_merge): Merge two profiles in directory.
19193         (print_merge_usage_message): Print merge usage.
19194         (merge_usage): Print merge usage and exit.
19195         (do_merge): Driver for profile merge sub-command.
19196         (profile_rewrite): Rewrite profile.
19197         (print_rewrite_usage_message): Print rewrite usage.
19198         (rewrite_usage): Print rewrite usage and exit.
19199         (do_rewrite): Driver for profile rewrite sub-command.
19200         (print_usage): Print gcov-info usage and exit.
19201         (print_version): Print gcov-info version.
19202         (process_args): Process arguments.
19203         (main): Main routine for gcov-tool.
19204         * Makefile.in: Build and install gcov-tool.
19205         * gcov-counter.def: New file split from gcov-io.h.
19206         * doc/gcc.texi: Include gcov-tool.texi.
19207         * doc/gcov-tool.texi: Document for gcov-tool.
19208
19209 2014-07-10  Richard Biener  <rguenther@suse.de>
19210
19211         PR tree-optimization/61757
19212         * tree-ssa-dom.c (loop_depth_of_name): Restore.
19213         (propagate_rhs_into_lhs): Revert part of last change.
19214
19215 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
19216
19217         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
19218         FUNCTION_DECLs.
19219
19220 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
19221
19222         PR middle-end/53590
19223         * function.c (allocate_struct_function): Revert r188667 change.
19224
19225         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
19226
19227 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
19228
19229         * doc/install.texi: Remove links to defunct package providers for
19230         Solaris.
19231
19232 2014-07-09  Tom de Vries  <tom@codesourcery.com>
19233
19234         * final.c (get_call_fndecl): Declare.
19235         (self_recursive_call_p): New function.
19236         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
19237
19238 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
19239
19240         * ipa-devirt.c (record_node): Walk through aliases.
19241
19242 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
19243
19244         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
19245
19246 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
19247
19248         Revert:
19249         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
19250
19251 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
19252
19253         * ipa-visibility.c (function_and_variable_visibility): Remove
19254         temporary hack disabling local aliases on AIX.
19255
19256 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
19257
19258         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
19259         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
19260
19261 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
19262
19263         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
19264         * rs6000/rs6000.c: Inline output of .set instruction.
19265         (declare_alias_data): New struct.
19266         (rs6000_declare_alias): New function.
19267         (rs6000_xcoff_declare_function_name): Use it.
19268         (rs6000_xcoff_declare_object_name): New function.
19269         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
19270         (ASM_OUTPUT_DEF): Turn to empty definition.
19271
19272 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
19273
19274         PR bootstrap/61679
19275         * hash-table.h: use hash_table::value_type instead of
19276         Descriptor::value_type in the return types of several methods.
19277
19278 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
19279
19280         * tree-pass.h (pass_data): Remove has_execute member.
19281         * passes.c (execute_one_pass): Don't check pass->has_execute.
19282         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
19283         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
19284         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
19285         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19286         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
19287         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
19288         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
19289         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
19290         gimple-low.c, gimple-ssa-isolate-paths.c,
19291         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
19292         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
19293         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
19294         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
19295         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
19296         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
19297         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
19298         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
19299         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
19300         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
19301         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
19302         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
19303         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
19304         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19305         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19306         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19307         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19308         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19309         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19310         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19311         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
19312         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
19313         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
19314         web.c: Remove initializer for pass_data::has_execute.
19315
19316 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
19317
19318         * graphite-htab.h: Use hash_map instead of hash_table.
19319         * graphite-clast-to-gimple.c: Adjust.
19320         * passes.c: Use hash_map instead of hash_table.
19321         * sese.c: Likewise.
19322         * sese.h: Remove now unused code.
19323
19324 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
19325
19326         PR target/61599
19327         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
19328         than zero.
19329
19330 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
19331
19332         PR rtl-optimization/61673
19333         * combine.c (simplify_comparison): Test just mode's sign bit
19334         in tmode rather than the sign bit and any bits above it.
19335
19336 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
19337
19338         * graphite-isl-ast-to-gimple.c (generate_isl_context):
19339         Add __isl_give to the declaration.
19340         (generate_isl_schedule): Likewise.
19341         (scop_to_isl_ast): Likewise.
19342
19343 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19344
19345         * config/arm/arm.c (cortexa5_extra_costs): New table.
19346         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
19347
19348 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
19349
19350         PR tree-optimization/61725
19351         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
19352         range, use range_includes_zerop_p instead of integer_zerop on
19353         vr0->min, only use log2 of max if min is not negative.
19354
19355 2014-07-08  Richard Biener  <rguenther@suse.de>
19356
19357         * tree-ssa-dom.h (loop_depth_of_name): Remove.
19358         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
19359         restriction on loop depth difference.
19360         (record_equality): Likewise.
19361         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
19362         (loop_depth_of_name): Remove.
19363         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
19364         restriction on loop depth difference.
19365         (init_copy_prop): Likewise.
19366
19367 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
19368
19369         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
19370         parameter.
19371         (walk_aliased_vdefs): Likewise.
19372         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
19373         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
19374         (detect_type_change_from_memory_writes): Check if entry was reached.
19375
19376 2014-07-08  Richard Biener  <rguenther@suse.de>
19377
19378         PR tree-optimization/61681
19379         * tree-ssa-structalias.c (find_what_var_points_to): Expand
19380         NONLOCAL inside ESCAPED.
19381
19382 2014-07-08  Richard Biener  <rguenther@suse.de>
19383
19384         PR tree-optimization/61680
19385         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
19386         Handle properly all read-write dependences with group accesses.
19387
19388 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
19389
19390         PR tree-optimization/61576
19391         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
19392         block containing reduction statement is predecessor of phi basi block.
19393
19394 2014-07-08  Marek Polacek  <polacek@redhat.com>
19395
19396         PR c/60226
19397         * fold-const.c (round_up_loc): Change the parameter type.
19398         Remove assert.
19399         * fold-const.h (round_up_loc): Adjust declaration.
19400         * stor-layout.c (finalize_record_size): Check for too large types.
19401
19402 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
19403
19404         * symtab.c: Include calls.h.
19405         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
19406
19407 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
19408
19409         * config/rs6000/rs6000.c (output_vec_const_move): Handle
19410         little-endian code generation.
19411         * config/rs6000/spe.md (spe_evmergehi): Rename to...
19412         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
19413         (spe_evmergehilo): Rename to...
19414         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
19415         (spe_evmergelo): Rename to...
19416         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
19417         (spe_evmergelohi): Rename to...
19418         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
19419         (spe_evmergehi, spe_evmergehilo): New expanders.
19420         (spe_evmergelo, spe_evmergelohi): Likewise.
19421         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
19422         (*frob_tf_ti): Likewise.
19423         (*frob_<mode>_di_2): Likewise.
19424         (*frob_tf_di_8_2): Likewise.
19425         (*frob_di_<mode>): Likewise.
19426         (*frob_ti_tf): Likewise.
19427         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
19428         (*frob_ti_<mode>_8_2): Likewise.
19429         (*frob_ti_tf_2): Likewise.
19430         (mov_si<mode>_e500_subreg0): Rename to...
19431         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
19432         endianness only.
19433         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
19434         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
19435         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
19436         the big endianness only.
19437         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
19438         (*mov_si<mode>_e500_subreg0_2): Rename to...
19439         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
19440         big big endianness only.
19441         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
19442         (*mov_si<mode>_e500_subreg4): Rename to...
19443         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
19444         endianness only.
19445         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
19446         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
19447         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
19448         the big endianness only.
19449         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
19450         pattern.
19451         (*mov_si<mode>_e500_subreg4_2): Rename to...
19452         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
19453         endianness only.
19454         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
19455         (*mov_sitf_e500_subreg8): Rename to...
19456         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
19457         endianness only.
19458         (*mov_sitf_e500_subreg8_le): New instruction pattern.
19459         (*mov_sitf_e500_subreg8_2): Rename to...
19460         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
19461         endianness only.
19462         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
19463         (*mov_sitf_e500_subreg12): Rename to...
19464         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
19465         endianness only.
19466         (*mov_sitf_e500_subreg12_le): New instruction pattern.
19467         (*mov_sitf_e500_subreg12_2): Rename to...
19468         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
19469         endianness only.
19470         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
19471
19472 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
19473
19474         * asan.c (instrument_strlen_call): Do not instrument first byte
19475         in strlen if already instrumented.
19476
19477 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19478
19479         * config/arm/arm.opt (mwords-little-endian): Delete.
19480         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
19481         of TARGET_LITTLE_WORDS.
19482         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
19483         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
19484         warning.
19485         * doc/invoke.texi: Remove references to -mwords-little-endian.
19486
19487 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
19488
19489         * expmed.c (struct init_expmed_rtl): Change all fields but
19490         pow2 and cint from struct rtx_def to rtx.
19491         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
19492         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
19493         at the end again.
19494
19495 2014-07-06  Marek Polacek  <polacek@redhat.com>
19496
19497         PR c/6940
19498         * doc/invoke.texi: Document -Wsizeof-array-argument.
19499
19500 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
19501
19502         * wide-int.h (wide_int_storage): Change declaration from struct
19503         to class.
19504
19505 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
19506
19507         * cgraph.c (cgraph_create_indirect_edge): Update call of
19508         get_polymorphic_call_info.
19509         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
19510         (possible_polymorphic_call_targets): Add parameter call.
19511         (decl_maybe_in_construction_p): New predicate.
19512         (get_polymorphic_call_info): Add parameter call;
19513         use decl_maybe_in_construction_p.
19514         * gimple-fold.c (fold_gimple_assign): Update use of
19515         possible_polymorphic_call_targets.
19516         (gimple_fold_call): Likewise.
19517         * ipa-prop.c: Inlcude calls.h
19518         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
19519         (param_type_may_change_p): New predicate.
19520         (detect_type_change_from_memory_writes): Break out from ...
19521         (detect_type_change): ... this one; use param_type_may_change_p.
19522         (detect_type_change_ssa): Use param_type_may_change_p.
19523         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
19524
19525 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
19526
19527         PR target/49423
19528         * config/arm/arm-protos.h (arm_legitimate_address_p,
19529         arm_is_constant_pool_ref): Add prototypes.
19530         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
19531         (arm_is_constant_pool_ref) New function.
19532         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
19533         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
19534         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
19535         operand. Remove pool_range and neg_pool_range attributes.
19536         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
19537         pool_range and neg_pool_range attributes.
19538         * config/arm/constraints.md (Uh): New constraint.
19539         (Uq): Don't allow constant pool references.
19540
19541 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
19542
19543         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
19544         (move_lo_quad_internal_be_<mode>): Likewise.
19545         (move_lo_quad_<mode>): Convert to define_expand.
19546         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
19547         (aarch64_simd_move_hi_quad_be_<mode>): New.
19548         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
19549         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
19550         (aarch64_combinez_be<mode>): New.
19551         (aarch64_combine<mode>): Convert to define_expand.
19552         (aarch64_combine_internal<mode>): New.
19553         (aarch64_simd_combine<mode>): Remove bogus RTL description.
19554
19555 2014-07-04  Tom de Vries  <tom@codesourcery.com>
19556
19557         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
19558         combination of earlyclobber and read/write modifiers.
19559
19560 2014-07-04  Tom de Vries  <tom@codesourcery.com>
19561
19562         * config/aarch64/aarch64-simd.md
19563         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
19564
19565 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
19566
19567         PR target/61714
19568         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
19569
19570 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
19571
19572         PR middle-end/61654
19573         * cgraphunit.c (expand_thunk): Call free_dominance_info.
19574
19575         PR tree-optimization/61684
19576         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
19577         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
19578
19579 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19580             Kito Cheng  <kito@0xlab.org>
19581             Monk Chiang  <sh.chiang04@gmail.com>
19582
19583         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
19584         (nds32_symbol_load_store_p): Move to ...
19585         (nds32_fp_as_gp_check_available): Move to ...
19586         * config/nds32/nds32-fp-as-gp.c: ... here.
19587         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
19588         extern declaration.
19589
19590 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19591             Kito Cheng  <kito@0xlab.org>
19592             Monk Chiang  <sh.chiang04@gmail.com>
19593
19594         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
19595         (nds32_expand_store_multiple): Move to ...
19596         (nds32_expand_movmemqi): Move to ...
19597         * config/nds32/nds32-memory-manipulation.c: ... here.
19598
19599 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19600             Kito Cheng  <kito@0xlab.org>
19601             Monk Chiang  <sh.chiang04@gmail.com>
19602
19603         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
19604         (nds32_output_casesi_pc_relative): Move to ...
19605         (nds32_output_casesi): Move to ...
19606         (nds32_mem_format): Move to ...
19607         (nds32_output_16bit_store): Move to ...
19608         (nds32_output_16bit_load): Move to ...
19609         (nds32_output_32bit_store): Move to ...
19610         (nds32_output_32bit_load): Move to ...
19611         (nds32_output_32bit_load_s): Move to ...
19612         (nds32_output_stack_push): Move to ...
19613         (nds32_output_stack_pop): Move to ...
19614         * config/nds32/nds32-md-auxiliary.c: ... here.
19615
19616 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19617             Ling-Hua Tseng  <uranus@tinlans.org>
19618
19619         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
19620         the purpose of this file.
19621
19622 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19623             Kito Cheng  <kito@0xlab.org>
19624             Monk Chiang  <sh.chiang04@gmail.com>
19625
19626         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
19627         (nds32_address_cost): Move implementation to ...
19628         * config/nds32/nds32-cost.c: ... here.
19629         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
19630         (nds32_address_cost_impl): Declare.
19631
19632 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19633             Kito Cheng  <kito@0xlab.org>
19634             Monk Chiang  <sh.chiang04@gmail.com>
19635
19636         * config/nds32/nds32.c
19637         (nds32_consecutive_registers_load_store_p): Move to ...
19638         (nds32_valid_multiple_load_store): Move to ...
19639         (nds32_valid_stack_push_pop): Move to ...
19640         (nds32_can_use_bclr_p): Move to ...
19641         (nds32_can_use_bset_p): Move to ...
19642         (nds32_can_use_btgl_p): Move to ...
19643         (nds32_can_use_bitci_p): Move to ...
19644         * config/nds32/nds32-predicates.c: ... here.
19645
19646 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19647             Kito Cheng  <kito@0xlab.org>
19648             Monk Chiang  <sh.chiang04@gmail.com>
19649
19650         * config/nds32/nds32.c
19651         (nds32_expand_builtin_null_ftype_reg): Move to ...
19652         (nds32_expand_builtin_reg_ftype_imm): Move to ...
19653         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
19654         (nds32_init_builtins): Move implementation to ...
19655         (nds32_expand_builtin): Move implementation to ...
19656         * config/nds32/nds32-intrinsic.c: ... here.
19657         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
19658         (nds32_expand_builtin_impl): Declare.
19659
19660 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19661             Kito Cheng  <kito@0xlab.org>
19662             Monk Chiang  <sh.chiang04@gmail.com>
19663
19664         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
19665         (nds32_emit_section_tail_template): Move to ...
19666         (nds32_emit_isr_jmptbl_section): Move to ...
19667         (nds32_emit_isr_vector_section): Move to ...
19668         (nds32_emit_isr_reset_conten): Move to ...
19669         (nds32_check_isr_attrs_conflict): Move to ...
19670         (nds32_construct_isr_vectors_information): Move to ...
19671         (nds32_asm_file_start): Move implementation to ...
19672         (nds32_asm_file_end): Move implementation to ...
19673         * config/nds32/nds32-isr.c: ... here.
19674         * config/nds32/nds32-protos.h
19675         (nds32_check_isr_attrs_conflict): Declare.
19676         (nds32_construct_isr_vectors_information): Declare.
19677         (nds32_asm_file_start_for_isr): Declare.
19678         (nds32_asm_file_end_for_isr): Declare.
19679
19680 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19681             Kito Cheng  <kito@0xlab.org>
19682             Monk Chiang  <sh.chiang04@gmail.com>
19683
19684         * config.gcc (nds32*): Add new modules to extra_objs.
19685         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
19686         (nds32be-*-*): Likewise.
19687         * config/nds32/nds32-cost.c: New file.
19688         * config/nds32/nds32-fp-as-gp.c: New file.
19689         * config/nds32/nds32-intrinsic.c: New file.
19690         * config/nds32/nds32-isr.c: New file.
19691         * config/nds32/nds32-md-auxiliary.c: New file.
19692         * config/nds32/nds32-memory-manipulation.c: New file.
19693         * config/nds32/nds32-pipelines-auxiliary.c: New file.
19694         * config/nds32/nds32-predicates.c: New file.
19695         * config/nds32/t-nds32: New file.
19696
19697 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
19698
19699         PR tree-optimization/61682
19700         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
19701         using cases and when one of the operands is equal to 1.
19702
19703 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
19704
19705         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
19706         ashr<mode>3): Correct mode of operands[2].
19707         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
19708         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
19709         Correct mode of operands[2].  Fix split condition.
19710
19711 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
19712
19713         * arm.md (arch): Add armv6_or_vfpv3.
19714         (arch_enabled): Add test for the above.
19715         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
19716         on VFP9.
19717         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
19718
19719 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
19720
19721         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
19722         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
19723         HWI 1 and negate the unsigned value.
19724         * expmed.c (expand_sdiv_pow2): For modes wider than word always
19725         use AND instead of shift.
19726         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
19727
19728 2014-07-03  Marek Polacek  <polacek@redhat.com>
19729
19730         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
19731         (-fsanitize=float-divide-by-zero): Move to the table with
19732         -fsanitize=undefined suboptions.
19733         (-fsanitize=float-cast-overflow): Likewise.
19734
19735 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
19736
19737         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
19738         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
19739         endianness.
19740
19741 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19742
19743         * loop-invariant.c (struct invariant): Add a new member: eqno;
19744         (find_identical_invariants): Update eqno;
19745         (create_new_invariant): Init eqno;
19746         (get_inv_cost): Compute comp_cost with eqno;
19747
19748 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
19749
19750         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
19751         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
19752         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
19753         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
19754         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
19755
19756 2014-07-02  Christian Bruel  <christian.bruel@st.com>
19757
19758         PR target/29349
19759         PR target/53513
19760         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
19761         (make_preds_opaque): Delete.
19762         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
19763         (commit_mode_sets): New function.
19764         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
19765         Process all modes at once.
19766         * basic-block.h (pre_edge_lcm_avs): Declare.
19767         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
19768         Call clear_aux_for_edges. Fix comments.
19769         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
19770         (pre_edge_rev_lcm): Idem.
19771         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
19772         parameter.
19773         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
19774         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
19775         Idem.
19776         * config/i386/i386.c (x96_emit_mode_set): Idem.
19777         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
19778         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
19779         (fpscr_toggle) Disallow from delay slot.
19780         * target.def (emit_mode_set): Add prev_mode parameter.
19781         * doc/tm.texi: Regenerate.
19782
19783 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19784
19785         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
19786         variable i.
19787
19788 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
19789
19790         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
19791         vtable_pointer_value_to_vtable): Constify.
19792         (contains_polymorphic_type_p): Declare.
19793         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
19794         vtable_pointer_value_to_vtable): Constify.
19795         (contains_polymorphic_type_p): New predicate.
19796         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
19797         polymorphic types.
19798         (ipa_set_ancestor_jf): Likewise.
19799         (detect_type_change): Return false in easy cases.
19800         (compute_complex_assign_jump_func): Require type to contain
19801         polymorphic type.
19802         (compute_known_type_jump_func): Likewise.
19803
19804 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
19805
19806         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
19807         Remove.
19808         (type_in_anonymous_namespace_p): Constify argument.
19809         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
19810         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
19811         (main_odr_variant): New function.
19812         (hash_type_name): Make static; update assert; do not ICE on
19813         non-records.
19814         (types_same_for_odr): Bring here from tree.c; simplify and remove
19815         old structural comparing code that doesn't work for templates.
19816         (odr_hasher::equal): Update assert.
19817         (add_type_duplicate): Return true when bases should be computed;
19818         replace incomplete loader by complete; do not output duplicated
19819         warnings; do not ICE on non-records; set odr_violated flag.
19820         (get_odr_type): Be ready to replace incomplete type by complete
19821         one; work on ODR variants instead of main variants; reorder item
19822         in array so bases have still smaller indexes.
19823         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
19824         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
19825
19826 2014-07-01  Cary Coutant  <ccoutant@google.com>
19827
19828         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
19829         lookup.
19830         (resolve_addr_in_expr): When replacing the rtx in a location list
19831         entry, get a new address table entry.
19832         (dwarf2out_finish): Call index_location_lists even if there are no
19833         addr_index_table entries yet.
19834
19835 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
19836
19837         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
19838         change for not being obvious.
19839
19840 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
19841
19842         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
19843         unused argument.
19844
19845 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19846
19847         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
19848         (vcagt_f64): Likewise.
19849         (vcale_f64): Likewise.
19850         (vcaled_f64): Likewise.
19851         (vcales_f32): Likewise.
19852         (vcalt_f64): Likewise.
19853         (vcaltd_f64): Likewise.
19854         (vcalts_f32): Likewise.
19855
19856 2014-07-01  Marek Polacek  <polacek@redhat.com>
19857
19858         * doc/invoke.texi: Document -Wint-conversion.
19859
19860 2014-07-01  Marek Polacek  <polacek@redhat.com>
19861
19862         PR c/58286
19863         * doc/invoke.texi: Document -Wincompatible-pointer-types.
19864
19865 2014-07-01  Martin Liska  <mliska@suse.cz>
19866
19867         IPA REF alias refactoring
19868         * cgraph.h (iterate_direct_aliases): New function.
19869         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
19870         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
19871         FOR_EACH_ALIAS added.
19872         (cgraph_for_node_and_aliases): Likewise.
19873         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
19874         * ipa-inline.c (reset_edge_caches): Likewise.
19875         (update_caller_keys): Likewise.
19876         * trans-mem.c (ipa_tm_execute): Likewise.
19877         *varpool.c (varpool_analyze_node): Likewise.
19878         (varpool_for_node_and_aliases): Likewise.
19879         * ipa-ref.h (first_alias): New function.
19880         (last_alias): Likewise.
19881         (has_aliases_p): Likewise.
19882         * ipa-ref.c (ipa_ref::remove_reference): Removal function
19883         is sensitive to IPA_REF_ALIASes.
19884         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
19885         are put at the beginning of the list.
19886         (symtab_node::iterate_direct_aliases): New function.
19887
19888 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
19889
19890         Revert:
19891         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
19892         type is complete.
19893         (write_ts_type_common_tree_pointers): Do not stream fields not set
19894         for incomplete types; do not stream duplicated fields for variants;
19895         sanity check that variant and type match.
19896         (write_ts_type_non_common_tree_pointers): Likewise.
19897         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
19898         TYPE_SIZE whether type is complete.
19899         (lto_input_ts_type_common_tree_pointers): Do same changes as in
19900         write_ts_type_common_tree_pointers
19901         (lto_input_ts_type_non_common_tree_pointers): Likewise.
19902
19903 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
19904
19905         * var-tracking.c (add_stores): Return instead of asserting if old
19906         and new values for conditional store are the same.
19907
19908 2014-06-30  Richard Henderson  <rth@redhat.com>
19909
19910         PR rtl-opt/61608
19911         PR target/39284
19912         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
19913         the cfg if there were any changes.
19914         * passes.def: Revert move of peephole2 after reorder_blocks;
19915         move duplicate_computed_gotos before peephole2.
19916
19917 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
19918
19919         * except.c (emit_note_eh_region_end): New helper function.
19920         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
19921         emit EH_REGION_END note.
19922         * jump.c (cleanup_barriers): Do not split a call and its
19923         corresponding CALL_ARG_LOCATION note.
19924
19925 2014-06-30  Jeff Law  <law@redhat.com>
19926
19927         PR tree-optimization/61607
19928         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
19929         deeper into the SSA_NAME_VALUE chain.
19930
19931 2014-06-30  Marek Polacek  <polacek@redhat.com>
19932
19933         * convert.c (convert_to_integer): Don't instrument conversions if the
19934         function has no_sanitize_undefined attribute.
19935         * ubsan.c: Don't run the ubsan pass if the function has
19936         no_sanitize_undefined attribute.
19937
19938 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
19939
19940         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
19941         -fsanitize=undefined suboptions.
19942
19943 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
19944
19945         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
19946         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
19947         against bigendian and adjust indices.
19948
19949 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
19950
19951         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
19952
19953 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19954
19955         PR target/61633
19956         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
19957         Add alternative; make early clobber.  Adjust both split patterns
19958         to use operand 0 as the working register.
19959
19960 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
19961
19962         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
19963         as ira_object_id_map might be NULL, or 1.
19964
19965 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19966
19967         * loop-invariant.c (get_inv_cost): Handle register class.
19968         (gain_for_invariant): Check the register pressure of the inv
19969         and its overlapped register class, other than all.
19970
19971 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
19972
19973         * doc/invoke.texi (Optimize Options): Fix descriptions of
19974         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
19975
19976 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
19977
19978         * doc/extend.texi (Function Attributes): Update 'naked' attribute
19979         documentation.
19980
19981 2014-06-29  Tobias Grosser <tobias@grosser.es>
19982
19983         PR bootstrap/61650
19984         * graphite-isl-ast-to-gimple.c: Add missing guards.
19985
19986 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
19987
19988         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
19989         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
19990         * flag-types.h: Add new enum fgraphite_generator.
19991         * graphite-isl-ast-to-gimple.c: New.
19992         * graphite-isl-ast-to-gimple.h: New.
19993         * graphite.c (graphite_transform_loops): Add choice of Graphite
19994         code generator, which depends on flag_graphite_code_gen.
19995
19996 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
19997
19998         * graphite-dependences.c (subtract_commutative_associative_deps):
19999         Add NULL checking of the following variables: must_raw_no_source,
20000         may_raw_no_source, must_war_no_source, may_war_no_source,
20001         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
20002         must_war, may_war, must_waw, may_waw.
20003
20004 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
20005
20006         * graphite-clast-to-gimple.c: gloog is renamed to
20007         graphite_regenerate_ast_cloog.  gloog_error is renamed to
20008         graphite_regenerate_error.
20009         * graphite-clast-to-gimple.h: The definition of the struct
20010         bb_pbb_def is moved to graphite-htab.h.
20011         Add inclusion of the hash-table.h.
20012         * graphite-htab.h: The declaration of the function gloog is moved
20013         to graphite-clast-to-gimple.h and renamed to
20014         graphite_regenerate_ast_cloog.
20015         * graphite.c (graphite_transform_loops): gloog is renamed
20016         to graphite_regenerate_ast_cloog.
20017
20018 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
20019
20020         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
20021         type is complete.
20022         (write_ts_type_common_tree_pointers): Do not stream fields not set
20023         for incomplete types; do not stream duplicated fields for variants;
20024         sanity check that variant and type match.
20025         (write_ts_type_non_common_tree_pointers): Likewise.
20026         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
20027         TYPE_SIZE whether type is complete.
20028         (lto_input_ts_type_common_tree_pointers): Do same changes as in
20029         write_ts_type_common_tree_pointers
20030         (lto_input_ts_type_non_common_tree_pointers): Likewise.
20031
20032 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
20033
20034         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
20035
20036 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
20037
20038         * tree-inline.c (remap_type_1): Do not duplicate fields
20039         that are shared in between type and its main variant.
20040
20041 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
20042
20043         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
20044         of the type.
20045         (ipa_set_ancestor_jf) Likewise.
20046         (check_stmt_for_type_change): Check that we work on main variant.
20047         (detect_type_change): Look into main variant.
20048         (compute_known_type_jump_func): Check that main variant has BINFO.
20049
20050 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
20051
20052         * ipa-devirt.c (set_type_binfo): New function.
20053         (add_type_duplicate): Use it.
20054         (get_odr_type): Sanity check that binfos points to main variants.
20055         (get_class_context): Be sure the context's outer_type is main variant.
20056         (contains_type_p): Walk main variant.
20057         (get_polymorphic_call_info_for_decl): Set outer_type to be
20058         main variant.
20059         (get_polymorphic_call_info): Likewise.
20060         (possible_polymorphic_call_targets): Sanity check that we operate
20061         on main variant.
20062
20063 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
20064
20065         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
20066
20067 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20068
20069         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
20070         accidental change due to wide-int branch merge.
20071
20072 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20073
20074         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
20075         compressed debug support.
20076         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
20077         * configure: Regenerate.
20078         * config.in: Regenerate.
20079         * common.opt (compressed_debug_sections): New enum.
20080         (gz, gz=): New options.
20081         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
20082         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
20083         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
20084         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
20085         LINK_COMPRESS_DEBUG_SPEC.
20086         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
20087         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
20088         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
20089         (Debugging Options): Document -gz[=type].
20090
20091 2014-06-27  Martin Jambor  <mjambor@suse.cz>
20092
20093         PR ipa/61160
20094         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
20095         args_to_skip, use those from node instead.  Copy args_to_skip and
20096         combined_args_to_skip from node to the new thunk.
20097         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
20098         (cgraph_create_virtual_clone): Moved computation of
20099         combined_args_to_skip...
20100         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
20101
20102 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
20103
20104         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
20105         redundant diagnostic machinary.
20106
20107 2014-06-27  Richard Biener  <rguenther@suse.de>
20108
20109         * tree-ssa-math-opts.c (bswap_replace): Fix
20110         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
20111
20112 2014-06-27  Martin Liska  <mliska@suse.cz>
20113
20114         * gimple.h (gimple_location_safe): New function introduced.
20115         * cgraphunit.c (walk_polymorphic_call_targets): Usage
20116         of gimple_location_safe replaces gimple_location.
20117         (gimple_fold_call): Likewise.
20118         * ipa-devirt.c (ipa_devirt): Likewise.
20119         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
20120         * ipa.c (walk_polymorphic_call_targets): Likewise.
20121         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
20122
20123 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
20124
20125         PR tree-optimization/57233
20126         PR tree-optimization/61299
20127         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
20128         functions.
20129         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
20130         would be lowered to scalar shifts, check if corresponding
20131         shifts and vector BIT_IOR_EXPR are supported and don't lower
20132         or lower just to narrower vector type in that case.
20133         * expmed.c (expand_shift_1): Fix up handling of vector
20134         shifts and rotates.
20135
20136 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
20137
20138         PR target/61586
20139         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
20140
20141 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
20142
20143         * doc/invoke.texi (-fsemantic-interposition): Document.
20144         * common.opt (fsemantic-interposition): New flag.
20145         * varasm.c (decl_replaceable_p): Use it.
20146
20147 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20148
20149         PR target/61542
20150         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
20151         extraction other than index 3.
20152
20153 2014-06-26  Teresa Johnson  <tejohnson@google.com>
20154
20155         * doc/invoke.texi: Fix typo.
20156         * dumpfile.c: Add support for documented -fdump-* options
20157         optimized/missed/note/optall.
20158
20159 2014-06-26  Martin Jambor  <mjambor@suse.cz>
20160
20161         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
20162         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
20163         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
20164         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
20165         * opts.c (default_options_optimization): Set
20166         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
20167         * doc/invoke.texi (allow-load-data-races)
20168         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
20169         (allow-store-data-races): Document the new default.
20170
20171 2014-06-26  Martin Jambor  <mjambor@suse.cz>
20172
20173         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
20174         renamed to ipa_impossible_devirt_target.  Fix typo.
20175         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
20176         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
20177         ipa_impossible_devirt_target.
20178
20179 2014-06-26  Richard Biener  <rguenther@suse.de>
20180
20181         PR tree-optimization/61607
20182         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
20183         explaining why we restrict copies on loop depth.
20184         * tree-ssa-dom.c (cprop_operand): Remove restriction on
20185         on loop depth.
20186         (record_equivalences_from_phis): Instead add it here.
20187
20188 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
20189
20190         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
20191         (LTO_WRAPPER_OBJS): New variable.
20192         (lto-wrapper$(exeext)): Use it.
20193         * collect2.c: Include "collect-utils.h".
20194         (verbose, debug): Remove variables.
20195         (at_file_supplied): No longer static.
20196         (tool_name): New variable.
20197         (do_wait, fork_execute, maybe_unlink): Don't declare.
20198         (tool_cleanup): No longer static.
20199         (notice): Remove function.
20200         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
20201         fork_execute calls.
20202         (collect_wait, do_wait, collect_execute): Remove functions.
20203         (maybe_unlink): No longer static.
20204         * collect2.h (verbose, debug): Don't declare.
20205         (at_file_supplied): Declare.
20206         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
20207         changed.
20208         (collect_execute): Replace with implementation from collect2, plus a
20209         new arg use_atfile.  All callers changed.
20210         (collect_wait): Replace with implementation from collect2.
20211         (maybe_unlink_file): Remove function.
20212         (fork_execute): Replace with implementation from collect2, plus a
20213         new arg use_atfile.  All callers changed.
20214         (do_wait): Add call to utils_cleanup to the error path.
20215         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
20216         (tool_cleanup): Adjust declarations.
20217         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
20218         * tlink.c: Include "collect-utils.h".
20219         (tlink_execute): New arg use_atfile.  All callers changed.
20220         (tlink_init, tlink_execute): Remove declarations.
20221
20222         * collect-utils.c (save_temps): New variable.
20223         (do_wait): Use it instead of debug.  Use fatal_error.
20224         * collect-utils.h (save_temps): Declare.
20225         * collect2.c (verbose): Rename from vflag.  All uses changed.
20226         (tool_cleanup): New function, copied from collect_atexit.
20227         (collect_atexit, handler): Just call it.
20228         * collect2.h (verbose): Declaration renamed from vflag.
20229         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
20230         debug.
20231
20232         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
20233         (lto-wrapper$(exeext)): Link with collect-utils.o.
20234         * collect-utils.c: New file.
20235         * collect-utils.h: New file.
20236         * lto-wrapper.c: Include "collect-utils.h".
20237         (args_name): Delete variable.
20238         (tool_name): New variable.
20239         (tool_cleanup): New function.
20240         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
20241         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
20242         (fork_execute): Remove functions.
20243
20244 2014-06-26  Nick Clifton  <nickc@redhat.com>
20245
20246         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
20247
20248         * doc/extend.texi (Function Attributes): Fix typo in description
20249         of RX vector attribute.
20250
20251 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
20252
20253         * config.gcc (supported_defaults): Error when passing either
20254         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
20255
20256 2014-06-26  Richard Biener  <rguenther@suse.de>
20257
20258         * tree-ssa-dom.c (cprop_operand): Remove restriction on
20259         propagating volatile pointers.
20260
20261 2014-06-26  Richard Biener  <rguenther@suse.de>
20262
20263         PR tree-optimization/61607
20264         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
20265         loop if we redirected its latch edge.
20266         (thread_block_1): Do not cancel loops prematurely.
20267
20268 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
20269
20270         * toplev.c (backend_init_target): Move init_emit_regs and
20271         init_regs to...
20272         (backend_init) ... here; skip ira_init_once and backend_init_target.
20273         (target_reinit) ... and here; clear
20274         this_target_rtl->lang_dependent_initialized.
20275         (lang_dependent_init_target): Clear
20276         this_target_rtl->lang_dependent_initialized;
20277         break out rtl initialization to ...
20278         (initialize_rtl): ... here; call also backend_init_target
20279         and ira_init_once.
20280         * toplev.h (initialize_rtl): New function.
20281         * function.c: Include toplev.h
20282         (init_function_start): Call initialize_rtl.
20283         * rtl.h (target_rtl): Add target_specific_initialized,
20284         lang_dependent_initialized.
20285
20286 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
20287             Jakub Jelinek  <jakub@redhat.com>
20288
20289         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
20290
20291 2014-06-25  Tom de Vries  <tom@codesourcery.com>
20292
20293         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
20294
20295 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20296
20297         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
20298         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
20299         Issue a strict overflow warning if appropriate.
20300
20301 2014-06-25  Martin Liska  <mliska@suse.cz>
20302
20303         IPA REF refactoring
20304         * Makefile.in: Removed header file (ipa-ref-inline.h).
20305         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
20306         called.
20307         (cgraph_speculative_call_info): Likewise.
20308         (cgraph_for_node_thunks_and_aliases): Likewise.
20309         (cgraph_for_node_and_aliases): Likewise.
20310         (verify_cgraph_node): Likewise.
20311         * cgraph.h: Batch of IPA REF functions become member functions of
20312         symtab_node: add_reference, maybe_add_reference, clone_references,
20313         clone_referring, clone_reference, find_reference,
20314         remove_stmt_references, remove_all_references,
20315         remove_all_referring, dump_references, dump_referring,
20316         has_alias_p, iterate_reference, iterate_referring.
20317         * cgraphbuild.c (record_reference): New IPA REF function used.
20318         (record_type_list): Likewise.
20319         (record_eh_tables): Likewise.
20320         (mark_address): Likewise.
20321         (mark_load): Likewise.
20322         (mark_store): Likewise.
20323         (pass_build_cgraph_edges): Likewise.
20324         (rebuild_cgraph_edge): Likewise.
20325         (cgraph_rebuild_references): Likewise.
20326         (pass_remove_cgraph_callee_edges): Likewise.
20327         * cgraphclones.c (cgraph_clone_node): Likewise.
20328         (cgraph_create_virtual_clone): Likewise.
20329         (cgraph_materialize_clone): Likewise.
20330         (cgraph_materialize_all_clones): Likewise.
20331         * cgraphunit.c (cgraph_reset_node): Likewise.
20332         (cgraph_reset_node): Likewise.
20333         (analyze_function): Likewise.
20334         (assemble_thunks_and_aliases): Likewise.
20335         (expand_function): Likewise.
20336         * ipa-comdats.c (propagate_comdat_group): Likewise.
20337         (enqueue_references): Likewise.
20338         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
20339         (create_specialized_node): Likewise.
20340         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
20341         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
20342         * ipa-inline.c (reset_edge_caches): Likewise.
20343         (update_caller_keys): Likewise.
20344         (execute): Likewise.
20345         * ipa-prop.c (remove_described_reference): Likewise.
20346         (propagate_controlled_uses): Likewise.
20347         (ipa_edge_duplication_hook): Likewise.
20348         (ipa_modify_call_arguments): Likewise.
20349         * ipa-pure-const.c (propagate_pure_const): Likewise.
20350         * ipa-ref-inline.h: Header file removed, functions moved
20351         to symtab_node class.
20352         * ipa-ref.c (remove_reference): New class member function.
20353         (cannot_lead_to_return): New class member function.
20354         (referring_ref_list): Likewise.
20355         (referred_ref_list): Likewise.
20356         Rest of functions moved to symtab_node class.
20357         * ipa-ref.h: New member functions remove_reference,
20358         cannot_lead_to_return, referring_ref_list, referred_ref_list added
20359         to ipa_ref class.
20360         ipa_ref_list class has new member functions: first_reference,
20361         first_referring, clear, nreferences.
20362         * ipa-reference.c (analyze_function): New IPA REF function used.
20363         (write_node_summary_p): Likewise.
20364         (ipa_reference_write_optimization_summary): Likewise.
20365         * ipa-split.c (split_function): Likewise.
20366         * ipa-utils.c (ipa_reverse_postorder): Likewise.
20367         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
20368         (function_and_variable_visibility): Likewise.
20369         * ipa.c (has_addr_references_p): Likewise.
20370         (process_references): Argument type changed.
20371         (symtab_remove_unreachable_nodes): New IPA REF function used.
20372         (process_references): Likewise.
20373         (set_writeonly_bit): Likewise.
20374         * lto-cgraph.c: Implementation of new symtab_node member functions
20375         that uses new IPA REF functions.
20376         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
20377         function used.
20378         * lto-streamer-out.c (output_symbol_p): Likewise.
20379         * lto-streamer.h (referenced_from_this_partition_p): Argument type
20380         changed.
20381         * symtab.c: Implementation of new IPA REF API.
20382         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
20383         (ipa_tm_create_version): Likewise.
20384         (ipa_tm_execute): Likewise.
20385         * tree-emutls.c (gen_emutls_addr): Likewise.
20386         * tree-inline.c (copy_bb): Likewise.
20387         (delete_unreachable_blocks_update_callgraph): Likewise.
20388         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
20389         (varpool_for_node_and_aliases): Likewise.
20390
20391 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
20392
20393         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
20394
20395 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
20396
20397         PR bootstrap/61598
20398         * fold-const.c (fold_checksum_tree): Use a hash_table of const
20399         tree_node * instead of tree_node *.
20400         (fold): Adjust.
20401         (print_fold_checksum): Likewise.
20402         (fold_check_failed): Likewise.
20403         (debug_fold_checksum): Likewise.
20404         (fold_build1_stat_loc): Likewise.
20405         (fold_build2_stat_loc): Likewise.
20406         (fold_build3_stat_loc): Likewise.
20407         (fold_build_call_array_loc): Likewise.
20408
20409 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
20410
20411         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
20412         implementation with call to...
20413         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
20414         function.
20415         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
20416         Declare.
20417
20418 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
20419
20420         PR tree-optimization/57742
20421         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
20422         after replacing the statement.
20423
20424 2014-06-25  Nick Clifton  <nickc@redhat.com>
20425
20426         * config/v850/v850.c (GHS_default_section_names): Change to const
20427         char * type.
20428         (GHS_current_section_names): Likewise.
20429         (v850_insert_attributes): Do not build strings, just assign the
20430         names directly.  Change the type of 'chosen_section' to const
20431         char*.
20432         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
20433         directly to the array entry.
20434         * config/v850/v850.h (GHS_default_section_names): Change to const
20435         char * type.
20436         (GHS_current_section_names): Likewise.
20437
20438 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
20439
20440         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
20441         (LANG_HOOKS_DECLS): Add it.
20442         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
20443         has correct type.
20444         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
20445         * langhooks.h (struct lang_hooks_for_decls): Add
20446         omp_clause_linear_ctor hook.
20447         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
20448         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
20449         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
20450         combined simd loop use omp_clause_linear_ctor hook.
20451
20452 2014-06-24  Cong Hou  <congh@google.com>
20453
20454         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
20455         pattern recognition.
20456         (type_conversion_p): PROMOTION is true if it's a type promotion
20457         conversion, and false otherwise.  Return true if the given expression
20458         is a type conversion one.
20459         * tree-vectorizer.h: Adjust the number of patterns.
20460         * tree.def: Add SAD_EXPR.
20461         * optabs.def: Add sad_optab.
20462         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
20463         * expr.c (expand_expr_real_2): Likewise.
20464         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
20465         * gimple.c (get_gimple_rhs_num_ops): Likewise.
20466         * optabs.c (optab_for_tree_code): Likewise.
20467         * tree-cfg.c (estimate_operator_cost): Likewise.
20468         * tree-ssa-operands.c (get_expr_operands): Likewise.
20469         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
20470         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
20471         * doc/generic.texi: Add document for SAD_EXPR.
20472         * doc/md.texi: Add document for ssad and usad.
20473
20474 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
20475
20476         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
20477         qualification in cast.
20478
20479 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
20480
20481         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
20482         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
20483         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
20484         (tree_function_decl): ... here.
20485         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
20486         streaming of vindex to ...
20487         (write_ts_function_decl_tree_pointers): ... here.
20488         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
20489         Do not stream DECL_VINDEX.
20490         (lto_input_ts_function_decl_tree_pointers): Stream it here.
20491
20492 2014-06-24  Catherine Moore  <clm@codesourcery.com>
20493             Sandra Loosemore  <sandra@codesourcery.com>
20494
20495         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
20496         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
20497         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
20498
20499 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
20500
20501         * doc/invoke.texi (Warning Options): Remove duplicated
20502         -Wmaybe-uninitialized.
20503
20504 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
20505
20506         PR tree-optimization/57742
20507         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
20508         (handle_builtin_malloc, handle_builtin_memset): New functions.
20509         (strlen_optimize_stmt): Call them.
20510         * passes.def: Move strlen after loop+dom but before vrp.
20511
20512 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
20513
20514         PR target/61570
20515         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
20516         model family 6 CPU with has_longmode never use a CPU without
20517         64-bit support.
20518
20519 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
20520
20521         PR target/61570
20522         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
20523         the last change.
20524
20525 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
20526
20527         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
20528         * dominance.c (iterate_fix_dominators): Use hash_map instead of
20529         pointer_map.
20530         * hash-map.h: New file.
20531         * ipa-comdats.c: Use hash_map instead of pointer_map.
20532         * ipa.c: Likewise.
20533         * lto-section-out.c: Adjust.
20534         * lto-streamer.h: Replace pointer_map with hash_map.
20535         * symtab.c (verify_symtab): Likewise.
20536         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
20537         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
20538         * tree-streamer.h: Likewise.
20539         * tree-streamer.c: Adjust.
20540         * pointer-set.h: Remove pointer_map.
20541
20542 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
20543
20544         * hash-table.h: Add a template arg to choose between storing values
20545         and storing pointers to values, and then provide partial
20546         specializations for both.
20547         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
20548         should store, not the type values should point to.
20549         * tree-into-ssa.c (var_info_hasher): Likewise.
20550         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
20551         * tree-complex.c: Adjust.
20552         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
20553         table instead of int_tree_map *.
20554         * tree-parloops.c: Adjust.
20555         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
20556         type is being stored.
20557         * tree-vectorizer.c: Adjust.
20558
20559 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
20560
20561         * hash-table.h: Remove a layer of indirection from hash_table so that
20562         it contains the hash table's data instead of a pointer to the data.
20563         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
20564         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
20565         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
20566         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
20567         fold-const.c, gcse.c, ggc-common.c,
20568         gimple-ssa-strength-reduction.c, gimplify.c,
20569         graphite-clast-to-gimple.c, graphite-dependences.c,
20570         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
20571         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
20572         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
20573         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
20574         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
20575         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
20576         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
20577         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
20578         tree-ssa-live.c, tree-ssa-loop-im.c,
20579         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
20580         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
20581         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
20582         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
20583         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
20584         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
20585         vtable-verify.c, vtable-verify.h: Adjust.
20586
20587 2014-06-24  Richard Biener  <rguenther@suse.de>
20588
20589         PR tree-optimization/61572
20590         * tree-ssa-sink.c (statement_sink_location): Do not sink
20591         loads from hard registers.
20592
20593 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
20594
20595         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
20596         not mentioned in clauses use private clause if the iterator is
20597         declared in #pragma omp for simd, and when adding lastprivate
20598         instead, add it to the outer #pragma omp for too.  Diagnose
20599         if the variable is private in outer context.  For simd collapse > 1
20600         loops, replace all iterators with temporaries.
20601         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
20602         same even in collapse > 1 loops.
20603
20604         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
20605         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
20606         non-NULL.
20607         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
20608         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
20609         non-NULL.
20610         (gimplify_adjust_omp_clauses): Likewise.
20611         * omp-low.c (lower_rec_simd_input_clauses,
20612         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
20613         safelen the same as safelen(1).
20614         * tree-nested.c (convert_nonlocal_omp_clauses,
20615         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
20616         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
20617         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
20618         Fixup handling of GIMPLE_OMP_TARGET.
20619         (convert_tramp_reference_stmt, convert_gimple_call): Handle
20620         GIMPLE_OMP_TARGET.
20621
20622 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
20623
20624         PR tree-optimization/61554
20625         * tree-ssa-propagate.c: Include "bitmap.h".
20626         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
20627         properly update constructor/destructor.
20628         (substitute_and_fold_dom_walker::before_dom_children):
20629         Remove call to gimple_purge_dead_eh_edges, add bb->index to
20630         need_eh_cleaup instead.
20631         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
20632         need_eh_cleanup.
20633
20634 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
20635
20636         * varpool.c (dump_varpool_node): Dump used_by_single_function.
20637         * tree-pass.h (make_pass_ipa_single_use): New pass.
20638         * cgraph.h (used_by_single_function): New flag.
20639         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
20640         Stream it.
20641         * passes.def (pass_ipa_single_use): Scedule.
20642         * ipa.c (BOTTOM): New macro.
20643         (meet): New function
20644         (propagate_single_user): New function.
20645         (ipa_single_use): New function.
20646         (pass_data_ipa_single_use): New pass.
20647         (pass_ipa_single_use): New pass.
20648         (pass_ipa_single_use::gate): New gate.
20649         (make_pass_ipa_single_use): New function.
20650
20651 2014-06-23  Kai Tietz  <ktietz@redhat.com>
20652
20653         PR target/39284
20654         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
20655         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
20656
20657 2014-06-23  Richard Biener  <rguenther@suse.de>
20658
20659         * tree-ssa-loop.c (gate_loop): New function.
20660         (pass_tree_loop::gate): Call it.
20661         (pass_data_tree_no_loop, pass_tree_no_loop,
20662         make_pass_tree_no_loop): New.
20663         * tree-vectorizer.c: Include tree-scalar-evolution.c
20664         (pass_slp_vectorize::execute): Initialize loops and SCEV if
20665         required.
20666         (pass_slp_vectorize::clone): New method.
20667         * timevar.def (TV_TREE_NOLOOP): New.
20668         * tree-pass.h (make_pass_tree_no_loop): Declare.
20669         * passes.def (pass_tree_no_loop): New pass group with
20670         SLP vectorizer.
20671
20672 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
20673
20674         PR target/61570
20675         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
20676         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
20677
20678 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
20679
20680         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
20681         "yes" where needed.
20682
20683 2014-06-23  Alan Modra  <amodra@gmail.com>
20684
20685         PR bootstrap/61583
20686         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
20687         to zero on debug statements.
20688
20689 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
20690
20691         PR target/60825
20692         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
20693         Ignore third operand if present by marking qualifier_internal.
20694
20695         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
20696
20697         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
20698         vector extension.
20699         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
20700         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
20701         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
20702         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
20703         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
20704         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
20705         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
20706         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
20707         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
20708         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
20709         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
20710         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
20711         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
20712         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
20713         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
20714         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
20715         logic in GCC vector extensions
20716
20717         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
20718         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
20719         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
20720         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
20721         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
20722         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
20723         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
20724         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
20725         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
20726         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
20727
20728         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
20729
20730         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
20731         extensions.
20732
20733         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
20734         (vget_low_s64): Use __GET_LOW macro.
20735         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
20736         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
20737         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
20738         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
20739         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
20740
20741         (vcombine_s64): Use GCC vector extensions; remove cast.
20742         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
20743         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
20744         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
20745         Fix type signature; remove cast.
20746
20747 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
20748
20749         PR target/60825
20750         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
20751         V1DFmode.
20752         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
20753         add V1DFmode
20754         (BUILTIN_VD1): New.
20755         (BUILTIN_VD_RE): Remove.
20756         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
20757         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
20758         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
20759         variant but not df.
20760         (vreinterpretv1df*, vreinterpret*v1df): New.
20761         (vreinterpretdf*, vreinterpret*df): Remove.
20762         * config/aarch64/aarch64-simd.md (aarch64_create,
20763         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
20764         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
20765         (VD1): New.
20766         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
20767         (vcreate_f64): Remove cast, use v1df builtin.
20768         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
20769         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
20770         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
20771         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
20772         vmov_n_f64, vst1_f64): Use gcc vector extensions.
20773         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
20774         add range check using __builtin_aarch64_im_lane_boundsi.
20775         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
20776         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
20777         type signature, use gcc vector extensions.
20778         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
20779         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
20780         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
20781         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
20782         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
20783         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
20784         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
20785         vreinterpret_u64_f64): Use v1df builtin not df.
20786
20787 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
20788
20789         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
20790         vector registers.
20791
20792 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
20793
20794         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
20795         priority directly.
20796
20797 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20798
20799         * loop-invariant.c (pre_check_invariant_p): New function.
20800         (find_invariant_insn): Call pre_check_invariant_p.
20801
20802 2014-06-22  Richard Henderson  <rth@redhat.com>
20803
20804         PR target/61565
20805         * compare-elim.c (struct comparison): Add eh_note.
20806         (find_comparison_dom_walker::before_dom_children): Don't eliminate
20807         a redundant comparison in a different EH region.  Purge EH edges if
20808         necessary.
20809
20810 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20811
20812         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
20813         (var_shift): Use it.
20814         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
20815         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
20816         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
20817         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
20818         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
20819         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
20820         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
20821         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
20822         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
20823         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
20824         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
20825         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
20826         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
20827         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
20828         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
20829         *rotldi3_internal15be): Use the new attribute.  Merge register and
20830         integer alternatives.
20831
20832 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20833
20834         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
20835         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
20836         split, *ashrdi3_internal3 and split): Delete, merge into...
20837         (ashr<mode>3): New expander.
20838         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
20839         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
20840
20841 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20842
20843         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
20844         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
20845         *rotldi3_internal3 and split): Delete, merge into...
20846         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
20847         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
20848         Use "rotlw" extended mnemonic.
20849
20850 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20851
20852         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
20853         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
20854         and split, *ashldi3_internal3 and split): Delete, merge into...
20855         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
20856         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
20857
20858 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20859
20860         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
20861         (lshrsi3, two anonymous define_insns and define_splits,
20862         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
20863         *lshrdi3_internal3 and split): Delete, merge into...
20864         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
20865         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
20866
20867 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20868
20869         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
20870         Remove "O" alternative.
20871
20872 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
20873
20874         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
20875         (mips_move_from_gpr_cost): Likewise.
20876         (mips_register_move_cost): Update accordingly.
20877         (mips_secondary_reload_class): Remove name of in_p.
20878
20879 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
20880
20881         PR target/61503
20882         * config/i386/i386.md (x86_64_shrd, x86_shrd,
20883         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
20884
20885 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
20886
20887         * config/nios2/nios2.c: Include "builtins.h".
20888
20889 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
20890
20891         * cgraph.h (tls_model_names): New variable.
20892         * print-tree.c (print_node): Simplify.
20893         * varpool.c (tls_model_names): New variable.
20894         (dump_varpool_node): Output tls model.
20895
20896 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
20897
20898         * ipa-visibility.c (function_and_variable_visibility): Disable
20899         temporarily local aliases for some targets.
20900
20901 2014-06-20  Marek Polacek  <polacek@redhat.com>
20902
20903         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
20904         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
20905         into SANITIZE_UNDEFINED.
20906         * doc/invoke.texi: Describe -fsanitize=bounds.
20907         * gimplify.c (gimplify_call_expr): Add gimplification of internal
20908         functions created in the FEs.
20909         * internal-fn.c: Move "internal-fn.h" after "tree.h".
20910         (expand_UBSAN_BOUNDS): New function.
20911         * internal-fn.def (UBSAN_BOUNDS): New internal function.
20912         * internal-fn.h: Don't define internal functions here.
20913         * opts.c (common_handle_option): Add -fsanitize=bounds.
20914         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
20915         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
20916         * tree-core.h: Define internal functions here.
20917         (struct tree_base): Add ifn field.
20918         * tree-pretty-print.c: Include "internal-fn.h".
20919         (dump_generic_node): Handle functions without CALL_EXPR_FN.
20920         * tree.c (get_callee_fndecl): Likewise.
20921         (build_call_expr_internal_loc): New function.
20922         * tree.def (CALL_EXPR): Update description.
20923         * tree.h (CALL_EXPR_IFN): Define.
20924         (build_call_expr_internal_loc): Declare.
20925         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
20926         types.
20927         (ubsan_type_descriptor): Change bool parameter to enum
20928         ubsan_print_style.  Adjust the code.  Add handling of
20929         UBSAN_PRINT_ARRAY.
20930         (ubsan_expand_bounds_ifn): New function.
20931         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
20932         (ubsan_build_overflow_builtin): Likewise.
20933         (instrument_bool_enum_load): Likewise.
20934         (ubsan_instrument_float_cast): Likewise.
20935         * ubsan.h (enum ubsan_print_style): New enum.
20936         (ubsan_expand_bounds_ifn): Declare.
20937         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
20938
20939 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
20940
20941         * config/rs6000/rs6000.md: Append `DONE' to preparation
20942         statements of `bswap' pattern splitters.
20943
20944 2014-06-20  Tom de Vries  <tom@codesourcery.com>
20945
20946         * target.def (call_fusage_contains_non_callee_clobbers): Update
20947         definition.
20948         * doc/tm.texi: Regenerate.
20949
20950 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
20951             Max Ostapenko  <m.ostapenko@partner.samsung.com>
20952
20953         PR sanitizer/61547
20954         * asan.c (instrument_strlen_call): Fixed instrumentation of
20955         trailing byte.
20956
20957 2014-06-20  Martin Jambor  <mjambor@suse.cz>
20958
20959         PR ipa/61540
20960         * ipa-prop.c (impossible_devirt_target): New function.
20961         (try_make_edge_direct_virtual_call): Use it, also instead of
20962         asserting.
20963
20964 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
20965             Max Ostapenko  <m.ostapenko@partner.samsung.com>
20966
20967         PR sanitizer/61530
20968         * asan.c (build_check_stmt): Add condition.
20969
20970 2014-06-20  Martin Jambor  <mjambor@suse.cz>
20971
20972         PR ipa/61211
20973         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
20974         expanded clones.
20975
20976 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20977
20978         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
20979         Update comments.
20980         (VCONQ): Make comment more helpful.
20981         (VCON): Delete.
20982         * config/aarch64/aarch64-simd.md
20983         (aarch64_sqdmulh_lane<mode>):
20984         Use VCOND for operands 2.  Update lane checking and flipping logic.
20985         (aarch64_sqrdmulh_lane<mode>): Likewise.
20986         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
20987         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
20988         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
20989         attribute of operand 3 to VCOND.
20990         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
20991         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
20992         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
20993         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
20994         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
20995         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
20996         define_insn.
20997         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
20998         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
20999         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
21000         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
21001         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
21002         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
21003         operand to VCOND.  Update lane flipping and bounds checking logic.
21004         (aarch64_sqdmlal2_lane<mode>): Likewise.
21005         (aarch64_sqdmlsl_lane<mode>): Likewise.
21006         (aarch64_sqdmull_lane<mode>): Likewise.
21007         (aarch64_sqdmull2_lane<mode>): Likewise.
21008         (aarch64_sqdmlal_laneq<mode>):
21009         Replace VCON usage with VCONQ.
21010         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
21011         (aarch64_sqdmlal2_laneq<mode>): Emit
21012         aarch64_sqdmlal2_laneq<mode>_internal insn.
21013         Replace VCON with VCONQ.
21014         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
21015         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
21016         (aarch64_sqdmull_laneq<mode>): Emit
21017         aarch64_sqdmull_laneq<mode>_internal insn.
21018         Replace VCON with VCONQ.
21019         (aarch64_sqdmull2_laneq<mode>): Emit
21020         aarch64_sqdmull2_laneq<mode>_internal insn.
21021         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
21022         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
21023         of 3rd argument to int16x4_t.
21024         (vqdmlalh_lane_s16): Likewise.
21025         (vqdmlslh_lane_s16): Likewise.
21026         (vqdmull_high_lane_s16): Likewise.
21027         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
21028         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
21029         (vqdmlsl_lane_s16): Likewise.
21030         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
21031         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
21032         (vqdmlals_lane_s32): Likewise.
21033         (vqdmlsls_lane_s32): Likewise.
21034         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
21035         (vqdmulls_lane_s32): Likewise.
21036         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
21037         (vqdmlsl_lane_s32): Likewise.
21038         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
21039         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
21040         (vqrdmulhh_lane_s16): Likewise.
21041         (vqdmlsl_high_lane_s16): Likewise.
21042         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
21043         (vqdmlsl_high_lane_s32): Likewise.
21044         (vqrdmulhs_lane_s32): Likewise.
21045
21046 2014-06-20  Tom de Vries  <tom@codesourcery.com>
21047
21048         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
21049         get_call_reg_set_usage.
21050
21051 2014-06-20  Tom de Vries  <tom@codesourcery.com>
21052
21053         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
21054         it contains all call_used_regs.
21055
21056 2014-06-20  Tom de Vries  <tom@codesourcery.com>
21057
21058         * final.c (collect_fn_hard_reg_usage): Add and use variable
21059         function_used_regs.
21060
21061 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
21062
21063         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
21064         (set_init_priority, get_init_priority, set_fini_priority,
21065         get_fini_priority): New methods.
21066         * tree.c (init_priority_for_decl): Remove.
21067         (init_ttree): Do not initialize init priority.
21068         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
21069         (decl_priority_info): Remove.
21070         (decl_init_priority_insert): Rewrite.
21071         (decl_fini_priority_insert): Rewrite.
21072         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
21073         tree_priority_map_marked_p): Remove.
21074         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
21075         * lto-streamer-out.c (hash_tree): Do not hash priorities.
21076         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
21077         not output priorities.
21078         (pack_ts_function_decl_value_fields): Likewise.
21079         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
21080         not input priorities.
21081         (unpack_ts_function_decl_value_fields): Likewise.
21082         * symtab.c (symbol_priority_map): Declare.
21083         (init_priority_hash): Declare.
21084         (symtab_unregister_node): Unregister from priority hash, too.
21085         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
21086         New methods.
21087         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
21088         (symbol_priority_info): New function.
21089         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
21090         New methods.
21091         * tree-core.h (tree_priority_map): Remove.
21092
21093 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
21094
21095         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
21096         0xff to uint64_t before shifting it up.
21097
21098 2014-06-20  Julian Brown  <julian@codesourcery.com>
21099             Chung-Lin Tang  <cltang@codesourcery.com>
21100
21101         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
21102         TARGET_THUMB1_ONLY. Add comments.
21103
21104 2014-06-19  Tom de Vries  <tom@codesourcery.com>
21105
21106         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
21107         return type to void.
21108         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
21109
21110 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21111
21112         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
21113         as "move", from depends_on.
21114
21115 2014-06-19  Terry Guo  <terry.guo@arm.com>
21116
21117         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
21118         stage.
21119
21120 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
21121
21122         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
21123         Remove cr5.
21124         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
21125
21126 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
21127
21128         PR target/61550
21129         * config/sh/sh.c (prepare_move_operands): Don't process TLS
21130         addresses here if reload in progress or completed.
21131
21132 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
21133
21134         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
21135         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
21136         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
21137         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
21138         (mips_register_priority): New function that implements the target
21139         hook TARGET_REGISTER_PRIORITY.
21140         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
21141         (mips_lra_p): Likewise for TARGET_LRA_P.
21142         (TARGET_REGISTER_PRIORITY): Define macro.
21143         (TARGET_SPILL_CLASS): Likewise.
21144         (TARGET_LRA_P): Likewise.
21145         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
21146         classes.
21147         (REG_CLASS_NAMES): Likewise.
21148         (REG_CLASS_CONTENTS): Likewise.
21149         (BASE_REG_CLASS): Use M16_SP_REGS.
21150         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
21151         New set attribute to enable alternatives depending on the register
21152         allocator used.
21153         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
21154         (*lea64): Disable pattern for MIPS16.
21155         * config/mips/mips.opt (mlra): New option.
21156
21157 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
21158
21159         * lra-constraints.c (base_to_reg): New function.
21160         (process_address): Use new function.
21161
21162 2014-06-18  Tom de Vries  <tom@codesourcery.com>
21163
21164         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
21165         * config/aarch64/aarch64.c
21166         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
21167         (aarch64_emit_call_insn): New function.
21168         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
21169         of emit_call_insn.
21170         * config/aarch64/aarch64.md (define_expand "call_internal")
21171         (define_expand "call_value_internal", define_expand "sibcall_internal")
21172         (define_expand "sibcall_value_internal"): New.
21173         (define_expand "call", define_expand "call_value")
21174         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
21175         expand variant and aarch64_emit_call_insn.
21176
21177 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
21178             Tom de Vries  <tom@codesourcery.com>
21179
21180         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
21181         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
21182         Redefine to true.
21183         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
21184         clobbers to CALL_INSN_FUNCTION_USAGE.
21185         (define_expand "sibcall_internal")
21186         (define_expand "sibcall_value_internal"): New.
21187         (define_expand "call", define_expand "call_value"): Add argument to
21188         arm_emit_call_insn.
21189         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
21190         (define_expand "sibcall_value"): Use sibcall_value_internal and
21191         arm_emit_call_insn.
21192
21193 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21194
21195         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
21196
21197 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21198
21199         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
21200         __udivmoddi4.
21201
21202 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21203
21204         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
21205         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
21206         annotations. Fix DWARF information.
21207
21208 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21209
21210         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
21211         __udivmoddi4, and fixups for negative operands.
21212
21213 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21214
21215         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
21216
21217 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21218
21219         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
21220         to __udivmoddi4.
21221
21222 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21223
21224         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
21225         manipulation.
21226
21227 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21228
21229         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
21230         describing register usage on function entry and exit.
21231
21232 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21233
21234         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
21235         (__aeabi_ldivmod): Fix whitespace.
21236
21237 2014-06-18  Andreas Schwab  <schwab@suse.de>
21238
21239         * doc/md.texi (Standard Names): Use @itemx for grouped items.
21240         Remove blank line after @item.
21241
21242 2014-06-18  Richard Henderson  <rth@redhat.com>
21243
21244         PR target/61545
21245         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
21246
21247 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21248
21249         * config/arm/arm.c (neon_vector_mem_operand): Allow register
21250         POST_MODIFY for neon loads and stores.
21251         (arm_print_operand): Output post-index register for neon loads and
21252         stores.
21253
21254 2014-06-18  Richard Biener  <rguenther@suse.de>
21255
21256         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
21257
21258 2014-06-18  Richard Biener  <rguenther@suse.de>
21259
21260         * tree-pass.h (make_pass_dce_loop): Remove.
21261         * passes.def: Replace pass_dce_loop with pass_dce.
21262         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
21263         changed free niter estimates and reset the scev cache.
21264         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
21265         make_pass_dce_loop): Remove.
21266         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
21267         (fini_copy_prop): Return whether something changed.  Always
21268         let substitute_and_fold perform DCE and free niter estimates
21269         and reset the scev cache if so.
21270         (execute_copy_prop): If sth changed schedule cleanup-cfg.
21271         (pass_data_copy_prop): Do not unconditionally schedule
21272         cleanup-cfg or update-ssa.
21273
21274 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
21275
21276         PR tree-optimization/61518
21277         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
21278         reduction var is used in reduction stmt or phi-function only.
21279
21280 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21281
21282         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
21283
21284 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21285
21286         PR tree-optimization/61517
21287         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
21288         whose rhs's first tree is the source expression instead of the
21289         expression itself.
21290         (find_bswap_or_nop): Likewise.
21291         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
21292         gimple stmt whose rhs's first tree is the source. In the memory source
21293         case, move the stmt to be replaced close to one of the original load to
21294         avoid the problem of a store between the load and the stmt's original
21295         location.
21296         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
21297         signature.
21298
21299 2014-06-18  Andreas Schwab  <schwab@suse.de>
21300
21301         PR rtl-optimization/54555
21302         * postreload.c (move2add_use_add2_insn): Substitute
21303         STRICT_LOW_PART only if it is cheaper.
21304
21305 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
21306
21307         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
21308         Do not use unspec as call operand.  Use memory_operand instead of
21309         memory_nox32_operand and add "m" operand constraint.  Disable
21310         pattern for TARGET_X32.
21311         (*sibcall_pop_memory): Ditto.
21312         (*sibcall_value_memory): Ditto.
21313         (*sibcall_value_pop_memory): Ditto.
21314         (sibcall peepholes): Merge SImode and DImode patterns using
21315         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
21316         Disable pattern for TARGET_X32.  Check if eliminated register is
21317         really dead after call insn.  Generate call RTX without unspec operand.
21318         (sibcall_value peepholes): Ditto.
21319         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
21320         instead of memory_nox32_operand.  Check if eliminated register is
21321         really dead after call insn. Generate call RTX without unspec operand.
21322         (sibcall_value_pop peepholes): Ditto.
21323         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
21324
21325 2014-06-18  Terry Guo  <terry.guo@arm.com>
21326
21327         PR target/61544
21328         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
21329         reach the head.
21330
21331 2014-06-18  Olivier Hainque  <hainque@adacore.com>
21332
21333         * tree-core.h (tree_block): Add an "end_locus" field, allowing
21334         memorization of the end of block source location.
21335         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
21336         * gimplify.c (gimplify_bind_expr): Propagate the block start and
21337         end source location info we have on the block entry/exit code we
21338         generate.
21339
21340 2014-06-18  Richard Biener  <rguenther@suse.de>
21341
21342         * common.opt (fssa-phiopt): New option.
21343         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
21344         but not with -Og.
21345         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
21346         * doc/invoke.texi (-fssa-phiopt): Document.
21347
21348 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21349
21350         * genattrtab.c (n_bypassed): New variable.
21351         (process_bypasses): Initialise n_bypassed.
21352         Count number of bypassed reservations.
21353         (make_automaton_attrs): Allocate space for bypassed reservations
21354         rather than number of bypasses.
21355
21356 2014-06-18  Richard Biener  <rguenther@suse.de>
21357
21358         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
21359         we propagated anything.
21360         (substitute_and_fold_dom_walker::before_dom_children): Something
21361         changed if we propagated into PHI arguments.
21362         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
21363         we removed a stmt.
21364
21365 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
21366
21367         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
21368         vector case.
21369         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
21370         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
21371         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
21372         Introduces alternative way of loads group permutaions.
21373         (vect_transform_grouped_load): Try alternative way of permutations.
21374
21375 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
21376
21377         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
21378         changed in ORT_TARGET region, don't jump to do_outer.
21379         (struct gimplify_adjust_omp_clauses_data): New type.
21380         (gimplify_adjust_omp_clauses_1): Adjust for data being
21381         a struct gimplify_adjust_omp_clauses_data pointer instead
21382         of tree *.  Pass pre_p as a new argument to
21383         lang_hooks.decls.omp_finish_clause hook.
21384         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
21385         splay_tree_foreach to pass both list_p and pre_p.
21386         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
21387         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
21388         gimplify_adjust_omp_clauses callers.
21389         * langhooks.c (lhd_omp_finish_clause): New function.
21390         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
21391         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
21392         * langhooks.h (struct lang_hooks_for_decls): Add a new
21393         gimple_seq * argument to omp_finish_clause hook.
21394         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
21395         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
21396         (scan_omp_parallel, lower_omp_for): When adding
21397         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
21398         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
21399         * tree-nested.c (convert_nonlocal_omp_clauses,
21400         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
21401         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
21402
21403 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
21404
21405         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
21406         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
21407
21408 2014-06-17  Xinliang David Li  <davidxl@google.com>
21409
21410         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
21411         * passes.c (pass_init_dump_file): Do not set initialize
21412         flag to false unconditionally.
21413
21414 2014-06-17  Richard Biener  <rguenther@suse.de>
21415
21416         * genopinit.c (main): Use vec<>::qsort method.
21417         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
21418         Likewise.
21419         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
21420
21421 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
21422
21423         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
21424         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
21425         (mips_move_to_gpr_cost): Remove ST_REGS case.
21426         (mips_move_from_gpr_cost): Likewise.
21427         (mips_register_move_cost): Likewise.
21428         (mips_secondary_reload_class): Likewise.
21429
21430 2014-06-17  Richard Biener  <rguenther@suse.de>
21431
21432         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
21433         (pass_all_optimizations): Move 3rd copy-prop pass from after
21434         fre to before ifcombine/phiopt.
21435
21436 2014-06-17  Richard Biener  <rguenther@suse.de>
21437
21438         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
21439         and allow all blocks to be forwarders.
21440
21441 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
21442
21443         PR target/61483
21444         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
21445         variable 'size'; calculate 'size' right in the front; use
21446         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
21447         pcum->aapcs_stack_words.
21448
21449 2014-06-17  Nick Clifton  <nickc@redhat.com>
21450
21451         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
21452         (umulhi3, mulsidi3, umulsidi3): Likewise.
21453
21454 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
21455
21456         PR middle-end/61508
21457         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
21458         check for section name.
21459
21460 2014-06-17  Richard Biener  <rguenther@suse.de>
21461
21462         * tree-ssa-propagate.c: Include domwalk.h.
21463         (substitute_and_fold): Outline main worker into a domwalker ...
21464         (substitute_and_fold_dom_walker::before_dom_children): ... here.
21465         Schedule stmts we can fully propagate for removal.  Remove
21466         poor-mans DCE.
21467         (substitute_and_fold): Apply a dominator walk to perform
21468         substitution.  Process stmts scheduled for removal here.
21469
21470 2014-06-17  Richard Biener  <rguenther@suse.de>
21471
21472         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
21473         of PHI node moving.
21474
21475 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
21476
21477         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
21478         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
21479         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
21480         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
21481         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
21482         TARGET_HARD_FLOAT.
21483         (get_fpscr) : Likewise.
21484
21485 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
21486
21487         PR rtl-optimization/61325
21488         * lra-constraints.c (valid_address_p): Add forward declaration.
21489         (simplify_operand_subreg): Check address validity before and after
21490         alter_reg of memory subreg.
21491
21492 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
21493
21494         * config/i386/i386.c (decide_alg): Correctly handle
21495         maximum size of stringop algorithm.
21496
21497 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
21498
21499         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
21500
21501 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
21502
21503         PR rtl-optimization/61522
21504         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
21505
21506 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
21507
21508         Revert:
21509         * symtab.c (symtab_node::reset_section): New method.
21510         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
21511         for localization.
21512         * cgraph.h (reset_section): Declare.
21513         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
21514         do not consider comdat locals.
21515         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
21516         for new symbol.
21517         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
21518         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
21519         reset sections of symbols dragged out of the comdats.
21520         (function_and_variable_visibility): Reset sections of
21521         localized symbols.
21522
21523 2014-06-16  Richard Biener  <rguenther@suse.de>
21524
21525         PR tree-optimization/61482
21526         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
21527         [-INF(OVF), +INF(OVF)] range.
21528
21529 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
21530
21531         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
21532         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
21533         handling 32-bit multiplication.
21534
21535 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
21536
21537         PR middle-end/61430
21538         * lra-lives.c (process_bb_lives): Skip creating copy during
21539         insn scan when src/dest has constrained to same regno.
21540
21541 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
21542
21543         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
21544         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
21545
21546 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
21547
21548         * asan.c (check_func): New function.
21549         (maybe_create_ssa_name): Likewise.
21550         (build_check_stmt_with_calls): Likewise.
21551         (use_calls_p): Likewise.
21552         (report_error_func): Change interface.
21553         (build_check_stmt): Allow non-integer lengths; add support
21554         for new parameter.
21555         (asan_instrument): Likewise.
21556         (instrument_mem_region_access): Moved code to build_check_stmt.
21557         (instrument_derefs): Likewise.
21558         (instrument_strlen_call): Likewise.
21559         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
21560         * doc/invoke.texi: Describe new parameter.
21561         * params.def: Define new parameter.
21562         * params.h: Likewise.
21563         * sanitizer.def: Describe new builtins.
21564
21565 2014-06-16  Richard Biener  <rguenther@suse.de>
21566
21567         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
21568         Make all defs available at the end.
21569         (eliminate): If we remove a PHI node schedule cfg-cleanup.
21570
21571 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
21572
21573         PR plugins/45078
21574         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
21575
21576 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
21577
21578         PR bootstrap/61516
21579         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
21580         initialization.  Replace remaining use of uid.
21581
21582 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
21583
21584         * c-family/c-common.c (handle_tls_model_attribute): Use
21585         set_decl_tls_model.
21586         * c-family/c-common.c (handle_tls_model_attribute): Use
21587         set_decl_tls_model.
21588         * cgraph.h (struct varpool_node): Add tls_model.
21589         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
21590         * tree.h (DECL_TLS_MODEL): Update.
21591         (DECL_THREAD_LOCAL_P): Check that variable is static.
21592         (decl_tls_model): Declare.
21593         (set_decl_tls_model): Declare.
21594         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
21595         set symbol prorperties.
21596         (get_emutls_init_templ_addr): Cleanup.
21597         (new_emutls_decl): Update.
21598         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
21599         (lto_input_varpool_node): Likewise.
21600         * lto-streamer-out.c (hash_tree): Likewise.
21601         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
21602         not stream DECL_TLS_MODEL.
21603         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
21604         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
21605
21606 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21607
21608         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
21609
21610 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21611
21612         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
21613         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
21614         lists.
21615         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
21616         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
21617         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
21618         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
21619         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
21620         (df_get_artificial_defs, df_get_artificial_uses)
21621         (df_single_def, df_single_use): Update accordingly.
21622         (df_refs_chain_dump): Take the first element in a linked list as
21623         parameter, rather than a pointer to an array of pointers.
21624         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
21625         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
21626         (df_chain_create_bb_process_use): Likewise.
21627         (df_md_bb_local_compute_process_def): Likewise.
21628         * fwprop.c (process_defs, process_uses): Likewise.
21629         (register_active_defs, update_uses): Likewise.
21630         (forward_propagate_asm): Update for new df_ref linking.
21631         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
21632         (df_null_ref_rec, df_null_mw_rec): Likewise.
21633         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
21634         explicitly.
21635         (df_scan_free_bb_info): Remove check for null artificial_defs.
21636         (df_install_ref_incremental): Adjust for new df_ref linking.
21637         Use a single-element insertion rather than a full sort.
21638         (df_ref_chain_delete_du_chain): Take the first element
21639         in a linked list as parameter, rather than a pointer to an array of
21640         pointers.
21641         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
21642         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
21643         (df_insn_info_delete): Remove check for null defs and call to
21644         df_scan_free_mws_vec.
21645         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
21646         null rather than df_null_*_rec.
21647         (df_insn_rescan_debug_internal): Likewise, and update null
21648         checks in the same way.  Remove check for null defs.
21649         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
21650         Move a single element rather doing a full sort.
21651         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
21652         linking.
21653         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
21654         Initialize df_ref and df_mw_hardreg lists to null rather than
21655         df_null_*_rec.
21656         (df_ref_compare): Take df_refs as parameter, transferring the
21657         old interface to...
21658         (df_ref_ptr_compare): ...this new function.
21659         (df_sort_and_compress_refs): Update accordingly.
21660         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
21661         old interface to...
21662         (df_mw_ptr_compare): ...this new function.
21663         (df_sort_and_compress_mws): Update accordingly.
21664         (df_install_refs, df_install_mws): Return a linked list rather than
21665         an array of pointers.
21666         (df_refs_add_to_chains): Assert that old lists are empty rather
21667         than freeing them.
21668         (df_insn_refs_verify): Don't handle null defs speciailly.
21669         * web.c (union_match_dups): Update for new df_ref linking.
21670
21671 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21672
21673         * df.h (df_ref_create, df_ref_remove): Delete.
21674         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
21675         (df_ref_remove): Likewise.
21676
21677 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21678
21679         * df.h (df_single_def, df_single_use): New functions.
21680         * ira.c (find_moveable_pseudos): Use them.
21681
21682 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21683
21684         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
21685         * df-problems.c (df_note_bb_compute): Use it.
21686         * regstat.c (regstat_bb_compute_ri): Likewise.
21687
21688 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21689
21690         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
21691         * cse.c (cse_extended_basic_block): Use them.
21692         * dce.c (mark_artificial_use): Likewise.
21693         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
21694         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
21695         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
21696         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
21697         (df_simulate_initialize_backwards): Likewise.
21698         (df_simulate_finalize_backwards): Likewise.
21699         (df_simulate_initialize_forwards): Likewise.
21700         (df_md_simulate_artificial_defs_at_top): Likewise.
21701         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
21702         * regrename.c (init_rename_info): Likewise.
21703         * regstat.c (regstat_bb_compute_ri): Likewise.
21704         (regstat_bb_compute_calls_crossed): Likewise.
21705
21706 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21707
21708         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
21709         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
21710         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
21711         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
21712         * combine.c (create_log_links): Likewise.
21713         * compare-elim.c (find_flags_uses_in_insn): Likewise.
21714         (try_eliminate_compare): Likewise.
21715         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
21716         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
21717         (remove_reg_equal_equiv_notes_for_defs): Likewise.
21718         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
21719         (word_dce_process_block, dce_process_block): Likewise.
21720         * ddg.c (def_has_ccmode_p): Likewise.
21721         * df-core.c (df_bb_regno_first_def_find): Likewise.
21722         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
21723         * df-problems.c (df_rd_simulate_one_insn): Likewise.
21724         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
21725         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
21726         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
21727         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
21728         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
21729         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
21730         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
21731         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
21732         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
21733         * fwprop.c (local_ref_killed_between_p): Likewise.
21734         (all_uses_available_at, free_load_extend): Likewise.
21735         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
21736         * hw-doloop.c (scan_loop): Likewise.
21737         * ifcvt.c (dead_or_predicable): Likewise.
21738         * init-regs.c (initialize_uninitialized_regs): Likewise.
21739         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
21740         (process_bb_node_lives): Likewise.
21741         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
21742         (find_moveable_pseudos): Likewise.
21743         * loop-invariant.c (check_dependencies, record_uses): Likewise.
21744         * recog.c (peep2_find_free_register): Likewise.
21745         * ree.c (get_defs): Likewise.
21746         * regstat.c (regstat_bb_compute_ri): Likewise.
21747         (regstat_bb_compute_calls_crossed): Likewise.
21748         * sched-deps.c (find_inc, find_mem): Likewise.
21749         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
21750         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
21751         * shrink-wrap.c (requires_stack_frame_p): Likewise.
21752         (prepare_shrink_wrap): Likewise.
21753         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
21754         * web.c (union_defs, pass_web::execute): Likewise.
21755         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
21756         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
21757
21758 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
21759
21760         * lra-assign.c (assign_by_spills): Add code to assign vector regs
21761         to inheritance pseudos.
21762         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
21763
21764 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
21765
21766         PR target/61415
21767         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
21768         (BU_MISC_2): Rename to ...
21769         (BU_LDBL128_2): ... this.
21770         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
21771         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
21772         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
21773         RS6000_BTM_LDBL128.
21774         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
21775         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
21776         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
21777         (unpacktf_1): Likewise.
21778         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
21779         (__builtin_longdouble_dw1): Likewise.
21780         * doc/sourcebuild.texi (longdouble128): Document.
21781
21782 2014-06-13  Jeff Law  <law@redhat.com>
21783
21784         PR rtl-optimization/61094
21785         PR rtl-optimization/61446
21786         * ree.c (combine_reaching_defs): Get the mode for the copy from
21787         the extension insn rather than the defining insn.
21788
21789 2014-06-13  Dehao Chen  <dehao@google.com>
21790
21791         * dwarf2out.c (add_linkage_name): Emit more linkage name.
21792
21793 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
21794
21795         * doc/install.texi (--enable-linker-plugin-configure-flags)
21796         (--enable-linker-plugin-flags): Document new flags.
21797
21798 2014-06-13  Martin Jambor  <mjambor@suse.cz>
21799
21800         PR ipa/61186
21801         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
21802         cache_token if returning early.
21803
21804 2014-06-13  Nick Clifton  <nickc@redhat.com>
21805
21806         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
21807         requested alignment is active.
21808         (LABEL_ALIGN): Likewise.
21809         (LOOP_ALIGN): Likewise.
21810
21811 2014-06-13  Richard Biener  <rguenther@suse.de>
21812
21813         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
21814         Rewrite to propagate the VN result into all uses where
21815         possible and to remove stmts becoming dead because of that.
21816         (eliminate): Generalize stmt removal handling, remove in
21817         reverse dominator order to support proper debug stmt
21818         generation.  Update stmts before removing stmts.
21819         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
21820
21821 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21822
21823         PR tree-optimization/61375
21824         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
21825         symbolic number cannot be represented in an uint64_t.
21826         (find_bswap_or_nop_1): Likewise.
21827
21828 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
21829
21830         * symtab.c (symtab_node::reset_section): New method.
21831         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
21832         for localization.
21833         * cgraph.h (reset_section): Declare.
21834         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
21835         do not consider comdat locals.
21836         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
21837         for new symbol.
21838         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
21839         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
21840         reset sections of symbols dragged out of the comdats.
21841         (function_and_variable_visibility): Reset sections of
21842         localized symbols.
21843
21844 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
21845
21846         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
21847         to use symtab and decl_binds_to_current_def_p
21848         * tree-vectorizer.c (increase_alignment): Increase alignment
21849         of alias target, too.
21850
21851 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
21852
21853         PR middle-end/61486
21854         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
21855         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
21856         if outer combined construct is distribute.
21857         (gimplify_omp_for): For OMP_DISTRIBUTE set
21858         gimplify_omp_ctxp->distribute.
21859         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
21860         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
21861         mapping into decl map.
21862
21863 2014-06-12  Jason Merrill  <jason@redhat.com>
21864
21865         * common.opt (fabi-version): Change default to 0.
21866
21867 2014-06-12  Jason Merrill  <jason@redhat.com>
21868
21869         * toplev.c (process_options): Reject -fabi-version=1.
21870
21871 2014-06-12  Jeff Law  <law@redhat.com>
21872
21873         PR tree-optimization/61009
21874         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
21875         value when we stop processing a block due to problematic PHIs.
21876
21877 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
21878
21879         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
21880         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
21881         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
21882         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
21883         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
21884         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
21885         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
21886         are not in the spec.
21887
21888 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
21889
21890         PR target/59843
21891         * config/aarch64/aarch64-modes.def: Add V1DFmode.
21892         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
21893         Support V1DFmode.
21894
21895 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
21896
21897         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
21898
21899 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
21900
21901         PR target/61443
21902         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
21903         loading from address spaces.
21904
21905 2014-06-12  Martin Liska  <mliska@suse.cz>
21906
21907         PR ipa/61462
21908         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
21909         statement is reachable.
21910
21911 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
21912
21913         * symtab.c (section_hash): New hash.
21914         (symtab_unregister_node): Clear section before freeing.
21915         (hash_section_hash_entry): New haser.
21916         (eq_sections): New function.
21917         (symtab_node::set_section_for_node): New method.
21918         (set_section_1): Update.
21919         (symtab_node::set_section): Take string instead of tree as parameter.
21920         (symtab_resolve_alias): Update.
21921         * cgraph.h (section_hash_entry_d): New structure.
21922         (section_hash_entry): New typedef.
21923         (cgraph_node): Change comdat_group_ to x_comdat_group,
21924         change section_ to x_section and turn into section_hash_entry;
21925         update accestors; put set_section_for_node offline.
21926         * tree.c (decl_section_name): Turn into string.
21927         (set_decl_section_name): Change parameter to be string.
21928         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
21929         * sdbout.c (sdbout_one_type): Update.
21930         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
21931         * varasm.c (IN_NAMED_SECTION, get_named_section,
21932         resolve_unique_section, hot_function_section, get_named_text_section,
21933         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
21934         make_decl_rtl, default_unique_section): Update.
21935         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
21936         (c6x_elf_unique_section): Update.
21937         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
21938         * config/pa/pa.c (pa_function_section): Update.
21939         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
21940         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
21941         * config/arc/arc.c (arc_in_small_data_p): Update.
21942         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
21943         * config/mcore/mcore.c (mcore_unique_section): Update.
21944         * config/mips/mips.c (mips16_build_function_stub): Update.
21945         (mips16_build_call_stub): Update.
21946         (mips_function_rodata_section): Update.
21947         (mips_in_small_data_p): Update.
21948         * config/score/score.c (score_in_small_data_p): Update.
21949         * config/rx/rx.c (rx_in_small_data): Update.
21950         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
21951         (rs6000_xcoff_asm_named_section): Update.
21952         (rs6000_xcoff_unique_section): Update.
21953         * config/frv/frv.c (frv_string_begins_with): Update.
21954         (frv_in_small_data_p): Update.
21955         * config/v850/v850.c (v850_encode_data_area): Update.
21956         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
21957         (bfin_handle_l1_data_attribute): Update.
21958         (bfin_handle_l2_attribute): Update.
21959         * config/mep/mep.c (mep_unique_section): Update.
21960         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
21961         Update.
21962         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
21963         (h8300_handle_tiny_data_attribute): Update.
21964         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
21965         (m32r_in_small_data_p): Update.
21966         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
21967         * config/i386/i386.c (ix86_in_large_data_p): Update.
21968         * config/i386/winnt.c (i386_pe_unique_section): Update.
21969         * config/darwin.c (darwin_function_section): Update.
21970         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
21971         * tree-emutls.c (get_emutls_init_templ_addr): Update.
21972         (new_emutls_decl): Update.
21973         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
21974         input_varpool_node): Update.
21975         (ead_string_cst): Turn to ...
21976         (read_string): ... this one.
21977         * dwarf2out.c (secname_for_decl): Update.
21978         * asan.c (asan_protect_global): Update.
21979
21980 2014-06-11  DJ Delorie  <dj@redhat.com>
21981
21982         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
21983         cache lines.
21984         * config/rx/rx.c (rx_option_override): Likewise.
21985         (rx_align_for_label): Likewise.
21986
21987         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
21988
21989 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
21990
21991         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
21992         prototype.
21993
21994 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21995
21996         * common.md: New file.
21997         * doc/md.texi: Update description of generic, machine-independent
21998         constraints.
21999         * config/s390/constraints.md (e): Delete.
22000         * Makefile.in (md_file): Include common.md.
22001         * config/m32c/t-m32c (md_file): Likewise.
22002         * genpreds.c (general_mem): New array.
22003         (generic_constraint_letters): Remove constraints now defined by
22004         common.md.
22005         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
22006         Allow the first character to be '<' or '>' as well.
22007         * genoutput.c (general_mem): New array.
22008         (indep_constraints): Remove constraints now defined by common.md.
22009         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
22010         Remove special handling of 'm'.
22011         * ira-costs.c (record_reg_classes): Remove special handling of
22012         constraints now defined by common.md.
22013         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
22014         * ira-lives.c (single_reg_class): Likewise.
22015         (ira_implicitly_set_insn_hard_regs): Likewise.
22016         * lra-constraints.c (reg_class_from_constraints): Likewise.
22017         (process_alt_operands, process_address, curr_insn_transform): Likewise.
22018         * postreload.c (reload_cse_simplify_operands): Likewise.
22019         * reload.c (push_secondary_reload, scratch_reload_class)
22020         (find_reloads, alternative_allows_const_pool_ref): Likewise.
22021         * reload1.c (maybe_fix_stack_asms): Likewise.
22022         * targhooks.c (default_secondary_reload): Likewise.
22023         * stmt.c (parse_output_constraint): Likewise.
22024         * recog.c (preprocess_constraints): Likewise.
22025         (constrain_operands, peep2_find_free_register): Likewise.
22026         (asm_operand_ok): Likewise, but add a comment saying why 'o'
22027         must be handled specially.
22028
22029 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
22030
22031         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
22032         * genpreds.c (have_const_dbl_constraints): Delete.
22033         (add_constraint): Don't set it.
22034         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
22035         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
22036         constraints using the lookup_constraint logic.
22037         * ira-lives.c (single_reg_class): Likewise.
22038         * ira.c (ira_setup_alts): Likewise.
22039         * lra-constraints.c (process_alt_operands): Likewise.
22040         * recog.c (asm_operand_ok, constrain_operands): Likewise.
22041         * reload.c (find_reloads): Likewise.
22042
22043 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
22044
22045         * genpreds.c (const_int_start, const_int_end): New variables.
22046         (choose_enum_order): Output CONST_INT constraints before memory
22047         constraints.
22048         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
22049         Add CT_CONST_INT.
22050         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
22051         * ira.c (ira_setup_alts): Likewise.
22052         * lra-constraints.c (process_alt_operands): Likewise.
22053         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
22054         * reload.c (find_reloads): Likewise.
22055
22056 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
22057
22058         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
22059         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
22060         * recog.c (preprocess_constraints): Update accordingly.
22061
22062 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
22063
22064         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
22065         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
22066         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
22067         * genpreds.c (print_type_tree): New function.
22068         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
22069         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
22070         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
22071         Write out enum constraint_type and get_constraint_type.
22072         * lra-constraints.c (satisfies_memory_constraint_p): Take a
22073         constraint_num rather than a constraint string.
22074         (satisfies_address_constraint_p): Likewise.
22075         (reg_class_from_constraints): Avoid old constraint macros.
22076         (process_alt_operands, process_address_1): Likewise.
22077         (curr_insn_transform): Likewise.
22078         * ira-costs.c (record_reg_classes): Likewise.
22079         (record_operand_costs): Likewise.
22080         * ira-lives.c (single_reg_class): Likewise.
22081         (ira_implicitly_set_insn_hard_regs): Likewise.
22082         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
22083         * postreload.c (reload_cse_simplify_operands): Likewise.
22084         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
22085         (constrain_operands, peep2_find_free_register): Likewise.
22086         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
22087         (find_reloads, alternative_allows_const_pool_ref): Likewise.
22088         * reload1.c (maybe_fix_stack_asms): Likewise.
22089         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
22090         * targhooks.c (default_secondary_reload): Likewise.
22091         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
22092         to EXTRA_CONSTRAINT_STR.
22093         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
22094
22095 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
22096
22097         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
22098         (write_constraint_satisfied_p_array): ...this new function.
22099         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
22100         an array.
22101         (write_insn_preds_c): Update accordingly.
22102
22103 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
22104
22105         * genpreds.c (write_lookup_constraint): Rename to...
22106         (write_lookup_constraint_1): ...this.
22107         (write_lookup_constraint_array): New function.
22108         (write_tm_preds_h): Define lookup_constraint as an inline function
22109         that uses write_lookup_constraint_array where possible.
22110         (write_insn_preds_c): Update for the changes above.
22111
22112 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
22113
22114         * doc/md.texi (regclass_for_constraint): Rename to...
22115         (reg_class_for_constraint): ...this.
22116         * genpreds.c (num_constraints, enum_order, register_start)
22117         (register_end, satisfied_start, memory_start, memory_end)
22118         (address_start, address_end): New variables.
22119         (add_constraint): Count the number of constraints.
22120         (choose_enum_order): New function.
22121         (write_enum_constraint_num): Iterate over enum_order.
22122         (write_regclass_for_constraint): Rename to...
22123         (write_reg_class_for_constraint_1): ...this and update output
22124         accordingly.
22125         (write_constraint_satisfied_p): Rename to...
22126         (write_constraint_satisfied_p_1): ...this and update output
22127         accordingly.  Do nothing if all extra constraints are register
22128         constraints.
22129         (write_insn_extra_memory_constraint): Delete.
22130         (write_insn_extra_address_constraint): Delete.
22131         (write_range_function): New function.
22132         (write_tm_preds_h): Define constraint_satisfied_p and
22133         reg_class_for_constraint as inline functions that do a range check
22134         before calling the out-of-line function.  Use write_range_function
22135         to implement insn_extra_{register,memory,address}_constraint,
22136         the first of which is new.
22137         (write_insn_preds_c): Update after above changes to write_* functions.
22138         (main): Call choose_enum_order.
22139
22140 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22141
22142         PR tree-optimization/61306
22143         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
22144         expression instead of its size.
22145         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
22146         false to prevent optimization when the result is unpredictable due to
22147         arithmetic right shift of signed type with highest byte is set.
22148         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
22149         (init_symbolic_number): Likewise.
22150         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
22151         when the result is unpredictable due to sign extension.
22152
22153 2014-06-11  Terry Guo  <terry.guo@arm.com>
22154
22155         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
22156         (*thumb1_addsi3): Ditto.
22157         (*thumb_subdi3): Ditto.
22158         (thumb1_subsi3_insn): Ditto.
22159         (*thumb_mulsi3): Ditto.
22160         (*thumb_mulsi3_v6): Ditto.
22161         (*thumb1_andsi3_insn): Ditto.
22162         (thumb1_bicsi3): Ditto.
22163         (*thumb1_iorsi3_insn): Ditto.
22164         (*thumb1_xorsi3_insn): Ditto.
22165         (*thumb1_ashlsi3): Ditto.
22166         (*thumb1_ashrsi3): Ditto.
22167         (*thumb1_lshrsi3): Ditto.
22168         (*thumb1_rotrsi3): Ditto.
22169         (*thumb1_negdi2): Ditto.
22170         (*thumb1_negsi2): Ditto.
22171         (*thumb1_abssi2): Ditto.
22172         (*thumb1_neg_abssi2): Ditto.
22173         (*thumb1_one_cmplsi2): Ditto.
22174         (*thumb1_zero_extendhisi2): Ditto.
22175         (*thumb1_zero_extendqisi2): Ditto.
22176         (*thumb1_zero_extendqisi2_v6): Ditto.
22177         (thumb1_extendhisi2): Ditto.
22178         (thumb1_extendqisi2): Ditto.
22179         (*thumb1_movdi_insn): Ditto.
22180         (*thumb1_movsi_insn): Ditto.
22181         (*thumb1_movhi_insn): Ditto.
22182         (thumb_movhi_clobber): Ditto.
22183         (*thumb1_movqi_insn): Ditto.
22184         (*thumb1_movhf): Ditto.
22185         (*thumb1_movsf_insn): Ditto.
22186         (*thumb_movdf_insn): Ditto.
22187         (movmem12b): Ditto.
22188         (movmem8b): Ditto.
22189         (cbranchqi4): Ditto.
22190         (cbranchsi4_insn): Ditto.
22191         (cbranchsi4_scratch): Ditto.
22192         (*negated_cbranchsi4): Ditto.
22193         (*tbit_cbranch): Ditto.
22194         (*tlobits_cbranch): Ditto.
22195         (*tstsi3_cbranch): Ditto.
22196         (*cbranchne_decr1): Ditto.
22197         (*addsi3_cbranch): Ditto.
22198         (*addsi3_cbranch_scratch): Ditto.
22199         (*thumb_cmpdi_zero): Ditto.
22200         (cstoresi_eq0_thumb1): Ditto.
22201         (cstoresi_ne0_thumb1): Ditto.
22202         (*cstoresi_eq0_thumb1_insn): Ditto.
22203         (*cstoresi_ne0_thumb1_insn): Ditto.
22204         (cstoresi_nltu_thumb1): Ditto.
22205         (cstoresi_ltu_thumb1): Ditto.
22206         (thumb1_addsi3_addgeu): Ditto.
22207         (*thumb_jump): Ditto.
22208         (*call_reg_thumb1_v5): Ditto.
22209         (*call_reg_thumb1): Ditto.
22210         (*call_value_reg_thumb1_v5): Ditto.
22211         (*call_value_reg_thumb1): Ditto.
22212         (*call_insn): Ditto.
22213         (*call_value_insn): Ditto.
22214         (thumb1_casesi_internal_pic): Ditto.
22215         (thumb1_casesi_dispatch): Ditto.
22216         (*thumb1_indirect_jump): Ditto.
22217         (prologue_thumb1_interwork): Ditto.
22218         (*epilogue_insns): Ditto.
22219         (consttable_1): Ditto.
22220         (consttable_2): Ditto.
22221         (tablejump): Ditto.
22222         (*thumb1_tablejump): Ditto.
22223         (thumb_eh_return): Ditto.
22224         (define_peephole2): Two of them are thumb1 only and got moved into
22225         new file thumb1.md.
22226         (define_split): Six of them are thumb1 only and got moved into new
22227         file thumb1.md.
22228         * config/arm/thumb1.md: New file comprised of above thumb1 only
22229         patterns.
22230
22231 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22232
22233         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
22234         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
22235         dependencies.
22236         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
22237         (aarch64_crc_builtin_datum): New struct.
22238         (aarch64_crc_builtin_data): New.
22239         (aarch64_init_crc32_builtins): New function.
22240         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
22241         (aarch64_crc32_expand_builtin): New.
22242         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
22243         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
22244         __ARM_FEATURE_CRC32 when appropriate.
22245         (TARGET_CRC32): Define.
22246         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
22247         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
22248         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
22249         (aarch64_<crc_variant>): New pattern.
22250         * config/aarch64/arm_acle.h: New file.
22251         * config/aarch64/iterators.md (CRC): New int iterator.
22252         (crc_variant, crc_mode): New int attributes.
22253         * doc/aarch64-acle-intrinsics.texi: New file.
22254         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
22255         Include aarch64-acle-intrinsics.texi.
22256
22257 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
22258
22259         * tree-vect-data-refs.c (vect_grouped_store_supported): New
22260         check for stores group of length 3.
22261         (vect_permute_store_chain): New permutations for stores group of
22262         length 3.
22263         * tree-vect-stmts.c (vect_model_store_cost): Change cost
22264         of vec_perm_shuffle for the new permutations.
22265
22266 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
22267
22268         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
22269         table rewriting temporarily on targets not supporting ONE_ONLY.
22270
22271 2014-06-11  Richard Biener  <rguenther@suse.de>
22272
22273         PR middle-end/61437
22274         Revert
22275         2014-06-04  Richard Biener  <rguenther@suse.de>
22276
22277         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
22278         TREE_PUBLIC and DECL_EXTERNAL decls.
22279
22280 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
22281
22282         * varasm.c (set_implicit_section): New function.
22283         (resolve_unique_section): Use it to set implicit section
22284         for aliases, too.
22285         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
22286         (default_function_section): Likewise.
22287         (decl_binds_to_current_def_p): Constify argument.
22288         * varasm.h (decl_binds_to_current_def_p): Update prototype.
22289         * asan.c (asan_protect_global): Use
22290         symtab_get_node (decl)->implicit_section.
22291         * symtab.c (dump_symtab_base): Dump implicit sections.
22292         (verify_symtab_base): Verify sanity of sectoins and comdats.
22293         (symtab_resolve_alias): Alias share the section of its target.
22294         (set_section_1): New function.
22295         (symtab_node::set_section): Move here, recurse to aliases.
22296         (verify_symtab): Check for duplicated symtab lists.
22297         * tree-core.h (implicit_section_name_p): Remove.
22298         * tree-vect-data-refs.c: Include varasm.h.
22299         (vect_can_force_dr_alignment_p): Fix conditional on when
22300         decl bints to current definition; use
22301         symtab_get_node (decl)->implicit_section.
22302         * cgraph.c (cgraph_make_node_local_1): Fix section set.
22303         * cgraph.h (struct symtab_node): Add implicit_section.
22304         (set_section): Rename to ...
22305         (set_section_for_node): ... this one.
22306         (set_section): Declare.
22307         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
22308         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
22309         input_overwrite_node, input_varpool_node): Stream implicit_section.
22310         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
22311         removal; it will fail in LTO.
22312
22313 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22314
22315         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
22316         Change second alternative type to f_mcr.
22317         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
22318         and 12th alternatives' types to f_mcr and f_mrc.
22319         (*movdi_aarch64): Same for 12th and 13th alternatives.
22320         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
22321         (aarch64_movtilow_tilow): Change type to fmov.
22322
22323 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
22324
22325         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
22326         (aarch64_save_or_restore_callee_save_registers): Fix layout.
22327
22328 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22329
22330         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
22331         New expander.
22332         (aarch64_sqrdmulh_lane<mode>): Likewise.
22333         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
22334         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
22335         (aarch64_sqdmulh_laneq<mode>): New expander.
22336         (aarch64_sqrdmulh_laneq<mode>): Likewise.
22337         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
22338         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
22339         (aarch64_sqdmulh_lane<mode>): New expander.
22340         (aarch64_sqrdmulh_lane<mode>): Likewise.
22341         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
22342         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
22343         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
22344         (aarch64_sqdmlal_laneq<mode>): Likewise.
22345         (aarch64_sqdmlsl_lane<mode>): Likewise.
22346         (aarch64_sqdmlsl_laneq<mode>): Likewise.
22347         (aarch64_sqdmlal2_lane<mode>): Likewise.
22348         (aarch64_sqdmlal2_laneq<mode>): Likewise.
22349         (aarch64_sqdmlsl2_lane<mode>): Likewise.
22350         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
22351         (aarch64_sqdmull_lane<mode>): Likewise.
22352         (aarch64_sqdmull_laneq<mode>): Likewise.
22353         (aarch64_sqdmull2_lane<mode>): Likewise.
22354         (aarch64_sqdmull2_laneq<mode>): Likewise.
22355
22356 2014-06-10  Richard Biener  <rguenther@suse.de>
22357
22358         PR tree-optimization/61438
22359         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
22360         (eliminate_dom_walker::before_dom_children): Only try to inhibit
22361         insertion of IVs if running PRE.
22362         (eliminate): Adjust.
22363         (pass_pre::execute): Likewise.
22364         (pass_fre::execute): Likewise.
22365
22366 2014-06-10  Richard Biener  <rguenther@suse.de>
22367
22368         PR middle-end/61456
22369         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
22370         Do not use the main variant for the type comparison.
22371         (ncr_compar): Likewise.
22372         (nonoverlapping_component_refs_p): Likewise.
22373
22374 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22375
22376         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
22377         REG_CFA_RESTORE mode.
22378
22379 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
22380
22381         * config/i386/i386.c (expand_vec_perm_pblendv): New.
22382         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
22383         expand_vec_perm_pblendv.
22384
22385 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22386
22387         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
22388         available.
22389         Simplify description of __crc32d and __crc32cd intrinsics.
22390         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
22391         availability.
22392
22393 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
22394
22395         PR lto/61334
22396         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
22397         * config.in: Regenerate.
22398         * configure: Likewise.
22399
22400 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
22401
22402         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
22403         and public vars.
22404         (intersect_static_var_sets): Remove.
22405         (propagate): Do not prune local statics.
22406
22407 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
22408
22409         PR fortran/60928
22410         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
22411         Set lastprivate_firstprivate even if omp_private_outer_ref
22412         langhook returns true.
22413         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
22414         langhook, call unshare_expr on new_var and call
22415         build_outer_var_ref to get the last argument.
22416
22417 2014-06-10  Marek Polacek  <polacek@redhat.com>
22418
22419         PR c/60988
22420         * doc/extend.texi: Add cindex for transparent_union.
22421
22422 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22423
22424         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
22425         init_symbolic_number ().
22426
22427 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
22428
22429         PR middle-end/61141
22430         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
22431         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
22432         (verify_rtl_sharing): Likewise.
22433
22434 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
22435
22436         PR c++/54442
22437         * tree.c (build_qualified_type): Use a canonical type for
22438         TYPE_CANONICAL.
22439
22440 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22441
22442         * config/arm/arm-modes.def: Remove XFmode.
22443
22444 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
22445
22446         PR target/61062
22447         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
22448         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
22449         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
22450         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
22451         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
22452         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
22453         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
22454         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
22455         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
22456
22457 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
22458
22459         * tree-core.h (tree_decl_with_vis): Remove section_name.
22460
22461 2014-06-09  Kito Cheng  <kito@0xlab.org>
22462
22463         * ira.c (ira): Don't call init_caller_save if LRA enabled
22464         since LRA use its own infrastructure to handle that.
22465
22466 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
22467
22468         * symtab.c (dump_symtab_base): Update dumping.
22469         (symtab_make_decl_local): Clear only DECL_COMDAT.
22470         * tree-vect-data-refs.c (Check that variable is static before
22471         tampering with sections.
22472         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
22473         (cgraph_create_virtual_clone): Likewise.
22474         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
22475         (decl_section_name, set_decl_section_name): New accessors.
22476         (find_decls_types_r): Do not walk section name
22477         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
22478         (decl_comdat_group, decl_comdat_group_id): Constify.
22479         (decl_section_name, set_decl_section_name): Update.
22480         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
22481         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
22482         (cgraph_make_node_local_1): Clear section and comdat group.
22483         * cgraph.h (set_comdat_group): Sanity check.
22484         (get_section, set_section): New.
22485         * ipa-comdats.c (ipa_comdats): Use get_section.
22486         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
22487         * lto-streamer-out.c: Do not follow section names.
22488         * c-family/c-common.c (handle_section_attribute): Update.
22489         * lto-cgraph.c (lto_output_node): Output section.
22490         (lto_output_varpool_node): Likewise.
22491         (read_comdat_group): Rename to ...
22492         (read_identifier): ... this one.
22493         (read_string_cst): New function.
22494         (input_node, input_varpool_node): Input section names.
22495         * tree-emutls.c (get_emutls_init_templ_addr): Update.
22496         (new_emutls_decl): Update.
22497         (secname_for_decl): Check section names only of static vars.
22498         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
22499         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
22500         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
22501         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
22502         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
22503         * config/mcore/mcore.c (mcore_unique_section): Likewise.
22504         * config/mips/mips.c (mips16_build_function_stub): Likewise.
22505         * config/v850/v850.c (v850_insert_attributes): Likewise.
22506         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
22507         Likewise.
22508         (h8300_handle_tiny_data_attribute): Likewise.
22509         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
22510         (bfin_handle_l2_attribute): Likewise.
22511
22512 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
22513
22514         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
22515         remove static initializer.
22516
22517 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
22518
22519         * varasm.c (use_blocks_for_decl_p): Check symbol table
22520         instead of alias attribute.
22521         (place_block_symbol): Recurse on aliases.
22522
22523 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
22524
22525         * ipa-visibility.c: Include varasm.h
22526         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
22527
22528 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
22529
22530         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
22531         outputting aliases.
22532
22533 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
22534
22535         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
22536         from test_insn into GGC space escape via SET_SRC.
22537
22538 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
22539
22540         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
22541         call statement, if any.
22542         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
22543         statements, if any.  Tidy up.
22544
22545 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
22546
22547         PR target/61431
22548         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
22549         iterators, VSX_D that handles 64-bit types, and VSX_LE that
22550         handles swapping the two 64-bit double words on little endian
22551         systems.  Include V1TImode and optionally TImode in VSX_LE so that
22552         these types are properly swapped.  Change all of the insns and
22553         splits that do the 64-bit swaps to use VSX_LE.
22554         (vsx_le_perm_load_<mode>): Likewise.
22555         (vsx_le_perm_store_<mode>): Likewise.
22556         (splitters for little endian memory operations): Likewise.
22557         (vsx_xxpermdi2_le_<mode>): Likewise.
22558         (vsx_lxvd2x2_le_<mode>): Likewise.
22559         (vsx_stxvd2x2_le_<mode>): Likewise.
22560
22561 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
22562
22563         PR target/61423
22564         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
22565         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
22566         and corresponding splitters.  Zero extend general register
22567         or memory input operand to XMM temporary.  Enable for
22568         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
22569         (floatunssi<mode>2): Update expander predicate.
22570
22571 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
22572
22573         PR rtl-optimization/61325
22574         * lra-constraints.c (process_address_1): Check scale equal to one
22575         to prevent transformation: base + scale * index => base + new_reg.
22576
22577 2014-06-06  Richard Biener  <rguenther@suse.de>
22578
22579         PR tree-optimization/59299
22580         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
22581         a def operand.
22582         (nearest_common_dominator_of_uses): Likewise.
22583         (statement_sink_location): Adjust.  Support sinking loads.
22584
22585 2014-06-06  Martin Jambor  <mjambor@suse.cz>
22586
22587         * ipa-prop.c (get_place_in_agg_contents_list): New function.
22588         (build_agg_jump_func_from_list): Likewise.
22589         (determine_known_aggregate_parts): Renamed to
22590         determine_locally_known_aggregate_parts.  Moved some functionality
22591         to the two functions above, removed bound checks.
22592
22593 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
22594
22595         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
22596         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
22597         (aarch64_progress_pointer): Likewise.
22598         (aarch64_copy_one_part_and_move_pointers): Likewise.
22599         (aarch64_expand_movmen): Likewise.
22600         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
22601         * config/aarch64/aarch64.md (movmem<mode>): New.
22602
22603 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
22604
22605         * targhooks.c (default_add_stmt_cost): Call target specific
22606         hook instead of default one.
22607
22608 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22609
22610         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
22611         endianness instead of host endianness.
22612         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
22613         comments.
22614
22615 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
22616
22617         PR debug/53927
22618         * function.c (instantiate_decls): Process the saved static chain.
22619         (expand_function_start): If not optimizing, save the static chain
22620         onto the stack.
22621         * tree-nested.c (convert_all_function_calls): Always create the static
22622         chain for nested functions if not optimizing.
22623
22624 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
22625
22626         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
22627
22628 2014-06-06  Richard Biener  <rguenther@suse.de>
22629
22630         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
22631         (construct_init_block): Likewise.
22632         (construct_exit_block): Likewise.
22633         (pass_expand::execute): Likewise.
22634         * graphite.c (graphite_transforms): Replace check for current_loops
22635         with a check for > 1 loops.
22636         (pass_graphite_transforms::execute): Adjust.
22637         * ipa-split.c (split_function): Remove check for current_loops.
22638         * omp-low.c (expand_parallel_call): Likewise.
22639         (expand_omp_for_init_counts): Likewise.
22640         (extract_omp_for_update_vars): Likewise.
22641         (expand_omp_for_generic): Likewise.
22642         (expand_omp_sections): Likewise.
22643         (expand_omp_target): Likewise.
22644         * tracer.c (tail_duplicate): Likewise.
22645         (pass_tracer::execute): Likewise.
22646         * trans-mem.c (expand_transaction): Likewise.
22647         * tree-complex.c (expand_complex_div_wide): Likewise.
22648         * tree-eh.c (lower_resx): Likewise.
22649         (cleanup_empty_eh_merge_phis): Likewise.
22650         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
22651         current_loops with a check for > 1 loops.
22652         (pass_predcom::execute): Adjust.
22653         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
22654         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
22655         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
22656         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
22657         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
22658         * tree-switch-conversion.c (process_switch): Likewise.
22659         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
22660         * tree-vrp.c (vrp_visit_phi_node): Likewise.
22661         (execute_vrp): Likewise.
22662         * ubsan.c (ubsan_expand_null_ifn): Likewise.
22663
22664 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
22665
22666         * rtl.h (insn_location): Declare.
22667         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
22668         with UNKNOWN_LOCATION.
22669         * emit-rtl.c (insn_location): New function.
22670         * final.c (notice_source_line): Check that the instruction has a
22671         location before retrieving it and use insn_location.
22672         * modulo-sched.c (loop_single_full_bb_p): Likewise.
22673         * print-rtl.c (print_rtx): Likewise.
22674
22675 2014-06-06  Richard Biener  <rguenther@suse.de>
22676
22677         * passes.def: Move 2nd VRP pass before phi-only-cprop.
22678
22679 2014-06-06  Christian Bruel  <christian.bruel@st.com>
22680
22681         PR tree-optimization/43934
22682         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
22683         cost.
22684
22685 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
22686
22687         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
22688         return NO_REGS for extra address and memory constraints.  Handle
22689         operands that match (or are equivalent to something that matches)
22690         extra constant constraints.  Ignore other non-register operands.
22691
22692 2014-06-06  Alan Modra  <amodra@gmail.com>
22693
22694         PR target/61300
22695         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
22696         * doc/tm.texi: Regenerate.
22697         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
22698         Use throughout in place of REG_PARM_STACK_SPACE.
22699         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
22700         "incoming" param.  Pass to rs6000_function_parms_need_stack.
22701         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
22702         prototype_p when incoming.  Use function decl when incoming
22703         to handle K&R style functions.
22704         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
22705         (INCOMING_REG_PARM_STACK_SPACE): Define.
22706
22707 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
22708
22709         PR target/52472
22710         * cfgexpand.c (expand_debug_expr): Use address space of nested
22711         TREE_TYPE for ADDR_EXPR and MEM_REF.
22712
22713 2014-06-05  Jeff Law  <law@redhat.com>
22714
22715         PR tree-optimization/61289
22716         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
22717         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
22718         looking for those which match LHS.  All callers changed.
22719         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
22720         parameters and code which manipulated them.  All callers changed.
22721         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
22722         and DST_MAP parameters.  Simplify invalidation code by just calling
22723         invalidate_equivalences.  All callers changed.
22724         (thread_across_edge): Simplify now that we don't need to maintain
22725         the map of equivalences to invalidate.
22726
22727 2014-06-05  Kai Tietz  <ktietz@redhat.com>
22728             Richard Henderson  <rth@redhat.com>
22729
22730         PR target/46219
22731         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
22732         checking for !TARGET_X32.
22733         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
22734         (sibcall_intern): New define_insn, plus required peepholes.
22735         (sibcall_pop_intern): Likewise.
22736         (sibcall_value_intern): Likewise.
22737         (sibcall_value_pop_intern): Likewise.
22738
22739 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
22740
22741         * tree-inline.c (tree_function_versioning): Check DF info existence
22742         before accessing it.
22743
22744 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22745
22746         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
22747         frame_size.
22748         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
22749         aarch64_frame hard_fp_offset and frame_size.
22750         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
22751         frame_size; remove original_frame_size.
22752         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
22753         (aarch64_initial_elimination_offset): Remove frame_size and
22754         offset.  Use aarch64_frame frame_size.
22755
22756 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22757             Jiong Wang  <jiong.wang@arm.com>
22758             Renlin  <renlin.li@arm.com>
22759
22760         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
22761         initialization of R30 offset.  Update offset.  Iterate core
22762         regisers upto X30.  Remove X29, X30 specific code.
22763
22764 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22765             Jiong Wang  <jiong.wang@arm.com>
22766
22767         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
22768         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
22769         (aarch64_register_saved_on_entry): Adjust test.
22770
22771 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22772
22773         * config/aarch64/aarch64.h (machine_function): Move
22774         saved_varargs_size from here...
22775         (aarch64_frame): ... to here.
22776
22777         * config/aarch64/aarch64.c (aarch64_expand_prologue)
22778         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
22779         (aarch64_initial_elimination_offset)
22780         (aarch64_setup_incoming_varargs): Adjust location of
22781         saved_varargs_size.
22782
22783 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22784
22785         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
22786         layout comment.
22787
22788 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
22789             Prachi Godbole  <Prachi.Godbole@imgtec.com>
22790
22791         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
22792         mips32r5 entry to use PROCESSOR_P5600.
22793         * config/mips/mips-tables.opt: Regenerate.
22794         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
22795         * config/mips/mips.c (mips_fmadd_bypass): New function.
22796         (mips_rtx_cost_data): Add costs for p5600.
22797         (mips_issue_rate): Add support for p5600.
22798         (mips_multipass_dfa_lookahead): Likewise.
22799         * config/mips/mips.h (TUNE_P5600): New define.
22800         (TUNE_MACC_CHAINS): Add TUNE_P5600.
22801         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
22802         * config/mips/mips.md: Include p5600.md.
22803         (processor): Add p5600.
22804         * config/mips/p5600.md: New file.
22805
22806 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
22807
22808         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
22809         * config/i386/predicates.md (palignr_operand): New.
22810         Indicates if permutation is suitable for palignr instruction.
22811
22812 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
22813
22814         PR tree-optimization/61319
22815         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
22816         stmt belongs to loop.
22817
22818 2014-06-05  Richard Biener  <rguenther@suse.de>
22819
22820         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
22821         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
22822         (lookup_tmp_var): Adjust.
22823         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
22824
22825 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22826
22827         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
22828
22829 2014-06-05  Marek Polacek  <polacek@redhat.com>
22830
22831         PR c/49706
22832         * doc/invoke.texi: Document -Wlogical-not-parentheses.
22833
22834 2014-06-04  Tom de Vries  <tom@codesourcery.com>
22835
22836         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
22837         CONST_INT.
22838
22839 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
22840
22841         PR tree-optimization/61385
22842         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
22843
22844 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
22845
22846         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
22847         changed to use fatal_error.
22848         (main): Ensure lto_wrapper_cleanup is run atexit.
22849
22850 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22851
22852         * lra-constraints.c (valid_address_p): Move earlier in file.
22853         (address_eliminator): New structure.
22854         (satisfies_memory_constraint_p): New function.
22855         (satisfies_address_constraint_p): Likewise.
22856         (process_alt_operands, process_address, curr_insn_transform): Use them.
22857
22858 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22859
22860         * lra-int.h (lra_static_insn_data): Make operand_alternative a
22861         const pointer.
22862         (target_lra_int, default_target_lra_int, this_target_lra_int)
22863         (op_alt_data): Delete.
22864         * lra.h (lra_init): Delete.
22865         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
22866         (init_insn_code_data_once): Remove op_alt_data handling.
22867         (finish_insn_code_data_once): Likewise.
22868         (init_op_alt_data): Delete.
22869         (get_static_insn_data): Initialize operand_alternative to null.
22870         (free_insn_recog_data): Cast operand_alternative before freeing it.
22871         (setup_operand_alternative): Take the operand_alternative as
22872         parameter and assume it isn't already cached in the static
22873         insn data.
22874         (lra_set_insn_recog_data): Update accordingly.
22875         (lra_init): Delete.
22876         * ira.c (ira_init): Don't call lra_init.
22877         * target-globals.h (this_target_lra_int): Declare.
22878         (target_globals): Remove lra_int.
22879         (restore_target_globals): Update accordingly.
22880         * target-globals.c: Don't include lra-int.h.
22881         (default_target_globals, save_target_globals): Remove lra_int.
22882
22883 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22884
22885         * recog.h (operand_alternative): Convert reg_class, reject,
22886         matched and matches into bitfields.
22887         (preprocess_constraints): New overload.
22888         (preprocess_insn_constraints): New function.
22889         (preprocess_constraints): Take the insn as parameter.
22890         (recog_op_alt): Change into a pointer.
22891         (target_recog): Add x_op_alt.
22892         * recog.c (asm_op_alt): New variable.
22893         (recog_op_alt): Change into a pointer.
22894         (preprocess_constraints): New overload, replacing the old function
22895         definition with one that doesn't use global state.
22896         (preprocess_insn_constraints): New function.
22897         (preprocess_constraints): Use them.  Take the insn as parameter.
22898         Use asm_op_alt for asms.
22899         (recog_init): Free existing x_op_alt entries.
22900         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
22901         pointer const.
22902         (make_early_clobber_and_input_conflicts): Likewise.
22903         (process_bb_node_lives): Pass the insn to process_constraints.
22904         * reg-stack.c (check_asm_stack_operands): Likewise.
22905         (subst_asm_stack_regs): Likewise.
22906         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
22907         * regrename.c (build_def_use): Likewise.
22908         * sched-deps.c (sched_analyze_insn): Likewise.
22909         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
22910         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
22911         (note_invalid_constants): Likewise.
22912         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22913         (ix86_legitimate_combined_insn): Make operand_alternative pointer
22914         const.
22915
22916 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22917
22918         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
22919         * ira-lives.c (check_and_make_def_conflict): Check for disabled
22920         alternatives.
22921         (make_early_clobber_and_input_conflicts): Likewise.
22922         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22923
22924 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22925
22926         * recog.h (alternative_class): New function.
22927         (which_op_alt): Return a const recog_op_alt.
22928         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
22929         (subst_asm_stack_regs): Likewise.
22930         * config/arm/arm.c (note_invalid_constants): Likewise.
22931         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
22932         the operand_alternative; use alternative class instead.
22933         * sel-sched.c (get_reg_class): Likewise.
22934         * regrename.c (build_def_use): Likewise.
22935         (hide_operands, restore_operands, record_out_operands): Update type
22936         accordingly.
22937
22938 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22939
22940         * recog.h (recog_op_alt): Convert to a flat array.
22941         (which_op_alt): New function.
22942         * recog.c (recog_op_alt): Convert to a flat array.
22943         (preprocess_constraints): Update accordingly, grouping all
22944         operands of the same alternative together, rather than the
22945         other way around.
22946         * ira-lives.c (check_and_make_def_conflict): Likewise.
22947         (make_early_clobber_and_input_conflicts): Likewise.
22948         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22949         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
22950         (subst_asm_stack_regs): Likewise.
22951         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
22952         * regrename.c (hide_operands, record_out_operands): Likewise.
22953         (build_def_use): Likewise.
22954         * sel-sched.c (get_reg_class): Likewise.
22955         * config/arm/arm.c (note_invalid_constants): Likewise.
22956
22957 2014-06-04  Jason Merrill  <jason@redhat.com>
22958
22959         PR c++/51253
22960         PR c++/61382
22961         * gimplify.c (gimplify_arg): Non-static.
22962         * gimplify.h: Declare it.
22963
22964 2014-06-04  Richard Biener  <rguenther@suse.de>
22965
22966         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
22967         TREE_PUBLIC and DECL_EXTERNAL decls.
22968
22969 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
22970
22971         * regcprop.c (copyprop_hardreg_forward_1): Account for
22972         HARD_REGNO_CALL_PART_CLOBBERED.
22973
22974 2014-06-04  Richard Biener  <rguenther@suse.de>
22975
22976         * configure.ac: Check whether the underlying type of int64_t
22977         is long or long long.
22978         * configure: Regenerate.
22979         * config.in: Likewise.
22980         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
22981         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
22982
22983 2014-06-04  Richard Biener  <rguenther@suse.de>
22984
22985         PR tree-optimization/60098
22986         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
22987         we hit a kill.
22988         (dse_optimize_stmt): Simplify, now that we found a kill
22989         earlier.
22990
22991 2014-06-04  Richard Biener  <rguenther@suse.de>
22992
22993         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
22994         of accesses with non-invariant address.
22995
22996 2014-06-04  Martin Liska  <mliska@suse.cz>
22997
22998         * cgraph.h (cgraph_make_wrapper): New function introduced.
22999         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
23000         * ipa-inline.h (inline_analyze_function): The function is global.
23001         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
23002
23003 2014-06-04  Martin Liska  <mliska@suse.cz>
23004
23005         * tree.h (private_lookup_attribute_starting): New function.
23006         (lookup_attribute_starting): Likewise.
23007         * tree.c (private_lookup_attribute_starting): Likewise.
23008
23009 2014-06-04  Martin Liska  <mliska@suse.cz>
23010
23011         * cgraph.h (expand_thunk): New argument added.
23012         (address_taken_from_non_vtable_p): New global function.
23013         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
23014         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
23015         * cgraphunit.c (analyze_function): Likewise.
23016         (assemble_thunks_and_aliases): Argument added to call.
23017         (expand_thunk): New argument forces to produce GIMPLE thunk.
23018
23019 2014-06-04  Martin Liska  <mliska@suse.cz>
23020
23021         * coverage.h (coverage_compute_cfg_checksum): Argument added.
23022         * coverage.c (coverage_compute_cfg_checksum): Likewise.
23023         * profile.c (branch_prob): Likewise.
23024
23025 2014-06-04  Martin Jambor  <mjambor@suse.cz>
23026
23027         PR ipa/61340
23028         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
23029         handler for switch on an ipa_ref_use enum.
23030         * ipa-reference.c (analyze_function): Likewise.
23031
23032 2014-06-04  Kai Tietz  <ktietz@redhat.com>
23033
23034         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
23035         from old call-instruction.
23036
23037 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
23038
23039         * config/aarch64/aarch64.c (aarch64_classify_address)
23040         (aarch64_legitimize_reload_address): Support full addressing modes
23041         for vector modes.
23042         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
23043         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
23044
23045 2014-06-03  Andrew Pinski  <apinski@cavium.com>
23046
23047         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
23048         for OP0.
23049
23050 2014-06-03  Andrew Pinski  <apinski@cavium.com>
23051
23052         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
23053         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
23054
23055 2014-06-03  Kai Tietz  <ktietz@redhat.com>
23056
23057         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
23058         for 64-bit ms-abi.
23059
23060 2014-06-03  Dehao Chen  <dehao@google.com>
23061
23062         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
23063         the same loop.
23064
23065 2014-06-03  Marek Polacek  <polacek@redhat.com>
23066
23067         PR c/60439
23068         * doc/invoke.texi: Document -Wswitch-bool.
23069         * function.c (stack_protect_epilogue): Cast controlling expression of
23070         the switch to int.
23071         * gengtype.c (walk_type): Generate switch expression with its
23072         controlling expression cast to int.
23073
23074 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
23075
23076         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
23077         and attiny841.
23078         * config/avr/avr-tables.opt: Regenerate.
23079         * config/avr/t-multilib: Regenerate.
23080         * doc/avr-mmcu.texi: Regenerate.
23081
23082 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
23083             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
23084
23085         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
23086         (ata6617c, ata664251): Add new avr35 devices.
23087         (ata6612c): Add new avr4 device.
23088         (ata6613c, ata6614q): Add new avr5 devices.
23089         * config/avr/avr-tables.opt: Regenerate.
23090         * config/avr/t-multilib: Regenerate.
23091         * doc/avr-mmcu.texi: Regenerate.
23092
23093 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
23094
23095         * gcc/config/aarch64/aarch64-builtins.c
23096         (aarch64_types_binop_ssu_qualifiers): New static data.
23097         (TYPES_BINOP_SSU): Define.
23098         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
23099         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
23100         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
23101         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
23102         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
23103         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
23104         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
23105         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
23106         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
23107         suffix to builtin function name, remove cast.
23108         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
23109         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
23110         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
23111
23112 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
23113
23114         * gcc/config/aarch64/aarch64-builtins.c
23115         (aarch64_types_binop_uus_qualifiers,
23116         aarch64_types_shift_to_unsigned_qualifiers,
23117         aarch64_types_unsigned_shiftacc_qualifiers): Define.
23118         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
23119         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
23120         sqshlu_n, uqshl_n): Update qualifiers.
23121         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
23122         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
23123         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
23124         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
23125         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
23126         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
23127         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
23128         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
23129         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
23130         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
23131         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
23132         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
23133         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
23134         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
23135         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
23136         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
23137         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
23138         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
23139         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
23140         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
23141         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
23142         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
23143         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
23144         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
23145         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
23146         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
23147         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
23148
23149 2014-06-03  Teresa Johnson  <tejohnson@google.com>
23150
23151         * tree-sra.c (modify_function): Record caller nodes after rebuild.
23152
23153 2014-06-02  Jason Merrill  <jason@redhat.com>
23154
23155         PR c++/61020
23156         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
23157
23158 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
23159
23160         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
23161         location == 0.
23162
23163 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
23164
23165         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
23166         New pattern.
23167         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
23168         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
23169         * config/aarch64/iterators.md (REVERSE): New iterator.
23170         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
23171         (rev_op): New int_attribute.
23172         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
23173         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
23174         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
23175         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
23176         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
23177         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
23178         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
23179         Replace temporary __asm__ with __builtin_shuffle.
23180
23181 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
23182
23183         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
23184         mips64r5.
23185         * config/mips/mips-tables.opt: Regenerate.
23186         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
23187         to use mips_isa_rev rather than ISA_MIPS32R2.
23188         * config/mips/mips.h (ISA_MIPS32R3): New define.
23189         (ISA_MIPS32R5): New define.
23190         (ISA_MIPS64R3): New define.
23191         (ISA_MIPS64R5): New define.
23192         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
23193         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
23194         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
23195         and mips64r5.
23196         (MIPS_ISA_SYNCI_SPEC): Likewise.
23197         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
23198         (LINK_SPEC): Added mips32r3 and mips32r5.
23199         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
23200         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
23201         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
23202         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
23203         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
23204         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
23205         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
23206
23207 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
23208
23209         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
23210         options.
23211         * config/mips/mips.opt (mxpa): New option.
23212         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
23213         assembler.
23214
23215 2014-06-03  Martin Jambor  <mjambor@suse.cz>
23216
23217         PR ipa/61160
23218         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
23219         thunks.
23220
23221 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23222
23223         PR tree-optimization/61328
23224         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
23225         initialization from find_bswap_or_nop_1.
23226         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
23227         in source_expr2 before using the size value the function sets. Also
23228         make use of init_symbolic_number () in both the old place and
23229         find_bswap_or_nop_load () to avoid reading uninitialized memory when
23230         doing recursion in the GIMPLE_BINARY_RHS case.
23231
23232 2014-06-03  Richard Biener  <rguenther@suse.de>
23233
23234         PR tree-optimization/61383
23235         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
23236         stmts can't trap.
23237
23238 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
23239
23240         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
23241         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
23242         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
23243         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
23244         in this file.
23245         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
23246         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
23247         * system.h: ...here and make it unconditional.
23248         * target.def (conditional_register_usage): Mention
23249         define_register_constraint instead of old-style constraint macros.
23250         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
23251         * doc/tm.texi: Regenerate.
23252         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
23253         protected by !USE_MD_CONSTRAINTS.
23254         * config/frv/frv.md: Remove quote from old version of documentation.
23255         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
23256         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
23257         CONST_DOUBLE_OK_FOR_LETTER.
23258         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
23259
23260 2014-06-02  Andrew Pinski  <apinski@cavium.com>
23261
23262         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
23263         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
23264         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
23265         file whose name depends on -mabi= and -mbig-endian.
23266         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
23267         Handle LP64 better and handle ilp32 too.
23268         (MULTILIB_OPTIONS): Delete.
23269         (MULTILIB_DIRNAMES): Delete.
23270
23271 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
23272
23273         * expr.h: Remove prototypes of functions defined in builtins.c.
23274         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
23275         Remove prototypes of functions defined in builtins.c.
23276         * builtins.h: Update prototype list to include all exported functions.
23277         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
23278         no_c99_libc_has_function): Move to targhooks.c
23279         (build_string_literal, build_call_expr_loc_array,
23280         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
23281         to tree.c.
23282         (expand_builtin_object_size, fold_builtin_object_size): Make static.
23283         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
23284         no_c99_libc_has_function): Relocate from builtins.c.
23285         * tree.c: Include builtins.h.
23286         (build_call_expr_loc_array, build_call_expr_loc_vec,
23287         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
23288         from builtins.c.
23289         * fold-const.h (fold_fma): Move prototype to builtins.h.
23290         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
23291         * asan.c: Include builtins.h.
23292         * cfgexpand.c: Likewise.
23293         * convert.c: Likewise.
23294         * emit-rtl.c: Likewise.
23295         * except.c: Likewise.
23296         * expr.c: Likewise.
23297         * fold-const.c: Likewise.
23298         * gimple-fold.c: Likewise.
23299         * gimple-ssa-strength-reduction.c: Likewise.
23300         * gimplify.c: Likewise.
23301         * ipa-inline.c: Likewise.
23302         * ipa-prop.c: Likewise.
23303         * lto-streamer-out.c: Likewise.
23304         * stmt.c: Likewise.
23305         * tree-inline.c: Likewise.
23306         * tree-object-size.c: Likewise.
23307         * tree-sra.c: Likewise.
23308         * tree-ssa-ccp.c: Likewise.
23309         * tree-ssa-forwprop.c: Likewise.
23310         * tree-ssa-loop-ivcanon.c: Likewise.
23311         * tree-ssa-loop-ivopts.c: Likewise.
23312         * tree-ssa-math-opts.c: Likewise.
23313         * tree-ssa-reassoc.c: Likewise.
23314         * tree-ssa-threadedge.c: Likewise.
23315         * tree-streamer-in.c: Likewise.
23316         * tree-vect-data-refs.c: Likewise.
23317         * tree-vect-patterns.c: Likewise.
23318         * tree-vect-stmts.c: Likewise.
23319         * config/aarch64/aarch64.c: Likewise.
23320         * config/alpha/alpha.c: Likewise.
23321         * config/arc/arc.c: Likewise.
23322         * config/arm/arm.c: Likewise.
23323         * config/avr/avr.c: Likewise.
23324         * config/bfin/bfin.c: Likewise.
23325         * config/c6x/c6x.c: Likewise.
23326         * config/cr16/cr16.c: Likewise.
23327         * config/cris/cris.c: Likewise.
23328         * config/epiphany/epiphany.c: Likewise.
23329         * config/fr30/fr30.c: Likewise.
23330         * config/frv/frv.c: Likewise.
23331         * config/h8300/h8300.c: Likewise.
23332         * config/i386/i386.c: Likewise.
23333         * config/i386/winnt.c: Likewise.
23334         * config/ia64/ia64.c: Likewise.
23335         * config/iq2000/iq2000.c: Likewise.
23336         * config/lm32/lm32.c: Likewise.
23337         * config/m32c/m32c.c: Likewise.
23338         * config/m32r/m32r.c: Likewise.
23339         * config/m68k/m68k.c: Likewise.
23340         * config/mcore/mcore.c: Likewise.
23341         * config/mep/mep.c: Likewise.
23342         * config/microblaze/microblaze.c: Likewise.
23343         * config/mips/mips.c: Likewise.
23344         * config/mmix/mmix.c: Likewise.
23345         * config/mn10300/mn10300.c: Likewise.
23346         * config/moxie/moxie.c: Likewise.
23347         * config/msp430/msp430.c: Likewise.
23348         * config/nds32/nds32.c: Likewise.
23349         * config/pa/pa.c: Likewise.
23350         * config/pdp11/pdp11.c: Likewise.
23351         * config/picochip/picochip.c: Likewise.
23352         * config/rl78/rl78.c: Likewise.
23353         * config/rs6000/rs6000.c: Likewise.
23354         * config/rx/rx.c: Likewise.
23355         * config/s390/s390.c: Likewise.
23356         * config/score/score.c: Likewise.
23357         * config/sh/sh.c: Likewise.
23358         * config/sparc/sparc.c: Likewise.
23359         * config/spu/spu.c: Likewise.
23360         * config/stormy16/stormy16.c: Likewise.
23361         * config/tilegx/tilegx.c: Likewise.
23362         * config/tilepro/tilepro.c: Likewise.
23363         * config/v850/v850.c: Likewise.
23364         * config/vax/vax.c: Likewise.
23365         * config/xtensa/xtensa.c: Likewise.
23366
23367 2014-06-02  Jeff Law  <law@redhat.com>
23368
23369         PR rtl-optimization/61094
23370         * ree.c (combine_reaching_defs): Do not reextend an insn if it
23371         was marked as do_no_reextend.  If a copy is needed to eliminate
23372         an extension, then mark it as do_not_reextend.
23373
23374 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
23375
23376         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
23377
23378 2014-06-02  Richard Henderson  <rth@redhat.com>
23379
23380         PR target/61336
23381         * config/alpha/alpha.c (print_operand_address): Allow symbolic
23382         addresses inside asms.  Use output_operand_lossage instead of
23383         gcc_unreachable.
23384
23385 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
23386
23387         PR target/61239
23388         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
23389         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
23390
23391 2014-06-02  Tom de Vries  <tom@codesourcery.com>
23392
23393         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
23394         case that x has VOIDmode.
23395
23396 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
23397
23398         * varasm.c (copy_constant): Delete function.
23399         (build_constant_desc): Don't call it.
23400
23401 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23402
23403         PR target/61154
23404         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
23405         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
23406         with immediate_operand.
23407
23408 2014-06-02  Andreas Schwab  <schwab@suse.de>
23409
23410         * config/ia64/ia64.c
23411         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
23412         pending_data_specs first.
23413
23414 2014-06-02  Richard Biener  <rguenther@suse.de>
23415
23416         PR tree-optimization/61378
23417         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
23418         valueized_anything.
23419
23420 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
23421
23422         * config/i386/constraints.md (Bw): Rename from 'w'.
23423         (Bz): Rename from 'z'.
23424         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
23425
23426 2014-06-01  Kai Tietz  <ktietz@redhat.com>
23427
23428         PR target/61377
23429         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
23430         * config/i386/i386.md (sibcall_insn_operand): Use Bs
23431         instead of m constraint.
23432
23433 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
23434
23435         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
23436         a separate alternative where the scratch operand 2 is marked as
23437         early clobber.
23438
23439 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
23440
23441         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
23442         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
23443         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
23444         and __builtins_arm_get_fpscr.
23445         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
23446         __builtins_arm_get_fpscr.
23447         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
23448         __builtins_arm_ldfpscr.
23449         (arm_atomic_assign_expand_fenv): New function.
23450         * config/arm/vfp.md (set_fpscr): New pattern.
23451         (get_fpscr) : Likewise.
23452         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
23453         VUNSPEC_SET_FPSCR.
23454         * doc/extend.texi (AARCH64 Built-in Functions) : Document
23455         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
23456
23457 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
23458
23459         * asan.c (report_error_func): Add SLOW_P argument, use
23460         BUILT_IN_ASAN_*_N if set.
23461         (build_check_stmt): Likewise.
23462         (instrument_derefs): If T has insufficient alignment,
23463         force same handling as for odd sizes.
23464
23465         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
23466         BUILT_IN_ASAN_REPORT_STORE_N): New.
23467         * asan.c (struct asan_mem_ref): Change access_size type to
23468         HOST_WIDE_INT.
23469         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
23470         update_mem_ref_hash_table): Likewise.
23471         (asan_mem_ref_hasher::hash): Hash in a HWI.
23472         (report_error_func): Change size_in_bytes argument to HWI.
23473         Use *_N builtins if size_in_bytes is larger than 16 or not power of
23474         two.
23475         (build_shadow_mem_access): New function.
23476         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
23477         Handle size_in_bytes not power of two or larger than 16.
23478         (instrument_derefs): Don't give up if size_in_bytes is not
23479         power of two or is larger than 16.
23480
23481 2014-05-30  Kai Tietz  <ktietz@redhat.com>
23482
23483         PR target/60104
23484         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
23485         for sibling-tail-calls.
23486         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
23487         to its use.
23488         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
23489         (sibcall_insn_operand): Add check for sibcall_memory_operand.
23490
23491 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
23492
23493         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
23494         * config/avr/avr-tables.opt: Regenerate.
23495         * config/avr/t-multilib: Regenerate.
23496         * doc/avr-mmcu.texi: Regenerate.
23497
23498 2014-05-30  Ian Lance Taylor  <iant@google.com>
23499
23500         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
23501         target("sse").
23502
23503 2014-05-30  Tom de Vries  <tom@codesourcery.com>
23504
23505         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
23506         Redefine as true.
23507
23508 2014-05-30  Tom de Vries  <tom@codesourcery.com>
23509
23510         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
23511         * lra.c (initialize_lra_reg_info_element): Add init of
23512         actual_call_used_reg_set field.
23513         (lra): Call lra_create_live_ranges before lra_inheritance for
23514         -fuse-caller-save.
23515         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
23516         -fuse-caller-save.
23517         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
23518         instead of call_used_reg_set for -fuse-caller-save.
23519         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
23520
23521 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23522
23523         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
23524         to mov_imm.
23525         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
23526
23527 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
23528
23529         * ira.c (ira_get_dup_out_num): Check for output operands at
23530         the start of the loop.  Handle cases where an included alternative
23531         follows an excluded one.
23532
23533 2014-05-29  Mike Stump  <mikestump@comcast.net>
23534
23535         PR debug/61352
23536         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
23537         post ld passes when lto is used.
23538
23539 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
23540
23541         PR rtl-optimization/61325
23542         * lra-constraints.c (process_address): Rename to process_address_1.
23543         (process_address): New function.
23544
23545 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
23546
23547         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
23548         TYPES_BINOPV): New static data.
23549         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
23550         New builtin.
23551         * config/aarch64/aarch64-simd.md (aarch64_ext,
23552         aarch64_im_lane_boundsi): New patterns.
23553         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
23554         patterns for EXT.
23555         (aarch64_evpc_ext): New function.
23556
23557         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
23558
23559         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
23560         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
23561         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
23562         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
23563         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
23564
23565 2014-05-29  Tom de Vries  <tom@codesourcery.com>
23566
23567         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
23568
23569 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
23570             Richard Sandiford  <rdsandiford@googlemail.com>
23571
23572         * arm/iterators.md (shiftable_ops): New code iterator.
23573         (t2_binop0, arith_shift_insn): New code attributes.
23574         * arm/predicates.md (shift_nomul_operator): New predicate.
23575         * arm/arm.md (insn_enabled): Delete.
23576         (enabled): Remove insn_enabled test.
23577         (*arith_shiftsi): Delete.  Replace with ...
23578         (*<arith_shift_insn>_multsi): ... new pattern.
23579         (*<arith_shift_insn>_shiftsi): ... new pattern.
23580         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
23581
23582 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
23583             Tom de Vries  <tom@codesourcery.com>
23584
23585         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
23586         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
23587         clobber.
23588         (mips_split_call): Use POST_CALL_TMP_REG.
23589         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
23590
23591 2014-05-29  Tom de Vries  <tom@codesourcery.com>
23592
23593         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
23594         with #ifdef STACK_REGS.
23595
23596 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
23597
23598         * varasm.c (get_variable_section): Walk aliases.
23599         (place_block_symbol): Walk aliases.
23600
23601 2014-05-28  Tom de Vries  <tom@codesourcery.com>
23602
23603         Revert:
23604         2014-05-28  Tom de Vries  <tom@codesourcery.com>
23605
23606         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
23607         * lra.c (initialize_lra_reg_info_element): Add init of
23608         actual_call_used_reg_set field.
23609         (lra): Call lra_create_live_ranges before lra_inheritance for
23610         -fuse-caller-save.
23611         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
23612         -fuse-caller-save.
23613         * lra-constraints.c (need_for_call_save_p): Use
23614         actual_call_used_reg_set instead of call_used_reg_set for
23615         -fuse-caller-save.
23616         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
23617
23618 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
23619
23620         * doc/md.texi: Document that the % constraint character must
23621         be at the beginning of the string.
23622         * genoutput.c (validate_insn_alternatives): Check that '=',
23623         '+' and '%' only appear at the beginning of a constraint.
23624         * ira.c (commutative_constraint_p): Delete.
23625         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
23626         at the start of the string.
23627         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
23628         duplicate '='s.
23629         * config/arm/neon.md (bicdi3_neon): Likewise.
23630         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
23631         (slt_si, sltu_si): Likewise.
23632         * config/vax/vax.md (sbcdi3): Likewise.
23633         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
23634         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
23635         (mul64): Move '%' to beginning of constraint.
23636         * config/arm/arm.md (*xordi3_insn): Likewise.
23637         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
23638         (xorsi3): Likewise.
23639
23640 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
23641
23642         * doc/md.texi: Document the restrictions on the "enabled" attribute.
23643
23644 2014-05-28  Jason Merrill  <jason@redhat.com>
23645
23646         PR c++/47202
23647         * cgraph.h (symtab_node::get_comdat_group_id): New.
23648         * cgraphunit.c (analyze_functions): Call it.
23649         * symtab.c (dump_symtab_node): Likewise.
23650         * tree.c (decl_comdat_group_id): New.
23651         * tree.h: Declare it.
23652         * lto-streamer-out.c (write_symbol): Use it.
23653         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
23654
23655 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
23656
23657         PR bootstrap/PR61146
23658         * wide-int.cc: Do not include longlong.h when compiling with clang.
23659
23660 2014-05-28  Richard Biener  <rguenther@suse.de>
23661
23662         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
23663         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
23664         (vrp_visit_assignment_or_call): Print less vertical space.
23665         (vrp_visit_stmt): Likewise.
23666         (vrp_visit_phi_node): Likewise.  For a PHI argument with
23667         VR_VARYING range consider recording it as copy.
23668
23669 2014-05-28  Richard Biener  <rguenther@suse.de>
23670
23671         Revert
23672         2014-05-28  Richard Biener  <rguenther@suse.de>
23673
23674         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
23675
23676 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23677
23678         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
23679         sufficiently aligned and an offset is used at the same time.
23680         (expand_expr_real_1): Likewise.
23681
23682 2014-05-28  Richard Biener  <rguenther@suse.de>
23683
23684         PR middle-end/61045
23685         * fold-const.c (fold_comparison): When folding
23686         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
23687         the sign of the remaining constant operand stays the same.
23688
23689 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
23690
23691         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
23692         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
23693         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
23694         to the assembler.
23695         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
23696         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
23697         (m32bit-doubles) Likewise.
23698         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
23699         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
23700         option for RL78.
23701
23702 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23703
23704         * configure.ac ($gcc_cv_ld_clearcap): New test.
23705         * configure: Regenerate.
23706         * config.in: Regenerate.
23707         * config/sol2.opt (mclear-hwcap): New option.
23708         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
23709         * config/sol2-clearcap.map: Moved here from
23710         testsuite/gcc.target/i386/clearcap.map.
23711         * config/sol2-clearcapv2.map: Move here from
23712         gcc.target/i386/clearcapv2.map.
23713         * config/t-sol2 (install): Depend on install-clearcap-map.
23714         (install-clearcap-map): New target.
23715         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
23716         -mclear-hwcap.
23717
23718 2014-05-28  Richard Biener  <rguenther@suse.de>
23719
23720         * hwint.h (*_HALF_WIDE_INT*): Move to ...
23721         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
23722         ... here and remove the rest.
23723         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
23724
23725 2014-05-28  Richard Biener  <rguenther@suse.de>
23726
23727         PR tree-optimization/61335
23728         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
23729         new range fails, drop to varying.
23730
23731 2014-05-28  Olivier Hainque  <hainque@adacore.com>
23732
23733         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
23734         (CPP_SPEC): Add entry for -mcpu=8548.
23735         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
23736         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
23737
23738 2014-05-28  Tom de Vries  <tom@codesourcery.com>
23739
23740         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
23741         * lra.c (initialize_lra_reg_info_element): Add init of
23742         actual_call_used_reg_set field.
23743         (lra): Call lra_create_live_ranges before lra_inheritance for
23744         -fuse-caller-save.
23745         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
23746         -fuse-caller-save.
23747         * lra-constraints.c (need_for_call_save_p): Use
23748         actual_call_used_reg_set instead of call_used_reg_set for
23749         -fuse-caller-save.
23750         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
23751
23752 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
23753             Tom de Vries  <tom@codesourcery.com>
23754
23755         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
23756         to gccoptlist.
23757         (@item -fuse-caller-save): New item.
23758
23759 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
23760             Tom de Vries  <tom@codesourcery.com>
23761
23762         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
23763         OPT_fuse_caller_save.
23764
23765 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
23766             Tom de Vries  <tom@codesourcery.com>
23767
23768         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
23769         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
23770         get_call_reg_set_usage.
23771         * resource.c (mark_set_resources, mark_target_live_regs): Use
23772         get_call_reg_set_usage.
23773         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
23774         field.
23775         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
23776         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
23777         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23778         * ira-build.c (ira_create_allocno): Init
23779         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23780         (create_cap_allocno, propagate_allocno_info)
23781         (propagate_some_info_from_allocno)
23782         (copy_info_to_removed_store_destinations): Handle
23783         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23784         * ira-costs.c (ira_tune_allocno_costs): Use
23785         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
23786
23787 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
23788             Tom de Vries  <tom@codesourcery.com>
23789
23790         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
23791         and function_used_regs_valid fields.
23792         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
23793         find_all_hard_reg_sets.
23794         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
23795         (get_call_reg_set_usage): New function.
23796         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
23797         * regs.h (get_call_reg_set_usage): Declare.
23798
23799 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
23800
23801         PR libgcc/61152
23802         * config/dbx.h (License): Add Runtime Library Exception.
23803         * config/newlib-stdint.h (License): Same.
23804         * config/rtems.h (License): Same
23805         * config/initfini-array.h (License): Same
23806         * config/v850/v850.h (License): Same.
23807         * config/v850/v850-opts.h (License): Same
23808         * config/v850/rtems.h (License): Same.
23809
23810 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
23811
23812         PR target/61044
23813         * doc/extend.texi (Local Labels): Note that label differences are
23814         not supported for AVR.
23815
23816 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
23817             Olivier Hainque  <hainque@adacore.com>
23818
23819         * rtl.h (set_for_reg_notes): Declare.
23820         * emit-rtl.c (set_for_reg_notes): New function.
23821         (set_unique_reg_note): Use it.
23822         * optabs.c (add_equal_note): Likewise
23823
23824 2014-05-27  Andrew Pinski  <apinski@cavium.com>
23825
23826         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
23827         Use <w> for the register in assembly template.
23828         (stack_protect_test): Use the mode of operands[0] for the result.
23829         (stack_protect_test_<mode>): Use <w> for the register
23830         in assembly template.
23831
23832 2014-05-27  DJ Delorie  <dj@redhat.com>
23833
23834         * config/rx/rx.c (add_vector_labels): New.
23835         (rx_output_function_prologue): Call it.
23836         (rx_handle_func_attribute): Don't require empty arguments.
23837         (rx_handle_vector_attribute): New.
23838         (rx_attribute_table): Add "vector" attribute.
23839         * doc/extend.texi (interrupt, vector): Document new/changed
23840         RX-specific attributes.
23841
23842         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
23843
23844 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
23845
23846         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
23847         predicate to detect a negative quotient.
23848
23849 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
23850
23851         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
23852         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
23853         Add X - Y CMP 0 to X CMP Y transformation.
23854         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
23855
23856 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
23857
23858         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
23859         before printing.
23860
23861 2014-05-27  Steve Ellcey  <sellcey@mips.com>
23862
23863         * config/mips/mips.c: Add include of cgraph.h.
23864
23865 2014-05-27  Richard Biener  <rguenther@suse.de>
23866
23867         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
23868
23869 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
23870
23871         PR libgcc/61152
23872         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
23873         * config/arm/arm-cores.def (License): Same.
23874         * config/arm/arm-opts.h (License): Same.
23875         * config/arm/aout.h (License): Same.
23876         * config/arm/bpabi.h (License): Same.
23877         * config/arm/elf.h (License): Same.
23878         * config/arm/linux-elf.h (License): Same.
23879         * config/arm/linux-gas.h (License): Same.
23880         * config/arm/netbsd-elf.h (License): Same.
23881         * config/arm/uclinux-eabi.h (License): Same.
23882         * config/arm/uclinux-elf.h (License): Same.
23883         * config/arm/vxworks.h (License): Same.
23884
23885 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23886
23887         * config/arm/neon.md (neon_bswap<mode>): New pattern.
23888         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
23889         (arm_init_neon_builtins): Handle NEON_BSWAP.
23890         Define required type nodes.
23891         (arm_expand_neon_builtin): Handle NEON_BSWAP.
23892         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
23893         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
23894         * config/arm/iterators.md (VDQHSD): New mode iterator.
23895
23896 2014-05-27  Richard Biener  <rguenther@suse.de>
23897
23898         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
23899         Try using literal operands when comparing value-ranges failed.
23900
23901 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
23902
23903         * ira.c (commutative_operand): Adjust for change to recog_data.
23904         [Missing from previous commit.]
23905
23906 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
23907
23908         * system.h (TEST_BIT): New macro.
23909         * recog.h (alternative_mask): New type.
23910         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
23911         (recog_data_d): Replace alternative_enabled_p array with
23912         enabled_alternatives.
23913         (target_recog): New structure.
23914         (default_target_recog, this_target_recog): Declare.
23915         (get_enabled_alternatives, recog_init): Likewise.
23916         * recog.c (default_target_recog, this_target_recog): New variables.
23917         (get_enabled_alternatives): New function.
23918         (extract_insn): Use it.
23919         (recog_init): New function.
23920         (preprocess_constraints, constrain_operands): Adjust for change to
23921         recog_data.
23922         * postreload.c (reload_cse_simplify_operands): Likewise.
23923         * reload.c (find_reloads): Likewise.
23924         * ira-costs.c (record_reg_classes): Likewise.
23925         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
23926         all alternatives after a disabled one would be skipped.
23927         (ira_implicitly_set_insn_hard_regs): Likewise.
23928         * ira.c (ira_setup_alts): Adjust for change to recog_data.
23929         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
23930         with enabled_alternatives.
23931         * lra.c (free_insn_recog_data): Update accordingly.
23932         (lra_update_insn_recog_data): Likewise.
23933         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
23934         * lra-constraints.c (process_alt_operands): Likewise.  Handle
23935         only_alternative as part of the enabled mask.
23936         * target-globals.h (this_target_recog): Declare.
23937         (target_globals): Add a recog field.
23938         (restore_target_globals): Restore this_target_recog.
23939         * target-globals.c: Include recog.h.
23940         (default_target_globals): Initialize recog field.
23941         (save_target_globals): Likewise.
23942         * reginfo.c (reinit_regs): Call recog_init.
23943         * toplev.c (backend_init_target): Likewise.
23944
23945 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
23946
23947         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
23948         rather than any named insn's code.
23949
23950 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
23951
23952         PR libgcc/61152
23953         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
23954         * config/arm/arm-cores.def (License): Same.
23955
23956 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
23957
23958         * tree.h (decl_comdat_group): Declare.
23959         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
23960         * tree.c (decl_comdat_group): Here.
23961
23962 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
23963
23964         PR rtl-optimization/61222
23965         * combine.c (simplify_shift_const_1): When moving a PLUS outside
23966         the shift, truncate the PLUS operand to the result mode.
23967
23968 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
23969
23970         PR target/61271
23971         * config/i386/i386.c (ix86_rtx_costs)
23972         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
23973         Fix condition.
23974
23975 2014-05-26  Martin Jambor  <mjambor@suse.cz>
23976
23977         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
23978         subreg uses.
23979
23980 2014-05-26  Richard Biener  <rguenther@suse.de>
23981
23982         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
23983         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
23984         Provide specializations.
23985         (wi::int_traits <HOST_WIDE_INT>,
23986         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
23987
23988 2014-05-26  Alan Modra  <amodra@gmail.com>
23989
23990         PR target/61098
23991         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
23992         params and return a bool.  Remove dead code.  Update comment.
23993         Assert we have a const_int source.  Remove bogus code from
23994         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
23995         handling of constants > 2G and reg_equal note, from..
23996         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
23997         return value.  Update comment.  If we can, use a new pseudo
23998         for intermediate calculations.
23999         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
24000         prototype.
24001         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
24002         call to rs6000_emit_set_const in splitter.
24003         (movdi_internal64+2, +3): Likewise.
24004
24005 2014-05-26  Richard Biener  <rguenther@suse.de>
24006
24007         * system.h: Define __STDC_FORMAT_MACROS before
24008         including inttypes.h.
24009         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
24010         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
24011         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
24012         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
24013         HOST_WIDEST_INT_C): Remove.
24014         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
24015         if C99 inttypes.h is not available.
24016         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
24017         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
24018         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
24019         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
24020         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
24021         (struct output_info): Likewise.
24022         (print_statistics): Adjust.
24023         (dump_bitmap_statistics): Likewise.
24024         * bt-load.c (migrate_btr_defs): Print with PRId64.
24025         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
24026         (MAX_SAFE_MULTIPLIER): Adjust.
24027         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
24028         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
24029         dump_cgraph_node): Likewise.
24030         * final.c (dump_basic_block_info): Likewise.
24031         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
24032         * gcov.c (format_gcov): Likewise.
24033         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
24034         for calculation.
24035         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
24036         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
24037         (inline_small_functions, dump_overall_stats, dump_inline_stats):
24038         Use PRId64 for dumping.
24039         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
24040         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
24041         (add_allocno_hard_regs): Adjust.
24042         * loop-doloop.c (doloop_modify): Print using PRId64.
24043         * loop-iv.c (inverse): Compute in uint64_t.
24044         (determine_max_iter, iv_number_of_iterations): Likewise.
24045         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
24046         Print using PRId64.
24047         * lto-streamer-out.c (write_symbol): Use uint64_t.
24048         * mcf.c (CAP_INFINITY): Use int64_t maximum.
24049         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
24050         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
24051         * modulo-sched.c (const_iteration_count): Use int64_t.
24052         (sms_schedule): Dump using PRId64.
24053         * predict.c (dump_prediction): Likewise.
24054         * pretty-print.h (pp_widest_integer): Remove.
24055         * profile.c (get_working_sets, is_edge_inconsistent,
24056         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
24057         * tree-pretty-print.c (pp_double_int): Remove case handling
24058         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
24059         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
24060         and adjust users.
24061         (pass_optimize_bswap::execute): Remove restriction on hosts.
24062         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
24063         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
24064         * tree.c (widest_int_cst_value): Remove.
24065         * tree.h (widest_int_cst_value): Likewise.
24066         * value-prof.c (dump_histogram_value): Print using PRId64.
24067         * gengtype.c (main): Also inject int64_t.
24068         * ggc-page.c (struct max_alignment): Use int64_t.
24069         * alloc-pool.c (struct allocation_object_def): Likewise.
24070         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
24071         for computation.
24072         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
24073         * doc/tm.texi: Regenerated.
24074         * gengtype-lex.l (IWORD): Handle [u]int64_t.
24075         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
24076         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
24077         mmix_output_register_setting): Use [u]int64_t in prototypes.
24078         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
24079         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
24080         mmix_output_octa, mmix_output_shifted_value): Adjust.
24081         (mmix_intval): Adjust.  Remove unreachable case.
24082         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
24083
24084 2014-05-26  Richard Biener  <rguenther@suse.de>
24085
24086         * configure.ac: Drop __int64 type check.  Insist that we
24087         found uint64_t and int64_t.
24088         * hwint.h (HOST_BITS_PER___INT64): Remove.
24089         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
24090         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
24091         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
24092         (HOST_WIDEST_FAST_INT): Remove __int64 case.
24093         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
24094         for dst_q_src_df_rms_cdt.
24095         * configure: Regenerate.
24096         * config.in: Likewise.
24097
24098 2014-05-26  Michael Tautschnig  <mt@debian.org>
24099
24100         PR target/61249
24101         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
24102         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
24103
24104 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24105
24106         PR rtl-optimization/61278
24107         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
24108
24109 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24110
24111         PR rtl-optimization/61220
24112         Part of PR rtl-optimization/61225
24113         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
24114         insn; skip split_edge for a block with only one successor.
24115
24116 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
24117
24118         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
24119         for variables.
24120
24121 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
24122
24123         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
24124         (update_vtable_references): New function.
24125         (function_and_variable_visibility): Rewrite also vtable initializers.
24126         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
24127
24128 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
24129
24130         * ggc.h (ggc_grow): New function.
24131         * ggc-none.c (ggc_grow): New function.
24132         * ggc-page.c (ggc_grow): Likewise.
24133
24134 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
24135
24136         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
24137         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
24138         comdat_can_be_unshared_p, cgraph_externally_visible_p,
24139         varpool_externally_visible_p, can_replace_by_local_alias,
24140         update_visibility_by_resolution_info, function_and_variable_visibility,
24141         pass_data_ipa_function_and_variable_visibility,
24142         make_pass_ipa_function_and_variable_visibility,
24143         whole_program_function_and_variable_visibility,
24144         pass_data_ipa_whole_program_visibility,
24145         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
24146         * cgraph.h (cgraph_local_node_p): Declare.
24147         * ipa-visibility.c: New file.
24148         * Makefile.in (OBJS): Add ipa-visiblity.o
24149
24150 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
24151
24152         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
24153         that var decl is available.
24154
24155 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
24156
24157         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
24158         symtab_node pointer.
24159         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
24160         (find_decls_types_r): Do not walk COMDAT_GROUP.
24161         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
24162         * varasm.c (make_decl_one_only): Use set_comdat_group;
24163         create node if needed.
24164         * ipa-inline-transform.c (save_inline_function_body): Update
24165         way we decl->symtab mapping.
24166         * symtab.c (symtab_hash, hash_node, eq_node
24167         symtab_insert_node_to_hashtable): Remove.
24168         (symtab_register_node): Update.
24169         (symtab_unregister_node): Update.
24170         (symtab_get_node): Reimplement as inline function.
24171         (symtab_add_to_same_comdat_group): Update.
24172         (symtab_dissolve_same_comdat_group_list): Update.
24173         (dump_symtab_base): Update.
24174         (verify_symtab_base): Update.
24175         (symtab_make_decl_local): Update.
24176         (fixup_same_cpp_alias_visibility): Update.
24177         (symtab_nonoverwritable_alias): Update.
24178         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
24179         * ipa.c (update_visibility_by_resolution_info): UPdate.
24180         * bb-reorder.c: Include cgraph.h
24181         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
24182         with comdat groups.
24183         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
24184         * cgraph.c (cgraph_get_create_node): Update.
24185         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
24186         and comdat_group_.
24187         (symtab_get_node): Make inline.
24188         (symtab_insert_node_to_hashtable): Remove.
24189         (symtab_can_be_discarded): Update.
24190         (decl_comdat_group): New function.
24191         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
24192         Update.
24193         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
24194         comdat group name.
24195         (read_comdat_group): New function.
24196         (input_node, input_varpool_node): Use it.
24197         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
24198         comdat groups.
24199         * mips.c (mips_start_unique_function): Likewise.
24200         (ix86_code_end): Likewise.
24201         (rs6000_code_end): Likweise.
24202         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
24203
24204 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
24205
24206         * gengtype-state.c (fatal_reading_state): Bring offline.
24207         * optabs.c (widening_optab_handler): Bring offline.
24208         * optabs.h (widening_optab_handler): Likewise.
24209         * final.c (get_attr_length_1): Likewise.
24210
24211 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
24212
24213         * sched-int.h (sd_iterator_cond): Manually tail recurse.
24214
24215 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24216
24217         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
24218         (ppc440-compare): Include shift with dot.
24219         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
24220         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
24221         without dot.
24222         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
24223         without dot.
24224         (e6500_sfx2): Include it.
24225         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
24226         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
24227         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
24228         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
24229         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
24230         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
24231         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
24232         *lshiftrt_internal1le, *lshiftrt_internal1be,
24233         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
24234         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
24235         *rotldi3_internal10le, *rotldi3_internal10be,
24236         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
24237         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
24238         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
24239         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
24240         define_insns): Use type "shift" in the appropriate alternatives.
24241
24242 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24243
24244         * config/rs6000/rs6000.md (type): Add "logical".  Delete
24245         "fast_compare".
24246         (dot): Adjust comment.
24247         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
24248         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
24249         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
24250         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
24251         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
24252         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
24253         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
24254         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
24255
24256         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
24257         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
24258         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
24259         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
24260         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
24261         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
24262         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
24263         * config/rs6000/8540.md (ppc8540_su): Adjust.
24264         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
24265         cell-cmp-microcoded): Adjust.
24266         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
24267         * config/rs6000/e500mc.md (e500mc_su): Adjust.
24268         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
24269         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
24270         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
24271         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
24272         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
24273         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
24274         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
24275         Adjust.
24276         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
24277         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
24278         Adjust.  Adjust comment.
24279         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
24280         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
24281
24282 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24283
24284         * config/rs6000/rs6000.md (type): Add "add".
24285         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
24286         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
24287         define_insns): Use it.
24288         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
24289
24290         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
24291         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
24292         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
24293         * config/rs6000/601.md (ppc601-integer): Adjust.
24294         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
24295         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
24296         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
24297         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
24298         * config/rs6000/8540.md (ppc8540_su): Adjust.
24299         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
24300         cell-cmp-microcoded): Adjust.
24301         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
24302         * config/rs6000/e500mc.md (e500mc_su): Adjust.
24303         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
24304         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
24305         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
24306         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
24307         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
24308         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
24309         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
24310         Adjust.
24311         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
24312         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
24313         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
24314         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
24315
24316 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24317
24318         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
24319         "delayed_compare", "var_delayed_compare".
24320         (var_shift): New attribute.
24321         (cell_micro): Adjust.
24322         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
24323         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
24324         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
24325         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
24326         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
24327         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
24328         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
24329         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
24330         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
24331         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
24332         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
24333         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
24334         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
24335         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
24336         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
24337         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
24338         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
24339         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
24340         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
24341         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
24342         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
24343         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
24344         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
24345         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
24346         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
24347
24348         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
24349         * config/rs6000/440.md (ppc440-integer): Adjust.
24350         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
24351         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
24352         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
24353         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
24354         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
24355         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
24356         * config/rs6000/8540.md (ppc8540_su): Adjust.
24357         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
24358         cell-cmp-microcoded): Adjust.
24359         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
24360         * config/rs6000/e500mc.md (e500mc_su): Adjust.
24361         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
24362         e500mc64_delayed): Adjust.
24363         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
24364         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
24365         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
24366         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
24367         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
24368         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
24369         power6-delayed-compare, power6-var-delayed-compare): Adjust.
24370         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
24371         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
24372         Adjust comment.
24373         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
24374         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
24375
24376 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24377
24378         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
24379         (bits): New mode_attr.
24380         (idiv_ldiv): Delete mode_attr.
24381         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
24382         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
24383         rs6000_adjust_priority, is_nonpipeline_insn,
24384         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
24385
24386         * config/rs6000/40x.md (ppc403-idiv): Adjust.
24387         * config/rs6000/440.md (ppc440-idiv): Adjust.
24388         * config/rs6000/476.md (ppc476-idiv): Adjust.
24389         * config/rs6000/601.md (ppc601-idiv): Adjust.
24390         * config/rs6000/603.md (ppc603-idiv): Adjust.
24391         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
24392         ppc620-ldiv): Adjust.
24393         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
24394         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
24395         * config/rs6000/8540.md (ppc8540_divide): Adjust.
24396         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
24397         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
24398         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
24399         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
24400         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
24401         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
24402         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
24403         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
24404         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
24405         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
24406         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
24407         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
24408         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
24409         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
24410         * config/rs6000/titan.md (titan_fxu_div): Adjust.
24411
24412 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24413
24414         * config/rs6000/rs6000.md (type): Delete "insert_word",
24415         "insert_dword".  Add "insert".
24416         (size): Update comment.
24417         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
24418         insn_must_be_first_in_group): Adjust.
24419         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
24420         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
24421         *insvsi_internal6, insvdi_internal): Adjust.
24422
24423         * config/rs6000/40x.md (ppc403-integer): Adjust.
24424         * config/rs6000/440.md (ppc440-integer): Adjust.
24425         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
24426         * config/rs6000/601.md (ppc601-integer): Adjust.
24427         * config/rs6000/603.md (ppc603-integer): Adjust.
24428         * config/rs6000/6xx.md (ppc604-integer): Adjust.
24429         * config/rs6000/7450.md (ppc7450-integer): Adjust.
24430         * config/rs6000/7xx.md (ppc750-integer): Adjust.
24431         * config/rs6000/8540.md (ppc8540_su): Adjust.
24432         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
24433         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
24434         * config/rs6000/e500mc.md (e500mc_su): Adjust.
24435         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
24436         * config/rs6000/e5500.md (e5500_sfx): Adjust.
24437         * config/rs6000/e6500.md (e6500_sfx): Adjust.
24438         * config/rs6000/mpc.md (mpccore-integer): Adjust.
24439         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
24440         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
24441         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
24442         * config/rs6000/power7.md (power7-integer): Adjust.
24443         * config/rs6000/power8.md (power8-1cyc): Adjust.
24444         * config/rs6000/rs64.md (rs64a-integer): Adjust.
24445         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
24446
24447 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24448
24449         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
24450         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
24451         (size): New attribute.
24452         (dot): New attribute.
24453         (cell_micro): Adjust.
24454         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
24455         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
24456         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
24457         umuldi3_highpart): Adjust.
24458         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
24459         rs6000_adjust_priority, is_nonpipeline_insn,
24460         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
24461
24462         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
24463         ppc405-imul3): Adjust.
24464         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
24465         * config/rs6000/476.md (ppc476-imul): Adjust.
24466         * config/rs6000/601.md (ppc601-imul): Adjust.
24467         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
24468         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
24469         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
24470         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
24471         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
24472         Adjust.
24473         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
24474         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
24475         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
24476         cell-imul): Adjust.
24477         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
24478         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
24479         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
24480         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
24481         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
24482         * config/rs6000/mpc.md (mpccore-imul): Adjust.
24483         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
24484         power4-lmul, power4-imul, power4-imul3): Adjust.
24485         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
24486         power5-lmul, power5-imul, power5-imul3): Adjust.
24487         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
24488         power6-lmul, power6-imul, power6-imul3): Adjust.
24489         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
24490         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
24491
24492         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
24493         rs64a-lmul): Adjust.
24494         * config/rs6000/titan.md (titan_imul): Adjust.
24495
24496 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24497
24498         * config/rs6000/rs6000.md (type): Add new value "halfmul".
24499         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
24500         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
24501         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
24502         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
24503         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
24504         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
24505         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
24506         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
24507         * config/rs6000/titan.md: Delete nonsensical comment.
24508         (titan_imul): Add type imul3.
24509         (titan_mulhw): Remove type imul3; add type halfmul.
24510
24511 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24512
24513         * config/rs6000/rs6000.md (type): Reorder, reformat.
24514
24515 2014-05-23  Martin Jambor  <mjambor@suse.cz>
24516
24517         PR tree-optimization/53787
24518         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
24519         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
24520         analysis_done, update all uses.
24521         * ipa-prop.c: Include domwalk.h
24522         (param_analysis_info): Removed.
24523         (param_aa_status): New type.
24524         (ipa_bb_info): Likewise.
24525         (func_body_info): Likewise.
24526         (ipa_get_bb_info): New function.
24527         (aa_overwalked): Likewise.
24528         (find_dominating_aa_status): Likewise.
24529         (parm_bb_aa_status_for_bb): Likewise.
24530         (parm_preserved_before_stmt_p): Changed to use new param AA info.
24531         (load_from_unmodified_param): Accept func_body_info as a parameter
24532         instead of parms_ainfo.
24533         (parm_ref_data_preserved_p): Changed to use new param AA info.
24534         (parm_ref_data_pass_through_p): Likewise.
24535         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
24536         (compute_complex_assign_jump_func): Changed to use new param AA info.
24537         (compute_complex_ancestor_jump_func): Likewise.
24538         (ipa_compute_jump_functions_for_edge): Likewise.
24539         (ipa_compute_jump_functions): Removed.
24540         (ipa_compute_jump_functions_for_bb): New function.
24541         (ipa_analyze_indirect_call_uses): Likewise, moved variable
24542         declarations down.
24543         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
24544         and info, moved variable declarations down.
24545         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
24546         node and info.
24547         (ipa_analyze_stmt_uses): Likewise.
24548         (ipa_analyze_params_uses): Removed.
24549         (ipa_analyze_params_uses_in_bb): New function.
24550         (ipa_analyze_controlled_uses): Likewise.
24551         (free_ipa_bb_info): Likewise.
24552         (analysis_dom_walker): New class.
24553         (ipa_analyze_node): Handle node-specific forbidden analysis,
24554         initialize and free func_body_info, use dominator walker.
24555         (ipcp_modif_dom_walker): New class.
24556         (ipcp_transform_function): Create and free func_body_info, use
24557         ipcp_modif_dom_walker, moved a lot of functionality there.
24558
24559 2014-05-23  Marek Polacek  <polacek@redhat.com>
24560             Jakub Jelinek  <jakub@redhat.com>
24561
24562         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
24563         * gcc.c (sanitize_spec_function): Likewise.
24564         * convert.c (convert_to_integer): Include "ubsan.h".  Add
24565         floating-point to integer instrumentation.
24566         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
24567         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
24568         SANITIZE_NONDEFAULT.
24569         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
24570         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
24571         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
24572         * ubsan.c: Include "realmpfr.h" and "dfp.h".
24573         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
24574         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
24575         float/double/long double.
24576         (ubsan_instrument_float_cast): New function.
24577         * ubsan.h (ubsan_instrument_float_cast): Declare.
24578
24579 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
24580
24581         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
24582         predicate.
24583         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
24584         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
24585         Adjust for tailcalling through registers.
24586         * config/aarch64/aarch64.h (enum reg_class): New caller save
24587         register class.
24588         (REG_CLASS_NAMES): Likewise.
24589         (REG_CLASS_CONTENTS): Likewise.
24590         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
24591         Allow tailcalling without decls.
24592
24593 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
24594
24595         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
24596         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
24597
24598         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
24599         gsi, and variables v_* to v*.
24600
24601 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
24602
24603         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
24604
24605 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
24606
24607         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
24608         * omp-low.c: Update accordingly.
24609
24610         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
24611         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
24612         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
24613         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
24614         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
24615         GF_OMP_TARGET_KIND_UPDATE.
24616
24617         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
24618         Explicitly enumerate the expected region types.
24619
24620 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
24621
24622         PR other/56955
24623         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
24624         documentation; the old documentation didn't clearly state the
24625         constraints on the contents of the pointed-to storage.
24626
24627 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24628
24629         Fix bootstrap error on ia64
24630         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
24631         Return default value.
24632
24633 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24634
24635         PR tree-optimization/54733
24636         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
24637         (CMPNOP): Define.
24638         (find_bswap_or_nop_load): New.
24639         (find_bswap_1): Renamed to ...
24640         (find_bswap_or_nop_1): This. Also add support for memory source.
24641         (find_bswap): Renamed to ...
24642         (find_bswap_or_nop): This. Also add support for memory source and
24643         detection of bitwise operations equivalent to load in target
24644         endianness.
24645         (execute_optimize_bswap): Likewise. Also move its leading comment back
24646         in place and split statement transformation into ...
24647         (bswap_replace): This.
24648
24649 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
24650
24651         PR rtl-optimization/61215
24652         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
24653         simplify_gen_subreg until final substitution.
24654
24655 2014-05-23  Alan Modra  <amodra@gmail.com>
24656
24657         PR target/61231
24658         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
24659         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
24660         Use "Y" constraint rather than "m".
24661
24662 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
24663
24664         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
24665         define.
24666         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
24667         New function declaration.
24668         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
24669         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
24670         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
24671         (aarch64_init_builtins) : Initialize builtins
24672         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
24673         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
24674         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
24675         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
24676         and __builtins_aarch64_set_fpsr.
24677         (aarch64_atomic_assign_expand_fenv): New function.
24678         * config/aarch64/aarch64.md (set_fpcr): New pattern.
24679         (get_fpcr) : Likewise.
24680         (set_fpsr) : Likewise.
24681         (get_fpsr) : Likewise.
24682         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
24683         and UNSPECV_SET_FPSR.
24684         * doc/extend.texi (AARCH64 Built-in Functions) : Document
24685         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
24686         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
24687
24688 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
24689
24690         PR rtl-optimization/60969
24691         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
24692         constraints.  Set up mem cost for NO_REGS case.
24693
24694 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
24695
24696         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
24697
24698 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
24699
24700         * config/darwin.c: Include "lto-section-names.h".
24701         (LTO_SEGMENT_NAME): Don't define.
24702         * config/i386/winnt.c: Include "lto-section-names.h".
24703         * lto-streamer.c: Include "lto-section-names.h".
24704         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
24705         * lto-wrapper.c: Include "lto-section-names.h".
24706         (LTO_SECTION_NAME_PREFIX): Don't define.
24707         * lto-section-names.h: New file.
24708         * cgraphunit.c: Include "lto-section-names.h".
24709
24710 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
24711
24712         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
24713
24714 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
24715
24716         PR target/61208
24717         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
24718
24719 2014-05-22  Nick Clifton  <nickc@redhat.com>
24720
24721         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
24722
24723 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
24724
24725         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
24726         -> (T)A transformation to integer types.
24727
24728 2014-05-22  Teresa Johnson  <tejohnson@google.com>
24729
24730         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
24731         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
24732         (gcov_rewrite): Use gcov_nonruntime_assert.
24733         (gcov_open): Ditto.
24734         (gcov_write_words): Ditto.
24735         (gcov_write_length): Ditto.
24736         (gcov_read_words): Use gcov_nonruntime_assert, and remove
24737         gcc_assert from IN_LIBGCOV code.
24738         (gcov_read_summary): Use gcov_error to flag profile corruption.
24739         (gcov_sync): Use gcov_nonruntime_assert.
24740         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
24741         (gcov_histo_index): Use gcov_nonruntime_assert.
24742         (static void gcov_histogram_merge): Ditto.
24743         (compute_working_sets): Ditto.
24744         * gcov-io.h (gcov_nonruntime_assert): Define.
24745         (gcov_error): Define for !IN_LIBGCOV
24746
24747 2014-05-22  Richard Biener  <rguenther@suse.de>
24748
24749         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
24750         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
24751         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
24752         and deallocation site.
24753         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24754         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
24755         passing through the incoming points-to set.
24756         (handle_lhs_call): Use flags argument instead of recomputing it.
24757         (find_func_aliases_for_call): Call handle_lhs_call with proper
24758         call return flags.
24759
24760 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
24761
24762         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
24763         all padding bits in REAL_VALUE_TYPE are cleared.
24764
24765 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24766
24767         Cleanup and improve multipass_dfa_lookahead_guard
24768         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
24769         (core2i7_first_cycle_multipass_begin,)
24770         (core2i7_first_cycle_multipass_issue,)
24771         (core2i7_first_cycle_multipass_backtrack): Update signature.
24772         * config/ia64/ia64.c
24773         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
24774         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
24775         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
24776         hook definition.
24777         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
24778         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
24779         values.
24780         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
24781         return values.
24782         * doc/tm.texi: Regenerate.
24783         * doc/tm.texi.in
24784         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
24785         * haifa-sched.c (ready_try): Make signed to allow negative values.
24786         (rebug_ready_list_1): Update.
24787         (choose_ready): Simplify.
24788         (sched_extend_ready_list): Update.
24789
24790 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24791
24792         Remove IA64 speculation tweaking flags
24793         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
24794         speculation tuning flags.
24795         (msched-prefer-non-data-spec-insns,)
24796         (msched-prefer-non-control-spec-insns): Obsolete options.
24797         * haifa-sched.c (choose_ready): Remove handling of
24798         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
24799         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
24800         and PREFER_NON_DATA_SPEC.
24801         * sel-sched.c (process_spec_exprs): Remove handling of
24802         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
24803
24804 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24805
24806         Improve scheduling debug output
24807         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
24808         (advance_one_cycle): Update.
24809         (schedule_insn, queue_to_ready): Add debug printouts.
24810         (debug_ready_list_1): New static function.
24811         (debug_ready_list): Update.
24812         (max_issue): Add debug printouts.
24813         (dump_insn_stream): New static function.
24814         (schedule_block): Use it.  Also better indent printouts.
24815
24816 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24817
24818         Fix sched_insn debug counter
24819         * haifa-sched.c (schedule_insn): Update.
24820         (struct haifa_saved_data): Add nonscheduled_insns_begin.
24821         (save_backtrack_point, restore_backtrack_point): Update.
24822         (first_nonscheduled_insn): New static function.
24823         (queue_to_ready, choose_ready): Use it.
24824         (schedule_block): Init nonscheduled_insns_begin.
24825         (sched_emit_insn): Update.
24826
24827
24828 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
24829
24830         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
24831         to GENERAL_REGS.
24832         (aarch64_secondary_reload) : LikeWise.
24833         (aarch64_class_max_nregs) : Remove CORE_REGS.
24834         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
24835         (REG_CLASS_NAMES) : Likewise.
24836         (REG_CLASS_CONTENTS) : LikeWise.
24837         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
24838
24839 2014-05-21  Guozhi Wei  <carrot@google.com>
24840
24841         PR target/61202
24842         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
24843         constraint.
24844         (vqdmulhq_n_s16): Likewise.
24845
24846 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
24847
24848         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
24849
24850 2014-05-21  Marek Polacek  <polacek@redhat.com>
24851
24852         PR sanitizer/61272
24853         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
24854
24855 2014-05-21  Martin Jambor  <mjambor@suse.cz>
24856
24857         * doc/invoke.texi (Optimize Options): Document parameters
24858         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
24859         ipa-cp-array-index-hint-bonus.
24860
24861 2014-05-21  Mark Wielaard  <mjw@redhat.com>
24862
24863         PR debug/16063
24864         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
24865         version >= 3 or not strict DWARF.
24866         * langhooks.h (struct lang_hooks_for_types): Add
24867         enum_underlying_base_type.
24868         * langhooks.c (lhd_enum_underlying_base_type): New function.
24869         * gcc/langhooks.h (struct lang_hooks_for_types): Add
24870         enum_underlying_base_type.
24871         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
24872         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
24873         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
24874
24875 2014-05-21  Richard Biener  <rguenther@suse.de>
24876
24877         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
24878
24879 2014-05-21  John Marino  <gnugcc@marino.st>
24880
24881         * config.gcc (*-*-dragonfly*): New target.
24882         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
24883         * configure: Regenerate.
24884         * config/dragonfly-stdint.h: New.
24885         * config/dragonfly.h: New.
24886         * config/dragonfly.opt: New.
24887         * config/i386/dragonfly.h: New.
24888         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
24889
24890 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
24891
24892         * tree.def (VOID_CST): New.
24893         * tree-core.h (TI_VOID): New.
24894         * tree.h (void_node): New.
24895         * tree.c (tree_node_structure_for_code, tree_code_size)
24896         (iterative_hash_expr): Handle VOID_CST.
24897         (build_common_tree_nodes): Initialize void_node.
24898
24899 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
24900
24901         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
24902         functions.
24903         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
24904
24905         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
24906         more places.
24907
24908         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
24909         flag_reorder_blocks_and_partition.
24910         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
24911
24912 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
24913
24914         PR target/54236
24915         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
24916         constraints.
24917         (*addc_r_t): Add new insn_and_split.
24918
24919 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
24920
24921         PR middle-end/61252
24922         * omp-low.c (handle_simd_reference): New function.
24923         (lower_rec_input_clauses): Use it.  Defer adding reference
24924         initialization even for reduction without placeholder if in simd,
24925         handle it properly later on.
24926
24927 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
24928
24929         PR tree-optimization/60899
24930         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
24931         assume all static symbols will have definition wile parsing and
24932         check the do have definition later in compilation; check that
24933         variable referring symbol will be output before concluding that
24934         reference is safe; be conservative for referring local statics;
24935         be more precise about when comdat is output in other partition.
24936
24937 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
24938
24939         PR bootstrap/60984
24940         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
24941         parameter.
24942         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
24943         (ipa_inline): Loop inline_to_all_callers until no more aliases
24944         are removed.
24945
24946 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
24947
24948         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
24949         set writeonly flag only for vars actually written to.
24950
24951 2014-05-20  Dehao Chen  <dehao@google.com>
24952
24953         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
24954         and callee count to get clone count.
24955         * tree-inline.c (expand_call_inline): Use callee count instead of bb
24956         count in copy_body.
24957
24958 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
24959
24960         PR rtl-optimization/61243
24961         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
24962
24963 2014-05-20  Xinliang David Li  <davidxl@google.com>
24964
24965         * cgraphunit.c (walk_polymorphic_call_targets): Add
24966         dbgcnt and fopt-info support.
24967         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
24968         * ipa-devirt.c (ipa_devirt): Ditto.
24969         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
24970         * ipa.c (walk_polymorphic_call_targets): Ditto.
24971         * gimple-fold.c (fold_gimple_assign): Ditto.
24972         (gimple_fold_call): Ditto.
24973         * dbgcnt.def: New counter.
24974
24975 2014-05-20  DJ Delorie  <dj@redhat.com>
24976
24977         * config/msp430/msp430.md (split): Don't allow subregs when
24978         splitting SImode adds.
24979         (andneghi): Fix subtraction logic.
24980         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
24981
24982 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
24983
24984         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
24985         symbols.
24986         * except.c (switch_to_exception_section, resolve_unique_section,
24987         get_named_text_section, default_function_rodata_section,
24988         align_variable, get_block_for_decl, default_section_type_flags):
24989         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
24990         * symtab.c (symtab_add_to_same_comdat_group,
24991         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
24992         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
24993         Likewise.
24994         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
24995         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
24996         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
24997         (c6x_function_in_section_p): Likewise.
24998         * config/darwin.c (machopic_select_section): Likewise.
24999         * config/arm/arm.c (arm_function_in_section_p): Likewise.
25000         * config/mips/mips.c (mips_function_rodata_section): Likewise.
25001         * config/mep/mep.c (mep_select_section): LIkewise.
25002         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
25003
25004 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
25005
25006         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
25007         EH region of calls to pure functions that can throw an exception.
25008         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
25009         (copy_reference_ops_from_call): Also copy the EH region of the call if
25010         it can throw an exception.
25011
25012 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25013
25014         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
25015         nested VEC_SELECTs that are inverses of each other.
25016
25017 2014-05-20  Richard Biener  <rguenther@suse.de>
25018
25019         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
25020         (extract_and_process_scc_for_name): not here.
25021         (cond_dom_walker::before_dom_children): Only process
25022         stmts that end the BB in interesting ways.
25023         (run_scc_vn): Mark param uses as visited.
25024
25025 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25026
25027         * config/arm/arm.md (arith_shiftsi): Do not predicate for
25028         arm_restrict_it.
25029
25030 2014-05-20  Nick Clifton  <nickc@redhat.com>
25031
25032         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
25033         (msp430_gimplify_va_arg_expr): New function.
25034         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
25035
25036         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
25037         operand 0 in order to prevent confusion about the number of
25038         registers involved.
25039
25040 2014-05-20  Richard Biener  <rguenther@suse.de>
25041
25042         PR tree-optimization/61221
25043         * tree-ssa-pre.c (el_to_update): Remove.
25044         (eliminate_dom_walker::before_dom_children): Handle released
25045         VDEFs by value-numbering them to the associated VUSE.  Update
25046         stmt immediately for substituted call address.
25047         (eliminate): Remove delayed stmt updating code.
25048         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
25049         possibly late re-numbered vuses.
25050         (vn_reference_lookup_2): Adjust.
25051         (vn_reference_lookup_pieces): Likewise.
25052         (vn_reference_lookup): Likewise.
25053
25054 2014-05-20  Richard Biener  <rguenther@suse.de>
25055
25056         * config.gcc: Remove need_64bit_hwint.
25057         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
25058         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
25059         it to be true.
25060         * config.in: Regenerate.
25061         * configure: Likewise.
25062
25063 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
25064
25065         * doc/extend.texi: Create Label Attributes section,
25066         move all label attributes into it and reference it.
25067
25068 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
25069
25070         * arm.c (thumb1_reorg): When scanning backwards skip anything
25071         that's not a proper insn.
25072
25073 2014-05-19  Richard Biener  <rguenther@suse.de>
25074
25075         PR tree-optimization/61221
25076         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
25077         Do nothing for unreachable blocks.
25078         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
25079         Improve unreachability detection.
25080
25081 2014-05-19  Richard Biener  <rguenther@suse.de>
25082
25083         PR tree-optimization/61209
25084         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
25085
25086 2014-05-19  Nick Clifton  <nickc@redhat.com>
25087
25088         * except.c (init_eh): Fix computation of builtin setjmp buffer
25089         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
25090
25091 2014-05-19  Richard Biener  <rguenther@suse.de>
25092
25093         PR tree-optimization/61184
25094         * tree-vrp.c (is_negative_overflow_infinity): Use
25095         TREE_OVERFLOW_P and do that check first.
25096         (is_positive_overflow_infinity): Likewise.
25097         (is_overflow_infinity): Likewise.
25098         (vrp_operand_equal_p): Properly treat operands with
25099         differing overflow as not equal.
25100
25101 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
25102
25103         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
25104         shift simplification where it was intended.
25105
25106 2014-05-19  Christian Bruel  <christian.bruel@st.com>
25107
25108         PR target/61195
25109         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
25110
25111 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
25112
25113         PR target/61084
25114         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
25115         than wide_int.
25116
25117 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
25118
25119         * reg-notes.def (CROSSING_JUMP): Likewise.
25120         * rtl.h (rtx_def): Update comment for jump flag.
25121         (CROSSING_JUMP_P): Define.
25122         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
25123         of a REG_CROSSING_JUMP note.
25124         * cfghooks.c (tidy_fallthru_edges): Likewise.
25125         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
25126         * emit-rtl.c (try_split): Likewise.
25127         * haifa-sched.c (sched_create_recovery_edges): Likewise.
25128         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
25129         * jump.c (redirect_jump_2): Likewise.
25130         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
25131         (relax_delay_slots): Likewise.
25132         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
25133         (bbit_di): Likewise.
25134         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
25135         * config/sh/sh.md (jump_compact): Likewise.
25136         * bb-reorder.c (rotate_loop): Likewise.
25137         (pass_duplicate_computed_gotos::execute): Likewise.
25138         (add_reg_crossing_jump_notes): Rename to...
25139         (update_crossing_jump_flags): ...this.
25140         (pass_partition_blocks::execute): Update accordingly.
25141
25142 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
25143
25144         * tree.h: Remove extraneous template <>.
25145
25146 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
25147
25148         * ipa.c (symtab_remove_unreachable_nodes): Remove
25149         symbol from comdat group if its body was eliminated.
25150         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
25151         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
25152         (symtab_unregister_node): ... this one.
25153         (verify_symtab_base): More strict checking of comdats.
25154         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
25155
25156 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
25157
25158         * tree-pass.h (make_pass_ipa_comdats): New pass.
25159         * timevar.def (TV_IPA_COMDATS): New timevar.
25160         * passes.def (pass_ipa_comdats): Add.
25161         * Makefile.in (OBJS): Add ipa-comdats.o
25162         * ipa-comdats.c: New file.
25163
25164 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
25165
25166         * ipa.c (update_visibility_by_resolution_info): New function.
25167         (function_and_variable_visibility): Use it.
25168
25169 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
25170
25171         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
25172         New functions.
25173         (FOR_EACH_DEFINED_SYMBOL): New macro.
25174         (varpool_first_static_initializer, varpool_next_static_initializer,
25175         varpool_first_defined_variable, varpool_next_defined_variable):
25176         Fix comments.
25177         (symtab_in_same_comdat_p): Correctly deal with inline functions.
25178
25179 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
25180
25181         * ggc-page.c (ggc_handle_finalizers): Add comment.
25182
25183 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
25184
25185         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
25186         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
25187         (ggc_internal_cleared_alloc): Likewise.
25188         * ggc-page.c (finalizer): New class.
25189         (vec_finalizer): Likewise.
25190         (globals::finalizers): New member.
25191         (globals::vec_finalizers): Likewise.
25192         (ggc_internal_alloc): Record the finalizer if any for the block being
25193         allocated.
25194         (ggc_handle_finalizers): New function.
25195         (ggc_collect): Call ggc_handle_finalizers.
25196         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
25197         finalizer.
25198         (ggc_internal_cleared_alloc): Likewise.
25199         (finalize): New function.
25200         (need_finalization_p): Likewise.
25201         (ggc_alloc): Install the type's destructor as the finalizer if it
25202         might do something.
25203         (ggc_cleared_alloc): Likewise.
25204         (ggc_vec_alloc): Likewise.
25205         (ggc_cleared_vec_alloc): Likewise.
25206
25207 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
25208
25209         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
25210
25211 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
25212
25213         * alias.c (record_alias_subset): Adjust.
25214         * bitmap.c (bitmap_element_allocate): Likewise.
25215         (bitmap_gc_alloc_stat): Likewise.
25216         * cfg.c (init_flow): Likewise.
25217         (alloc_block): Likewise.
25218         (unchecked_make_edge): Likewise.
25219         * cfgloop.c (alloc_loop): Likewise.
25220         (flow_loops_find): Likewise.
25221         (rescan_loop_exit): Likewise.
25222         * cfgrtl.c (init_rtl_bb_info): Likewise.
25223         * cgraph.c (insert_new_cgraph_node_version): Likewise.
25224         (cgraph_allocate_node): Likewise.
25225         (cgraph_create_edge_1): Likewise.
25226         (cgraph_allocate_init_indirect_info): Likewise.
25227         * cgraphclones.c (cgraph_clone_edge): Likewise.
25228         * cgraphunit.c (add_asm_node): Likewise.
25229         (init_lowered_empty_function): Likewise.
25230         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
25231         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
25232         (alpha_use_linkage): Likewise.
25233         * config/arc/arc.c (arc_init_machine_status): Likewise.
25234         * config/arm/arm.c (arm_init_machine_status): Likewise.
25235         * config/avr/avr.c (avr_init_machine_status): Likewise.
25236         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
25237         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
25238         * config/cris/cris.c (cris_init_machine_status): Likewise.
25239         * config/darwin.c (machopic_indirection_name): Likewise.
25240         (darwin_build_constant_cfstring): Likewise.
25241         (darwin_enter_string_into_cfstring_table): Likewise.
25242         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
25243         * config/frv/frv.c (frv_init_machine_status): Likewise.
25244         * config/i386/i386.c (get_dllimport_decl): Likewise.
25245         (ix86_init_machine_status): Likewise.
25246         (assign_386_stack_local): Likewise.
25247         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
25248         (i386_pe_maybe_record_exported_symbol): Likewise.
25249         (i386_pe_record_stub): Likewise.
25250         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
25251         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
25252         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
25253         (m32c_note_pragma_address): Likewise.
25254         * config/mep/mep.c (mep_init_machine_status): Likewise.
25255         (mep_note_pragma_flag): Likewise.
25256         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
25257         (mips16_local_alias): Likewise.
25258         (mips_init_machine_status): Likewise.
25259         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
25260         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
25261         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
25262         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
25263         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
25264         * config/pa/pa.c (pa_init_machine_status): Likewise.
25265         (pa_get_deferred_plabel): Likewise.
25266         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
25267         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
25268         (rs6000_init_machine_status): Likewise.
25269         (output_toc): Likewise.
25270         * config/s390/s390.c (s390_init_machine_status): Likewise.
25271         * config/score/score.c (score_output_external): Likewise.
25272         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
25273         * config/spu/spu.c (spu_init_machine_status): Likewise.
25274         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
25275         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
25276         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
25277         * coverage.c (coverage_end_function): Likewise.
25278         * dbxout.c (dbxout_init): Likewise.
25279         * doc/gty.texi: Don't mention variable_size attribute.
25280         * dwarf2cfi.c (new_cfi): Adjust.
25281         (new_cfi_row): Likewise.
25282         (copy_cfi_row): Likewise.
25283         (create_cie_data): Likewise.
25284         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
25285         (new_loc_descr): Likewise.
25286         (find_AT_string_in_table): Likewise.
25287         (add_addr_table_entry): Likewise.
25288         (new_die): Likewise.
25289         (add_var_loc_to_decl): Likewise.
25290         (clone_die): Likewise.
25291         (clone_as_declaration): Likewise.
25292         (break_out_comdat_types): Likewise.
25293         (new_loc_list): Likewise.
25294         (add_loc_descr_to_each): Likewise.
25295         (add_location_or_const_value_attribute): Likewise.
25296         (add_linkage_name): Likewise.
25297         (lookup_filename): Likewise.
25298         (dwarf2out_var_location): Likewise.
25299         (new_line_info_table): Likewise.
25300         (dwarf2out_init): Likewise.
25301         (mem_loc_descriptor): Likewise.
25302         (loc_descriptor): Likewise.
25303         (add_const_value_attribute): Likewise.
25304         (tree_add_const_value_attribute): Likewise.
25305         (comp_dir_string): Likewise.
25306         (dwarf2out_vms_debug_main_pointer): Likewise.
25307         (string_cst_pool_decl): Likewise.
25308         * emit-rtl.c (set_mem_attrs): Likewise.
25309         (get_reg_attrs): Likewise.
25310         (start_sequence): Likewise.
25311         (init_emit): Likewise.
25312         (init_emit_regs): Likewise.
25313         * except.c (init_eh_for_function): Likewise.
25314         (gen_eh_region): Likewise.
25315         (gen_eh_region_catch): Likewise.
25316         (gen_eh_landing_pad): Likewise.
25317         (add_call_site): Likewise.
25318         * function.c (add_frame_space): Likewise.
25319         (insert_temp_slot_address): Likewise.
25320         (assign_stack_temp_for_type): Likewise.
25321         (get_hard_reg_initial_val): Likewise.
25322         (allocate_struct_function): Likewise.
25323         (prepare_function_start): Likewise.
25324         (types_used_by_var_decl_insert): Likewise.
25325         * gengtype.c (variable_size_p): Remove function.
25326         (enum alloc_quantity): Remove enum.
25327         (write_typed_alloc_def): Remove function.
25328         (write_typed_struct_alloc_def): Likewise.
25329         (write_typed_typedef_alloc_def): Likewise.
25330         (write_typed_alloc_defns): Likewise.
25331         (main): Adjust.
25332         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
25333         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
25334         * ggc.h (ggc_alloc): new function.
25335         (ggc_cleared_alloc): Likewise.
25336         (ggc_vec_alloc): Template on type of vector element, and remove
25337         element size argument.
25338         (ggc_cleared_vec_alloc): Likewise.
25339         * gimple.c (gimple_build_omp_for): Adjust.
25340         (gimple_copy): Likewise.
25341         * ipa-cp.c (get_replacement_map): Likewise.
25342         (find_aggregate_values_for_callers_subset): Likewise.
25343         (known_aggs_to_agg_replacement_list): Likewise.
25344         * ipa-devirt.c (get_odr_type): Likewise.
25345         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
25346         (read_agg_replacement_chain): Likewise.
25347         * loop-iv.c (get_simple_loop_desc): Likewise.
25348         * lto-cgraph.c (input_node_opt_summary): Likewise.
25349         * lto-section-in.c (lto_new_in_decl_state): Likewise.
25350         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
25351         (input_eh_region): Likewise.
25352         (input_eh_lp): Likewise.
25353         (input_cfg): Likewise.
25354         * optabs.c (set_optab_libfunc): Likewise.
25355         (init_tree_optimization_optabs): Likewise.
25356         (set_conv_libfunc): Likewise.
25357         * passes.c (do_per_function_toporder): Likewise.
25358         * rtl.h: Don't use variable_size gty attribute.
25359         * sese.c (if_region_set_false_region): Adjust.
25360         * stringpool.c (gt_pch_save_stringpool): Likewise.
25361         * target-globals.c (save_target_globals): Likewise.
25362         * toplev.c (general_init): Likewise.
25363         * trans-mem.c (record_tm_replacement): Likewise.
25364         (split_bb_make_tm_edge): Likewise.
25365         * tree-cfg.c (move_sese_region_to_fn): Likewise.
25366         * tree-data-ref.h (lambda_vector_new): Likewise.
25367         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
25368         * tree-iterator.c (tsi_link_before): Likewise.
25369         (tsi_link_after): Likewise.
25370         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
25371         * tree-ssa-loop-niter.c (record_estimate): Likewise.
25372         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
25373         * tree-ssa-operands.h: Don't use variable_size gty attribute.
25374         * tree-ssa.c (init_tree_ssa): Adjust.
25375         * tree-ssanames.c (set_range_info): Likewise.
25376         (get_ptr_info): Likewise.
25377         (duplicate_ssa_name_ptr_info): Likewise.
25378         (duplicate_ssa_name_range_info): Likewise.
25379         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
25380         (unpack_ts_fixed_cst_value_fields): Likewise.
25381         * tree.c (build_fixed): Likewise.
25382         (build_real): Likewise.
25383         (build_string): Likewise.
25384         (decl_priority_info): Likewise.
25385         (decl_debug_expr_insert): Likewise.
25386         (decl_value_expr_insert): Likewise.
25387         (decl_debug_args_insert): Likewise.
25388         (type_hash_add): Likewise.
25389         (build_omp_clause): Likewise.
25390         * ubsan.c (decl_for_type_insert): Likewise.
25391         * varasm.c (get_unnamed_section): Likewise.
25392         (get_noswitch_section): Likewise.
25393         (get_section): Likewise.
25394         (get_block_for_section): Likewise.
25395         (create_block_symbol): Likewise.
25396         (build_constant_desc): Likewise.
25397         (create_constant_pool): Likewise.
25398         (force_const_mem): Likewise.
25399         (record_tm_clone_pair): Likewise.
25400         * varpool.c (varpool_create_empty_node): Likewise.
25401
25402 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
25403
25404         * dwarf2out.c (tree_add_const_value_attribute): Call
25405         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
25406         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
25407         instead of ggc_internal_<x>alloc_stat.
25408         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
25409         (ggc_realloc): Likewise.
25410         * ggc-none.c (ggc_internal_alloc): Likewise.
25411         (ggc_internal_cleared_alloc): Likewise.
25412         * ggc-page.c: Likewise.
25413         * ggc.h (ggc_internal_alloc_stat): Likewise.
25414         (ggc_internal_alloc): Remove macro.
25415         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
25416         (ggc_internal_cleared_alloc): Remove macro.
25417         (GGC_RESIZEVEC): Adjust.
25418         (ggc_resizevar): Remove macro.
25419         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
25420         (ggc_internal_cleared_vec_alloc_stat): Likewise.
25421         (ggc_internal_vec_cleared_alloc): Remove macro.
25422         (ggc_alloc_atomic_stat): Drop _stat suffix.
25423         (ggc_alloc_atomic): Remove macro.
25424         (ggc_alloc_cleared_atomic): Remove macro.
25425         (ggc_alloc_string_stat): Drop _stat suffix.
25426         (ggc_alloc_string): Remove macro.
25427         (ggc_alloc_rtx_def_stat): Adjust.
25428         (ggc_alloc_tree_node_stat): Likewise.
25429         (ggc_alloc_cleared_tree_node_stat): Likewise.
25430         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
25431         (ggc_alloc_cleared_simd_clone_stat): Likewise.
25432         * gimple.c (gimple_build_omp_for): Likewise.
25433         (gimple_copy): Likewise.
25434         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
25435         * toplev.c (realloc_for_line_map): Adjust.
25436         * tree-data-ref.h (lambda_vector_new): Likewise.
25437         * tree-phinodes.c (allocate_phi_node): Likewise.
25438         * tree.c (grow_tree_vec_stat): Likewise.
25439         * vec.h (va_gc::reserve): Adjust.
25440
25441 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
25442
25443         * config/microblaze/microblaze.c (break_handler): New Declaration.
25444         (microblaze_break_function_p,microblaze_is_break_handler): New.
25445         (compute_frame_size): Use microblaze_break_function_p.
25446         Add the test of break_handler.
25447         (microblaze_function_prologue) : Add the test of variable
25448         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
25449         (microblaze_function_epilogue) : Add the test of break_handler.
25450         (microblaze_globalize_label) : Add the test of break_handler.
25451         Check the name by BREAK_HANDLER_NAME.
25452
25453         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
25454
25455         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
25456         microblaze_is_break_handler test.
25457         (call_internal1,call_value_intern): Use microblaze_break_function_p.
25458         Use SYMBOL_REF_DECL.
25459
25460         * config/microblaze/microblaze-protos.h
25461         (microblaze_break_function_p,microblaze_is_break_handler):
25462         New Declaration.
25463
25464         * doc/extend.texi (MicroBlaze break_handler Functions): Document
25465         new MicroBlaze break_handler functions.
25466
25467 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
25468
25469         * doc/extend.texi (Size of an asm): Move node text according
25470         to its @menu entry position.
25471
25472 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
25473
25474         PR tree-optimization/61140
25475         PR tree-optimization/61150
25476         PR tree-optimization/61197
25477         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
25478
25479 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
25480
25481         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
25482
25483 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
25484
25485         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
25486         __SIZEOF_INT128__ is defined.
25487
25488 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
25489
25490         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
25491         (rs6000_delegitimize_address): Use it.
25492
25493 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
25494
25495         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
25496         inplace argument.  Store the new address in the original MEM when true.
25497         * emit-rtl.c (change_address_1): Likewise.
25498         (adjust_address_1, adjust_automodify_address_1, offset_address):
25499         Update accordingly.
25500         * rtl.h (plus_constant): Add an inplace argument.
25501         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
25502         when true.  Avoid generating (plus X (const_int 0)).
25503         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
25504         in-place.  Pass true to plus_constant.
25505         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
25506
25507 2014-05-16  Dehao Chen  <dehao@google.com>
25508
25509         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
25510
25511 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
25512
25513         PR target/54089
25514         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
25515         patterns.
25516         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
25517
25518 2014-05-16  Dehao Chen  <dehao@google.com>
25519
25520         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
25521         optimize_function_for_size_p.
25522         * regs.h (REG_FREQ_FROM_BB): Likewise.
25523
25524 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
25525
25526         PR target/51244
25527         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
25528         negt_reg_operand cases.
25529         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
25530         predicate.
25531         * config/sh/predicates.md (cbranch_treg_value): Simplify.
25532
25533 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
25534
25535         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
25536         target variants.
25537
25538 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
25539
25540         Revert:
25541         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
25542
25543         * tree-cfg.c (dump_function_to_file): Dump the return type of
25544         functions, in a line to itself before the function body, mimicking
25545         the layout of a C function.
25546
25547 2014-05-16  Dehao Chen  <dehao@google.com>
25548
25549         * cfghooks.c (make_forwarder_block): Use direct computation to
25550         get fall-through edge's count and frequency.
25551
25552 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
25553
25554         * config/arc/arc.c (arc_init): Fix typo in error message.
25555         * config/i386/i386.c (ix86_expand_builtin): Likewise.
25556         (split_stack_prologue_scratch_regno): Likewise.
25557         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
25558         word from error message.
25559
25560 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
25561
25562         * ira-costs.c: Fix typo in comment.
25563
25564 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
25565
25566         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
25567
25568 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
25569
25570         * varpool.c (dump_varpool_node): Dump write-only flag.
25571         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
25572         write-only flag.
25573         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
25574         write-only variables.
25575         * ipa.c (process_references): New function.
25576         (set_readonly_bit): New function.
25577         (set_writeonly_bit): New function.
25578         (clear_addressable_bit): New function.
25579         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
25580         fix handling of aliases.
25581         * cgraph.h (struct varpool_node): Add writeonly flag.
25582
25583 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
25584
25585         PR rtl-optimization/60969
25586         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
25587         Calculate costs for this case.
25588
25589 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
25590
25591         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
25592         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
25593
25594 2014-05-16  Richard Biener  <rguenther@suse.de>
25595
25596         PR tree-optimization/61194
25597         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
25598         bool patterns ending in a COND_EXPR.
25599
25600 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25601
25602         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
25603
25604 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25605
25606         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
25607         where we were unable to cost an RTX.
25608
25609 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25610
25611         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
25612         HIGH, LO_SUM.
25613
25614 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25615             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25616
25617         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
25618
25619 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25620             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25621
25622         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
25623         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
25624
25625 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25626             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25627
25628         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
25629         operators.
25630
25631 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25632             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25633
25634         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
25635         DIV/MOD.
25636
25637 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25638             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25639
25640         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
25641         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
25642
25643 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25644             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25645
25646         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
25647         rotates and shifts.
25648
25649 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25650             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25651
25652         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
25653         ZERO_EXTEND and SIGN_EXTEND better.
25654
25655 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25656             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25657
25658         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
25659         logical operations.
25660
25661 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25662             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25663
25664         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
25665         costs when costing loads and stores to memory.
25666
25667 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25668             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
25669
25670         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
25671         for SET RTX.
25672
25673 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25674
25675         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
25676
25677 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25678             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25679
25680         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
25681         to...
25682         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
25683         well formed.
25684         (aarch64_rtx_mult_cost): New.
25685         (aarch64_rtx_costs): Use it, refactor as appropriate.
25686
25687 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25688             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25689
25690         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
25691         emit instructions, return number of instructions which would
25692         be emitted.
25693         (aarch64_add_constant): Update call to aarch64_build_constant.
25694         (aarch64_output_mi_thunk): Likewise.
25695         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
25696         a CONST_DOUBLE.
25697
25698 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25699
25700         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
25701         (TARGET_RTX_COSTS): Call it.
25702
25703 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25704
25705         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
25706         (cortexa57_vector_cost): Likewise.
25707         (cortexa57_tunings): Use them.
25708
25709 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25710
25711         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
25712         (cpu_addrcost_table): Use it.
25713         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
25714         (aarch64_address_cost): Rewrite using aarch64_classify_address,
25715         move it.
25716
25717 2014-05-16  Richard Biener  <rguenther@suse.de>
25718
25719         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
25720         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
25721         (visit_phi): Ignore edges marked as not executable.
25722         (class cond_dom_walker): New.
25723         (cond_dom_walker::before_dom_children): Value-number
25724         control statements and mark successor edges as not
25725         executable if possible.
25726         (run_scc_vn): First walk all control statements in
25727         dominator order, marking edges as not executable.
25728         * tree-inline.c (copy_edges_for_bb): Be not confused
25729         about random edge flags.
25730
25731 2014-05-16  Richard Biener  <rguenther@suse.de>
25732
25733         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
25734
25735 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
25736
25737         PR target/61193
25738         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
25739         (__TM_simple_begin): Use it.
25740         (__TM_begin): Likewise.
25741
25742 2014-05-15  Martin Jambor  <mjambor@suse.cz>
25743
25744         PR ipa/61085
25745         * ipa-prop.c (update_indirect_edges_after_inlining): Check
25746         type_preserved flag when the indirect edge is polymorphic.
25747
25748 2014-05-15  Martin Jambor  <mjambor@suse.cz>
25749
25750         PR tree-optimization/61090
25751         * tree-sra.c (sra_modify_expr): Pass the current gsi to
25752         build_ref_for_model.
25753
25754 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25755
25756         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
25757         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
25758
25759 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
25760
25761         PR tree-optimization/61158
25762         * fold-const.c (fold_binary_loc): If X is zero-extended and
25763         shiftc >= prec, make sure zerobits is all ones instead of
25764         invoking undefined behavior.
25765
25766 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25767
25768         * regcprop.h: New file.
25769         * regcprop.c (skip_debug_insn_p): New decl.
25770         (replace_oldest_value_reg): Check skip_debug_insn_p.
25771         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
25772         * shrink-wrap.c: Include regcprop.h.
25773         (prepare_shrink_wrap): Call
25774         copyprop_hardreg_forward_bb_without_debug_insn.
25775
25776 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25777
25778         * shrink-wrap.h: Update comment.
25779         * shrink-wrap.c: Update comment.
25780         (next_block_for_reg): Rename to live_edge_for_reg.
25781         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
25782         (move_insn_for_shrink_wrap): Split live_edge.
25783         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
25784
25785 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
25786
25787         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
25788         Delete.
25789         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
25790         * config/sparc/sparc.md (fptype_ut699): New attribute.
25791         (in_branch_delay): Return false if -mfix-ut699 is specified and
25792         fptype_ut699 is set to single.
25793         (truncdfsf2): Add fptype_ut699 attribute.
25794         (fix_truncdfsi2): Likewise.
25795         (floatsisf2): Change fptype attribute.
25796         (fix_truncsfsi2): Likewise.
25797         (negtf2_notv9): Delete.
25798         (negtf2_v9): Likewise.
25799         (negtf2_hq): New instruction.
25800         (negtf2): New instruction and splitter.
25801         (negdf2_notv9): Rewrite.
25802         (abstf2_notv9): Delete.
25803         (abstf2_hq_v9): Likewise.
25804         (abstf2_v9): Likewise.
25805         (abstf2_hq): New instruction.
25806         (abstf2): New instruction and splitter.
25807         (absdf2_notv9): Rewrite.
25808
25809 2014-05-14  Cary Coutant  <ccoutant@google.com>
25810
25811         PR debug/61013
25812         * opts.c (common_handle_option): Don't special-case "-g".
25813         (set_debug_level): Default to at least level 2 with "-g".
25814
25815 2014-05-14  DJ Delorie  <dj@redhat.com>
25816
25817         * config/msp430/msp430.c (msp430_builtin): Add
25818         MSP430_BUILTIN_DELAY_CYCLES.
25819         (msp430_init_builtins): Register void __delay_cycles(long long).
25820         (msp430_builtin_decl): Add it.
25821         (cg_magic_constant): New.
25822         (msp430_expand_delay_cycles): New.
25823         (msp430_expand_builtin): Call it.
25824         (msp430_print_operand_raw): Change integer printing from "int" to
25825         HOST_WIDE_INT.
25826         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
25827         (delay_cycles_start): New.
25828         (delay_cycles_end): New.
25829         (delay_cycles_32): New.
25830         (delay_cycles_32x): New.
25831         (delay_cycles_16): New.
25832         (delay_cycles_16x): New.
25833         (delay_cycles_2): New.
25834         (delay_cycles_1): New.
25835         * doc/extend.texi: Document __delay_cycles().
25836
25837 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
25838
25839         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
25840         length attribute computation.
25841
25842 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
25843
25844         PR debug/61188
25845         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
25846
25847 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
25848
25849         PR target/61084
25850         * config/sparc/sparc.md: Fix types of low and high in DI constant
25851         splitter.  Use gen_int_mode in some other splitters.
25852
25853 2014-05-14  Martin Jambor  <mjambor@suse.cz>
25854
25855         PR ipa/60897
25856         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
25857
25858 2014-05-14  James Norris  <jnorris@codesourcery.com>
25859
25860         * omp-low.c (expand_parallel_call): Remove shadow variable.
25861         (expand_omp_taskreg): Likewise.
25862
25863 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
25864
25865         * common/config/i386/i386-common.c
25866         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
25867         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
25868         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
25869         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
25870         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
25871         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
25872         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
25873         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
25874         xsavecintrin.h, xsavesintrin.h.
25875         (x86_64-*-*): Ditto.
25876         * config/i386/clflushoptintrin.h: New.
25877         * config/i386/xsavecintrin.h: Ditto.
25878         * config/i386/xsavesintrin.h: Ditto.
25879         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
25880         (bit_XSAVES): Ditto.
25881         (bit_XSAVES): Ditto.
25882         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
25883         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
25884         -mno-clflushopt.
25885         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25886         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
25887         OPTION_MASK_ISA_XSAVES.
25888         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
25889         -mxsavec, -mxsaves.
25890         (PTA_CLFLUSHOPT) Define.
25891         (PTA_XSAVEC): Ditto.
25892         (PTA_XSAVES): Ditto.
25893         (ix86_option_override_internal): Handle new options.
25894         (ix86_valid_target_attribute_inner_p): Ditto.
25895         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
25896         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
25897         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
25898         (bdesc_special_args): Add __builtin_ia32_xsaves,
25899         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
25900         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
25901         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
25902         (ix86_expand_builtin): Handle new builtins.
25903         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
25904         (TARGET_CLFLUSHOPT_P): Ditto.
25905         (TARGET_XSAVEC): Ditto.
25906         (TARGET_XSAVEC_P): Ditto.
25907         (TARGET_XSAVES): Ditto.
25908         (TARGET_XSAVES_P): Ditto.
25909         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
25910         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
25911         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
25912         (ANY_XRSTOR): New.
25913         (ANY_XRSTOR64): Ditto.
25914         (xrstor): Ditto.
25915         (xrstor): Change into <xrstor>.
25916         (xrstor_rex64): Change into <xrstor>_rex64.
25917         (xrstor64): Change into <xrstor>64
25918         (clflushopt): New.
25919         * config/i386/i386.opt (mclflushopt): New.
25920         (mxsavec): Ditto.
25921         (mxsaves): Ditto.
25922         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
25923         xsavecintrin.h.
25924         * doc/invoke.texi: Document new options.
25925
25926 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
25927
25928         PR rtl-optimization/60866
25929         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
25930         Default it to -1.  Pass it down to init_simplejump_data.
25931         (init_simplejump_data): New parameter old_seqno.  Pass it down
25932         to get_seqno_for_a_jump.
25933         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
25934         initializing new jump seqno as a last resort.  Add comment.
25935         (sel_redirect_edge_and_branch): Save old seqno of the conditional
25936         jump and pass it down to sel_init_new_insn.
25937         (sel_redirect_edge_and_branch_force): Likewise.
25938
25939 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
25940
25941         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
25942         shifted values to avoid build warning.
25943
25944 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
25945
25946         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
25947         * cfgrtl.c (rtl_merge_blocks): Fix comment.
25948         (cfg_layout_merge_blocks): Likewise.
25949         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
25950
25951 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
25952
25953         PR rtl-optimization/60901
25954         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
25955         bb predecessor belongs to the same scheduling region.  Adjust comment.
25956
25957 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
25958
25959         * doc/sourcebuild.texi: (dfp_hw): Document.
25960         (p8vector_hw): Likewise.
25961         (powerpc_eabi_ok): Likewise.
25962         (powerpc_elfv2): Likewise.
25963         (powerpc_htm_ok): Likewise.
25964         (ppc_recip_hw): Likewise.
25965         (vsx_hw): Likewise.
25966
25967 2014-05-13  Cary Coutant  <ccoutant@google.com>
25968
25969         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
25970
25971 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
25972
25973         * gengtype-parse.c (require3): Eliminate in favor of...
25974         (require4): New.
25975         (require_template_declaration): Update to support optional single *
25976         on a type.
25977
25978         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
25979         (create_user_defined_type): Handle a single level of explicit
25980         pointerness within template arguments.
25981         (struct write_types_data): Add field "kind".
25982         (filter_type_name): Handle "*" character.
25983         (write_user_func_for_structure_ptr): Require a write_types_data
25984         rather than just a prefix string, so that we can look up the kind
25985         of the wtd and use it as an index into wrote_user_func_for_ptr,
25986         ensuring that such functions are written at most once.  Support
25987         subclasses by invoking the marking function of the ultimate base class.
25988         (write_user_func_for_structure_body): Require a write_types_data
25989         rather than just a prefix string, so that we can pass this to
25990         write_user_func_for_structure_ptr.
25991         (write_func_for_structure): Likewise.
25992         (ggc_wtd): Add initializer of new "kind" field.
25993         (pch_wtd): Likewise.
25994
25995         * gengtype.h (enum write_types_kinds): New.
25996         (struct type): Add field wrote_user_func_for_ptr to the "s"
25997         union member.
25998
25999 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
26000
26001         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
26002         instead of const_binop.
26003         (fold_binary_loc): Likewise.
26004
26005 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
26006
26007         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
26008         calculation to match get_ref_base_and_extent.
26009
26010 2014-05-13  Catherine Moore  <clm@codesourcery.com>
26011             Sandra Loosemore  <sandra@codesourcery.com>
26012
26013         * configure.ac: Fix assembly for explicit JALR relocation check.
26014         * configure: Regenerate.
26015
26016 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26017
26018         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
26019         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
26020         Remove associated type declarations and initialisations.
26021         (arm_expand_neon_builtin): Likewise.
26022         (neon_emit_pair_result_insn): Delete.
26023         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
26024         * config/arm/neon.md (neon_vtrn<mode>): Delete.
26025         (neon_vzip<mode>): Likewise.
26026         (neon_vuzp<mode>): Likewise.
26027
26028 2014-05-13  Richard Biener  <rguenther@suse.de>
26029
26030         PR ipa/60973
26031         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
26032         it needs revisiting whether the call still may be tail-called.
26033
26034 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
26035
26036         * rtl.def (SYMBOL_REF): Remove middle "0" field.
26037         * rtl.h (block_symbol): Reduce number of fields to 2.
26038         (rtx_def): Add u2.symbol_ref_flags.
26039         (SYMBOL_REF_FLAGS): Use it.
26040         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
26041         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
26042         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
26043         Lower index of SYMBOL_REF_DATA.
26044         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
26045         Print SYMBOL_REF_FLAGS at the same time.
26046         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
26047
26048 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
26049
26050         * rtl.def (VAR_LOCATION): Remove "i" field.
26051         * rtl.h (rtx_def): Add u2.var_location_status.
26052         (PAT_VAR_LOCATION_STATUS): Use it.
26053         (gen_rtx_VAR_LOCATION): Declare.
26054         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
26055         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
26056         * var-tracking.c (emit_note_insn_var_location): Remove casts.
26057
26058 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
26059
26060         * rtl.def (scratch): Fix outdated comment and remove "0" field.
26061         * gengtype.c (adjust_field_rtx_def): Update accordingly.
26062
26063 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
26064
26065         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
26066         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
26067         * rtl.h (rtx_def): Add insn_uid to u2 field.
26068         (RTX_FLAG_CHECK8): Delete in favor of...
26069         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
26070         (INSN_DELETED_P): Update accordingly.
26071         (INSN_UID): Use u2.insn_uid.
26072         (INSN_CHAIN_CODE_P): Define.
26073         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
26074         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
26075         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
26076         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
26077         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
26078         indices accordingly.
26079         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
26080         Update indices for insn-chain rtxes.
26081         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
26082         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
26083         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
26084         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
26085         * combine.c (try_combine): Likewise.
26086         * ira.c (setup_prohibited_mode_move_regs): Likewise.
26087
26088 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
26089
26090         * rtl.def (REG): Remove middle field.
26091         * rtl.h (rtx_def): Add orignal_regno to u2.
26092         (ORIGINAL_REGNO): Use it instead of field 1.
26093         (REG_ATTRS): Lower field index accordingly.
26094         * gengtype.c (adjust_field_rtx_def): Remove handling of
26095         ORIGINAL_REGNO.  Move REG_ATTRS index down.
26096         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
26097         code that prints the REGNO.
26098
26099 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
26100
26101         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
26102         GENERATOR_FILE.
26103
26104 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
26105
26106         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
26107
26108 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
26109
26110         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
26111         (alloc_iv): Lower base expressions containing ADDR_EXPR.
26112
26113 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
26114
26115         * config/aarch64/aarch64-protos.h
26116         (aarch64_hard_regno_caller_save_mode): New prototype.
26117         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
26118         New function.
26119         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
26120
26121 2014-05-13  Christian Bruel  <christian.bruel@st.com>
26122
26123         * target.def (mode_switching): New hook vector.
26124         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
26125         (mode_exit, modepriority_to_mode): Likewise.
26126         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
26127         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
26128         * target.h: Include tm.h and hard-reg-set.h.
26129         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
26130         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
26131         * doc/tm.texi Regenerate.
26132         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
26133         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
26134         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
26135         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
26136         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
26137         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
26138         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
26139         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
26140         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
26141         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
26142         (ix86_emit_mode_set): Hookify.
26143         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
26144         Delete.
26145         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
26146         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
26147         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
26148         (epiphany_mode_priority_to_mode): Remove declaration.
26149         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
26150         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
26151         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
26152         Likewise.
26153         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
26154         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
26155         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
26156
26157 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
26158
26159         PR target/61060
26160         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
26161         is const0_rtx, return immediately.  Don't test count == 0 when
26162         it is always true.
26163
26164 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
26165
26166         * Makefile.in: add shrink-wrap.o.
26167         * config/i386/i386.c: include "shrink-wrap.h"
26168         * function.c: Likewise.
26169         (requires_stack_frame_p, next_block_for_reg,
26170         move_insn_for_shrink_wrap, prepare_shrink_wrap,
26171         dup_block_and_redirect): Move to shrink-wrap.c
26172         (thread_prologue_and_epilogue_insns): Extract three code segments
26173         as functions in shrink-wrap.c
26174         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
26175         shrink-wrap.h
26176         * shrink-wrap.c: New file.
26177         * shrink-wrap.h: New file.
26178
26179 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
26180
26181         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
26182         reference to Solaris.
26183
26184 2014-05-12  Mike Stump  <mikestump@comcast.net>
26185
26186         PR other/31778
26187         * genattrtab.c (filename): Add.
26188         (convert_set_attr_alternative): Improve error message.
26189         (check_defs): Restore read_md_filename for error messages.
26190         (gen_insn): Save filename.
26191
26192 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
26193
26194         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
26195         -fno-local-ivars and -fivar-visibility.
26196         * c-family/c.opt: Make -Wshadow also implicitly enable
26197         -Wshadow-ivar.
26198
26199 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
26200
26201         * doc/tm.texi: Remove reference to deleted macro.
26202         * doc/tm.texi.in: Likewise.
26203
26204 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
26205
26206         PR target/60991
26207         * config/avr/avr.c (avr_out_store_psi): Use correct constant
26208         to restore Y.
26209
26210 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
26211
26212         PR libgcc/61152
26213         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
26214         * config/arm/aout.h (License): Same.
26215         * config/arm/bpabi.h (License): Same.
26216         * config/arm/elf.h (License): Same.
26217         * config/arm/linux-elf.h (License): Same.
26218         * config/arm/linux-gas.h (License): Same.
26219         * config/arm/netbsd-elf.h (License): Same.
26220         * config/arm/uclinux-eabi.h (License): Same.
26221         * config/arm/uclinux-elf.h (License): Same.
26222         * config/arm/vxworks.h (License): Same.
26223
26224 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
26225
26226         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
26227         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
26228         number of operands to 3.
26229         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
26230         * tree-nested.c (convert_nonlocal_omp_clauses,
26231         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
26232         * gimplify.c (gimplify_scan_omp_clauses): Handle
26233         OMP_CLAUSE_LINEAR_STMT.
26234         * omp-low.c (lower_rec_input_clauses): Fix typo.
26235         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
26236         cast between Fortran boolean_type_node and C _Bool if
26237         needed.
26238
26239 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
26240
26241         PR tree-optimization/61136
26242         * wide-int.h (multiple_of_p): Define a version that doesn't return
26243         the quotient.
26244         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
26245         integer_zerop/const_binop pair.
26246         (multiple_of_p): Likewise, converting both operands to widest_int
26247         precision.
26248
26249 2014-05-09  Teresa Johnson  <tejohnson@google.com>
26250
26251         * cgraphunit.c (analyze_functions): Use correct dump file.
26252
26253 2014-05-09  Florian Weimer  <fweimer@redhat.com>
26254
26255         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
26256         expand_used_vars.
26257         (stack_protect_return_slot_p): New function.
26258         (expand_used_vars): Call stack_protect_decl_p and
26259         stack_protect_return_slot_p for -fstack-protector-strong.
26260
26261 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
26262         Andrew Haley <aph@redhat.com>
26263         Richard Sandiford <rdsandiford@googlemail.com>
26264
26265         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
26266         pages.
26267
26268 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
26269
26270         PR middle-end/61111
26271         * fold-const.c (fold_binary_loc): Changed width of mask.
26272
26273 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
26274
26275         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
26276         unsigned int initializers for regno_in, regno_out.
26277
26278 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
26279
26280         PR target/61055
26281         * config/avr/avr.md (cc): Add new attribute set_vzn.
26282         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
26283         Set cc insn attribute to set_vzn instead of set_zn for alternatives
26284         with INC, DEC or NEG.
26285         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
26286         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
26287         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
26288
26289 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26290
26291         Revert:
26292         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26293
26294         * wide-int.cc (UTItype): Define.
26295         (UDWtype): Define for appropriate W_TYPE_SIZE.
26296
26297 2014-05-09  Richard Biener  <rguenther@suse.de>
26298
26299         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
26300         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
26301         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
26302         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
26303         ssa_propagate): Adjust.
26304
26305 2014-05-08  Jeff Law  <law@redhat.com>
26306
26307         PR tree-optimization/61009
26308         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
26309         tri-state rather than a boolean.  When a block is too big to
26310         thread through, inform caller via negative return value.
26311         (thread_across_edge): If a block was too big for normal threading,
26312         then it's too big for a joiner too, so remove temporary equivalences
26313         and return immediately.
26314
26315 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26316             Matthias Klose  <doko@ubuntu.com>
26317
26318         PR driver/61106
26319         * optc-gen.awk: Fix option handling for -Wunused-parameter.
26320
26321 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
26322
26323         PR target/59952
26324         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
26325
26326 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
26327
26328         PR target/61092
26329         * config/alpha/alpha.c: Include gimple-iterator.h.
26330         (alpha_gimple_fold_builtin): New function.  Move
26331         ALPHA_BUILTIN_UMULH folding from ...
26332         (alpha_fold_builtin): ... here.
26333         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
26334
26335 2014-05-08  Wei Mi  <wmi@google.com>
26336
26337         PR target/58066
26338         * config/i386/i386.c (ix86_compute_frame_layout): Update
26339         preferred_stack_boundary for call, expanded from tls descriptor.
26340         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
26341         to depend on SP register.
26342         (*tls_local_dynamic_base_32_gnu): Ditto.
26343         (*tls_local_dynamic_32_once): Ditto.
26344         (tls_global_dynamic_64_<mode>): Set
26345         ix86_tls_descriptor_calls_expanded_in_cfun.
26346         (tls_local_dynamic_base_64_<mode>): Ditto.
26347         (tls_global_dynamic_32): Set
26348         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
26349         to depend on SP register.
26350         (tls_local_dynamic_base_32): Ditto.
26351
26352 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26353
26354         * config/arm/arm_neon.h: Update comment.
26355         * config/arm/neon-docgen.ml: Delete.
26356         * config/arm/neon-gen.ml: Delete.
26357         * doc/arm-neon-intrinsics.texi: Update comment.
26358
26359 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26360
26361         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
26362         and v4sf versions.
26363         (vand, vorr, veor, vorn, vbic): Remove.
26364         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
26365         iterator.
26366         (neon_vsub_unspec): Likewise.
26367         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
26368
26369 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26370
26371         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
26372         (vadd_s16): Likewise.
26373         (vadd_s32): Likewise.
26374         (vadd_f32): Likewise.
26375         (vadd_u8): Likewise.
26376         (vadd_u16): Likewise.
26377         (vadd_u32): Likewise.
26378         (vadd_s64): Likewise.
26379         (vadd_u64): Likewise.
26380         (vaddq_s8): Likewise.
26381         (vaddq_s16): Likewise.
26382         (vaddq_s32): Likewise.
26383         (vaddq_s64): Likewise.
26384         (vaddq_f32): Likewise.
26385         (vaddq_u8): Likewise.
26386         (vaddq_u16): Likewise.
26387         (vaddq_u32): Likewise.
26388         (vaddq_u64): Likewise.
26389         (vmul_s8): Likewise.
26390         (vmul_s16): Likewise.
26391         (vmul_s32): Likewise.
26392         (vmul_f32): Likewise.
26393         (vmul_u8): Likewise.
26394         (vmul_u16): Likewise.
26395         (vmul_u32): Likewise.
26396         (vmul_p8): Likewise.
26397         (vmulq_s8): Likewise.
26398         (vmulq_s16): Likewise.
26399         (vmulq_s32): Likewise.
26400         (vmulq_f32): Likewise.
26401         (vmulq_u8): Likewise.
26402         (vmulq_u16): Likewise.
26403         (vmulq_u32): Likewise.
26404         (vsub_s8): Likewise.
26405         (vsub_s16): Likewise.
26406         (vsub_s32): Likewise.
26407         (vsub_f32): Likewise.
26408         (vsub_u8): Likewise.
26409         (vsub_u16): Likewise.
26410         (vsub_u32): Likewise.
26411         (vsub_s64): Likewise.
26412         (vsub_u64): Likewise.
26413         (vsubq_s8): Likewise.
26414         (vsubq_s16): Likewise.
26415         (vsubq_s32): Likewise.
26416         (vsubq_s64): Likewise.
26417         (vsubq_f32): Likewise.
26418         (vsubq_u8): Likewise.
26419         (vsubq_u16): Likewise.
26420         (vsubq_u32): Likewise.
26421         (vsubq_u64): Likewise.
26422         (vand_s8): Likewise.
26423         (vand_s16): Likewise.
26424         (vand_s32): Likewise.
26425         (vand_u8): Likewise.
26426         (vand_u16): Likewise.
26427         (vand_u32): Likewise.
26428         (vand_s64): Likewise.
26429         (vand_u64): Likewise.
26430         (vandq_s8): Likewise.
26431         (vandq_s16): Likewise.
26432         (vandq_s32): Likewise.
26433         (vandq_s64): Likewise.
26434         (vandq_u8): Likewise.
26435         (vandq_u16): Likewise.
26436         (vandq_u32): Likewise.
26437         (vandq_u64): Likewise.
26438         (vorr_s8): Likewise.
26439         (vorr_s16): Likewise.
26440         (vorr_s32): Likewise.
26441         (vorr_u8): Likewise.
26442         (vorr_u16): Likewise.
26443         (vorr_u32): Likewise.
26444         (vorr_s64): Likewise.
26445         (vorr_u64): Likewise.
26446         (vorrq_s8): Likewise.
26447         (vorrq_s16): Likewise.
26448         (vorrq_s32): Likewise.
26449         (vorrq_s64): Likewise.
26450         (vorrq_u8): Likewise.
26451         (vorrq_u16): Likewise.
26452         (vorrq_u32): Likewise.
26453         (vorrq_u64): Likewise.
26454         (veor_s8): Likewise.
26455         (veor_s16): Likewise.
26456         (veor_s32): Likewise.
26457         (veor_u8): Likewise.
26458         (veor_u16): Likewise.
26459         (veor_u32): Likewise.
26460         (veor_s64): Likewise.
26461         (veor_u64): Likewise.
26462         (veorq_s8): Likewise.
26463         (veorq_s16): Likewise.
26464         (veorq_s32): Likewise.
26465         (veorq_s64): Likewise.
26466         (veorq_u8): Likewise.
26467         (veorq_u16): Likewise.
26468         (veorq_u32): Likewise.
26469         (veorq_u64): Likewise.
26470         (vbic_s8): Likewise.
26471         (vbic_s16): Likewise.
26472         (vbic_s32): Likewise.
26473         (vbic_u8): Likewise.
26474         (vbic_u16): Likewise.
26475         (vbic_u32): Likewise.
26476         (vbic_s64): Likewise.
26477         (vbic_u64): Likewise.
26478         (vbicq_s8): Likewise.
26479         (vbicq_s16): Likewise.
26480         (vbicq_s32): Likewise.
26481         (vbicq_s64): Likewise.
26482         (vbicq_u8): Likewise.
26483         (vbicq_u16): Likewise.
26484         (vbicq_u32): Likewise.
26485         (vbicq_u64): Likewise.
26486         (vorn_s8): Likewise.
26487         (vorn_s16): Likewise.
26488         (vorn_s32): Likewise.
26489         (vorn_u8): Likewise.
26490         (vorn_u16): Likewise.
26491         (vorn_u32): Likewise.
26492         (vorn_s64): Likewise.
26493         (vorn_u64): Likewise.
26494         (vornq_s8): Likewise.
26495         (vornq_s16): Likewise.
26496         (vornq_s32): Likewise.
26497         (vornq_s64): Likewise.
26498         (vornq_u8): Likewise.
26499         (vornq_u16): Likewise.
26500         (vornq_u32): Likewise.
26501         (vornq_u64): Likewise.
26502
26503 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26504
26505         * wide-int.cc (UTItype): Define.
26506         (UDWtype): Define for appropriate W_TYPE_SIZE.
26507
26508 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
26509
26510         PR tree-optimization/59100
26511         * tree-ssa-phiopt.c: Include tree-inline.h.
26512         (neutral_element_p, absorbing_element_p): New functions.
26513         (value_replacement): Handle conditional binary operations with a
26514         neutral or absorbing element.
26515
26516 2014-05-08  Richard Biener  <rguenther@suse.de>
26517
26518         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
26519         folding the expression.
26520         (valueize_expr): Remove.
26521         (visit_reference_op_load): Do not valueize the result of
26522         vn_get_expr_for.
26523         (simplify_binary_expression): Likewise.
26524         (simplify_unary_expression): Likewise.
26525
26526 2014-05-08  Richard Biener  <rguenther@suse.de>
26527
26528         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
26529         looking at TYPE_ARG_TYPES.
26530
26531 2014-05-08  Richard Biener  <rguenther@suse.de>
26532
26533         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
26534         pointer propagation special-case.
26535
26536 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
26537
26538         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
26539         core part of address expressions.
26540
26541 2014-05-08  Alan Modra  <amodra@gmail.com>
26542
26543         PR target/60737
26544         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
26545         loads and stores when -mno-strict-align at any alignment.
26546         (expand_block_clear): Similarly.  Also correct calculation of
26547         instruction count.
26548
26549 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26550
26551         PR middle-end/39246
26552         * tree-complex.c (expand_complex_move): Keep line info when expanding
26553         complex move.
26554         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
26555         of complex expression. Use new argument to display correct location
26556         for values coming from phi statement.
26557         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
26558         (warn_uninitialized_phi): Pass location of phi argument to
26559         warn_uninit.
26560         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
26561         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
26562
26563 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
26564
26565         * config/rs6000/predicates.md (indexed_address_mem): New.
26566         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
26567         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
26568         fpstore_ux, fpstore_u.
26569         (sign_extend, indexed, update): New.
26570         (cell_micro): Adjust.
26571         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
26572         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
26573         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
26574         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
26575         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
26576         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
26577         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
26578         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
26579         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
26580         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
26581         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
26582         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
26583         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
26584         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
26585         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
26586
26587         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
26588         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
26589         *vsx_extract_<mode>_store): Adjust.
26590         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
26591         is_cracked_insn, insn_must_be_first_in_group,
26592         insn_must_be_last_in_group): Adjust.
26593
26594         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
26595         Adjust.
26596         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
26597         ppc440-fpstore): Adjust.
26598         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
26599         ppc476-fpstore): Adjust.
26600         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
26601         ppc601-fpstore): Adjust.
26602         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
26603         Adjust.
26604         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
26605         Adjust.
26606         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
26607         ppc7450-fpstore): Adjust.
26608         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
26609         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
26610         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
26611         Adjust.
26612         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
26613         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
26614         cell-fpstore, cell-fpstore-update): Adjust.
26615         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
26616         ppce300c3_store, ppce300c3_fpstore): Adjust.
26617         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
26618         e500mc_fpstore): Adjust.
26619         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
26620         e500mc64_store, e500mc64_fpstore): Adjust.
26621         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
26622         e5500_fpstore): Adjust.
26623         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
26624         e6500_fpstore): Adjust.
26625         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
26626         Adjust.
26627         * config/rs6000/power4.md (power4-load, power4-load-ext,
26628         power4-load-ext-update, power4-load-ext-update-indexed,
26629         power4-load-update-indexed, power4-load-update, power4-fpload,
26630         power4-fpload-update, power4-store, power4-store-update,
26631         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
26632         Adjust.
26633         * config/rs6000/power5.md (power5-load, power5-load-ext,
26634         power5-load-ext-update, power5-load-ext-update-indexed,
26635         power5-load-update-indexed, power5-load-update, power5-fpload,
26636         power5-fpload-update, power5-store, power5-store-update,
26637         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
26638         Adjust.
26639         * config/rs6000/power6.md (power6-load, power6-load-ext,
26640         power6-load-update, power6-load-update-indexed,
26641         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
26642         power6-fpload-update, power6-store, power6-store-update,
26643         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
26644         Adjust.
26645         * config/rs6000/power7.md (power7-load, power7-load-ext,
26646         power7-load-update, power7-load-update-indexed,
26647         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
26648         power7-fpload-update, power7-store, power7-store-update,
26649         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
26650         Adjust.
26651         * config/rs6000/power8.md (power8-load, power8-load-update,
26652         power8-load-ext, power8-load-ext-update, power8-fpload,
26653         power8-fpload-update, power8-store, power8-store-update-indexed,
26654         power8-fpstore, power8-fpstore-update): Adjust.
26655         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
26656         Adjust.
26657         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
26658         titan_lsu_store, titan_lsu_fpstore): Adjust.
26659         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
26660
26661 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
26662
26663         PR target/60884
26664         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
26665         unrolled byte insns.  Emit address increments after move insns.
26666
26667 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
26668
26669         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
26670         const_gimple, rather than a gimple.
26671         (gimple_call_builtin_p): Likewise, for the three variants.
26672
26673         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
26674         (gimple_call_builtin_p): Likewise, for the three variants.
26675
26676 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
26677
26678         PR tree-optimization/61095
26679         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
26680
26681 2014-05-07  Richard Biener  <rguenther@suse.de>
26682
26683         PR tree-optimization/61034
26684         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
26685         (maybe_skip_until): Use translate to take into account
26686         lattices when trying to do disambiguations.
26687         (get_continuation_for_phi_1): Likewise.
26688         (get_continuation_for_phi): Adjust for added translate arguments.
26689         (walk_non_aliased_vuses): Likewise.
26690         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
26691         (walk_non_aliased_vuses): Likewise.
26692         (call_may_clobber_ref_p_1): Declare.
26693         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
26694         calls.  Stop early if we are only supposed to disambiguate.
26695         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
26696
26697 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
26698
26699         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
26700         Emit an error when the function has arguments.
26701
26702 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
26703
26704         * cfgloop.h (unswitch_loops): Remove.
26705         * doc/passes.texi: Remove references to loop-unswitch.c
26706         * timevar.def (TV_LOOP_UNSWITCH): Remove.
26707
26708 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
26709
26710         * tree-vect-data-refs.c (vect_grouped_load_supported): New
26711         check for loads group of length 3.
26712         (vect_permute_load_chain): New permutations for loads group of
26713         length 3.
26714         * tree-vect-stmts.c (vect_model_load_cost): Change cost
26715         of vec_perm_shuffle for the new permutations.
26716
26717 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
26718
26719         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
26720         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
26721         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
26722         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
26723         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
26724         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
26725         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
26726         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
26727
26728 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
26729
26730         * loop-unswitch.c: Delete.
26731
26732 2014-05-07  Richard Biener  <rguenther@suse.de>
26733
26734         * config.gcc: Always set need_64bit_hwint to yes.
26735
26736 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
26737
26738         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
26739         of using optimize_size.
26740
26741 2014-05-06  Mike Stump  <mikestump@comcast.net>
26742
26743         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
26744
26745 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
26746
26747         * config/i386/sse.md (*mov<mode>_internal)
26748         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
26749         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
26750         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
26751         (*<code><mode>3, *andnot<mode>3<mask_name>)
26752         (<mask_codefor><code><mode>3<mask_name>): Only consider
26753         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
26754
26755 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
26756
26757         Revert:
26758         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
26759
26760         * lra-constraints.c (valid_address_p): Move earlier in file.
26761         Add a constraint argument to the address_info version.
26762         (satisfies_memory_constraint_p): New function.
26763         (satisfies_address_constraint_p): Likewise.
26764         (process_alt_operands, curr_insn_transform): Use them.
26765         (process_address): Pass the constraint to valid_address_p when
26766         checking address operands.
26767
26768 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
26769
26770         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
26771         to their respective blocks.  Fix inadvertent use of "node".
26772
26773 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
26774
26775         * emit-rtl.c (init_derived_machine_modes): New functionm, split
26776         out from...
26777         (init_emit_once): ...here.
26778         * rtl.h (init_derived_machine_modes): Declare.
26779         * toplev.c (do_compile): Call it even if no_backend.
26780
26781 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
26782             Mike Stump  <mikestump@comcast.net>
26783             Richard Sandiford  <rdsandiford@googlemail.com>
26784             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26785
26786         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
26787         (rtx_equal_for_memref_p): Update comment.
26788         (adjust_offset_for_component_ref): Use wide-int interfaces.
26789         * builtins.c (get_object_alignment_2): Likewise.
26790         (c_readstr): Likewise.
26791         (target_char_cast): Add comment.
26792         (determine_block_size): Use wide-int interfaces.
26793         (expand_builtin_signbit): Likewise.
26794         (fold_builtin_int_roundingfn): Likewise.
26795         (fold_builtin_bitop): Likewise.
26796         (fold_builtin_bswap): Likewise.
26797         (fold_builtin_logarithm): Use signop.
26798         (fold_builtin_pow): Likewise.
26799         (fold_builtin_memory_op): Use wide-int interfaces.
26800         (fold_builtin_object_size): Likewise.
26801         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
26802         nb_iterations_estimate.
26803         (record_niter_bound): Use wide-int interfaces.
26804         (get_estimated_loop_iterations_int): Likewise.
26805         (get_estimated_loop_iterations): Likewise.
26806         (get_max_loop_iterations): Likewise.
26807         * cfgloop.h: Include wide-int.h.
26808         (struct nb_iter_bound): Change bound to widest_int.
26809         (struct loop): Change nb_iterations_upper_bound and
26810         nb_iterations_estimate to widest_int.
26811         (record_niter_bound): Switch to use widest_int.
26812         (get_estimated_loop_iterations): Likewise.
26813         (get_max_loop_iterations): Likewise.
26814         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
26815         update for wide-int.
26816         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
26817         * combine.c (try_combine): Likewise.
26818         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
26819         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
26820         interfaces.
26821         (aarch64_float_const_representable_p): Likewise.
26822         * config/arc/arc.c: Include wide-int.h.
26823         (arc_can_use_doloop_p): Use wide-int interfaces.
26824         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
26825         (vfp3_const_double_index): Likewise.
26826         * config/avr/avr.c (avr_out_round): Likewise.
26827         (avr_fold_builtin): Likewise.
26828         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
26829         (bfin_can_use_doloop_p): Likewise.
26830         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
26831         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
26832         * config/i386/i386.c: Include wide-int.h.
26833         (ix86_data_alignment): Use wide-int interfaces.
26834         (ix86_local_alignment): Likewise.
26835         (ix86_emit_swsqrtsf): Update real_from_integer.
26836         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
26837         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
26838         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
26839         (zero_constant): Likewise.
26840         (input_operand): Likewise.
26841         (splat_input_operand): Likewise.
26842         (non_logical_cint_operand): Change const_double to const_wide_int.
26843         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
26844         (easy_altivec_constant): Remove comment.
26845         (paired_expand_vector_init): Use CONSTANT_P.
26846         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
26847         (rs6000_emit_move): Update checks.
26848         (rs6000_aggregate_candidate): Use wide-int interfaces.
26849         (rs6000_expand_ternop_builtin): Likewise.
26850         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
26851         (rs6000_assemble_integer): Likewise.
26852         (rs6000_hash_constant): Likewise.
26853         (output_toc): Likewise.
26854         (rs6000_rtx_costs): Likewise.
26855         (rs6000_emit_swrsqrt); Update call to real_from_integer.
26856         * config/rs6000/rs6000-c.c: Include wide-int.h.
26857         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
26858         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
26859         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
26860         Handle CONST_WIDE_INT.
26861         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
26862         Use tree_fits_uhwi_p.
26863         * config/sparc/sparc.c: Include wide-int.h.
26864         (sparc_fold_builtin): Use wide-int interfaces.
26865         * config/vax/vax.c: Include wide-int.h.
26866         (vax_float_literal): Use real_from_integer.
26867         * coretypes.h (struct hwivec_def): New.
26868         (hwivec): New.
26869         (const_hwivec): New.
26870         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
26871         (equiv_constant): Handle CONST_WIDE_INT.
26872         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
26873         (cselib_hash_rtx): Handle CONST_WIDE_INT.
26874         * dbxout.c (stabstr_U): Use wide-int interfaces.
26875         (dbxout_type): Update to use cst_fits_shwi_p.
26876         * defaults.h (LOG2_BITS_PER_UNIT): Define.
26877         (TARGET_SUPPORTS_WIDE_INT): Add default.
26878         * dfp.c: Include wide-int.h.
26879         (decimal_real_to_integer2): Use wide-int interfaces and rename to
26880         decimal_real_to_integer.
26881         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
26882         decimal_real_to_integer.
26883         * doc/generic.texi (Constant expressions): Update for wide_int.
26884         * doc/rtl.texi (const_double): Likewise.
26885         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
26886         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
26887         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
26888         (REAL_VALUE_FROM_INT): Remove.
26889         (TARGET_SUPPORTS_WIDE_INT): New.
26890         * doc/tm.texi: Regenerate.
26891         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
26892         * double-int.h: Include wide-int.h.
26893         (struct wi::int_traits): New.
26894         * dwarf2out.c (get_full_len): New.
26895         (dw_val_equal_p): Add case dw_val_class_wide_int.
26896         (size_of_loc_descr): Likewise.
26897         (output_loc_operands): Likewise.
26898         (insert_double): Remove.
26899         (insert_wide_int): New.
26900         (add_AT_wide): New.
26901         (print_die): Add case dw_val_class_wide_int.
26902         (attr_checksum): Likewise.
26903         (attr_checksum_ordered): Likewise.
26904         (same_dw_val_p): Likewise.
26905         (size_of_die): Likewise.
26906         (value_format): Likewise.
26907         (output_die): Likewise.
26908         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
26909         Use wide-int.
26910         (clz_loc_descriptor): Use wide-int interfaces.
26911         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
26912         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
26913         (round_up_to_align): Use wide-int interfaces.
26914         (field_byte_offset): Likewise.
26915         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
26916         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
26917         CONST_DOUBLE handling.  Use wide-int interfaces.
26918         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
26919         (gen_enumeration_type_die): Use add_AT_wide.
26920         (hash_loc_operands): Add case dw_val_class_wide_int.
26921         (compare_loc_operands): Likewise.
26922         * dwarf2out.h: Include wide-int.h.
26923         (wide_int_ptr): New.
26924         (enum dw_val_class): Add dw_val_class_wide_int.
26925         (struct dw_val_struct): Add val_wide.
26926         * emit-rtl.c (const_wide_int_htab): New.
26927         (const_wide_int_htab_hash): New.
26928         (const_wide_int_htab_eq): New.
26929         (lookup_const_wide_int): New.
26930         (const_double_htab_hash): Use wide-int interfaces.
26931         (const_double_htab_eq): Likewise.
26932         (rtx_to_double_int): Conditionally compile for wide-int.
26933         (immed_double_int_const): Rename to immed_wide_int_const and
26934         update for wide-int.
26935         (immed_double_const): Conditionally compile for wide-int.
26936         (init_emit_once): Use wide-int interfaces.
26937         * explow.c (plus_constant): Likewise.
26938         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
26939         (lshift_value): Use wide-int interfaces.
26940         (expand_mult): Likewise.
26941         (choose_multiplier): Likewise.
26942         (expand_smod_pow2): Likewise.
26943         (make_tree): Likewise.
26944         * expr.c (convert_modes): Consolidate handling of constants.
26945         Use wide-int interfaces.
26946         (emit_group_load_1): Add note.
26947         (store_expr): Update comment.
26948         (get_inner_reference): Use wide-int interfaces.
26949         (expand_constructor): Update comment.
26950         (expand_expr_real_2): Use wide-int interfaces.
26951         (expand_expr_real_1): Likewise.
26952         (reduce_to_bit_field_precision): Likewise.
26953         (const_vector_from_tree): Likewise.
26954         * final.c: Include wide-int-print.h.
26955         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
26956         * fixed-value.c: Include wide-int.h.
26957         (fixed_from_string): Use wide-int interfaces.
26958         (fixed_to_decimal): Likewise.
26959         (fixed_convert_from_real): Likewise.
26960         (real_convert_from_fixed): Likewise.
26961         * fold-const.h (mem_ref_offset): Return an offset_int.
26962         (div_if_zero_remainder): Remove code parameter.
26963         * fold-const.c (div_if_zero_remainder): Remove code parameter.
26964         Use wide-int interfaces.
26965         (may_negate_without_overflow_p): Use wide-int interfaces.
26966         (negate_expr_p): Likewise.
26967         (fold_negate_expr): Likewise.
26968         (int_const_binop_1): Likewise.
26969         (const_binop): Likewise.
26970         (fold_convert_const_int_from_int): Likewise.
26971         (fold_convert_const_int_from_real): Likewise.
26972         (fold_convert_const_int_from_fixed): Likewise.
26973         (fold_convert_const_fixed_from_int): Likewise.
26974         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
26975         (sign_bit_p): Use wide-int interfaces.
26976         (make_range_step): Likewise.
26977         (build_range_check): Likewise.  Pass an integer of the correct type
26978         instead of using integer_one_node.
26979         (range_predecessor): Pass an integer of the correct type instead
26980         of using integer_one_node.
26981         (range_successor): Likewise.
26982         (merge_ranges): Likewise.
26983         (unextend): Use wide-int interfaces.
26984         (extract_muldiv_1): Likewise.
26985         (fold_div_compare): Likewise.
26986         (fold_single_bit_test): Likewise.
26987         (fold_sign_changed_comparison): Likewise.
26988         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
26989         (fold_plusminus_mult_expr): Use wide-int interfaces.
26990         (native_encode_int): Likewise.
26991         (native_interpret_int): Likewise.
26992         (fold_unary_loc): Likewise.
26993         (pointer_may_wrap_p): Likewise.
26994         (size_low_cst): Likewise.
26995         (mask_with_tz): Likewise.
26996         (fold_binary_loc): Likewise.
26997         (fold_ternary_loc): Likewise.
26998         (multiple_of_p): Likewise.
26999         (tree_call_nonnegative_warnv_p): Update calls to
27000         tree_int_cst_min_precision and real_from_integer.
27001         (fold_negate_const): Use wide-int interfaces.
27002         (fold_abs_const): Likewise.
27003         (fold_relational_const): Use tree_int_cst_lt.
27004         (round_up_loc): Use wide-int interfaces.
27005         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
27006         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
27007         * gengtype.c: Remove include of double-int.h.
27008         (do_typedef): Use wide-int interfaces.
27009         (open_base_files): Add wide-int.h.
27010         (main): Add offset_int and widest_int typedefs.
27011         * gengtype-lex.l: Handle "^".
27012         (CXX_KEYWORD): Add "static".
27013         * gengtype-parse.c (require3): New.
27014         (require_template_declaration): Handle constant template arguments
27015         and nested templates.
27016         * gengtype-state.c: Don't include "double-int.h".
27017         * genpreds.c (write_one_predicate_function): Update comment.
27018         (write_tm_constrs_h): Add check for hval and lval use in
27019         CONST_WIDE_INT.
27020         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
27021         (add_to_sequence): Likewise.
27022         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
27023         and const_double_operand.
27024         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
27025         interfaces.
27026         * gimple-fold.c (get_base_constructor): Likewise.
27027         (fold_array_ctor_reference): Likewise.
27028         (fold_nonarray_ctor_reference): Likewise.
27029         (fold_const_aggregate_ref_1): Likewise.
27030         (gimple_val_nonnegative_real_p): Likewise.
27031         (gimple_fold_indirect_ref): Likewise.
27032         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
27033         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
27034         (struct slsr_cand_d): Change index to be widest_int.
27035         (struct incr_info_d): Change incr to be widest_int.
27036         (alloc_cand_and_find_basis): Use wide-int interfaces.
27037         (slsr_process_phi): Likewise.
27038         (backtrace_base_for_ref): Likewise.  Return a widest_int.
27039         (restructure_reference): Take a widest_int instead of a double_int.
27040         (slsr_process_ref): Use wide-int interfaces.
27041         (create_mul_ssa_cand): Likewise.
27042         (create_mul_imm_cand): Likewise.
27043         (create_add_ssa_cand): Likewise.
27044         (create_add_imm_cand): Take a widest_int instead of a double_int.
27045         (slsr_process_add): Use wide-int interfaces.
27046         (slsr_process_cast): Likewise.
27047         (slsr_process_copy): Likewise.
27048         (dump_candidate): Likewise.
27049         (dump_incr_vec): Likewise.
27050         (replace_ref): Likewise.
27051         (cand_increment): Likewise.  Return a widest_int.
27052         (cand_abs_increment): Likewise.
27053         (replace_mult_candidate): Take a widest_int instead of a double_int.
27054         (replace_unconditional_candidate): Use wide-int interfaces.
27055         (incr_vec_index): Take a widest_int instead of a double_int.
27056         (create_add_on_incoming_edge): Likewise.
27057         (create_phi_basis): Use wide-int interfaces.
27058         (replace_conditional_candidate): Likewise.
27059         (record_increment): Take a widest_int instead of a double_int.
27060         (record_phi_increments): Use wide-int interfaces.
27061         (phi_incr_cost): Take a widest_int instead of a double_int.
27062         (lowest_cost_path): Likewise.
27063         (total_savings): Likewise.
27064         (analyze_increments): Use wide-int interfaces.
27065         (ncd_with_phi): Take a widest_int instead of a double_int.
27066         (ncd_of_cand_and_phis): Likewise.
27067         (nearest_common_dominator_for_cands): Likewise.
27068         (insert_initializers): Use wide-int interfaces.
27069         (all_phi_incrs_profitable): Likewise.
27070         (replace_one_candidate): Likewise.
27071         (replace_profitable_candidates): Likewise.
27072         * godump.c: Include wide-int-print.h.
27073         (go_output_typedef): Use wide-int interfaces.
27074         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
27075         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
27076         (build_loop_iteration_domains): Likewise.
27077         * hooks.h: Include wide-int.h rather than double-int.h.
27078         (hook_bool_dint_dint_uint_bool_true): Delete.
27079         (hook_bool_wint_wint_uint_bool_true): Declare.
27080         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
27081         (hook_bool_wint_wint_uint_bool_true): New.
27082         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
27083         interfaces.
27084         (ubsan_expand_si_overflow_mul_check): Likewise.
27085         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
27086         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
27087         (get_ancestor_addr_info): Likewise.
27088         (ipa_modify_call_arguments): Likewise.
27089         * loop-doloop.c (doloop_modify): Likewise.
27090         (doloop_optimize): Likewise.
27091         * loop-iv.c (iv_number_of_iterations): Likewise.
27092         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
27093         (unroll_loop_constant_iterations): Likewise.
27094         (decide_unroll_runtime_iterations): Likewise.
27095         (unroll_loop_runtime_iterations): Likewise.
27096         (decide_peel_simple): Likewise.
27097         (decide_unroll_stupid): Likewise.
27098         * lto-streamer-in.c (streamer_read_wi): Add.
27099         (input_cfg): Use wide-int interfaces.
27100         (lto_input_tree_1): Likewise.
27101         * lto-streamer-out.c (streamer_write_wi): Add.
27102         (hash_tree): Use wide-int interfaces.
27103         (output_cfg): Likewise.
27104         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
27105         (GTFILES): Add wide-int.h and signop.h.
27106         (TAGS): Look for .cc files too.
27107         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
27108         * optabs.c (expand_subword_shift): Likewise.
27109         (expand_doubleword_shift): Likewise.
27110         (expand_absneg_bit): Likewise.
27111         (expand_copysign_absneg): Likewise.
27112         (expand_copysign_bit): Likewise.
27113         * postreload.c (reload_cse_simplify_set): Likewise.
27114         * predict.c (predict_iv_comparison): Likewise.
27115         * pretty-print.h: Include wide-int-print.h.
27116         (pp_wide_int) New.
27117         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
27118         * print-tree.c: Include wide-int-print.h.
27119         (print_node_brief): Use wide-int interfaces.
27120         (print_node): Likewise.
27121         * read-rtl.c (validate_const_wide_int): New.
27122         (read_rtx_code): Add CONST_WIDE_INT case.
27123         * real.c: Include wide-int.h.
27124         (real_to_integer2): Delete.
27125         (real_to_integer): New function, returning a wide_int.
27126         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
27127         (ten_to_ptwo): Update call to real_from_integer.
27128         (real_digit): Likewise.
27129         * real.h: Include signop.h, wide-int.h and insn-modes.h.
27130         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
27131         (REAL_VALUE_TO_INT): Delete.
27132         (real_to_integer): Declare a wide-int form.
27133         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
27134         * recog.c (const_int_operand): Improve comment.
27135         (const_scalar_int_operand): New.
27136         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
27137         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
27138         (split_double): Likewise.
27139         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
27140         (rtx_size): Likewise.
27141         (rtx_alloc_stat_v): New.
27142         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
27143         (cwi_output_hex): New.
27144         (iterative_hash_rtx): Handle CONST_WIDE_INT.
27145         (cwi_check_failed_bounds): New.
27146         * rtl.def (CONST_WIDE_INT): New.
27147         * rtl.h: Include <utility> and wide-int.h.
27148         (struct hwivec_def): New.
27149         (CWI_GET_NUM_ELEM): New.
27150         (CWI_PUT_NUM_ELEM): New.
27151         (struct rtx_def): Add num_elem and hwiv.
27152         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
27153         (CASE_CONST_UNIQUE): Likewise.
27154         (CASE_CONST_ANY): Likewise.
27155         (CONST_SCALAR_INT_P): Likewise.
27156         (CONST_WIDE_INT_P): New.
27157         (CWI_ELT): New.
27158         (HWIVEC_CHECK): New.
27159         (cwi_check_failed_bounds): New.
27160         (CWI_ELT): New.
27161         (HWIVEC_CHECK): New.
27162         (CONST_WIDE_INT_VEC) New.
27163         (CONST_WIDE_INT_NUNITS) New.
27164         (CONST_WIDE_INT_ELT) New.
27165         (rtx_mode_t): New type.
27166         (wi::int_traits <rtx_mode_t>): New.
27167         (wi::shwi): New.
27168         (wi::min_value): New.
27169         (wi::max_value): New.
27170         (rtx_alloc_v) New.
27171         (const_wide_int_alloc): New.
27172         (immed_wide_int_const): New.
27173         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
27174         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
27175         * signop.h: New file.
27176         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
27177         (simplify_const_unary_operation): Use wide-int interfaces.
27178         (simplify_binary_operation_1): Likewise.
27179         (simplify_const_binary_operation): Likewise.
27180         (simplify_const_relational_operation): Likewise.
27181         (simplify_immed_subreg): Likewise.
27182         * stmt.c (expand_case): Likewise.
27183         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
27184         signop rather than a bool.
27185         * stor-layout.c (layout_type): Use wide-int interfaces.
27186         (initialize_sizetypes): Update calls to
27187         set_min_and_max_values_for_integral_type.
27188         (set_min_and_max_values_for_integral_type): Take a signop rather
27189         than a bool.  Use wide-int interfaces.
27190         (fixup_signed_type): Update accordingly.  Remove
27191         HOST_BITS_PER_DOUBLE_INT limit.
27192         (fixup_unsigned_type): Likewise.
27193         * system.h (STATIC_CONSTANT_P): New.
27194         (STATIC_ASSERT): New.
27195         * target.def (can_use_doloop_p): Take widest_ints rather than
27196         double_ints.
27197         * target.h: Include wide-int.h rather than double-int.h.
27198         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
27199         than double_ints.
27200         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
27201         rather than INT_CST_LT_UNSIGNED.
27202         (can_use_doloop_if_innermost): Take widest_ints rather than
27203         double_ints.
27204         * tree-affine.c: Include wide-int-print.h.
27205         (double_int_ext_for_comb): Delete.
27206         (wide_int_ext_for_comb): New.
27207         (aff_combination_zero): Use wide-int interfaces.
27208         (aff_combination_const): Take a widest_int instead of a double_int.
27209         (aff_combination_elt): Use wide-int interfaces.
27210         (aff_combination_scale): Take a widest_int instead of a double_int.
27211         (aff_combination_add_elt): Likewise.
27212         (aff_combination_add_cst): Likewise.
27213         (aff_combination_add): Use wide-int interfaces.
27214         (aff_combination_convert): Likewise.
27215         (tree_to_aff_combination): Likewise.
27216         (add_elt_to_tree): Take a widest_int instead of a double_int.
27217         (aff_combination_to_tree): Use wide-int interfaces.
27218         (aff_combination_remove_elt): Likewise.
27219         (aff_combination_add_product): Take a widest_int instead of
27220         a double_int.
27221         (aff_combination_mult): Use wide-int interfaces.
27222         (aff_combination_expand): Likewise.
27223         (double_int_constant_multiple_p): Delete.
27224         (wide_int_constant_multiple_p): New.
27225         (aff_combination_constant_multiple_p): Take a widest_int pointer
27226         instead of a double_int pointer.
27227         (print_aff): Use wide-int interfaces.
27228         (get_inner_reference_aff): Take a widest_int pointer
27229         instead of a double_int pointer.
27230         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
27231         * tree-affine.h: Include wide-int.h.
27232         (struct aff_comb_elt): Change type of coef to widest_int.
27233         (struct affine_tree_combination): Change type of offset to widest_int.
27234         (double_int_ext_for_comb): Delete.
27235         (wide_int_ext_for_comb): New.
27236         (aff_combination_const): Use widest_int instead of double_int.
27237         (aff_combination_scale): Likewise.
27238         (aff_combination_add_elt): Likewise.
27239         (aff_combination_constant_multiple_p): Likewise.
27240         (get_inner_reference_aff): Likewise.
27241         (aff_comb_cannot_overlap_p): Likewise.
27242         (aff_combination_zero_p): Use wide-int interfaces.
27243         * tree.c: Include tree.h.
27244         (init_ttree): Use make_int_cst.
27245         (tree_code_size): Removed code for INTEGER_CST case.
27246         (tree_size): Add INTEGER_CST case.
27247         (make_node_stat): Update comment.
27248         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
27249         (build_int_cst_type): Use wide-int interfaces.
27250         (double_int_to_tree): Likewise.
27251         (double_int_fits_to_tree_p): Delete.
27252         (force_fit_type_double): Delete.
27253         (force_fit_type): New.
27254         (int_cst_hash_hash): Use wide-int interfaces.
27255         (int_cst_hash_eq): Likewise.
27256         (build_int_cst_wide): Delete.
27257         (wide_int_to_tree): New.
27258         (cache_integer_cst): Use wide-int interfaces.
27259         (build_low_bits_mask): Likewise.
27260         (cst_and_fits_in_hwi): Likewise.
27261         (real_value_from_int_cst): Likewise.
27262         (make_int_cst_stat): New.
27263         (integer_zerop): Use wide_int interfaces.
27264         (integer_onep): Likewise.
27265         (integer_all_onesp): Likewise.
27266         (integer_pow2p): Likewise.
27267         (integer_nonzerop): Likewise.
27268         (tree_log2): Likewise.
27269         (tree_floor_log2): Likewise.
27270         (tree_ctz): Likewise.
27271         (int_size_in_bytes): Likewise.
27272         (mem_ref_offset): Return an offset_int rather than a double_int.
27273         (build_type_attribute_qual_variant): Use wide_int interfaces.
27274         (type_hash_eq): Likewise
27275         (tree_int_cst_equal): Likewise.
27276         (tree_int_cst_lt): Delete.
27277         (tree_int_cst_compare): Likewise.
27278         (tree_fits_shwi_p): Use wide_int interfaces.
27279         (tree_fits_uhwi_p): Likewise.
27280         (tree_int_cst_sign_bit): Likewise.
27281         (tree_int_cst_sgn): Likewise.
27282         (tree_int_cst_min_precision): Take a signop rather than a bool.
27283         (simple_cst_equal): Use wide_int interfaces.
27284         (compare_tree_int): Likewise.
27285         (iterative_hash_expr): Likewise.
27286         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
27287         INT_CST_LT.
27288         (get_type_static_bounds): Use wide_int interfaces.
27289         (tree_int_cst_elt_check_failed): New.
27290         (build_common_tree_nodes): Reordered to set prec before filling in
27291         value.
27292         (int_cst_value): Check cst_and_fits_in_hwi.
27293         (widest_int_cst_value): Use wide_int interfaces.
27294         (upper_bound_in_type): Likewise.
27295         (lower_bound_in_type): Likewise.
27296         (num_ending_zeros): Likewise.
27297         (drop_tree_overflow): Likewise.
27298         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
27299         (gen_conditions_for_pow_cst_base): Likewise.
27300         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
27301         (group_case_labels_stmt): Use wide-int interfaces.
27302         (verify_gimple_assign_binary): Likewise.
27303         (print_loop): Likewise.
27304         * tree-chrec.c (tree_fold_binomial): Likewise.
27305         * tree-core.h (struct tree_base): Add int_length.
27306         (struct tree_int_cst): Change rep of value.
27307         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
27308         (dr_may_alias_p): Likewise.
27309         (max_stmt_executions_tree): Likewise.
27310         * tree.def (INTEGER_CST): Update comment.
27311         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
27312         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
27313         * tree-dump.c: Include wide-int.h and wide-int-print.h.
27314         (dequeue_and_dump): Use wide-int interfaces.
27315         * tree.h: Include wide-int.h.
27316         (NULL_TREE): Moved to earlier loc in file.
27317         (TREE_INT_CST_ELT_CHECK): New.
27318         (tree_int_cst_elt_check_failed): New.
27319         (TYPE_SIGN): New.
27320         (TREE_INT_CST): Delete.
27321         (TREE_INT_CST_LOW): Use wide-int interfaces.
27322         (TREE_INT_CST_HIGH): Delete.
27323         (TREE_INT_CST_NUNITS): New.
27324         (TREE_INT_CST_EXT_NUNITS): Likewise.
27325         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
27326         (TREE_INT_CST_ELT): Likewise.
27327         (INT_CST_LT): Delete.
27328         (tree_int_cst_elt_check): New (two forms).
27329         (type_code_size): Update comment.
27330         (make_int_cst_stat, make_int_cst): New.
27331         (tree_to_double_int): Delete.
27332         (double_int_fits_to_tree_p): Delete.
27333         (force_fit_type_double): Delete.
27334         (build_int_cstu): Replace with out-of-line function.
27335         (build_int_cst_wide): Delete.
27336         (tree_int_cst_lt): Define inline.
27337         (tree_int_cst_le): New.
27338         (tree_int_cst_compare): Define inline.
27339         (tree_int_cst_min_precision): Take a signop rather than a bool.
27340         (wi::int_traits <const_tree>): New.
27341         (wi::int_traits <tree>): New.
27342         (wi::extended_tree): New.
27343         (wi::int_traits <wi::extended_tree>): New.
27344         (wi::to_widest): New.
27345         (wi::to_offset): New.
27346         (wi::fits_to_tree_p): New.
27347         (wi::min_value): New.
27348         (wi::max_value): New.
27349         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
27350         (copy_tree_body_r): Likewise.
27351         * tree-object-size.c (compute_object_offset): Likewise.
27352         (addr_object_size): Likewise.
27353         * tree-predcom.c: Include wide-int-print.h.
27354         (struct dref_d): Change type of offset to widest_int.
27355         (dump_dref): Call wide-int printer.
27356         (aff_combination_dr_offset): Use wide-int interfaces.
27357         (determine_offset): Take a widest_int pointer rather than a
27358         double_int pointer.
27359         (split_data_refs_to_components): Use wide-int interfaces.
27360         (suitable_component_p): Likewise.
27361         (order_drefs): Likewise.
27362         (add_ref_to_chain): Likewise.
27363         (valid_initializer_p): Likewise.
27364         (determine_roots_comp): Likewise.
27365         * tree-pretty-print.c: Include wide-int-print.h.
27366         (dump_generic_node): Use wide-int interfaces.
27367         * tree-sra.c (sra_ipa_modify_expr): Likewise.
27368         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
27369         (move_fixed_address_to_symbol): Likewise.
27370         (move_hint_to_base): Likewise.
27371         (move_pointer_to_base): Likewise.
27372         (move_variant_to_index): Likewise.
27373         (most_expensive_mult_to_index): Likewise.
27374         (addr_to_parts): Likewise.
27375         (copy_ref_info): Likewise.
27376         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
27377         (indirect_refs_may_alias_p): Likewise.
27378         (stmt_kills_ref_p_1): Likewise.
27379         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
27380         * tree-ssa-ccp.c: Update comment at top of file.  Include
27381         wide-int-print.h.
27382         (struct prop_value_d): Change type of mask to widest_int.
27383         (extend_mask): New function.
27384         (dump_lattice_value): Use wide-int interfaces.
27385         (get_default_value): Likewise.
27386         (set_constant_value): Likewise.
27387         (set_value_varying): Likewise.
27388         (valid_lattice_transition): Likewise.
27389         (set_lattice_value): Likewise.
27390         (value_to_double_int): Delete.
27391         (value_to_wide_int): New.
27392         (get_value_from_alignment): Use wide-int interfaces.
27393         (get_value_for_expr): Likewise.
27394         (do_dbg_cnt): Likewise.
27395         (ccp_finalize): Likewise.
27396         (ccp_lattice_meet): Likewise.
27397         (bit_value_unop_1): Use widest_ints rather than double_ints.
27398         (bit_value_binop_1): Likewise.
27399         (bit_value_unop): Use wide-int interfaces.
27400         (bit_value_binop): Likewise.
27401         (bit_value_assume_aligned): Likewise.
27402         (evaluate_stmt): Likewise.
27403         (ccp_fold_stmt): Likewise.
27404         (visit_cond_stmt): Likewise.
27405         (ccp_visit_stmt): Likewise.
27406         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
27407         (constant_pointer_difference): Likewise.
27408         (associate_pointerplus): Likewise.
27409         (combine_conversions): Likewise.
27410         * tree-ssa-loop.h: Include wide-int.h.
27411         (struct tree_niter_desc): Change type of max to widest_int.
27412         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
27413         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
27414         (remove_redundant_iv_tests): Likewise.
27415         (canonicalize_loop_induction_variables): Likewise.
27416         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
27417         (constant_multiple_of): Take a widest_int pointer instead of
27418         a double_int pointer.
27419         (get_computation_aff): Use wide-int interfaces.
27420         (ptr_difference_cost): Likewise.
27421         (difference_cost): Likewise.
27422         (get_loop_invariant_expr_id): Likewise.
27423         (get_computation_cost_at): Likewise.
27424         (iv_elimination_compare_lt): Likewise.
27425         (may_eliminate_iv): Likewise.
27426         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
27427         instead of double_int.
27428         (max_loop_iterations): Likewise.
27429         (max_stmt_executions): Likewise.
27430         (estimated_stmt_executions): Likewise.
27431         * tree-ssa-loop-niter.c: Include wide-int-print.h.
27432         (split_to_var_and_offset): Use wide-int interfaces.
27433         (determine_value_range): Likewise.
27434         (bound_difference_of_offsetted_base): Likewise.
27435         (bounds_add): Take a widest_int instead of a double_int.
27436         (number_of_iterations_ne_max): Use wide-int interfaces.
27437         (number_of_iterations_ne): Likewise.
27438         (number_of_iterations_lt_to_ne): Likewise.
27439         (assert_loop_rolls_lt): Likewise.
27440         (number_of_iterations_lt): Likewise.
27441         (number_of_iterations_le): Likewise.
27442         (number_of_iterations_cond): Likewise.
27443         (number_of_iterations_exit): Likewise.
27444         (finite_loop_p): Likewise.
27445         (derive_constant_upper_bound_assign): Likewise.
27446         (derive_constant_upper_bound): Return a widest_int.
27447         (derive_constant_upper_bound_ops): Likewise.
27448         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
27449         (record_estimate): Take a widest_int rather than a double_int.
27450         (record_nonwrapping_iv): Use wide-int interfaces.
27451         (double_int_cmp): Delete.
27452         (wide_int_cmp): New.
27453         (bound_index): Take a widest_int rather than a double_int.
27454         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
27455         (maybe_lower_iteration_bound): Likewise.
27456         (estimate_numbers_of_iterations_loop): Likewise.
27457         (estimated_loop_iterations): Take a widest_int pointer than than
27458         a double_int pointer.
27459         (estimated_loop_iterations_int): Use wide-int interfaces.
27460         (max_loop_iterations): Take a widest_int pointer than than
27461         a double_int pointer.
27462         (max_loop_iterations_int): Use wide-int interfaces.
27463         (max_stmt_executions): Take a widest_int pointer than than
27464         a double_int pointer.
27465         (estimated_stmt_executions): Likewise.
27466         (n_of_executions_at_most): Use wide-int interfaces.
27467         (scev_probably_wraps_p): Likewise.
27468         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
27469         to real_to_integer.
27470         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
27471         interfaces.
27472         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
27473         double_ints.  Adjust for trailing_wide_ints <3> representation.
27474         (set_nonzero_bits): Likewise.
27475         (get_range_info): Return wide_ints rather than double_ints.
27476         Adjust for trailing_wide_ints <3> representation.
27477         (get_nonzero_bits): Likewise.
27478         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
27479         representation.
27480         * tree-ssanames.h (struct range_info_def): Replace min, max and
27481         nonzero_bits with a trailing_wide_ints <3>.
27482         (set_range_info): Use wide_int_refs rather than double_ints.
27483         (set_nonzero_bits): Likewise.
27484         (get_range_info): Return wide_ints rather than double_ints.
27485         (get_nonzero_bits): Likewise.
27486         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
27487         * tree-ssa-pre.c (phi_translate_1): Likewise.
27488         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
27489         (acceptable_pow_call): Likewise.
27490         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
27491         interfaces.
27492         (vn_reference_fold_indirect): Likewise.
27493         (vn_reference_maybe_forwprop_address): Likewise.
27494         (valueize_refs_1): Likewise.
27495         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
27496         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
27497         tree_int_cst_lt and tree_int_cst_le.
27498         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
27499         interfaces.
27500         (streamer_alloc_tree): Likewise.
27501         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
27502         (streamer_write_tree_header): Likewise.
27503         (streamer_write_integer_cst): Likewise.
27504         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
27505         (build_constructors): Likewise.
27506         (array_value_type): Likewise.
27507         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
27508         (vect_check_gather): Likewise.
27509         * tree-vect-generic.c (build_replicated_const): Likewise.
27510         (expand_vector_divmod): Likewise.
27511         * tree-vect-loop.c (vect_transform_loop): Likewise.
27512         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
27513         (vect_do_peeling_for_alignment): Likewise.
27514         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
27515         * tree-vrp.c: Include wide-int.h.
27516         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
27517         (extract_range_from_assert): Use wide-int interfaces.
27518         (vrp_int_const_binop): Likewise.
27519         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
27520         double_int pointers.
27521         (ranges_from_anti_range): Use wide-int interfaces.
27522         (quad_int_cmp): Delete.
27523         (quad_int_pair_sort): Likewise.
27524         (extract_range_from_binary_expr_1): Use wide-int interfaces.
27525         (extract_range_from_unary_expr_1): Likewise.
27526         (adjust_range_with_scev): Likewise.
27527         (masked_increment): Take and return wide_ints rather than double_ints.
27528         (register_edge_assert_for_2): Use wide-int interfaces.
27529         (check_array_ref): Likewise.
27530         (search_for_addr_array): Likewise.
27531         (maybe_set_nonzero_bits): Likewise.
27532         (union_ranges): Pass an integer of the correct type instead of
27533         using integer_one_node.
27534         (intersect_ranges): Likewise.
27535         (simplify_truth_ops_using_ranges): Likewise.
27536         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
27537         (range_fits_type_p): Likewise.
27538         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
27539         a bool.
27540         (simplify_conversion_using_ranges): Use wide-int interfaces.
27541         (simplify_float_conversion_using_ranges): Likewise.
27542         (vrp_finalize): Likewise.
27543         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
27544         (gimple_stringops_transform): Likewise.
27545         * varasm.c (decode_addr_const): Likewise.
27546         (const_hash_1): Likewise.
27547         (const_rtx_hash_1): Likewise
27548         (output_constant): Likewise.
27549         (array_size_for_constructor): Likewise.
27550         (output_constructor_regular_field): Likewise.
27551         (output_constructor_bitfield): Likewise.
27552         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
27553         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
27554         GENERATOR_FILEs.
27555         * gencheck.c: Define BITS_PER_UNIT.
27556         * wide-int.cc: New.
27557         * wide-int.h: New.
27558         * wide-int-print.cc: New.
27559         * wide-int-print.h: New.
27560
27561 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27562
27563         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
27564
27565 2014-05-06  Richard Biener  <rguenther@suse.de>
27566
27567         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
27568         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
27569         (TODO_verify_all): Adjust.
27570         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
27571         TODO_verify_stmts and TODO_verify_rtl_sharing.
27572         * bb-reorder.c: Likewise.
27573         * cfgexpand.c: Likewise.
27574         * cprop.c: Likewise.
27575         * cse.c: Likewise.
27576         * function.c: Likewise.
27577         * fwprop.c: Likewise.
27578         * gcse.c: Likewise.
27579         * gimple-ssa-isolate-paths.c: Likewise.
27580         * gimple-ssa-strength-reduction.c: Likewise.
27581         * ipa-split.c: Likewise.
27582         * loop-init.c: Likewise.
27583         * loop-unroll.c: Likewise.
27584         * lower-subreg.c: Likewise.
27585         * modulo-sched.c: Likewise.
27586         * postreload-gcse.c: Likewise.
27587         * predict.c: Likewise.
27588         * recog.c: Likewise.
27589         * sched-rgn.c: Likewise.
27590         * store-motion.c: Likewise.
27591         * tracer.c: Likewise.
27592         * trans-mem.c: Likewise.
27593         * tree-call-cdce.c: Likewise.
27594         * tree-cfg.c: Likewise.
27595         * tree-cfgcleanup.c: Likewise.
27596         * tree-complex.c: Likewise.
27597         * tree-eh.c: Likewise.
27598         * tree-emutls.c: Likewise.
27599         * tree-if-conv.c: Likewise.
27600         * tree-into-ssa.c: Likewise.
27601         * tree-loop-distribution.c: Likewise.
27602         * tree-object-size.c: Likewise.
27603         * tree-parloops.c: Likewise.
27604         * tree-pass.h: Likewise.
27605         * tree-sra.c: Likewise.
27606         * tree-ssa-ccp.c: Likewise.
27607         * tree-ssa-copy.c: Likewise.
27608         * tree-ssa-copyrename.c: Likewise.
27609         * tree-ssa-dce.c: Likewise.
27610         * tree-ssa-dom.c: Likewise.
27611         * tree-ssa-dse.c: Likewise.
27612         * tree-ssa-forwprop.c: Likewise.
27613         * tree-ssa-ifcombine.c: Likewise.
27614         * tree-ssa-loop-ch.c: Likewise.
27615         * tree-ssa-loop-ivcanon.c: Likewise.
27616         * tree-ssa-loop.c: Likewise.
27617         * tree-ssa-math-opts.c: Likewise.
27618         * tree-ssa-phiopt.c: Likewise.
27619         * tree-ssa-phiprop.c: Likewise.
27620         * tree-ssa-pre.c: Likewise.
27621         * tree-ssa-reassoc.c: Likewise.
27622         * tree-ssa-sink.c: Likewise.
27623         * tree-ssa-strlen.c: Likewise.
27624         * tree-ssa-tail-merge.c: Likewise.
27625         * tree-ssa-uncprop.c: Likewise.
27626         * tree-switch-conversion.c: Likewise.
27627         * tree-tailcall.c: Likewise.
27628         * tree-vect-generic.c: Likewise.
27629         * tree-vectorizer.c: Likewise.
27630         * tree-vrp.c: Likewise.
27631         * tsan.c: Likewise.
27632         * var-tracking.c: Likewise.
27633         * bt-load.c: Likewise.
27634         * cfgcleanup.c: Likewise.
27635         * combine-stack-adj.c: Likewise.
27636         * combine.c: Likewise.
27637         * compare-elim.c: Likewise.
27638         * config/epiphany/resolve-sw-modes.c: Likewise.
27639         * config/i386/i386.c: Likewise.
27640         * config/mips/mips.c: Likewise.
27641         * config/s390/s390.c: Likewise.
27642         * config/sh/sh_treg_combine.cc: Likewise.
27643         * config/sparc/sparc.c: Likewise.
27644         * dce.c: Likewise.
27645         * dse.c: Likewise.
27646         * final.c: Likewise.
27647         * ifcvt.c: Likewise.
27648         * mode-switching.c: Likewise.
27649         * passes.c: Likewise.
27650         * postreload.c: Likewise.
27651         * ree.c: Likewise.
27652         * reg-stack.c: Likewise.
27653         * regcprop.c: Likewise.
27654         * regrename.c: Likewise.
27655         * web.c: Likewise.
27656
27657 2014-05-06  Richard Biener  <rguenther@suse.de>
27658
27659         PR middle-end/61070
27660         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
27661         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
27662
27663 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
27664
27665         PR ipa/60965
27666         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
27667
27668 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
27669             Tom de Vries  <tom@codesourcery.com>
27670
27671         * target.def (call_fusage_contains_non_callee_clobbers): New
27672         DEFHOOKPOD.
27673         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
27674         Hooks to @menu.
27675         (@node Miscellaneous Register Hooks): New node.
27676         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
27677         * doc/tm.texi: Regenerate.
27678
27679 2014-05-05  Marek Polacek  <polacek@redhat.com>
27680
27681         PR driver/61065
27682         * opts.c (common_handle_option): Call error_at instead of warning_at.
27683
27684 2014-05-05  Richard Biener  <rguenther@suse.de>
27685
27686         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
27687         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
27688         under the TODO_verify_il umbrella.
27689
27690 2014-05-05  Richard Biener  <rguenther@suse.de>
27691
27692         * passes.c (execute_function_todo): Move TODO_verify_flow under
27693         the TODO_verify_ul umbrella.
27694
27695 2014-05-05  Richard Biener  <rguenther@suse.de>
27696
27697         PR middle-end/61010
27698         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
27699         X & CST away from a CST that is the mask of a mode.
27700
27701 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27702
27703         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
27704         int argument to enum machine_mode.
27705         (picochip_class_max_nregs): Ditto.
27706         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
27707         (picochip_class_max_nregs): Ditto.
27708
27709 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27710
27711         * target.def: Add new target hook.
27712         * doc/tm.texi: Regenerate.
27713         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
27714         * targhooks.c (default_keep_leaf_when_profiled): New function.
27715
27716         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
27717         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
27718
27719 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
27720
27721         PR tree-optimization/60363
27722         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
27723         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
27724         (update_destination_phis): New parameter.
27725         (create_edge_and_update_destination_phis): Ditto.
27726         (ssa_fix_duplicate_block_edges): Pass new arguments.
27727         (thread_single_edge): Ditto.
27728
27729 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
27730
27731         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
27732         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
27733         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
27734         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
27735         Use RS6000_BTM_HARD_FLOAT.
27736         (BU_MISC_2): Likewise.
27737         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
27738         RS6000_BTM_HARD_FLOAT.
27739         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
27740         is explicitly used.
27741         (rs6000_invalid_builtin): Add hard floating builtin support.
27742         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
27743         hard float builtins.
27744         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
27745
27746 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
27747
27748         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
27749         Add missing function* argument.
27750
27751 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
27752
27753         * lra-constraints.c (valid_address_p): Move earlier in file.
27754         Add a constraint argument to the address_info version.
27755         (satisfies_memory_constraint_p): New function.
27756         (satisfies_address_constraint_p): Likewise.
27757         (process_alt_operands, curr_insn_transform): Use them.
27758         (process_address): Pass the constraint to valid_address_p when
27759         checking address operands.
27760
27761 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
27762
27763         * config/mips/mips.c (mips_isa_rev): New variable.
27764         (mips_set_architecture): Set it.
27765         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
27766         from mips_isa_rev.
27767         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
27768         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
27769         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
27770         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
27771         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
27772         conditions in terms of mips_isa_rev.
27773         (mips_isa_rev): Declare.
27774
27775 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
27776
27777         * config/sh/sh-mem.cc: Use tabs instead of spaces.
27778         (prob_unlikely, prob_likely): Make variables const.
27779
27780 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
27781
27782         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
27783
27784 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
27785
27786         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
27787
27788 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
27789
27790         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
27791         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
27792         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
27793         functions.
27794         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
27795         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
27796         sh_pass_in_reg_p.
27797         Replace usage of ROUND_REG with sh_round_reg.
27798         Use CEIL instead of ROUND_ADVANCE.
27799
27800 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
27801
27802         PR target/61026
27803         * config/sh/sh.c: Include stdlib headers before everything else.
27804
27805 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
27806
27807         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
27808         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
27809         (gimplify_adjust_omp_clauses): Simd region is never
27810         directly nested in combined parallel.  Instead, for linear
27811         with copyin/copyout, if in combined for simd loop, make decl
27812         firstprivate/lastprivate on OMP_FOR.
27813         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
27814         expand_omp_for_static_chunk): When setting endvar, also set
27815         fd->loop.v to the same value.
27816
27817 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
27818
27819         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
27820
27821 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
27822
27823         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
27824         expression.
27825
27826 2014-05-02  Marek Polacek  <polacek@redhat.com>
27827
27828         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
27829
27830 2014-05-02  Kito Cheng  <kito@0xlab.org>
27831
27832         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
27833         to a C expression marco.
27834         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
27835         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
27836         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
27837         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
27838         HONOR_REG_ALLOC_ORDER.
27839         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
27840
27841 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27842
27843         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
27844
27845 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27846
27847         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
27848
27849 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
27850
27851         * tree-if-conv.c (is_cond_scalar_reduction): New function.
27852         (convert_scalar_cond_reduction): Likewise.
27853         (predicate_scalar_phi): Add recognition and transformation
27854         of simple conditioanl reduction to be vectorizable.
27855
27856 2014-05-01  Marek Polacek  <polacek@redhat.com>
27857
27858         PR c/43245
27859         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
27860
27861 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
27862
27863         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
27864         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
27865         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
27866         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
27867         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
27868         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
27869         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
27870         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
27871
27872 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
27873
27874         * config/arc/arc.opt (mlra): Move comment above option name
27875         to avoid mis-parsing as language options.
27876
27877 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27878
27879         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
27880         * config/sol2.h: ... here.
27881         * config/sol2-10.h: Remove.
27882
27883         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
27884         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
27885         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
27886         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
27887         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
27888         * config/sol2.h: ... here.
27889         (SECTION_NAME_FORMAT): Don't redefine.
27890         (STARTFILE_ARCH32_SPEC): Rename to ...
27891         (STARTFILE_ARCH_SPEC): ... this.
27892         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
27893         * config/sparc/sol2.h: ... here.
27894         (SECTION_NAME_FORMAT): Don't undef.
27895         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
27896         (SUBTARGET_EXTRA_SPECS): Remove.
27897         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
27898
27899         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
27900         (MD_STARTFILE_PREFIX): Remove.
27901         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
27902         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
27903         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
27904         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
27905         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
27906         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
27907         * config/i386/sol2.h: ... here.
27908         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
27909         * config/i386/sol2-bi.h: Remove.
27910         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
27911         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
27912
27913         * config/i386/t-sol2-64: Rename to ...
27914         * config/i386/t-sol2: ... this.
27915         * config/sparc/t-sol2-64: Rename to ...
27916         * config/sparc/t-sol2: ... this.
27917
27918         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
27919         sol2_tm_file_head, sol2_tm_file_tail.
27920         Include ${cpu_type}/sol2.h before sol2.h.
27921         Remove sol2-10.h.
27922         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
27923         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
27924         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
27925         Reflect i386/t-sol2-64 renaming.
27926         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
27927         Reflect sparc/t-sol2-64 renaming.
27928
27929 2014-04-30  Richard Biener  <rguenther@suse.de>
27930
27931         * passes.c (execute_function_todo): Move TODO_verify_stmts
27932         and TODO_verify_ssa under the TODO_verify_il umbrella.
27933         * tree-ssa.h (verify_ssa): Adjust prototype.
27934         * tree-ssa.c (verify_ssa): Add parameter to tell whether
27935         we should verify SSA operands.
27936         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
27937         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
27938         whether we should verify whether not throwing stmts have EH info.
27939         * graphite-scop-detection.c (create_sese_edges): Adjust.
27940         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
27941         * tree-eh.c (lower_try_finally_switch): Do not add the
27942         default case label twice.
27943
27944 2014-04-30  Marek Polacek  <polacek@redhat.com>
27945
27946         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
27947         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
27948         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
27949         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
27950
27951 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
27952
27953         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
27954         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
27955         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
27956         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
27957         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
27958         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
27959         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
27960         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
27961
27962 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
27963
27964         * tree-cfg.c (dump_function_to_file): Dump the return type of
27965         functions, in a line to itself before the function body, mimicking
27966         the layout of a C function.
27967
27968 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
27969
27970         PR tree-optimization/60971
27971         * tree-tailcall.c (process_assignment): Reject conversions which
27972         reduce precision.
27973
27974 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27975
27976         * calls.c (initialize_argument_information): Always treat
27977         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
27978         (expand_call): Likewise.
27979         (emit_library_call_calue_1): Likewise.
27980         * expr.c (PUSH_ARGS_REVERSED): Do not define.
27981         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
27982         code accordingly.
27983
27984 2014-04-29  Nick Clifton  <nickc@redhat.com>
27985
27986         * config/msp430/msp430.md (umulsidi): Fix typo.
27987         (mulhisi3): Enable even inside interrupt handlers.
27988         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
27989         bigger return address pushed in large mode.
27990
27991 2014-04-29  Nick Clifton  <nickc@redhat.com>
27992
27993         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
27994         (arc_init_reg_tables): Use a machine_mode enum to iterate over
27995         available modes.
27996         * config/m32r/m32r.c (init_reg_tables): Likewise.
27997         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
27998         enum to hold the modes.
27999
28000 2014-04-29  Richard Biener  <rguenther@suse.de>
28001
28002         * dominance.c (free_dominance_info): Add overload with
28003         function parameter.
28004         (dom_info_state): Likewise.
28005         (dom_info_available_p): Likewise.
28006         * basic-block.h (free_dominance_info, dom_info_state,
28007         dom_info_available_p): Declare overloads.
28008         * passes.c (execute_function_todo): Verify that verifiers
28009         don't change dominator info state.  Drop dominator info
28010         for IPA pass invocations.
28011         * cgraph.c (release_function_body): Restore asserts that
28012         dominator information is released.
28013
28014 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
28015
28016         * doc/invoke.texi: Fix typo.
28017         * tree-vrp.c: Fix typos.
28018         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
28019
28020 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
28021
28022         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
28023
28024 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
28025
28026         * config/aarch64/aarch64-builtins.c
28027         (aarch64_types_storestruct_lane_qualifiers): New.
28028         (TYPES_STORESTRUCT_LANE): Likewise.
28029         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
28030         (st3_lane): Likewise.
28031         (st4_lane): Likewise.
28032         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
28033         (vec_store_lanesci_lane<mode>): Likewise.
28034         (vec_store_lanesxi_lane<mode>): Likewise.
28035         (aarch64_st2_lane<VQ:mode>): Likewise.
28036         (aarch64_st3_lane<VQ:mode>): Likewise.
28037         (aarch64_st4_lane<VQ:mode>): Likewise.
28038         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
28039         * config/aarch64/arm_neon.h
28040         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
28041         use new macro arguments.
28042         (__ST3_LANE_FUNC): Likewise.
28043         (__ST4_LANE_FUNC): Likewise.
28044         * config/aarch64/iterators.md (V_TWO_ELEM): New.
28045         (V_THREE_ELEM): Likewise.
28046         (V_FOUR_ELEM): Likewise.
28047
28048 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
28049
28050         * doc/gimple.texi: Replace the description of the now-defunct
28051         union gimple_statement_d with a diagram showing the
28052         gimple_statement_base class hierarchy and its relationships to
28053         the GSS_ and GIMPLE_ enums.
28054
28055 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
28056
28057         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
28058         * config/aarch64/aarch64.c
28059         (aarch64_cannot_change_mode_class): Weaken conditions.
28060         (aarch64_modes_tieable_p): New.
28061         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
28062
28063 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
28064
28065         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
28066         (loadsync_<mode>): Change mode.
28067         (load_quadpti, store_quadpti): New.
28068         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
28069         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
28070
28071 2014-04-28  Martin Jambor  <mjambor@suse.cz>
28072
28073         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
28074         same alias type as the original statement.
28075         (subreplacement_assignment_data): New type.
28076         (handle_unscalarized_data_in_subtree): New type of parameter,
28077         generate new memory accesses with same alias type as the original
28078         statement.
28079         (load_assign_lhs_subreplacements): Likewise.
28080         (sra_modify_constructor_assign): Generate new memory accesses with
28081         same alias type as the original statement.
28082
28083 2014-04-28  Richard Biener  <rguenther@suse.de>
28084
28085         * tree-pass.h (TODO_verify_il): Define.
28086         (TODO_verify_all): Complete properly.
28087         * passes.c (execute_function_todo): Move existing loop-closed
28088         SSA verification under TODO_verify_il.
28089         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
28090         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
28091         Fix tree sharing issue.
28092
28093 2014-04-28  Richard Biener  <rguenther@suse.de>
28094
28095         PR middle-end/60092
28096         * builtins.def (DEF_C11_BUILTIN): Add.
28097         (BUILT_IN_ALIGNED_ALLOC): Likewise.
28098         * coretypes.h (enum function_class): Add function_c11_misc.
28099         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
28100         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
28101         (call_may_clobber_ref_p_1): Likewise.
28102         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
28103         (mark_all_reaching_defs_necessary_1): Likewise.
28104         (propagate_necessity): Likewise.
28105         (eliminate_unnecessary_stmts): Likewise.
28106         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
28107
28108 2014-04-28  Richard Biener  <rguenther@suse.de>
28109
28110         * tree-vrp.c (vrp_var_may_overflow): Remove.
28111         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
28112         with overflow immediately bump to one before that value and
28113         let iteration figure out overflow status.
28114
28115 2014-04-28  Richard Biener  <rguenther@suse.de>
28116
28117         * configure.ac: Do valgrind header checks unconditionally.
28118         Add --enable-valgrind-annotations.
28119         * system.h: Guard valgrind header inclusion with
28120         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
28121         * alloc-pool.c (pool_alloc, pool_free): Use
28122         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
28123         to guard possibly dead code.
28124         * config.in: Regenerated.
28125         * configure: Likewise.
28126
28127 2014-04-28  Jeff Law  <law@redhat.com>
28128
28129         PR tree-optimization/60902
28130         * tree-ssa-threadedge.c
28131         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
28132         over real defs when invalidating outputs from statements that do not
28133         produce useful outputs for threading.
28134
28135 2014-04-28  Richard Biener  <rguenther@suse.de>
28136
28137         PR tree-optimization/60979
28138         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
28139         SCOPs that end in a block with a successor with abnormal
28140         predecessors.
28141
28142 2014-04-28  Richard Biener  <rguenther@suse.de>
28143
28144         * tree-pass.h (execute_pass_list): Adjust prototype.
28145         * passes.c (pass_manager::execute_early_local_passes): Adjust.
28146         (do_per_function): Change callback signature, push all actual
28147         work to the callbals.
28148         (do_per_function_toporder): Likewise.
28149         (execute_function_dump): Adjust.
28150         (execute_function_todo): Likewise.
28151         (clear_last_verified): Likewise.
28152         (verify_curr_properties): Likewise.
28153         (update_properties_after_pass): Likewise.
28154         (execute_pass_list_1): Split out from ...
28155         (execute_pass_list): ... here.  Adjust.
28156         (execute_ipa_pass_list): Likewise.
28157         * cgraphunit.c (cgraph_add_new_function): Adjust.
28158         (analyze_function): Likewise.
28159         (expand_function): Likewise.
28160         * cgraph.c (release_function_body): Free dominance info
28161         here instead of asserting it was magically freed elsewhere.
28162
28163 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
28164
28165         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
28166         * configure: Regenerate.
28167         * config/sparc/sparc.opt (muser-mode): New option.
28168         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
28169         for LEON3.
28170         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
28171         * doc/invoke.texi (SPARC options): Document -muser-mode.
28172
28173 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
28174
28175         * cselib.c (find_slot_memmode): Delete.
28176         (cselib_hasher): Change compare_type to a struct.
28177         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
28178         constants.
28179         (preserve_constants_and_equivs): Adjust for new compare_type.
28180         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
28181         (wrap_constant): Delete.
28182         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
28183
28184 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
28185
28186         * doc/install.texi (Building with profile feedback): Remove
28187         outdated sentence.
28188
28189 2014-04-26  Tom de Vries  <tom@codesourcery.com>
28190
28191         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
28192         array accesses.
28193
28194 2014-04-25  Cary Coutant  <ccoutant@google.com>
28195
28196         PR debug/60929
28197         * dwarf2out.c (should_move_die_to_comdat): A type definition
28198         can contain a subprogram definition, but don't move it to a
28199         comdat unit.
28200         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
28201         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
28202         from original DIE.
28203         (clone_tree_hash): Rename to...
28204         (clone_tree_partial): ...this; change callers.  Copy
28205         DW_TAG_subprogram DIEs as declarations.
28206         (copy_decls_walk): Don't copy children of a declaration into a
28207         type unit.
28208
28209 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
28210
28211         PR target/60969
28212         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
28213         alternative 12.
28214
28215 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
28216
28217         * config/arm/predicates.md (call_insn_operand): Add long_call check.
28218         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
28219         reg for long_call.
28220         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
28221         restriction.
28222
28223 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28224
28225         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
28226
28227 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28228
28229         PR tree-optimization/60930
28230         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
28231         creating a multiply candidate by folding two constant
28232         multiplicands when the result overflows.
28233
28234 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
28235
28236         PR tree-optimization/60960
28237         * tree-vect-generic.c (expand_vector_operation): Only call
28238         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
28239
28240 2014-04-25  Tom de Vries  <tom@codesourcery.com>
28241
28242         * expr.c (clobber_reg_mode): New function.
28243         * expr.h (clobber_reg): New function.
28244
28245 2014-04-25  Tom de Vries  <tom@codesourcery.com>
28246
28247         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
28248         clobbers.
28249
28250 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
28251             Tom de Vries  <tom@codesourcery.com>
28252
28253         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
28254         handle.
28255         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
28256         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
28257         new argument to find_all_hard_reg_sets call.
28258
28259 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28260
28261         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
28262         Use HOST_WIDE_INT_C for mask literal.
28263         (aarch_rev16_shleft_mask_imm_p): Likewise.
28264
28265 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
28266
28267         PR target/60941
28268         * config/sparc/sparc.md (ashlsi3_extend): Delete.
28269
28270 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
28271
28272         PR preprocessor/56540
28273         * config/i386/i386-c.c (ix86_target_macros): Define
28274         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
28275
28276 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28277
28278         * configure.ac (tga_func): Remove.
28279         (LIB_TLS_SPEC): Remove.
28280         * configure: Regenerate.
28281         * config.in: Regenerate.
28282         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
28283
28284 2014-04-25  Richard Biener  <rguenther@suse.de>
28285
28286         PR ipa/60912
28287         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
28288         call stmt use/clobber sets during stmt walk instead of
28289         walking the possibly incomplete set of caller edges.
28290
28291 2014-04-25  Richard Biener  <rguenther@suse.de>
28292
28293         PR ipa/60911
28294         * passes.c (apply_ipa_transforms): Inline into only caller ...
28295         (execute_one_pass): ... here.  Properly bring in function
28296         bodies for nodes we want to apply IPA transforms to.
28297
28298 2014-04-24  Cong Hou  <congh@google.com>
28299
28300         PR tree-optimization/60896
28301         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
28302         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
28303         (vect_mark_pattern_stmts): Set the def type of all statements in
28304         PATTERN_DEF_SEQ as vect_internal_def.
28305
28306 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
28307
28308         * doc/extend.texi (PowerPC Built-in Functions): Document new
28309         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
28310         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
28311
28312         * config/rs6000/predicates.md (const_0_to_3_operand): New
28313         predicate to match 0..3 integer constants.
28314
28315         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
28316         to support adding miscellaneous builtin functions.
28317         (BU_DFP_MISC_2): Likewise.
28318         (BU_P7_MISC_1): Likewise.
28319         (BU_P7_MISC_2): Likewise.
28320         (BU_P8V_MISC_3): Likewise.
28321         (BU_MISC_1): Likewise.
28322         (BU_MISC_2): Likewise.
28323         (DIVWE): Add extended divide builtin functions.
28324         (DIVWEO): Likewise.
28325         (DIVWEU): Likewise.
28326         (DIVWEUO): Likewise.
28327         (DIVDE): Likewise.
28328         (DIVDEO): Likewise.
28329         (DIVDEU): Likewise.
28330         (DIVDEUO): Likewise.
28331         (DXEX): Add decimal floating-point builtin functions.
28332         (DXEXQ): Likewise.
28333         (DDEDPD): Likewise.
28334         (DDEDPDQ): Likewise.
28335         (DENBCD): Likewise.
28336         (DENBCDQ): Likewise.
28337         (DIEX): Likewise.
28338         (DIEXQ): Likewise.
28339         (DSCLI): Likewise.
28340         (DSCLIQ): Likewise.
28341         (DSCRI): Likewise.
28342         (DSCRIQ): Likewise.
28343         (CDTBCD): Add new BCD builtin functions.
28344         (CBCDTD): Likewise.
28345         (ADDG6S): Likewise.
28346         (BCDADD): Likewise.
28347         (BCDADD_LT): Likewise.
28348         (BCDADD_EQ): Likewise.
28349         (BCDADD_GT): Likewise.
28350         (BCDADD_OV): Likewise.
28351         (BCDSUB): Likewise.
28352         (BCDSUB_LT): Likewise.
28353         (BCDSUB_EQ): Likewise.
28354         (BCDSUB_GT): Likewise.
28355         (BCDSUB_OV): Likewise.
28356         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
28357         (UNPACK_TD): Likewise.
28358         (PACK_TF): Likewise.
28359         (UNPACK_TF): Likewise.
28360         (UNPACK_TF_0): Likewise.
28361         (UNPACK_TF_1): Likewise.
28362         (PACK_V1TI): Likewise.
28363         (UNPACK_V1TI): Likewise.
28364
28365         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
28366         support for decimal floating point builtin functions.
28367         (rs6000_expand_ternop_builtin): Add checks for the new builtin
28368         functions that take constant arguments.
28369         (rs6000_invalid_builtin): Add decimal floating point builtin support.
28370         (rs6000_init_builtins): Setup long double, _Decimal64, and
28371         _Decimal128 types for new builtin functions.
28372         (builtin_function_type): Set the unsigned flags appropriately for
28373         the new builtin functions.
28374         (rs6000_opt_masks): Add support for decimal floating point builtin
28375         functions.
28376
28377         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
28378         floating point builtin functions.
28379         (RS6000_BTM_COMMON): Likewise.
28380         (RS6000_BTI_long_double): Likewise.
28381         (RS6000_BTI_dfloat64): Likewise.
28382         (RS6000_BTI_dfloat128): Likewise.
28383         (long_double_type_internal_node): Likewise.
28384         (dfloat64_type_internal_node): Likewise.
28385         (dfloat128_type_internal_node): Likewise.
28386
28387         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
28388         2.07 bcd arithmetic instructions.
28389         (UNSPEC_BCDSUB): Likewise.
28390         (UNSPEC_BCD_OVERFLOW): Likewise.
28391         (UNSPEC_BCD_ADD_SUB): Likewise.
28392         (bcd_add_sub): Likewise.
28393         (BCD_TEST): Likewise.
28394         (bcd<bcd_add_sub>): Likewise.
28395         (bcd<bcd_add_sub>_test): Likewise.
28396         (bcd<bcd_add_sub>_test2): Likewise.
28397         (bcd<bcd_add_sub>_<code>): Likewise.
28398         (peephole2 for combined bcd ops): Likewise.
28399
28400         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
28401         decimal floating point builtin functions.
28402         (UNSPEC_DENBCD): Likewise.
28403         (UNSPEC_DXEX): Likewise.
28404         (UNSPEC_DIEX): Likewise.
28405         (UNSPEC_DSCLI): Likewise.
28406         (UNSPEC_DSCRI): Likewise.
28407         (D64_D128): Likewise.
28408         (dfp_suffix): Likewise.
28409         (dfp_ddedpd_<mode>): Likewise.
28410         (dfp_denbcd_<mode>): Likewise.
28411         (dfp_dxex_<mode>): Likewise.
28412         (dfp_diex_<mode>): Likewise.
28413         (dfp_dscli_<mode>): Likewise.
28414         (dfp_dscri_<mode>): Likewise.
28415
28416         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
28417         builtin functions.
28418         (UNSPEC_CDTBCD): Likewise.
28419         (UNSPEC_CBCDTD): Likewise.
28420         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
28421         (UNSPEC_DIVEO): Likewise.
28422         (UNSPEC_DIVEU): Likewise.
28423         (UNSPEC_DIVEUO): Likewise.
28424         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
28425         pack/unpack 128-bit types.
28426         (UNSPEC_PACK_128BIT): Likewise.
28427         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
28428         (udiv<mode>3): Use idiv_ldiv mode attribute.
28429         (div<mode>3): Likewise.
28430         (addg6s): Add new BCD builtin functions.
28431         (cdtbcd): Likewise.
28432         (cbcdtd): Likewise.
28433         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
28434         (div_extend): Likewise.
28435         (div<div_extend>_<mode>"): Likewise.
28436         (FP128_64): Add support for new builtin functions to pack/unpack
28437         128-bit types.
28438         (unpack<mode>): Likewise.
28439         (unpacktf_0): Likewise.
28440         (unpacktf_1): Likewise.
28441         (unpack<mode>_dm): Likewise.
28442         (unpack<mode>_nodm): Likewise.
28443         (pack<mode>): Likewise.
28444         (unpackv1ti): Likewise.
28445         (packv1ti): Likewise.
28446
28447 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
28448
28449         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
28450         is disabled.
28451
28452 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
28453
28454         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
28455         * gimplify.c (omp_is_private): Change last argument's type to int.
28456         Only diagnose lastprivate if the simd argument is 1, only diagnose
28457         linear if the simd argument is 2.
28458         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
28459         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
28460         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
28461         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
28462         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
28463         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
28464         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
28465         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
28466         * tree-nested.c (convert_nonlocal_omp_clauses,
28467         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
28468
28469 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
28470
28471         PR target/60822
28472         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
28473         operand 1.
28474
28475 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
28476
28477         * flag-types.h (enum ivar_visibility): Add.
28478
28479 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
28480
28481         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
28482         function * argument.
28483
28484 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
28485
28486         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
28487
28488 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
28489             Tom de Vries  <tom@codesourcery.com>
28490
28491         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
28492         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
28493         reg-note.
28494         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
28495         * emit-rtl.c (try_split): Same.
28496
28497 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
28498             Tom de Vries  <tom@codesourcery.com>
28499
28500         * common.opt (fuse-caller-save): New option.
28501
28502 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
28503
28504         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
28505         elements for big-endian.
28506
28507 2014-04-24  Richard Biener  <rguenther@suse.de>
28508
28509         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
28510         during TER and instead use the sepops interface for expanding
28511         non-GIMPLE_SINGLE_RHS.
28512
28513 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28514
28515         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
28516         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
28517
28518 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28519
28520         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
28521         assembler 64-bit option.
28522         * configure: Regenerate.
28523
28524 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28525
28526         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
28527         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
28528         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
28529         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
28530         (TARGET_CRYPTO): Take TARGET_SIMD into account.
28531
28532 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28533
28534         * config/aarch64/aarch64-builtins.c
28535         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
28536         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
28537         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
28538         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
28539         builtins.
28540         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
28541         (Vrevsuff): New mode attribute.
28542
28543 2014-04-24  Terry Guo  <terry.guo@arm.com>
28544
28545         * config/arm/arm.h (machine_function): Define variable
28546         after_arm_reorg here.
28547         * config/arm/arm.c (after_arm_reorg): Remove the definition.
28548         (arm_split_constant): Update the way to access variable
28549         after_arm_reorg.
28550         (arm_reorg): Ditto.
28551         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
28552
28553 2014-04-23  Tom de Vries  <tom@codesourcery.com>
28554
28555         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
28556
28557 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
28558
28559         * is-a.h: Update comments to reflect the following changes to the
28560         "pointerness" of the API, making the template parameter match the
28561         return type, allowing use of is-a.h with typedefs of pointers.
28562         (is_a_helper::cast): Return a T rather then a pointer to a T, so
28563         that the return type matches the parameter to the is_a_helper.
28564         (as_a): Likewise.
28565         (dyn_cast): Likewise.
28566
28567         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
28568         pointer from the is-a.h API.
28569
28570         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
28571         (is_a_helper <cgraph_node *>::test): ...this, matching change to
28572         is-a.h API.
28573         (is_a_helper <varpool_node>::test): Likewise, convert to...
28574         (is_a_helper <varpool_node *>::test): ...this.
28575
28576         (varpool_first_variable): Update for removal of implicit pointer
28577         from the is-a.h API.
28578         (varpool_next_variable): Likewise.
28579         (varpool_first_static_initializer): Likewise.
28580         (varpool_next_static_initializer): Likewise.
28581         (varpool_first_defined_variable): Likewise.
28582         (varpool_next_defined_variable): Likewise.
28583         (cgraph_first_defined_function): Likewise.
28584         (cgraph_next_defined_function): Likewise.
28585         (cgraph_first_function): Likewise.
28586         (cgraph_next_function): Likewise.
28587         (cgraph_first_function_with_gimple_body): Likewise.
28588         (cgraph_next_function_with_gimple_body): Likewise.
28589         (cgraph_alias_target): Likewise.
28590         (varpool_alias_target): Likewise.
28591         (cgraph_function_or_thunk_node): Likewise.
28592         (varpool_variable_node): Likewise.
28593         (symtab_real_symbol_p): Likewise.
28594         * cgraphunit.c (referred_to_p): Likewise.
28595         (analyze_functions): Likewise.
28596         (handle_alias_pairs): Likewise.
28597         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
28598         * gimple-ssa.h (gimple_vuse_op): Likewise.
28599         (gimple_vdef_op): Likewise.
28600         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
28601         * gimple.c (gimple_build_asm_1): Likewise.
28602         (gimple_build_try): Likewise.
28603         (gimple_build_resx): Likewise.
28604         (gimple_build_eh_dispatch): Likewise.
28605         (gimple_build_omp_for): Likewise.
28606         (gimple_omp_for_set_clauses): Likewise.
28607
28608         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
28609         (is_a_helper <gimple_statement_asm *>::test): ...this.
28610         (is_a_helper <gimple_statement_bind>::test): Convert to...
28611         (is_a_helper <gimple_statement_bind *>::test): ...this.
28612         (is_a_helper <gimple_statement_call>::test): Convert to...
28613         (is_a_helper <gimple_statement_call *>::test): ...this.
28614         (is_a_helper <gimple_statement_catch>::test): Convert to...
28615         (is_a_helper <gimple_statement_catch *>::test): ...this.
28616         (is_a_helper <gimple_statement_resx>::test): Convert to...
28617         (is_a_helper <gimple_statement_resx *>::test): ...this.
28618         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
28619         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
28620         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
28621         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
28622         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
28623         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
28624         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
28625         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
28626         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
28627         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
28628         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
28629         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
28630         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
28631         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
28632         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
28633         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
28634         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
28635         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
28636         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
28637         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
28638         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
28639         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
28640         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
28641         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
28642         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
28643         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
28644         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
28645         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
28646         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
28647         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
28648         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
28649         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
28650         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
28651         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
28652         (is_a_helper <gimple_statement_phi>::test): Convert to...
28653         (is_a_helper <gimple_statement_phi *>::test): ...this.
28654         (is_a_helper <gimple_statement_transaction>::test): Convert to...
28655         (is_a_helper <gimple_statement_transaction *>::test): ...this.
28656         (is_a_helper <gimple_statement_try>::test): Convert to...
28657         (is_a_helper <gimple_statement_try *>::test): ...this.
28658         (is_a_helper <gimple_statement_wce>::test): Convert to...
28659         (is_a_helper <gimple_statement_wce *>::test): ...this.
28660         (is_a_helper <const gimple_statement_asm>::test): Convert to...
28661         (is_a_helper <const gimple_statement_asm *>::test): ...this.
28662         (is_a_helper <const gimple_statement_bind>::test): Convert to...
28663         (is_a_helper <const gimple_statement_bind *>::test): ...this.
28664         (is_a_helper <const gimple_statement_call>::test): Convert to...
28665         (is_a_helper <const gimple_statement_call *>::test): ...this.
28666         (is_a_helper <const gimple_statement_catch>::test): Convert to...
28667         (is_a_helper <const gimple_statement_catch *>::test): ...this.
28668         (is_a_helper <const gimple_statement_resx>::test): Convert to...
28669         (is_a_helper <const gimple_statement_resx *>::test): ...this.
28670         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
28671         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
28672         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
28673         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
28674         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
28675         Convert to...
28676         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
28677         ...this.
28678         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
28679         Convert to...
28680         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
28681         ...this.
28682         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
28683         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
28684         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
28685         to...
28686         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
28687         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
28688         to...
28689         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
28690         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
28691         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
28692         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
28693         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
28694         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
28695         to...
28696         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
28697         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
28698         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
28699         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
28700         to...
28701         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
28702         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
28703         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
28704         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
28705         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
28706         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
28707         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
28708         (is_a_helper <const gimple_statement_phi>::test): Convert to...
28709         (is_a_helper <const gimple_statement_phi *>::test): ...this.
28710         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
28711         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
28712         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
28713         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
28714         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
28715         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
28716         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
28717         to...
28718         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
28719         ...this.
28720         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
28721         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
28722
28723         (gimple_use_ops): Update for removal of implicit pointer from the
28724         is-a.h API.
28725         (gimple_set_use_ops): Likewise.
28726         (gimple_vuse): Likewise.
28727         (gimple_vdef): Likewise.
28728         (gimple_vuse_ptr): Likewise.
28729         (gimple_vdef_ptr): Likewise.
28730         (gimple_set_vuse): Likewise.
28731         (gimple_set_vdef): Likewise.
28732         (gimple_omp_return_set_lhs): Likewise.
28733         (gimple_omp_return_lhs): Likewise.
28734         (gimple_omp_return_lhs_ptr): Likewise.
28735         (gimple_call_fntype): Likewise.
28736         (gimple_call_set_fntype): Likewise.
28737         (gimple_call_set_internal_fn): Likewise.
28738         (gimple_call_use_set): Likewise.
28739         (gimple_call_clobber_set): Likewise.
28740         (gimple_bind_vars): Likewise.
28741         (gimple_bind_set_vars): Likewise.
28742         (gimple_bind_body_ptr): Likewise.
28743         (gimple_bind_set_body): Likewise.
28744         (gimple_bind_add_stmt): Likewise.
28745         (gimple_bind_block): Likewise.
28746         (gimple_bind_set_block): Likewise.
28747         (gimple_asm_ninputs): Likewise.
28748         (gimple_asm_noutputs): Likewise.
28749         (gimple_asm_nclobbers): Likewise.
28750         (gimple_asm_nlabels): Likewise.
28751         (gimple_asm_input_op): Likewise.
28752         (gimple_asm_input_op_ptr): Likewise.
28753         (gimple_asm_output_op): Likewise.
28754         (gimple_asm_output_op_ptr): Likewise.
28755         (gimple_asm_set_output_op): Likewise.
28756         (gimple_asm_clobber_op): Likewise.
28757         (gimple_asm_set_clobber_op): Likewise.
28758         (gimple_asm_label_op): Likewise.
28759         (gimple_asm_set_label_op): Likewise.
28760         (gimple_asm_string): Likewise.
28761         (gimple_catch_types): Likewise.
28762         (gimple_catch_types_ptr): Likewise.
28763         (gimple_catch_handler_ptr): Likewise.
28764         (gimple_catch_set_types): Likewise.
28765         (gimple_catch_set_handler): Likewise.
28766         (gimple_eh_filter_types): Likewise.
28767         (gimple_eh_filter_types_ptr): Likewise.
28768         (gimple_eh_filter_failure_ptr): Likewise.
28769         (gimple_eh_filter_set_types): Likewise.
28770         (gimple_eh_filter_set_failure): Likewise.
28771         (gimple_eh_must_not_throw_fndecl): Likewise.
28772         (gimple_eh_must_not_throw_set_fndecl): Likewise.
28773         (gimple_eh_else_n_body_ptr): Likewise.
28774         (gimple_eh_else_e_body_ptr): Likewise.
28775         (gimple_eh_else_set_n_body): Likewise.
28776         (gimple_eh_else_set_e_body): Likewise.
28777         (gimple_try_eval_ptr): Likewise.
28778         (gimple_try_cleanup_ptr): Likewise.
28779         (gimple_try_set_eval): Likewise.
28780         (gimple_try_set_cleanup): Likewise.
28781         (gimple_wce_cleanup_ptr): Likewise.
28782         (gimple_wce_set_cleanup): Likewise.
28783         (gimple_phi_capacity): Likewise.
28784         (gimple_phi_num_args): Likewise.
28785         (gimple_phi_result): Likewise.
28786         (gimple_phi_result_ptr): Likewise.
28787         (gimple_phi_set_result): Likewise.
28788         (gimple_phi_arg): Likewise.
28789         (gimple_phi_set_arg): Likewise.
28790         (gimple_resx_region): Likewise.
28791         (gimple_resx_set_region): Likewise.
28792         (gimple_eh_dispatch_region): Likewise.
28793         (gimple_eh_dispatch_set_region): Likewise.
28794         (gimple_omp_critical_name): Likewise.
28795         (gimple_omp_critical_name_ptr): Likewise.
28796         (gimple_omp_critical_set_name): Likewise.
28797         (gimple_omp_for_clauses): Likewise.
28798         (gimple_omp_for_clauses_ptr): Likewise.
28799         (gimple_omp_for_set_clauses): Likewise.
28800         (gimple_omp_for_collapse): Likewise.
28801         (gimple_omp_for_index): Likewise.
28802         (gimple_omp_for_index_ptr): Likewise.
28803         (gimple_omp_for_set_index): Likewise.
28804         (gimple_omp_for_initial): Likewise.
28805         (gimple_omp_for_initial_ptr): Likewise.
28806         (gimple_omp_for_set_initial): Likewise.
28807         (gimple_omp_for_final): Likewise.
28808         (gimple_omp_for_final_ptr): Likewise.
28809         (gimple_omp_for_set_final): Likewise.
28810         (gimple_omp_for_incr): Likewise.
28811         (gimple_omp_for_incr_ptr): Likewise.
28812         (gimple_omp_for_set_incr): Likewise.
28813         (gimple_omp_for_pre_body_ptr): Likewise.
28814         (gimple_omp_for_set_pre_body): Likewise.
28815         (gimple_omp_parallel_clauses): Likewise.
28816         (gimple_omp_parallel_clauses_ptr): Likewise.
28817         (gimple_omp_parallel_set_clauses): Likewise.
28818         (gimple_omp_parallel_child_fn): Likewise.
28819         (gimple_omp_parallel_child_fn_ptr): Likewise.
28820         (gimple_omp_parallel_set_child_fn): Likewise.
28821         (gimple_omp_parallel_data_arg): Likewise.
28822         (gimple_omp_parallel_data_arg_ptr): Likewise.
28823         (gimple_omp_parallel_set_data_arg): Likewise.
28824         (gimple_omp_task_clauses): Likewise.
28825         (gimple_omp_task_clauses_ptr): Likewise.
28826         (gimple_omp_task_set_clauses): Likewise.
28827         (gimple_omp_task_child_fn): Likewise.
28828         (gimple_omp_task_child_fn_ptr): Likewise.
28829         (gimple_omp_task_set_child_fn): Likewise.
28830         (gimple_omp_task_data_arg): Likewise.
28831         (gimple_omp_task_data_arg_ptr): Likewise.
28832         (gimple_omp_task_set_data_arg): Likewise.
28833         (gimple_omp_taskreg_clauses): Likewise.
28834         (gimple_omp_taskreg_clauses_ptr): Likewise.
28835         (gimple_omp_taskreg_set_clauses): Likewise.
28836         (gimple_omp_taskreg_child_fn): Likewise.
28837         (gimple_omp_taskreg_child_fn_ptr): Likewise.
28838         (gimple_omp_taskreg_set_child_fn): Likewise.
28839         (gimple_omp_taskreg_data_arg): Likewise.
28840         (gimple_omp_taskreg_data_arg_ptr): Likewise.
28841         (gimple_omp_taskreg_set_data_arg): Likewise.
28842         (gimple_omp_task_copy_fn): Likewise.
28843         (gimple_omp_task_copy_fn_ptr): Likewise.
28844         (gimple_omp_task_set_copy_fn): Likewise.
28845         (gimple_omp_task_arg_size): Likewise.
28846         (gimple_omp_task_arg_size_ptr): Likewise.
28847         (gimple_omp_task_set_arg_size): Likewise.
28848         (gimple_omp_task_arg_align): Likewise.
28849         (gimple_omp_task_arg_align_ptr): Likewise.
28850         (gimple_omp_task_set_arg_align): Likewise.
28851         (gimple_omp_single_clauses): Likewise.
28852         (gimple_omp_single_clauses_ptr): Likewise.
28853         (gimple_omp_single_set_clauses): Likewise.
28854         (gimple_omp_target_clauses): Likewise.
28855         (gimple_omp_target_clauses_ptr): Likewise.
28856         (gimple_omp_target_set_clauses): Likewise.
28857         (gimple_omp_target_child_fn): Likewise.
28858         (gimple_omp_target_child_fn_ptr): Likewise.
28859         (gimple_omp_target_set_child_fn): Likewise.
28860         (gimple_omp_target_data_arg): Likewise.
28861         (gimple_omp_target_data_arg_ptr): Likewise.
28862         (gimple_omp_target_set_data_arg): Likewise.
28863         (gimple_omp_teams_clauses): Likewise.
28864         (gimple_omp_teams_clauses_ptr): Likewise.
28865         (gimple_omp_teams_set_clauses): Likewise.
28866         (gimple_omp_sections_clauses): Likewise.
28867         (gimple_omp_sections_clauses_ptr): Likewise.
28868         (gimple_omp_sections_set_clauses): Likewise.
28869         (gimple_omp_sections_control): Likewise.
28870         (gimple_omp_sections_control_ptr): Likewise.
28871         (gimple_omp_sections_set_control): Likewise.
28872         (gimple_omp_for_set_cond): Likewise.
28873         (gimple_omp_for_cond): Likewise.
28874         (gimple_omp_atomic_store_set_val): Likewise.
28875         (gimple_omp_atomic_store_val): Likewise.
28876         (gimple_omp_atomic_store_val_ptr): Likewise.
28877         (gimple_omp_atomic_load_set_lhs): Likewise.
28878         (gimple_omp_atomic_load_lhs): Likewise.
28879         (gimple_omp_atomic_load_lhs_ptr): Likewise.
28880         (gimple_omp_atomic_load_set_rhs): Likewise.
28881         (gimple_omp_atomic_load_rhs): Likewise.
28882         (gimple_omp_atomic_load_rhs_ptr): Likewise.
28883         (gimple_omp_continue_control_def): Likewise.
28884         (gimple_omp_continue_control_def_ptr): Likewise.
28885         (gimple_omp_continue_set_control_def): Likewise.
28886         (gimple_omp_continue_control_use): Likewise.
28887         (gimple_omp_continue_control_use_ptr): Likewise.
28888         (gimple_omp_continue_set_control_use): Likewise.
28889         (gimple_transaction_body_ptr): Likewise.
28890         (gimple_transaction_label): Likewise.
28891         (gimple_transaction_label_ptr): Likewise.
28892         (gimple_transaction_set_body): Likewise.
28893         (gimple_transaction_set_label): Likewise.
28894
28895         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
28896         * ipa-inline-analysis.c (inline_write_summary): Likewise.
28897         * ipa-ref.c (ipa_record_reference): Likewise.
28898         * ipa-reference.c (analyze_function): Likewise.
28899         (ipa_reference_write_optimization_summary): Likewise.
28900         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
28901         (address_taken_from_non_vtable_p): Likewise.
28902         (comdat_can_be_unshared_p_1): Likewise.
28903         * lto-cgraph.c (lto_output_ref): Likewise.
28904         (add_references): Likewise.
28905         (compute_ltrans_boundary): Likewise.
28906         (output_symtab): Likewise.
28907         (input_ref): Likewise.
28908         (input_cgraph_1): Likewise.
28909         (output_cgraph_opt_summary): Likewise.
28910         * lto-streamer-out.c (lto_output): Likewise.
28911         (output_symbol_p): Likewise.
28912         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
28913         (lsei_start_function_in_partition): Likewise.
28914         (lsei_next_variable_in_partition): Likewise.
28915         (lsei_start_variable_in_partition): Likewise.
28916         * symtab.c (insert_to_assembler_name_hash): Likewise.
28917         (unlink_from_assembler_name_hash): Likewise.
28918         (symtab_unregister_node): Likewise.
28919         (symtab_remove_node): Likewise.
28920         (dump_symtab_node): Likewise.
28921         (verify_symtab_base): Likewise.
28922         (verify_symtab_node): Likewise.
28923         (symtab_make_decl_local): Likewise.
28924         (symtab_alias_ultimate_target): Likewise.
28925         (symtab_resolve_alias): Likewise.
28926         (symtab_get_symbol_partitioning_class): Likewise.
28927         * tree-phinodes.c (allocate_phi_node): Likewise.
28928         (reserve_phi_args_for_new_edge): Likewise.
28929         (remove_phi_args): Likewise.
28930         * varpool.c (varpool_node_for_asm): Likewise.
28931         (varpool_remove_unreferenced_decls): Likewise.
28932
28933 2014-04-23  Jeff Law  <law@redhat.com>
28934
28935         PR tree-optimization/60902
28936         * tree-ssa-threadedge.c
28937         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
28938         invalidate outputs from statements that do not produce useful
28939         outputs for threading.
28940
28941 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
28942
28943         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
28944         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
28945         machine descriptions for Stack Smashing Protector.
28946
28947 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
28948
28949         * aarch64.md (<optab>_rol<mode>3): New pattern.
28950         (<optab>_rolsi3_uxtw): Likewise.
28951         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
28952
28953 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
28954
28955         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
28956         (arm_cortex_a12_tune): Likewise.
28957
28958 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28959
28960         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
28961
28962 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28963
28964         * config/arm/arm.md (arm_rev16si2): New pattern.
28965         (arm_rev16si2_alt): Likewise.
28966         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
28967
28968 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28969
28970         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
28971         (rev16<mode>2_alt): Likewise.
28972         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
28973         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
28974         (aarch_rev16_shleft_mask_imm_p): Likewise.
28975         (aarch_rev16_p_1): Likewise.
28976         (aarch_rev16_p): Likewise.
28977         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
28978         (aarch_rev16_shright_mask_imm_p): Likewise.
28979         (aarch_rev16_shleft_mask_imm_p): Likewise.
28980
28981 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28982
28983         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
28984         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
28985         rev cost.
28986         (cortex_a53_extra_costs): Likewise.
28987         (cortex_a57_extra_costs): Likewise.
28988         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
28989         (cortexa7_extra_costs): Likewise.
28990         (cortexa8_extra_costs): Likewise.
28991         (cortexa12_extra_costs): Likewise.
28992         (cortexa15_extra_costs): Likewise.
28993         (v7m_extra_costs): Likewise.
28994         (arm_new_rtx_costs): Handle BSWAP.
28995
28996 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28997
28998         * config/arm/arm.c (cortexa8_extra_costs): New table.
28999         (arm_cortex_a8_tune): New tuning struct.
29000         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
29001
29002 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29003
29004         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
29005
29006 2014-04-23  Richard Biener  <rguenther@suse.de>
29007
29008         * Makefile.in (OBJS): Remove loop-unswitch.o.
29009         * tree-pass.h (make_pass_rtl_unswitch): Remove.
29010         * passes.def (pass_rtl_unswitch): Likewise.
29011         * loop-init.c (gate_rtl_unswitch): Likewise.
29012         (rtl_unswitch): Likewise.
29013         (pass_data_rtl_unswitch): Likewise.
29014         (pass_rtl_unswitch): Likewise.
29015         (make_pass_rtl_unswitch): Likewise.
29016         * rtl.h (reversed_condition): Likewise.
29017         (compare_and_jump_seq): Likewise.
29018         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
29019         and make static.
29020         * loop-unroll.c (compare_and_jump_seq): Likewise.
29021
29022 2014-04-23  Richard Biener  <rguenther@suse.de>
29023
29024         PR tree-optimization/60903
29025         * tree-ssa-loop-im.c (analyze_memory_references): Remove
29026         commented code block.
29027         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
29028         loop flags to newly created BBs and edges.
29029
29030 2014-04-23  Nick Clifton  <nickc@redhat.com>
29031
29032         * config/msp430/msp430.c (msp430_handle_option): Move function
29033         to msp430-common.c
29034         (msp430_option_override): Simplify mcu and mcpu option handling.
29035         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
29036         support for -mhwmult command line option.
29037         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
29038         -mhwmult command line option.
29039         (msp430_hwmult_enabled): Delete.
29040         (msp43o_output_labelref): Add support for -mhwmult command line option.
29041         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
29042         (umulsidi3): Likewise.
29043         * config/msp430/msp430.opt (mmcu): Add Report attribute.
29044         (mcpu, mlarge, msmall): Likewise.
29045         (mhwmult): New option.
29046         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
29047         prototype.
29048         (msp430_is_f5_mcu): Remove prototype.
29049         (msp430_use_f5_series_hwmult): Add prototype.
29050         * config/msp430/msp430-opts.h: New file.
29051         * common/config/msp430: New directory.
29052         * common/config/msp430/msp430-common.c: New file.
29053         * config.gcc (msp430): Remove target_has_targetm_common.
29054         * doc/invoke.texi: Document -mhwmult command line option.
29055
29056 2014-04-23  Nick Clifton  <nickc@redhat.com>
29057
29058         * config/i386/cygwin.h (ENDFILE_SPEC): Include
29059         default-manifest.o if it can be found in the search path.
29060         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
29061
29062 2014-04-23  Terry Guo  <terry.guo@arm.com>
29063
29064         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
29065
29066 2014-04-23  Richard Biener  <rguenther@suse.de>
29067
29068         PR middle-end/60895
29069         * tree-inline.c (declare_return_variable): Use mark_addressable.
29070
29071 2014-04-23  Richard Biener  <rguenther@suse.de>
29072
29073         PR middle-end/60891
29074         * loop-init.c (loop_optimizer_init): Make sure to apply
29075         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
29076
29077 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
29078
29079         PR sanitizer/60275
29080         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
29081         New options.
29082         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
29083         if flag_sanitize_undefined_trap_on_error.
29084         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
29085         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
29086         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
29087         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
29088         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
29089         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
29090         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
29091         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
29092         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
29093         * ubsan.c (ubsan_instrument_unreachable): Return
29094         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
29095         (ubsan_expand_null_ifn): Emit __builtin_trap ()
29096         if flag_sanitize_undefined_trap_on_error and
29097         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
29098         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
29099         instrument_bool_enum_load): Emit __builtin_trap () if
29100         flag_sanitize_undefined_trap_on_error and
29101         __builtin_handle_*_abort () if !flag_sanitize_recover.
29102         * doc/invoke.texi (-fsanitize-recover,
29103         -fsanitize-undefined-trap-on-error): Document.
29104
29105 2014-04-22  Christian Bruel  <christian.bruel@st.com>
29106
29107         * config/sh/sh.md (mov<mode>): Replace movQIHI.
29108         Force immediates to SImode.
29109
29110 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
29111
29112         * config/nios2/nios2.md (UNSPEC_ROUND): New.
29113         (lroundsfsi2): New.
29114         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
29115         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
29116         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
29117         (nios2_fpu_insn): Add entry for round.
29118         (N2FPU_NO_ERRNO_P): Define.
29119         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
29120         flag_errno_math.
29121         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
29122
29123 2014-04-22  Richard Henderson  <rth@redhat.com>
29124
29125         * config/aarch64/aarch64 (addti3, subti3): New expanders.
29126         (add<GPI>3_compare0): Remove leading * from name.
29127         (add<GPI>3_carryin): Likewise.
29128         (sub<GPI>3_compare0): Likewise.
29129         (sub<GPI>3_carryin): Likewise.
29130         (<su_optab>mulditi3): New expander.
29131         (multi3): New expander.
29132         (madd<GPI>): Remove leading * from name.
29133
29134 2014-04-22  Martin Jambor  <mjambor@suse.cz>
29135
29136         * cgraphclones.c (cgraph_function_versioning): Copy
29137         ipa_transforms_to_apply instead of asserting it is empty.
29138
29139 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
29140
29141         PR target/60868
29142         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
29143         on count_exp to get mode.
29144
29145 2014-04-22  Andrew Pinski  <apinski@cavium.com>
29146
29147         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
29148         Handle TLS for ILP32.
29149         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
29150         (tlsie_small_<mode>): this and handle PTR.
29151         (tlsie_small_sidi): New pattern.
29152         (tlsle_small): Change to an expand to handle ILP32.
29153         (tlsle_small_<mode>): New pattern.
29154         (tlsdesc_small): Rename to ...
29155         (tlsdesc_small_<mode>): this and handle PTR.
29156
29157 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29158
29159         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
29160
29161 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
29162
29163         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
29164         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
29165         (aarch64_types_signed_poly_qualifiers): Likewise.
29166         (aarch64_types_unsigned_signed_qualifiers): Likewise.
29167         (aarch64_types_poly_signed_qualifiers): Likewise.
29168         (TYPES_REINTERP_SS): Type macro added.
29169         (TYPES_REINTERP_SU): Likewise.
29170         (TYPES_REINTERP_SP): Likewise.
29171         (TYPES_REINTERP_US): Likewise.
29172         (TYPES_REINTERP_PS): Likewise.
29173         (aarch64_fold_builtin): New expression folding added.
29174         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
29175         Declarations removed.
29176         (REINTERP_SS): Declarations added.
29177         (REINTERP_US): Likewise.
29178         (REINTERP_PS): Likewise.
29179         (REINTERP_SU): Likewise.
29180         (REINTERP_SP): Likewise.
29181         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
29182         (vreinterpretq_p8_f64): Likewise.
29183         (vreinterpret_p16_f64): Likewise.
29184         (vreinterpretq_p16_f64): Likewise.
29185         (vreinterpret_f32_f64): Likewise.
29186         (vreinterpretq_f32_f64): Likewise.
29187         (vreinterpret_f64_f32): Likewise.
29188         (vreinterpret_f64_p8): Likewise.
29189         (vreinterpret_f64_p16): Likewise.
29190         (vreinterpret_f64_s8): Likewise.
29191         (vreinterpret_f64_s16): Likewise.
29192         (vreinterpret_f64_s32): Likewise.
29193         (vreinterpret_f64_s64): Likewise.
29194         (vreinterpret_f64_u8): Likewise.
29195         (vreinterpret_f64_u16): Likewise.
29196         (vreinterpret_f64_u32): Likewise.
29197         (vreinterpret_f64_u64): Likewise.
29198         (vreinterpretq_f64_f32): Likewise.
29199         (vreinterpretq_f64_p8): Likewise.
29200         (vreinterpretq_f64_p16): Likewise.
29201         (vreinterpretq_f64_s8): Likewise.
29202         (vreinterpretq_f64_s16): Likewise.
29203         (vreinterpretq_f64_s32): Likewise.
29204         (vreinterpretq_f64_s64): Likewise.
29205         (vreinterpretq_f64_u8): Likewise.
29206         (vreinterpretq_f64_u16): Likewise.
29207         (vreinterpretq_f64_u32): Likewise.
29208         (vreinterpretq_f64_u64): Likewise.
29209         (vreinterpret_s64_f64): Likewise.
29210         (vreinterpretq_s64_f64): Likewise.
29211         (vreinterpret_u64_f64): Likewise.
29212         (vreinterpretq_u64_f64): Likewise.
29213         (vreinterpret_s8_f64): Likewise.
29214         (vreinterpretq_s8_f64): Likewise.
29215         (vreinterpret_s16_f64): Likewise.
29216         (vreinterpretq_s16_f64): Likewise.
29217         (vreinterpret_s32_f64): Likewise.
29218         (vreinterpretq_s32_f64): Likewise.
29219         (vreinterpret_u8_f64): Likewise.
29220         (vreinterpretq_u8_f64): Likewise.
29221         (vreinterpret_u16_f64): Likewise.
29222         (vreinterpretq_u16_f64): Likewise.
29223         (vreinterpret_u32_f64): Likewise.
29224         (vreinterpretq_u32_f64): Likewise.
29225
29226 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
29227
29228         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
29229         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
29230         (vreinterpret_p8_s8): Likewise.
29231         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
29232         (vreinterpret_p8_s16): Likewise.
29233         (vreinterpret_p8_s32): Likewise.
29234         (vreinterpret_p8_s64): Likewise.
29235         (vreinterpret_p8_f32): Likewise.
29236         (vreinterpret_p8_u8): Likewise.
29237         (vreinterpret_p8_u16): Likewise.
29238         (vreinterpret_p8_u32): Likewise.
29239         (vreinterpret_p8_u64): Likewise.
29240         (vreinterpret_p8_p16): Likewise.
29241         (vreinterpretq_p8_s8): Likewise.
29242         (vreinterpretq_p8_s16): Likewise.
29243         (vreinterpretq_p8_s32): Likewise.
29244         (vreinterpretq_p8_s64): Likewise.
29245         (vreinterpretq_p8_f32): Likewise.
29246         (vreinterpretq_p8_u8): Likewise.
29247         (vreinterpretq_p8_u16): Likewise.
29248         (vreinterpretq_p8_u32): Likewise.
29249         (vreinterpretq_p8_u64): Likewise.
29250         (vreinterpretq_p8_p16): Likewise.
29251         (vreinterpret_p16_s8): Likewise.
29252         (vreinterpret_p16_s16): Likewise.
29253         (vreinterpret_p16_s32): Likewise.
29254         (vreinterpret_p16_s64): Likewise.
29255         (vreinterpret_p16_f32): Likewise.
29256         (vreinterpret_p16_u8): Likewise.
29257         (vreinterpret_p16_u16): Likewise.
29258         (vreinterpret_p16_u32): Likewise.
29259         (vreinterpret_p16_u64): Likewise.
29260         (vreinterpret_p16_p8): Likewise.
29261         (vreinterpretq_p16_s8): Likewise.
29262         (vreinterpretq_p16_s16): Likewise.
29263         (vreinterpretq_p16_s32): Likewise.
29264         (vreinterpretq_p16_s64): Likewise.
29265         (vreinterpretq_p16_f32): Likewise.
29266         (vreinterpretq_p16_u8): Likewise.
29267         (vreinterpretq_p16_u16): Likewise.
29268         (vreinterpretq_p16_u32): Likewise.
29269         (vreinterpretq_p16_u64): Likewise.
29270         (vreinterpretq_p16_p8): Likewise.
29271         (vreinterpret_f32_s8): Likewise.
29272         (vreinterpret_f32_s16): Likewise.
29273         (vreinterpret_f32_s32): Likewise.
29274         (vreinterpret_f32_s64): Likewise.
29275         (vreinterpret_f32_u8): Likewise.
29276         (vreinterpret_f32_u16): Likewise.
29277         (vreinterpret_f32_u32): Likewise.
29278         (vreinterpret_f32_u64): Likewise.
29279         (vreinterpret_f32_p8): Likewise.
29280         (vreinterpret_f32_p16): Likewise.
29281         (vreinterpretq_f32_s8): Likewise.
29282         (vreinterpretq_f32_s16): Likewise.
29283         (vreinterpretq_f32_s32): Likewise.
29284         (vreinterpretq_f32_s64): Likewise.
29285         (vreinterpretq_f32_u8): Likewise.
29286         (vreinterpretq_f32_u16): Likewise.
29287         (vreinterpretq_f32_u32): Likewise.
29288         (vreinterpretq_f32_u64): Likewise.
29289         (vreinterpretq_f32_p8): Likewise.
29290         (vreinterpretq_f32_p16): Likewise.
29291         (vreinterpret_s64_s8): Likewise.
29292         (vreinterpret_s64_s16): Likewise.
29293         (vreinterpret_s64_s32): Likewise.
29294         (vreinterpret_s64_f32): Likewise.
29295         (vreinterpret_s64_u8): Likewise.
29296         (vreinterpret_s64_u16): Likewise.
29297         (vreinterpret_s64_u32): Likewise.
29298         (vreinterpret_s64_u64): Likewise.
29299         (vreinterpret_s64_p8): Likewise.
29300         (vreinterpret_s64_p16): Likewise.
29301         (vreinterpretq_s64_s8): Likewise.
29302         (vreinterpretq_s64_s16): Likewise.
29303         (vreinterpretq_s64_s32): Likewise.
29304         (vreinterpretq_s64_f32): Likewise.
29305         (vreinterpretq_s64_u8): Likewise.
29306         (vreinterpretq_s64_u16): Likewise.
29307         (vreinterpretq_s64_u32): Likewise.
29308         (vreinterpretq_s64_u64): Likewise.
29309         (vreinterpretq_s64_p8): Likewise.
29310         (vreinterpretq_s64_p16): Likewise.
29311         (vreinterpret_u64_s8): Likewise.
29312         (vreinterpret_u64_s16): Likewise.
29313         (vreinterpret_u64_s32): Likewise.
29314         (vreinterpret_u64_s64): Likewise.
29315         (vreinterpret_u64_f32): Likewise.
29316         (vreinterpret_u64_u8): Likewise.
29317         (vreinterpret_u64_u16): Likewise.
29318         (vreinterpret_u64_u32): Likewise.
29319         (vreinterpret_u64_p8): Likewise.
29320         (vreinterpret_u64_p16): Likewise.
29321         (vreinterpretq_u64_s8): Likewise.
29322         (vreinterpretq_u64_s16): Likewise.
29323         (vreinterpretq_u64_s32): Likewise.
29324         (vreinterpretq_u64_s64): Likewise.
29325         (vreinterpretq_u64_f32): Likewise.
29326         (vreinterpretq_u64_u8): Likewise.
29327         (vreinterpretq_u64_u16): Likewise.
29328         (vreinterpretq_u64_u32): Likewise.
29329         (vreinterpretq_u64_p8): Likewise.
29330         (vreinterpretq_u64_p16): Likewise.
29331         (vreinterpret_s8_s16): Likewise.
29332         (vreinterpret_s8_s32): Likewise.
29333         (vreinterpret_s8_s64): Likewise.
29334         (vreinterpret_s8_f32): Likewise.
29335         (vreinterpret_s8_u8): Likewise.
29336         (vreinterpret_s8_u16): Likewise.
29337         (vreinterpret_s8_u32): Likewise.
29338         (vreinterpret_s8_u64): Likewise.
29339         (vreinterpret_s8_p8): Likewise.
29340         (vreinterpret_s8_p16): Likewise.
29341         (vreinterpretq_s8_s16): Likewise.
29342         (vreinterpretq_s8_s32): Likewise.
29343         (vreinterpretq_s8_s64): Likewise.
29344         (vreinterpretq_s8_f32): Likewise.
29345         (vreinterpretq_s8_u8): Likewise.
29346         (vreinterpretq_s8_u16): Likewise.
29347         (vreinterpretq_s8_u32): Likewise.
29348         (vreinterpretq_s8_u64): Likewise.
29349         (vreinterpretq_s8_p8): Likewise.
29350         (vreinterpretq_s8_p16): Likewise.
29351         (vreinterpret_s16_s8): Likewise.
29352         (vreinterpret_s16_s32): Likewise.
29353         (vreinterpret_s16_s64): Likewise.
29354         (vreinterpret_s16_f32): Likewise.
29355         (vreinterpret_s16_u8): Likewise.
29356         (vreinterpret_s16_u16): Likewise.
29357         (vreinterpret_s16_u32): Likewise.
29358         (vreinterpret_s16_u64): Likewise.
29359         (vreinterpret_s16_p8): Likewise.
29360         (vreinterpret_s16_p16): Likewise.
29361         (vreinterpretq_s16_s8): Likewise.
29362         (vreinterpretq_s16_s32): Likewise.
29363         (vreinterpretq_s16_s64): Likewise.
29364         (vreinterpretq_s16_f32): Likewise.
29365         (vreinterpretq_s16_u8): Likewise.
29366         (vreinterpretq_s16_u16): Likewise.
29367         (vreinterpretq_s16_u32): Likewise.
29368         (vreinterpretq_s16_u64): Likewise.
29369         (vreinterpretq_s16_p8): Likewise.
29370         (vreinterpretq_s16_p16): Likewise.
29371         (vreinterpret_s32_s8): Likewise.
29372         (vreinterpret_s32_s16): Likewise.
29373         (vreinterpret_s32_s64): Likewise.
29374         (vreinterpret_s32_f32): Likewise.
29375         (vreinterpret_s32_u8): Likewise.
29376         (vreinterpret_s32_u16): Likewise.
29377         (vreinterpret_s32_u32): Likewise.
29378         (vreinterpret_s32_u64): Likewise.
29379         (vreinterpret_s32_p8): Likewise.
29380         (vreinterpret_s32_p16): Likewise.
29381         (vreinterpretq_s32_s8): Likewise.
29382         (vreinterpretq_s32_s16): Likewise.
29383         (vreinterpretq_s32_s64): Likewise.
29384         (vreinterpretq_s32_f32): Likewise.
29385         (vreinterpretq_s32_u8): Likewise.
29386         (vreinterpretq_s32_u16): Likewise.
29387         (vreinterpretq_s32_u32): Likewise.
29388         (vreinterpretq_s32_u64): Likewise.
29389         (vreinterpretq_s32_p8): Likewise.
29390         (vreinterpretq_s32_p16): Likewise.
29391         (vreinterpret_u8_s8): Likewise.
29392         (vreinterpret_u8_s16): Likewise.
29393         (vreinterpret_u8_s32): Likewise.
29394         (vreinterpret_u8_s64): Likewise.
29395         (vreinterpret_u8_f32): Likewise.
29396         (vreinterpret_u8_u16): Likewise.
29397         (vreinterpret_u8_u32): Likewise.
29398         (vreinterpret_u8_u64): Likewise.
29399         (vreinterpret_u8_p8): Likewise.
29400         (vreinterpret_u8_p16): Likewise.
29401         (vreinterpretq_u8_s8): Likewise.
29402         (vreinterpretq_u8_s16): Likewise.
29403         (vreinterpretq_u8_s32): Likewise.
29404         (vreinterpretq_u8_s64): Likewise.
29405         (vreinterpretq_u8_f32): Likewise.
29406         (vreinterpretq_u8_u16): Likewise.
29407         (vreinterpretq_u8_u32): Likewise.
29408         (vreinterpretq_u8_u64): Likewise.
29409         (vreinterpretq_u8_p8): Likewise.
29410         (vreinterpretq_u8_p16): Likewise.
29411         (vreinterpret_u16_s8): Likewise.
29412         (vreinterpret_u16_s16): Likewise.
29413         (vreinterpret_u16_s32): Likewise.
29414         (vreinterpret_u16_s64): Likewise.
29415         (vreinterpret_u16_f32): Likewise.
29416         (vreinterpret_u16_u8): Likewise.
29417         (vreinterpret_u16_u32): Likewise.
29418         (vreinterpret_u16_u64): Likewise.
29419         (vreinterpret_u16_p8): Likewise.
29420         (vreinterpret_u16_p16): Likewise.
29421         (vreinterpretq_u16_s8): Likewise.
29422         (vreinterpretq_u16_s16): Likewise.
29423         (vreinterpretq_u16_s32): Likewise.
29424         (vreinterpretq_u16_s64): Likewise.
29425         (vreinterpretq_u16_f32): Likewise.
29426         (vreinterpretq_u16_u8): Likewise.
29427         (vreinterpretq_u16_u32): Likewise.
29428         (vreinterpretq_u16_u64): Likewise.
29429         (vreinterpretq_u16_p8): Likewise.
29430         (vreinterpretq_u16_p16): Likewise.
29431         (vreinterpret_u32_s8): Likewise.
29432         (vreinterpret_u32_s16): Likewise.
29433         (vreinterpret_u32_s32): Likewise.
29434         (vreinterpret_u32_s64): Likewise.
29435         (vreinterpret_u32_f32): Likewise.
29436         (vreinterpret_u32_u8): Likewise.
29437         (vreinterpret_u32_u16): Likewise.
29438         (vreinterpret_u32_u64): Likewise.
29439         (vreinterpret_u32_p8): Likewise.
29440         (vreinterpret_u32_p16): Likewise.
29441         (vreinterpretq_u32_s8): Likewise.
29442         (vreinterpretq_u32_s16): Likewise.
29443         (vreinterpretq_u32_s32): Likewise.
29444         (vreinterpretq_u32_s64): Likewise.
29445         (vreinterpretq_u32_f32): Likewise.
29446         (vreinterpretq_u32_u8): Likewise.
29447         (vreinterpretq_u32_u16): Likewise.
29448         (vreinterpretq_u32_u64): Likewise.
29449         (vreinterpretq_u32_p8): Likewise.
29450         (vreinterpretq_u32_p16): Likewise.
29451
29452 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
29453
29454         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
29455         Pattern extended.
29456         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
29457         (sqabs): Likewise.
29458         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
29459         (vqnegd_s64): Likewise.
29460         (vqabs_s64): Likewise.
29461         (vqabsd_s64): Likewise.
29462
29463 2014-04-22  Richard Henderson  <rth@redhat.com>
29464
29465         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
29466         computation to the top of the loop.
29467
29468 2014-04-22  Renlin  <renlin.li@arm.com>
29469             Jiong Wang  <jiong.wang@arm.com>
29470
29471         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
29472         * config/aarch64/aarch64.c (aarch64_layout_frame)
29473         (aarch64_initial_elimination_offset): Likewise.
29474
29475 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
29476
29477         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
29478         Fix indentation.
29479
29480 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
29481
29482         * machmode.h (bitwise_mode_for_mode): Declare.
29483         * stor-layout.h (bitwise_type_for_mode): Likewise.
29484         * stor-layout.c (bitwise_mode_for_mode): New function.
29485         (bitwise_type_for_mode): Likewise.
29486         * builtins.c (fold_builtin_memory_op): Use it instead of
29487         int_mode_for_mode and build_nonstandard_integer_type.
29488
29489 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29490
29491         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
29492         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
29493         (*-*-solaris2*): Simplify.
29494         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
29495         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
29496         *-*-solaris2.9* handling.
29497
29498         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
29499         as bug.
29500         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
29501         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
29502         handling, simplify.
29503         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
29504         * configure: Regenerate.
29505
29506         * config/i386/sol2-9.h: Remove.
29507
29508         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
29509         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
29510         Remove Solaris 9 references.
29511
29512 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
29513
29514         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
29515         (floatuns<GPI:mode><GPF:mode>2): Remove.
29516         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
29517         and floatuns conversions.
29518         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
29519         and floatuns conversions.
29520         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
29521         (w1,w2): New mode attributes for inequal width conversions.
29522
29523 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
29524
29525         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
29526         the output asm format.
29527
29528 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
29529
29530         * config/aarch64/aarch64-simd.md
29531         (aarch64_cm<optab>di): Always split.
29532         (*aarch64_cm<optab>di): New.
29533         (aarch64_cmtstdi): Always split.
29534         (*aarch64_cmtstdi): New.
29535
29536 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
29537
29538         PR tree-optimization/60823
29539         * omp-low.c (ipa_simd_modify_function_body): Go through
29540         all SSA_NAMEs and for those refering to vector arguments
29541         which are going to be replaced adjust SSA_NAME_VAR and,
29542         if it is a default definition, change it into a non-default
29543         definition assigned at the beginning of function from new_decl.
29544         (ipa_simd_modify_stmt_ops): Rewritten.
29545         * tree-dfa.c (set_ssa_default_def): When removing default def,
29546         check for NULL loc instead of NULL *loc.
29547
29548 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29549
29550         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
29551         restrictions on core registers for DImode values in Thumb2.
29552
29553 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
29554
29555         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
29556         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
29557
29558 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
29559
29560         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
29561         (*iordi_notzesidi_di): Likewise.
29562         (*iordi_notsesidi_di): Likewise.
29563
29564 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
29565
29566         * config/arm/arm-protos.h (tune_params): New struct members.
29567         * config/arm/arm.c: Initialise tune_params per processor.
29568         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
29569         for speed, based on new tune_params.
29570
29571 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
29572
29573         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
29574         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
29575         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
29576         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
29577         * config/aarch64/arm_neon.h (vrnd_f64): Added.
29578         (vrnda_f64): Likewise.
29579         (vrndi_f64): Likewise.
29580         (vrndm_f64): Likewise.
29581         (vrndn_f64): Likewise.
29582         (vrndp_f64): Likewise.
29583         (vrndx_f64): Likewise.
29584
29585 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
29586
29587         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
29588         GET_MODE_SIZE argument is enum machine_mode.
29589
29590 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
29591
29592         PR target/60910
29593         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
29594         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
29595
29596 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
29597
29598         PR middle-end/60281
29599         * asan.c (asan_emit_stack_protection): Force the base to align to
29600         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
29601         appropriate bits if STRICT_ALIGNMENT.
29602         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
29603         when asan is on.
29604         (expand_used_vars): Leave a space in the stack frame for alignment
29605         if STRICT_ALIGNMENT.
29606
29607 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
29608
29609         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
29610         than a gimple.
29611         (gimple_store_p): Likewise.
29612         (gimple_assign_load_p): Likewise.
29613         (gimple_assign_cast_p): Likewise.
29614         (gimple_clobber_p): Likewise.
29615
29616         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
29617         rather than a gimple.
29618         (gimple_assign_cast_p): Likewise.
29619
29620 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
29621
29622         PR target/60735
29623         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
29624         If mode is DDmode and TARGET_E500_DOUBLE allow move.
29625
29626         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
29627         more debug information for E500 if -mdebug=reg.
29628
29629 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
29630
29631         PR target/60909
29632         * config/i386/i386.c (ix86_expand_builtin)
29633         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
29634         register for target RTX.
29635         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
29636
29637 2014-04-18  Cong Hou  <congh@google.com>
29638
29639         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
29640         the widen-mult pattern by handling two operands with different sizes,
29641         and operands whose size is smaller than half of the result type.
29642
29643 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
29644
29645         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
29646         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
29647         (do_estimate_edge_time): Compute it.
29648         * ipa-inline.c (want_inline_small_function_p): Bypass
29649         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
29650
29651 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
29652
29653         * ipa-inline.c (spec_rem): New static variable.
29654         (dump_overall_stats): New function.
29655         (dump_inline_stats): New function.
29656
29657 2014-04-18  Richard Henderson  <rth@redhat.com>
29658
29659         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
29660         to GET_MODE_SIZE, not a reg_class_t.
29661
29662 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29663
29664         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
29665         (vsx_xxmrglw_<mode>): Likewise.
29666
29667 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
29668
29669         PR target/60876
29670         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
29671         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
29672         (rs6000_init_hard_regno_mode_ok): Likewise.
29673
29674 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
29675
29676         * ipa-inline.c (inline_small_functions): Account only non-cold
29677         functions.
29678         * doc/invoke.texi (inline-unit-growth): Update documentation.
29679
29680 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
29681
29682         * config/rs6000/rs6000.md (addti3, subti3): New.
29683
29684 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
29685
29686         PR target/60863
29687         * config/i386/i386.c (ix86_expand_clear): Remove outdated
29688         comment.  Check optimize_insn_for_size_p instead of
29689         optimize_insn_for_speed_p.
29690
29691 2014-04-17  Martin Jambor  <mjambor@suse.cz>
29692
29693         * gimple-iterator.c (gsi_start_edge): New function.
29694         * gimple-iterator.h (gsi_start_edge): Declare.
29695         * tree-sra.c (single_non_eh_succ): New function.
29696         (disqualify_ops_if_throwing_stmt): Renamed to
29697         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
29698         having one non-EH successor BB.
29699         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
29700         generate loads into replacements.
29701         (sra_modify_assign): Likewise and and also use the simple path for
29702         such statements.
29703         (sra_modify_function_body): Commit statements on edges.
29704
29705 2014-04-17  Richard Biener  <rguenther@suse.de>
29706
29707         PR middle-end/60849
29708         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
29709         comparison results and add clarifying comment.
29710
29711 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
29712
29713         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
29714         (blank_mode): Initialize it.
29715         (emit_mode_size_inline, emit_mode_nunits_inline,
29716         emit_mode_inner_inline): New functions.
29717         (emit_insn_modes_h): Call them and surround their output with
29718         #if GCC_VERSION >= 4001 ... #endif.
29719         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
29720         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
29721         mode_* arrays if the argument is __builtin_constant_p.
29722         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
29723         is enum machine_mode.
29724
29725 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29726
29727         * passes.c (opt_pass::execute): Adjust.
29728         (pass_manager::execute_pass_mode_switching): Likewise.
29729         (early_local_passes::execute): Likewise.
29730         (execute_one_pass): Pass cfun to the pass's execute method.
29731         * tree-pass.h (opt_pass::execute): Add function * argument.
29732         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
29733         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
29734         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
29735         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29736         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
29737         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
29738         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
29739         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
29740         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
29741         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
29742         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
29743         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
29744         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
29745         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
29746         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
29747         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
29748         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
29749         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
29750         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
29751         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29752         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29753         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29754         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29755         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29756         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29757         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29758         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
29759         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
29760         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
29761         Adjust.
29762
29763 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29764
29765         * passes.c (opt_pass::gate): Take function * argument.
29766         (gate_all_early_local_passes): Merge into
29767         (early_local_passes::gate): this.
29768         (gate_all_early_optimizations): Merge into
29769         (all_early_optimizations::gate): this.
29770         (gate_all_optimizations): Mege into
29771         (all_optimizations::gate): this.
29772         (gate_all_optimizations_g): Merge into
29773         (all_optimizations_g::gate): this.
29774         (gate_rest_of_compilation): Mege into
29775         (rest_of_compilation::gate): this.
29776         (gate_postreload): Merge into
29777         (postreload::gate): this.
29778         (dump_one_pass): Pass cfun to the pass's gate method.
29779         (execute_ipa_summary_passes): Likewise.
29780         (execute_one_pass): Likewise.
29781         (ipa_write_summaries_2): Likewise.
29782         (ipa_write_optimization_summaries_1): Likewise.
29783         (ipa_read_summaries_1): Likewise.
29784         (ipa_read_optimization_summaries_1): Likewise.
29785         (execute_ipa_stmt_fixups): Likewise.
29786         * tree-pass.h (opt_pass::gate): Add function * argument.
29787         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
29788         combine-stack-adj.c, combine.c, compare-elim.c,
29789         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29790         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
29791         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
29792         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
29793         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
29794         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
29795         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
29796         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
29797         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
29798         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
29799         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
29800         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
29801         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
29802         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
29803         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
29804         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29805         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29806         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29807         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29808         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29809         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29810         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29811         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
29812         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
29813         var-tracking.c, vtable-verify.c, web.c: Adjust.
29814
29815 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29816
29817         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
29818         * configure: Regenerate.
29819
29820 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29821
29822         * passes.c (dump_one_pass): don't check pass->has_gate.
29823         (execute_ipa_summary_passes): Likewise.
29824         (execute_one_pass): Likewise.
29825         (ipa_write_summaries_2): Likewise.
29826         (ipa_write_optimization_summaries_1): Likewise.
29827         (ipa_read_optimization_summaries_1): Likewise.
29828         (execute_ipa_stmt_fixups): Likewise.
29829         * tree-pass.h (pass_data::has_gate): Remove.
29830         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
29831         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
29832         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
29833         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29834         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
29835         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
29836         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
29837         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
29838         gimple-low.c, gimple-ssa-isolate-paths.c,
29839         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
29840         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
29841         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
29842         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
29843         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
29844         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
29845         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
29846         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
29847         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
29848         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
29849         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
29850         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
29851         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29852         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29853         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29854         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29855         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29856         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29857         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29858         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
29859         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
29860         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
29861         Adjust.
29862
29863 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29864
29865         * pass_manager.h (pass_manager::register_dump_files_1): Remove
29866         declaration.
29867         * passes.c (pass_manager::register_dump_files_1): Merge into
29868         (pass_manager::register_dump_files): this, and remove its handling of
29869         properties since the pass always has the properties anyway.
29870         (pass_manager::pass_manager): Adjust.
29871
29872 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29873
29874         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
29875         * passes.c (pass_manager::register_dump_files_1): Remove dead code
29876         dealing with properties.
29877         (pass_manager::register_dump_files): Adjust.
29878
29879 2014-03-20  Mark Wielaard  <mjw@redhat.com>
29880
29881         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
29882         then represent the bound as normal constant value.
29883
29884 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
29885
29886         PR target/60847
29887         Forward port from 4.8 branch
29888         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
29889
29890         * config/i386/bmiintrin.h (_blsi_u32): New.
29891         (_blsi_u64): Ditto.
29892         (_blsr_u32): Ditto.
29893         (_blsr_u64): Ditto.
29894         (_blsmsk_u32): Ditto.
29895         (_blsmsk_u64): Ditto.
29896         (_tzcnt_u32): Ditto.
29897         (_tzcnt_u64): Ditto.
29898
29899 2014-04-17  Kito Cheng  <kito@0xlab.org>
29900
29901         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
29902
29903 2014-04-17  Richard Biener  <rguenther@suse.de>
29904
29905         PR middle-end/60849
29906         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
29907         boolean results for comparisons.
29908
29909 2014-04-17  Richard Biener  <rguenther@suse.de>
29910
29911         PR tree-optimization/60836
29912         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
29913         initial PHI args to be gimple values.
29914
29915 2014-04-17  Richard Biener  <rguenther@suse.de>
29916
29917         PR tree-optimization/60841
29918         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
29919         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
29920         of stmts to SLP build.
29921         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
29922         (vect_analyze_slp): Likewise.
29923         (vect_analyze_slp_instance): Likewise.
29924         (vect_build_slp_tree): Limit overall SLP tree growth.
29925         * tree-vectorizer.h (vect_analyze_data_refs,
29926         vect_analyze_slp): Adjust prototypes.
29927
29928 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
29929
29930         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
29931         Silvermont.
29932
29933 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
29934
29935         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
29936         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
29937         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
29938         for TARGET_SLOW_PSHUFB
29939
29940 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
29941
29942         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
29943         * config/i386/i386.c (intel_cost): Ditto.
29944
29945 2014-04-17  Joey Ye  <joey.ye@arm.com>
29946
29947         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
29948
29949 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
29950
29951         * opts.c (common_handle_option): Disable -fipa-reference coorectly
29952         with -fuse-profile.
29953
29954 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
29955
29956         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
29957         (type_all_derivations_known_p): New predicate.
29958         (type_all_ctors_visible_p): New predicate.
29959         (type_possibly_instantiated_p): New predicate.
29960         (get_odr_type): Compute all_derivations_known.
29961         (dump_odr_type): Dump the flag.
29962         (maybe_record_type): Cleanup.
29963         (record_target_from_binfo): Add bases_to_consider array;
29964         record bases for types w/o instances and skip CXX destructor.
29965         (possible_polymorphic_call_targets_1): Add bases_to_consider
29966         and consider_construction parameters; check if type may have instance.
29967         (get_polymorphic_call_info): Set maybe_in_construction to true
29968         when we know nothing.
29969         (record_targets_from_bases): Skip CXX destructors; they are
29970         never called for types in construction.
29971         (possible_polymorphic_call_targets): Do not record target when
29972         type may not have instance.
29973
29974 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
29975
29976         PR ipa/60854
29977         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
29978         external aliases alive, too.
29979
29980 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
29981
29982         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
29983         definition.
29984
29985 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
29986
29987         * final.c (compute_alignments): Do not apply loop alignment to a block
29988         falling through to the exit.
29989
29990 2014-04-16  Catherine Moore  <clm@codesourcery.com>
29991
29992         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
29993         Adjust constraints for microMIPS store patterns.
29994
29995 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
29996
29997         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
29998
29999 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
30000
30001         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
30002         (append_use): Run at -O0.
30003         (append_vdef): Likewise.
30004         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
30005         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
30006
30007 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
30008
30009         PR tree-optimization/60844
30010         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
30011         (propagate_op_to_single_use, remove_visited_stmt_chain,
30012         linearize_expr, repropagate_negates, reassociate_bb): Use it
30013         instead of gsi_remove.
30014
30015 2014-04-16  Martin Jambor  <mjambor@suse.cz>
30016
30017         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
30018         ipa_transforms_to_apply.
30019         (cgraph_function_versioning): Assert that old_node has empty
30020         ipa_transforms_to_apply.
30021         * trans-mem.c (ipa_tm_create_version): Likewise.
30022         * tree-inline.c (tree_function_versioning): Do not duplicate
30023         ipa_transforms_to_apply.
30024
30025 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30026
30027         PR target/60817
30028         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
30029         x86_64-*-* cases.
30030         Pass necessary as flags on 64-bit Solaris/x86.
30031         Use lowercase relocs for x86_64-*-*.
30032         * configure: Regenerate.
30033
30034 2014-04-15  Jan Hubicka  <jh@suse.cz>
30035
30036         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
30037         (maybe_record_node, likely_target_p): Use it.
30038
30039 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30040
30041         PR target/60839
30042         Revert following patch
30043
30044         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
30045
30046         PR target/60735
30047         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
30048         software floating point or no floating point registers, do not
30049         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
30050         in GPRs that occurs after we tested for GPRs that would never be
30051         true.
30052
30053         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
30054         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
30055         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
30056         specifically allow DDmode, since that does not use the SPE SIMD
30057         instructions.
30058
30059 2014-03-21  Mark Wielaard  <mjw@redhat.com>
30060
30061         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
30062         as unsigned or int depending on type and value used.
30063
30064 2014-04-15  Richard Biener  <rguenther@suse.de>
30065
30066         PR rtl-optimization/56965
30067         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
30068         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
30069         ... here.
30070         * alias.c (true_dependence_1): Do not call
30071         nonoverlapping_component_refs_p.
30072         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
30073         nonoverlapping_component_refs_p.
30074         (indirect_refs_may_alias_p): Likewise.
30075
30076 2014-04-15  Teresa Johnson  <tejohnson@google.com>
30077
30078         * cfg.c (dump_bb_info): Fix flags check.
30079         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
30080
30081 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30082
30083         PR rtl-optimization/60663
30084         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
30085         avoid 0 cost.
30086
30087 2014-04-15  Richard Biener  <rguenther@suse.de>
30088
30089         * lto-streamer.h (LTO_major_version): Bump to 4.
30090
30091 2014-04-15  Richard Biener  <rguenther@suse.de>
30092
30093         * common.opt (lto_partition_model): New enum.
30094         (flto-partition=): Merge separate options with a single with argument,
30095         add -flto-partition=one support.
30096         * flag-types.h (enum lto_partition_model): Declare.
30097         * opts.c (finish_options): Remove duplicate -flto-partition=
30098         option check.
30099         * lto-wrapper.c (run_gcc): Adjust.
30100
30101 2014-04-15  Richard Biener  <rguenther@suse.de>
30102
30103         * alias.c (ncr_compar): New function.
30104         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
30105
30106 2014-04-15  Richard Biener  <rguenther@suse.de>
30107
30108         * alias.c (record_component_aliases): Do not walk BINFOs.
30109
30110 2014-04-15  Richard Biener  <rguenther@suse.de>
30111
30112         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
30113         Add struct function argument and adjust.
30114         (find_func_aliases_for_call): Likewise.
30115         (find_func_aliases): Likewise.
30116         (find_func_clobbers): Likewise.
30117         (intra_create_variable_infos): Likewise.
30118         (compute_points_to_sets): Likewise.
30119         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
30120
30121 2014-04-15  Richard Biener  <rguenther@suse.de>
30122
30123         * tree.c (iterative_hash_expr): Use enum tree_code_class
30124         to store TREE_CODE_CLASS.
30125         (tree_block): Likewise.
30126         (tree_set_block): Likewise.
30127         * tree.h (fold_build_pointer_plus_loc): Use
30128         convert_to_ptrofftype_loc.
30129
30130 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
30131
30132         PR plugins/59335
30133         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
30134         added in 4.9.
30135
30136 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
30137
30138         * cfgloop.h (struct loop): Move force_vectorize down.
30139         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
30140         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
30141         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
30142         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
30143         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
30144         * tree-core.h (enum annot_expr_kind): Add new kind values.
30145         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
30146         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
30147         kinds.
30148         * tree.def (ANNOTATE_EXPR): Tweak comment.
30149
30150 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
30151
30152         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
30153         cxa_pure_virtual).
30154
30155 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
30156
30157         * tree.h (TYPE_IDENTIFIER): Declare.
30158         * tree.c (subrange_type_for_debug_p): Use it.
30159         * godump.c (go_format_type): Likewise.
30160         * dwarf2out.c (is_cxx_auto, modified_type_die,
30161         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
30162         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
30163
30164 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
30165
30166         PR lto/60820
30167         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
30168
30169 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
30170
30171         * config/i386/i386.c (examine_argument): Return bool.  Return true if
30172         parameter should be passed in memory.
30173         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
30174         (construct_container): Update calls to examine_argument.
30175         (function_arg_advance_64): Ditto.
30176         (return_in_memory_32): Merge with ix86_return_in_memory.
30177         (return_in_memory_64): Ditto.
30178         (return_in_memory_ms_64): Ditto.
30179
30180 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
30181
30182         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
30183         * coverage.c (coverage_compute_profile_id): Handle externally visible
30184         symbols.
30185
30186 2014-04-14  Martin Jambor  <mjambor@suse.cz>
30187
30188         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
30189         DECL_DISREGARD_INLINE_LIMITS functions.
30190
30191 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
30192
30193         PR target/60827
30194         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
30195
30196 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
30197
30198         PR target/60827
30199         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
30200         optimize_insn_for_speed_p instead of
30201         optimize_function_for_speed_p.
30202
30203 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
30204
30205         * doc/invoke.texi (free): Document AArch64.
30206
30207 2014-04-14  Richard Biener  <rguenther@suse.de>
30208
30209         PR tree-optimization/60042
30210         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
30211         (insert_into_preds_of_block): Do not prevent PHI insertion
30212         for REFERENCE exprs here ...
30213         (eliminate_dom_walker::before_dom_children): ... but prevent
30214         their use here under similar conditions when applied to the
30215         IL after PRE optimizations.
30216
30217 2014-04-14  Richard Biener  <rguenther@suse.de>
30218
30219         * passes.def: Move early points-to after early SRA.
30220
30221 2014-04-14  Richard Biener  <rguenther@suse.de>
30222
30223         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
30224         check for which sign-changes we allow when forwarding
30225         a converted value into a switch.
30226
30227 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
30228
30229         * stor-layout.c (place_field): Finalize non-constant offset for the
30230         field, if any.
30231
30232 2014-04-14  Richard Biener  <rguenther@suse.de>
30233
30234         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
30235         as argument.
30236         (expand_switch_using_bit_tests_p): Likewise.
30237         (process_switch): Compute and pass on speed_p based on the
30238         switch stmt.
30239         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
30240         optimize_bb_for_speed_p.
30241
30242 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
30243
30244         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
30245         * function.h (struct function): Rename has_force_vect_loops into
30246         has_force_vectorize_loops.
30247         * lto-streamer-in.c (input_cfg): Adjust for renaming.
30248         (input_struct_function_base): Likewise.
30249         * lto-streamer-out.c (output_cfg): Likewise.
30250         (output_struct_function_base): Likewise.
30251         * omp-low.c (expand_omp_simd): Likewise.
30252         * tree-cfg.c (move_sese_region_to_fn): Likewise.
30253         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
30254         (version_loop_for_if_conversion): Likewise.
30255         (tree_if_conversion): Likewise.
30256         (main_tree_if_conversion): Likewise.
30257         (gate_tree_if_conversion): Likewise.
30258         * tree-inline.c (copy_loops): Likewise.
30259         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
30260         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
30261         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
30262         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
30263         * tree-vectorizer.c (vectorize_loops): Likewise.
30264         * tree-vectorizer.h (unlimited_cost_model): Likewise.
30265
30266 2014-04-14  Richard Biener  <rguenther@suse.de>
30267
30268         PR lto/60720
30269         * lto-streamer-out.c (wrap_refs): New function.
30270         (lto_output): Wrap symbol references in global initializes in
30271         type-preserving MEM_REFs.
30272
30273 2014-04-14  Christian Bruel  <christian.bruel@st.com>
30274
30275         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
30276
30277 2014-04-14  Christian Bruel  <christian.bruel@st.com>
30278
30279         * config/sh/sh.md (setmemqi): New expand pattern.
30280         * config/sh/sh.h (CLEAR_RATIO): Define.
30281         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
30282         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
30283
30284 2014-04-14  Richard Biener  <rguenther@suse.de>
30285
30286         PR middle-end/55022
30287         * fold-const.c (negate_expr_p): Don't negate directional rounding
30288         division.
30289         (fold_negate_expr): Likewise.
30290
30291 2014-04-14  Richard Biener  <rguenther@suse.de>
30292
30293         PR tree-optimization/59817
30294         PR tree-optimization/60453
30295         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
30296         recursion to catch all CHRECs in the scalar evolution and restrict
30297         the predicate for the remains appropriately.
30298
30299 2014-04-12  Catherine Moore  <clm@codesourcery.com>
30300
30301         * config/mips/constraints.md: Add new register constraint "kb".
30302         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
30303         (*movhi_internal): Likewise.
30304         (*movqi_internal): Likewise.
30305         * config/mips/mips.h (M16_STORE_REGS): New register class.
30306         (REG_CLASS_NAMES): Add M16_STORE_REGS.
30307         (REG_CLASS_CONTENTS): Likewise.
30308         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
30309
30310 2014-04-11  Tobias Burnus  <burnus@net-b.de>
30311
30312         PR c/60194
30313         * doc/invoke.texi (-Wformat-signedness): Document it.
30314         (Wformat=2): Mention that this enables -Wformat-signedness.
30315
30316 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
30317
30318         * common/config/epiphany/epiphany-common.c
30319         (epiphany_option_optimization_table): Enable section anchors by
30320         default at -O1 or higher.
30321         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
30322         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
30323         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
30324         carries no extra cost.
30325         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
30326         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
30327         * config/epiphany/predicates.md (memclob_operand): New predicate.
30328         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
30329         Use memclob_operand predicate and X constraint for operand 3.
30330
30331 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
30332
30333         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
30334         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
30335         its operands.
30336
30337 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
30338
30339         PR rtl-optimization/60651
30340         * mode-switching.c (optimize_mode_switching): Make sure to emit
30341         sets of a lower numbered entity before sets of a higher numbered
30342         entity to a mode of the same or lower priority.
30343         When creating a seginfo for a basic block that starts with a code
30344         label, move the insertion point past the code label.
30345         (new_seginfo): Document and enforce requirement that
30346         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
30347         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
30348         * doc/tm.texi: Regenerate.
30349
30350 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
30351
30352         PR target/60811
30353         * config/arc/arc.c (arc_save_restore): Fix assert typo.
30354
30355 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
30356
30357         * BASE-VER: Set to 4.10.0.
30358
30359 2014-04-11  Tobias Burnus  <burnus@net-b.de>
30360
30361         PR other/59055
30362         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
30363         * doc/gcc.texi (Service): Update description in the @menu
30364         * doc/invoke.texi (Option Summary): Remove misplaced and
30365         duplicated @menu.
30366
30367 2014-04-11  Steve Ellcey  <sellcey@mips.com>
30368             Jakub Jelinek  <jakub@redhat.com>
30369
30370         PR middle-end/60556
30371         * expr.c (convert_move): Use emit_store_flag_force instead of
30372         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
30373         argument to it.
30374
30375 2014-04-11  Richard Biener  <rguenther@suse.de>
30376
30377         PR middle-end/60797
30378         * varasm.c (assemble_alias): Avoid endless error reporting
30379         recursion by setting TREE_ASM_WRITTEN.
30380
30381 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30382
30383         * config/s390/s390.md: Add a splitter for NOT rtx.
30384
30385 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
30386
30387         PR rtl-optimization/60663
30388         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
30389
30390 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
30391             Jakub Jelinek  <jakub@redhat.com>
30392
30393         PR lto/60567
30394         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
30395         flag from decl_node to node.
30396
30397 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30398
30399         PR debug/60655
30400         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
30401         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
30402         ameliorating the cases where it can be.
30403
30404 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
30405
30406         Revert
30407         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
30408
30409         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
30410         (loadsync_<mode>): Change mode.
30411         (load_quadpti, store_quadpti): New.
30412         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
30413         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
30414         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
30415
30416 2014-04-09  Cong Hou  <congh@google.com>
30417
30418         PR testsuite/60773
30419         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
30420         documentation.
30421
30422 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30423
30424         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
30425         instead of vnor to exploit possible fusion opportunity in the
30426         future.
30427         (altivec_expand_vec_perm_const_le): Likewise.
30428
30429 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
30430
30431         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
30432         (loadsync_<mode>): Change mode.
30433         (load_quadpti, store_quadpti): New.
30434         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
30435         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
30436
30437 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
30438
30439         PR target/60763
30440         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
30441         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
30442         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
30443
30444 2014-04-08  Richard Biener  <rguenther@suse.de>
30445
30446         PR middle-end/60706
30447         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
30448         a 64bit widest int print double-int similar to on HWI64 hosts.
30449
30450 2014-04-08  Richard Biener  <rguenther@suse.de>
30451
30452         PR tree-optimization/60785
30453         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
30454         default defs properly.
30455
30456 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
30457
30458         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
30459         (Weffc++): Likewise.
30460
30461 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
30462
30463         * ipa-devirt.c (maybe_record_node): When node is not recorded,
30464         set completep to false rather than true.
30465
30466 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
30467
30468         PR target/60504
30469         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
30470         ARM_TARGET2_DWARF_FORMAT.
30471
30472 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
30473
30474         PR target/60609
30475         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
30476         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
30477         ADDR_DIFF_VEC.
30478
30479 2014-04-07  Richard Biener  <rguenther@suse.de>
30480
30481         PR tree-optimization/60766
30482         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
30483         (may_eliminate_iv): Convert cand_value_at result to desired type.
30484
30485 2014-04-07  Jason Merrill  <jason@redhat.com>
30486
30487         PR c++/60731
30488         * common.opt (-fno-gnu-unique): Add.
30489         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
30490
30491 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30492
30493         * haifa-sched.c: Fix outdated function reference and minor
30494         grammar errors in introductory comment.
30495
30496 2014-04-07  Richard Biener  <rguenther@suse.de>
30497
30498         PR middle-end/60750
30499         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
30500         for noreturn calls.
30501         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
30502
30503 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
30504
30505         PR debug/55794
30506         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
30507         size accounting for thunks.
30508         (pa_asm_output_mi_thunk): Use final_start_function() and
30509         final_end_function() to output function start and end directives.
30510
30511 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
30512
30513         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
30514         device specific ISA/ feature information. Remove short_sp and
30515         errata_skip ds.  Add avr_device_specific_features enum to have device
30516         specific info.
30517         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
30518         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
30519         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
30520         updated device specific info.
30521         * config/avr/avr-mcus.def: Merge device specific details to
30522         dev_attribute field.
30523         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
30524         errata_skip.
30525         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
30526         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
30527         assembler if RMW isa supported by current device.
30528         * config/avr/genmultilib.awk: Update as device info structure changed.
30529         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
30530
30531 2014-04-04  Cong Hou  <congh@google.com>
30532
30533         PR tree-optimization/60656
30534         * tree-vect-stmts.c (supportable_widening_operation):
30535         Fix a bug that elements in a vector with vect_used_by_reduction
30536         property are incorrectly reordered when the operation on it is not
30537         consistant with the one in reduction operation.
30538
30539 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
30540
30541         PR rtl-optimization/60155
30542         * gcse.c (record_set_data): New function.
30543         (single_set_gcse): New function.
30544         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
30545         (hoist_code): Likewise.
30546         (get_pressure_class_and_nregs): Likewise.
30547
30548 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
30549
30550         * explow.c (probe_stack_range): Emit a final optimization blockage.
30551
30552 2014-04-04  Anthony Green  <green@moxielogic.com>
30553
30554         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
30555         typos.
30556
30557 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
30558
30559         PR ipa/59626
30560         * lto-cgraph.c (input_overwrite_node): Check that partitioning
30561         flags are set only during streaming.
30562         * ipa.c (process_references, walk_polymorphic_call_targets,
30563         symtab_remove_unreachable_nodes): Drop bodies of always inline
30564         after early inlining.
30565         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
30566
30567 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
30568         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30569
30570         PR debug/60655
30571         * dwarf2out.c (const_ok_for_output_1): Reject expressions
30572         containing a NOT.
30573
30574 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30575
30576         PR bootstrap/60743
30577         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
30578         duration.
30579         (cortex_a53_fdivd): Likewise.
30580
30581 2014-04-04  Martin Jambor  <mjambor@suse.cz>
30582
30583         PR ipa/60640
30584         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
30585         Adjust all callers.
30586         * cgraph.c (clone_of_p): Also return true if thunks match.
30587         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
30588         cgraph_function_or_thunk_node and an obsolete comment.
30589         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
30590         file.
30591         (build_function_decl_skip_args): Likewise.
30592         (set_new_clone_decl_and_node_flags): New function.
30593         (duplicate_thunk_for_node): Likewise.
30594         (redirect_edge_duplicating_thunks): Likewise.
30595         (cgraph_clone_node): New parameter args_to_skip, pass it to
30596         redirect_edge_duplicating_thunks which is called instead of
30597         cgraph_redirect_edge_callee.
30598         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
30599         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
30600
30601 2014-04-04  Jeff Law  <law@redhat.com>
30602
30603         PR target/60657
30604         * config/arm/predicates.md (const_int_I_operand): New predicate.
30605         (const_int_M_operand): Similarly.
30606         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
30607         const_int_operand.
30608         (insv_t2, extv_reg, extzv_t2): Likewise.
30609         (load_multiple_with_writeback): Similarly for const_int_I_operand.
30610         (pop_multiple_with_writeback_and_return): Likewise.
30611         (vfp_pop_multiple_with_writeback): Likewise
30612
30613 2014-04-04  Richard Biener  <rguenther@suse.de>
30614
30615         PR ipa/60746
30616         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
30617         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
30618         non-GIMPLE_LABELs.
30619         * gimplify.h (gimple_add_tmp_var_fn): Declare.
30620         * gimplify.c (gimple_add_tmp_var_fn): New function.
30621         * gimple-expr.h (create_tmp_reg_fn): Declare.
30622         * gimple-expr.c (create_tmp_reg_fn): New function.
30623         * gimple-low.c (record_vars_into): Don't change cfun.
30624         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
30625         code generation without cfun.
30626
30627 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
30628
30629         PR bootstrap/60719
30630         * Makefile.in (install-driver): Fix shell scripting.
30631
30632 2014-04-03  Cong Hou  <congh@google.com>
30633
30634         PR tree-optimization/60505
30635         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
30636         threshold of number of iterations below which no vectorization
30637         will be done.
30638         * tree-vect-loop.c (new_loop_vec_info):
30639         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
30640         * tree-vect-loop.c (vect_analyze_loop_operations):
30641         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
30642         * tree-vect-loop.c (vect_transform_loop):
30643         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
30644         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
30645         of iterations of the loop and see if we should build the epilogue.
30646
30647 2014-04-03  Richard Biener  <rguenther@suse.de>
30648
30649         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
30650         (streamer_tree_cache_create): Adjust.
30651         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
30652         to allow optional nodes array.
30653         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
30654         (streamer_tree_cache_append): Likewise.
30655         (streamer_tree_cache_create): Create nodes array optionally
30656         as specified by parameter.
30657         * lto-streamer-out.c (create_output_block): Avoid maintaining
30658         the node array in the writer cache.
30659         (DFS_write_tree): Remove assertion.
30660         (produce_asm_for_decls): Free the out decl state hash table early.
30661         * lto-streamer-in.c (lto_data_in_create): Adjust for
30662         streamer_tree_cache_create prototype change.
30663
30664 2014-04-03  Richard Biener  <rguenther@suse.de>
30665
30666         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
30667         set TREE_CHAIN to NULL_TREE.
30668
30669 2014-04-03  Richard Biener  <rguenther@suse.de>
30670
30671         PR tree-optimization/60740
30672         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
30673         over all GIMPLE_COND operands.
30674
30675 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
30676
30677         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
30678         (Weffc++): Remove Scott's numbering, merge lists and reference
30679         Wnon-virtual-dtor.
30680
30681 2014-04-03  Nick Clifton  <nickc@redhat.com>
30682
30683         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
30684         properly.
30685
30686 2014-04-03  Martin Jambor  <mjambor@suse.cz>
30687
30688         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
30689         mention gcc_unreachable before failing.
30690         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
30691         removed symbols.
30692
30693 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
30694
30695         PR ipa/60659
30696         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
30697         inconsistent code and instead mark the context inconsistent.
30698         (possible_polymorphic_call_targets): For inconsistent contexts
30699         return empty complete list.
30700
30701 2014-04-02  Anthony Green  <green@moxielogic.com>
30702
30703         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
30704         (extendqisi2, extendhisi2): Define.
30705         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
30706         (WCHAR_TYPE): Change to unsigned int.
30707
30708 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30709
30710         PR tree-optimization/60733
30711         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
30712         insertion point for PHI candidates to be the end of the feeding
30713         block for the PHI argument.
30714
30715 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
30716
30717         PR rtl-optimization/60650
30718         * lra-constraints.c (process_alt_operands): Decrease reject for
30719         earlyclobber matching.
30720
30721 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30722
30723         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
30724
30725 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30726
30727         * config/spu/spu.c (pad_bb): Do not crash when the last
30728         insn is CODE_FOR_blockage.
30729
30730 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30731
30732         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
30733         lies outside the target mode.
30734
30735 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
30736
30737         PR target/60735
30738         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
30739         software floating point or no floating point registers, do not
30740         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
30741         in GPRs that occurs after we tested for GPRs that would never be
30742         true.
30743
30744         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
30745         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
30746         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
30747         specifically allow DDmode, since that does not use the SPE SIMD
30748         instructions.
30749
30750 2014-04-02  Richard Biener  <rguenther@suse.de>
30751
30752         PR middle-end/60729
30753         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
30754         MODE_INTs.  Properly use negv_optab.
30755         (expand_abs): Likewise.
30756
30757 2014-04-02  Richard Biener  <rguenther@suse.de>
30758
30759         PR bootstrap/60719
30760         * Makefile.in (install-driver): Guard extra installs with special
30761         names properly.
30762
30763 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
30764
30765         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30766         Document vec_vgbbd.
30767
30768 2014-04-01  Richard Henderson  <rth@redhat.com>
30769
30770         PR target/60704
30771         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
30772         alternative enabled before register allocation.
30773
30774 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
30775
30776         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
30777         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
30778         typo.
30779         (nios2_large_got_address): Remove unneeded 'sym' parameter.
30780         (nios2_got_address): Update nios2_large_got_address call site.
30781         (nios2_delegitimize_address): New function.
30782         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
30783         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
30784         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
30785
30786 2014-04-01  Martin Husemann  <martin@duskware.de>
30787
30788         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
30789         for -mabi=32.
30790
30791 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
30792
30793         PR rtl-optimization/60604
30794         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
30795         check from register_operand.
30796         (register_operand): Redefine in terms of general_operand.
30797         (nonmemory_operand): Use register_operand for the non-constant cases.
30798
30799 2014-04-01  Richard Biener  <rguenther@suse.de>
30800
30801         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
30802
30803 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
30804
30805         * doc/invoke.texi (mapp-regs): Clarify.
30806
30807 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
30808
30809         * config/i386/avx512fintrin.h (__v32hi): Define type.
30810         (__v64qi): Likewise.
30811         (_mm512_set1_epi8): Define.
30812         (_mm512_set1_epi16): Define.
30813         (_mm512_set4_epi32): Define.
30814         (_mm512_set4_epi64): Define.
30815         (_mm512_set4_pd): Define.
30816         (_mm512_set4_ps): Define.
30817         (_mm512_setr4_epi64): Define.
30818         (_mm512_setr4_epi32): Define.
30819         (_mm512_setr4_pd): Define.
30820         (_mm512_setr4_ps): Define.
30821         (_mm512_setzero_epi32): Define.
30822
30823 2014-03-31  Martin Jambor  <mjambor@suse.cz>
30824
30825         PR middle-end/60647
30826         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
30827         callsite_arguments_match_p.  Updated all callers.  Also check types of
30828         corresponding formal parameters and actual arguments.
30829         (not_all_callers_have_enough_arguments_p) Renamed to
30830         some_callers_have_mismatched_arguments_p.
30831
30832 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
30833
30834         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
30835
30836 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
30837
30838         PR target/60034
30839         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
30840         section anchor.
30841
30842 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
30843
30844         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
30845         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
30846         Split out
30847         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
30848         Use FMAMODE_NOVF512 mode iterator.
30849         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
30850         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
30851         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
30852         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
30853         Split out
30854         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
30855         Use VF_128_256 mode iterator.
30856         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
30857         Ditto.
30858
30859 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
30860
30861         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
30862         static chain if needed.
30863
30864 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
30865
30866         PR target/60697
30867         * lra-constraints.c (index_part_to_reg): New.
30868         (process_address): Use it.
30869
30870 2014-03-27  Jeff Law  <law@redhat.com>
30871             Jakub Jelinek  <jakub@redhat.com>
30872
30873         PR target/60648
30874         * expr.c (do_tablejump): Use simplify_gen_binary rather than
30875         gen_rtx_{PLUS,MULT} to build up the address expression.
30876
30877         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
30878         creating non-canonical RTL.
30879
30880 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
30881
30882         PR ipa/60243
30883         * ipa-inline.c (want_inline_small_function_p): Short circuit large
30884         functions; reorganize to make cheap checks first.
30885         (inline_small_functions): Do not estimate growth when dumping;
30886         it is expensive.
30887         * ipa-inline.h (inline_summary): Add min_size.
30888         (growth_likely_positive): New function.
30889         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
30890         (set_cond_stmt_execution_predicate): Cleanup.
30891         (estimate_edge_size_and_time): Compute min_size.
30892         (estimate_calls_size_and_time): Likewise.
30893         (estimate_node_size_and_time): Likewise.
30894         (inline_update_overall_summary): Update min_size.
30895         (do_estimate_edge_time): Likewise.
30896         (do_estimate_edge_size): Update.
30897         (do_estimate_edge_hints): Update.
30898         (growth_likely_positive): New function.
30899
30900 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
30901
30902         PR target/60693
30903         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
30904         also if addr has VOIDmode.
30905
30906 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30907
30908         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
30909         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
30910         Declare extern.
30911         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
30912         instructions as well as AdvancedSIMD loads.
30913
30914 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30915
30916         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
30917         Use crypto_aese type.
30918         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
30919         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
30920         crypto_aese, crypto_aesmc.  Move to types.md.
30921         * config/arm/types.md (crypto_aes): Split into crypto_aese,
30922         crypto_aesmc.
30923         * config/arm/iterators.md (crypto_type): Likewise.
30924
30925 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
30926
30927         * cgraph.c: Include expr.h and tree-dfa.h.
30928         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
30929         remove LHS.
30930
30931 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
30932
30933         PR target/60675
30934         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
30935         regs from checking multi-reg pseudos.
30936
30937 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30938
30939         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
30940
30941 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30942
30943         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
30944         if it would clobber the stack pointer, even temporarily.
30945
30946 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
30947
30948         * mode-switching.c: Make small adjustments to the top comment.
30949
30950 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
30951
30952         * config/rs6000/constraints.md (wD constraint): New constraint to
30953         match the constant integer to get the top DImode/DFmode out of a
30954         vector in a VSX register.
30955
30956         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
30957         match the constant integer to get the top DImode/DFmode out of a
30958         vector in a VSX register.
30959
30960         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
30961         for ISA 2.07.
30962
30963         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
30964         vbpermq builtins.
30965
30966         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
30967         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
30968
30969         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
30970         Optimize vec_extract of 64-bit values, where the value being
30971         extracted is in the top word, where we can use scalar
30972         instructions.  Add direct move and store support.  Combine the big
30973         endian/little endian vector select load support into a single insn.
30974         (vsx_extract_<mode>_internal1): Likewise.
30975         (vsx_extract_<mode>_internal2): Likewise.
30976         (vsx_extract_<mode>_load): Likewise.
30977         (vsx_extract_<mode>_store): Likewise.
30978         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
30979         combined into vsx_extract_<mode>_load.
30980         (vsx_extract_<mode>_one_le): Likewise.
30981
30982         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
30983         define the top 64-bit vector element.
30984
30985         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
30986         constraint.
30987
30988         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30989         Document vec_vbpermq builtin.
30990
30991         PR target/60672
30992         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
30993         enable use of xxsldwi and xxpermdi builtin functions.
30994         (vec_xxpermdi): Likewise.
30995
30996         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30997         Document use of vec_xxsldwi and vec_xxpermdi builtins.
30998
30999 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
31000
31001         PR rtl-optimization/60650
31002         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
31003         first_p.  Use it.
31004         (find_spills_for): New.
31005         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
31006         Spill all pseudos on the second iteration.
31007
31008 2014-03-27  Marek Polacek  <polacek@redhat.com>
31009
31010         PR c/50347
31011         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
31012         types.
31013
31014 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31015
31016         * config/s390/s390.c (s390_can_use_return_insn): Check for
31017         call-saved FPRs on 31 bit.
31018
31019 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
31020
31021         PR middle-end/60682
31022         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
31023         if they need regimplification, just drop them instead of
31024         calling gimple_regimplify_operands on them.
31025
31026 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
31027
31028         PR target/60580
31029         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
31030         (aarch64_frame_pointer_required): Adjust logic.
31031         (aarch64_can_eliminate): Adjust logic.
31032         (aarch64_override_options_after_change): Adjust logic.
31033
31034 2014-03-27  Dehao Chen  <dehao@google.com>
31035
31036         * ipa-inline.c (early_inliner): Update node's inline info.
31037
31038 2014-03-26  Dehao Chen  <dehao@google.com>
31039
31040         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
31041         compiler inserted conditional jumps for NAN float check.
31042
31043 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
31044
31045         * ubsan.h (ubsan_create_data): Change second argument's type
31046         to const location_t *.
31047         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
31048         _("<unknown>").
31049         (ubsan_create_data): Change second argument to const location_t *PLOC.
31050         Create Loc field whenever PLOC is non-NULL.
31051         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
31052         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
31053         callers.
31054
31055         PR other/59545
31056         * real.c (real_to_integer2): Change type of low to UHWI.
31057
31058 2014-03-26  Tobias Burnus  <burnus@net-b.de>
31059
31060         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
31061         (CILK_SELF_SPECS): New define.
31062         (driver_self_specs): Use it.
31063
31064 2014-03-26  Richard Biener  <rguenther@suse.de>
31065
31066         * tree-pretty-print.c (percent_K_format): Implement special
31067         case for LTO and its stripped down BLOCK tree.
31068
31069 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
31070
31071         PR sanitizer/60636
31072         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
31073
31074         * tree-vrp.c (simplify_internal_call_using_ranges): If only
31075         one range is range_int_cst_p, but not both, at least optimize
31076         addition/subtraction of 0 and multiplication by 0 or 1.
31077         * gimple-fold.c (gimple_fold_call): Fold
31078         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
31079         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
31080         INTEGER_CSTs, try to fold at least x * 0 and y - y.
31081
31082 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
31083
31084         PR rtl-optimization/60452
31085         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
31086         <case REG>: Return 1 for invalid offsets from the frame pointer.
31087
31088 2014-03-26  Marek Polacek  <polacek@redhat.com>
31089
31090         PR c/37428
31091         * doc/extend.texi (C Extensions): Mention variable-length arrays in
31092         a structure/union.
31093
31094 2014-03-26  Marek Polacek  <polacek@redhat.com>
31095
31096         PR c/39525
31097         * doc/extend.texi (Designated Inits): Describe what happens to omitted
31098         field members.
31099
31100 2014-03-26  Marek Polacek  <polacek@redhat.com>
31101
31102         PR other/59545
31103         * ira-color.c (update_conflict_hard_regno_costs): Perform the
31104         multiplication in unsigned type.
31105
31106 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
31107
31108         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
31109
31110 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
31111
31112         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
31113
31114 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
31115
31116         PR ipa/60315
31117         * cif-code.def (UNREACHABLE) New code.
31118         * ipa-inline.c (inline_small_functions): Skip edges to
31119         __builtlin_unreachable.
31120         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
31121         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
31122         predicate to __bulitin_unreachable.
31123         (set_cond_stmt_execution_predicate): Fix issue when
31124         invert_tree_comparison returns ERROR_MARK.
31125         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
31126         propagate to inline clones.
31127         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
31128         to unreachable.
31129         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
31130         * cgraphclones.c (cgraph_clone_node): If call destination is already
31131         ureachable, do not redirect it back.
31132         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
31133         unreachable.
31134
31135 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
31136
31137         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
31138         Do not modify inline clones.
31139
31140 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
31141
31142         * config/i386/i386.md (general_sext_operand): New mode attr.
31143         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
31144         don't generate (sign_extend (const_int)).
31145         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
31146         operands[2].  Use We constraint instead of <i> and
31147         <general_sext_operand> predicate instead of <general_operand>.
31148         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
31149         * config/i386/constraints.md (We): New constraint.
31150         * config/i386/predicates.md (x86_64_sext_operand,
31151         sext_operand): New predicates.
31152
31153 2014-03-25  Martin Jambor  <mjambor@suse.cz>
31154
31155         PR ipa/60600
31156         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
31157         inconsistent devirtualizations to __builtin_unreachable.
31158
31159 2014-03-25  Marek Polacek  <polacek@redhat.com>
31160
31161         PR c/35449
31162         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
31163
31164 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
31165
31166         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
31167         order of elements for big-endian.
31168
31169 2014-03-25  Richard Biener  <rguenther@suse.de>
31170
31171         PR middle-end/60635
31172         * gimplify-me.c (gimple_regimplify_operands): Update the
31173         re-gimplifed stmt.
31174
31175 2014-03-25  Martin Jambor  <mjambor@suse.cz>
31176
31177         PR ipa/59176
31178         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
31179         (lto_output_varpool_node): Likewise.
31180         (input_overwrite_node): Likewise.
31181         (input_varpool_node): Likewise.
31182
31183 2014-03-25  Richard Biener  <rguenther@suse.de>
31184
31185         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
31186         (run_gcc): Likewise.
31187
31188 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
31189
31190         * combine.c (simplify_compare_const): Add MODE argument.
31191         Handle mode_width 0 as very large mode_width.
31192         (try_combine, simplify_comparison): Adjust callers.
31193
31194         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
31195         type to avoid signed integer overflow.
31196         * explow.c (plus_constant): Likewise.
31197
31198 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
31199
31200         * doc/generic.texi: Correct typos.
31201
31202 2014-03-24  Tobias Burnus  <burnus@net-b.de>
31203
31204         * doc/invoke.texi (-flto): Expand section about
31205         using static libraries with LTO.
31206
31207 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31208
31209         PR rtl-optimization/60501
31210         * optabs.def (addptr3_optab): New optab.
31211         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
31212         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
31213         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
31214
31215         * lra.c (emit_add3_insn): Use the addptr pattern if available.
31216
31217         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
31218
31219 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
31220
31221         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
31222         _mm512_set1_pd.
31223
31224         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
31225         (_mm256_undefined_ps): Define.
31226         (_mm256_undefined_pd): Define.
31227         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
31228         (_mm_undefined_pd): Define.
31229         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
31230         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
31231         (_mm512_undefined_ps): Define.
31232         (_mm512_undefined_pd): Define.
31233         Use _mm*_undefined_*.
31234         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
31235
31236 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
31237
31238         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
31239         (lshr_simd): DI mode added.
31240         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
31241         (aarch64_ushr_simddi): Likewise.
31242         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
31243         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
31244         (vshrd_n_u64): Likewise.
31245
31246 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31247
31248         * Makefile.in (s-macro_list): Depend on cc1.
31249
31250 2014-03-23  Teresa Johnson  <tejohnson@google.com>
31251
31252         * ipa-utils.c (ipa_print_order): Use specified dump file.
31253
31254 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
31255
31256         PR rtl-optimization/60601
31257         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
31258
31259         * gcc.c (eval_spec_function): Initialize save_growing_value.
31260
31261 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
31262
31263         PR sanitizer/60613
31264         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
31265         code == MINUS_EXPR, never swap op0 with op1.
31266
31267         * toplev.c (init_local_tick): Avoid signed integer multiplication
31268         overflow.
31269         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
31270         shift by first operand's bitsize.
31271
31272 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
31273
31274         PR target/60610
31275         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
31276         redefine to 1 or 0.
31277         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
31278         TARGET_ISA_64BIT_P(x).
31279
31280 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31281
31282         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
31283         pattern for vector nor instead of subtract from splat(-1).
31284         (altivec_expand_vec_perm_const_le): Likewise.
31285
31286 2014-03-21  Richard Henderson  <rth@twiddle.net>
31287
31288         PR target/60598
31289         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
31290         related insns after epilogue_completed.
31291
31292 2014-03-21  Martin Jambor  <mjambor@suse.cz>
31293
31294         PR ipa/59176
31295         * cgraph.h (symtab_node): New flag body_removed.
31296         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
31297         when removing bodies.
31298         * symtab.c (dump_symtab_base): Dump body_removed flag.
31299         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
31300         had their bodies removed.
31301
31302 2014-03-21  Martin Jambor  <mjambor@suse.cz>
31303
31304         PR ipa/60419
31305         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
31306         in the border.
31307
31308 2014-03-21  Richard Biener  <rguenther@suse.de>
31309
31310         PR tree-optimization/60577
31311         * tree-core.h (struct tree_base): Document nothrow_flag use
31312         in DECL_NONALIASED.
31313         * tree.h (DECL_NONALIASED): New.
31314         (may_be_aliased): Adjust.
31315         * coverage.c (build_var): Set DECL_NONALIASED.
31316
31317 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
31318
31319         * expr.c (expand_expr_real_1): Remove outdated comment.
31320
31321 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
31322
31323         PR middle-end/60597
31324         * ira.c (adjust_cleared_regs): Call copy_rtx on
31325         *reg_equiv[REGNO (loc)].src_p before passing it to
31326         simplify_replace_fn_rtx.
31327
31328         PR target/60568
31329         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
31330         into CONST, put pic register as first operand of PLUS.  Use
31331         gen_const_mem for both 32-bit and 64-bit PIC got loads.
31332
31333 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31334
31335         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
31336
31337 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
31338
31339         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
31340         around for store forwarding issue in the FPU on the UT699.
31341         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
31342         loads and operations if -mfix-ut699 is specified.
31343         (divtf3_hq): Tweak attribute.
31344         (sqrttf2_hq): Likewise.
31345
31346 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
31347
31348         * calls.c (store_one_arg): Remove incorrect const qualification on the
31349         type of the temporary.
31350         * cfgexpand.c (expand_return): Likewise.
31351         * expr.c (expand_constructor): Likewise.
31352         (expand_expr_real_1): Likewise.
31353
31354 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
31355
31356         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
31357         of parts.
31358
31359 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
31360
31361         PR target/60039
31362         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
31363
31364 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
31365
31366         * config/arm/aarch-common-protos.h
31367         (alu_cost_table): Fix spelling of "extend".
31368         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
31369
31370 2014-03-19  Richard Biener  <rguenther@suse.de>
31371
31372         PR middle-end/60553
31373         * tree-core.h (tree_type_common): Re-order pointer members
31374         to reduce recursion depth during GC walks.
31375
31376 2014-03-19  Marek Polacek  <polacek@redhat.com>
31377
31378         PR sanitizer/60569
31379         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
31380         before accessing it.
31381
31382 2014-03-19  Richard Biener  <rguenther@suse.de>
31383
31384         PR lto/59543
31385         * lto-streamer-in.c (input_function): In WPA stage do not drop
31386         debug stmts.
31387
31388 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
31389
31390         PR tree-optimization/60559
31391         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
31392         with build_zero_cst assignment.
31393
31394 2014-03-18  Kai Tietz  <ktietz@redhat.com>
31395
31396         PR rtl-optimization/56356
31397         * sdbout.c (sdbout_parms): Verify that parms'
31398         incoming argument is valid.
31399         (sdbout_reg_parms): Likewise.
31400
31401 2014-03-18  Richard Henderson  <rth@redhat.com>
31402
31403         PR target/60562
31404         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
31405         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
31406         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
31407
31408 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
31409
31410         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
31411         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
31412         Italicize plugin event names in description.  Explain that
31413         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
31414         Remind that no GCC functions should be called after PLUGIN_FINISH.
31415         Explain what pragmas with expansion are.
31416
31417 2014-03-18  Martin Liska  <mliska@suse.cz>
31418
31419         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
31420         gimple call statement is update.
31421         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
31422         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
31423
31424 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
31425
31426         PR sanitizer/60557
31427         * ubsan.c (ubsan_instrument_unreachable): Call
31428         initialize_sanitizer_builtins.
31429         (ubsan_pass): Likewise.
31430
31431         PR sanitizer/60535
31432         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
31433         varpool_finalize_decl instead of rest_of_decl_compilation.
31434
31435 2014-03-18  Richard Biener  <rguenther@suse.de>
31436
31437         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
31438         by using bitmap_and_compl instead of bitmap_and_compl_into.
31439         (df_rd_transfer_function): Likewise.
31440
31441 2014-03-18  Richard Biener  <rguenther@suse.de>
31442
31443         * doc/lto.texi (fresolution): Fix typo.
31444
31445 2014-03-18  Richard Biener  <rguenther@suse.de>
31446
31447         * doc/invoke.texi (flto): Update for changes in 4.9.
31448
31449 2014-03-18  Richard Biener  <rguenther@suse.de>
31450
31451         * doc/loop.texi: Remove section on the removed lambda framework.
31452         Update loop docs with recent changes in preserving loop structure.
31453
31454 2014-03-18  Richard Biener  <rguenther@suse.de>
31455
31456         * doc/lto.texi (-fresolution): Document.
31457
31458 2014-03-18  Richard Biener  <rguenther@suse.de>
31459
31460         * doc/contrib.texi: Adjust my name.
31461
31462 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
31463
31464         PR ipa/58721
31465         * internal-fn.c: Include diagnostic-core.h.
31466         (expand_BUILTIN_EXPECT): New function.
31467         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
31468         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
31469         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
31470         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
31471         IFN_BUILTIN_EXPECT.
31472         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
31473         Revert 3 argument __builtin_expect code.
31474         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
31475         * gimple-fold.c (gimple_fold_call): Likewise.
31476         * tree.h (fold_builtin_expect): New prototype.
31477         * builtins.c (build_builtin_expect_predicate): Add predictor
31478         argument, if non-NULL, create 3 argument __builtin_expect.
31479         (fold_builtin_expect): No longer static.  Add ARG2 argument,
31480         pass it through to build_builtin_expect_predicate.
31481         (fold_builtin_2): Adjust caller.
31482         (fold_builtin_3): Handle BUILT_IN_EXPECT.
31483         * internal-fn.def (BUILTIN_EXPECT): New.
31484
31485 2014-03-18  Tobias Burnus  <burnus@net-b.de>
31486
31487         PR ipa/58721
31488         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
31489         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
31490         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
31491
31492 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
31493
31494         PR ipa/58721
31495         * predict.c (combine_predictions_for_bb): Fix up formatting.
31496         (expr_expected_value_1, expr_expected_value): Add predictor argument,
31497         fill what it points to if non-NULL.
31498         (tree_predict_by_opcode): Adjust caller, use the predictor.
31499         * predict.def (PRED_COMPARE_AND_SWAP): Add.
31500
31501 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
31502
31503         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
31504         proper constant for the store mode.
31505
31506 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
31507
31508         * symtab.c (change_decl_assembler_name): Fix transparent alias
31509         chain construction.
31510
31511 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
31512
31513         * config/aarch64/aarch64.c: Correct the comments about the
31514         aarch64 stack layout.
31515
31516 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
31517
31518         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
31519         check for GF_OMP_FOR_KIND_FOR.
31520
31521 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
31522
31523         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
31524         ymm and zmm register names.
31525
31526 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
31527
31528         PR target/60516
31529         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
31530         note creation for the 2010-08-31 changes.
31531
31532 2014-03-17  Marek Polacek  <polacek@redhat.com>
31533
31534         PR middle-end/60534
31535         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
31536         as -fno-tree-loop-vectorize.
31537         (expand_omp_simd): Likewise.
31538
31539 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
31540
31541         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
31542         (eligible_for_call_delay): New prototype.
31543         * config/sparc/sparc.c (tls_call_delay): Rename into...
31544         (eligible_for_call_delay): ...this.  Return false if the instruction
31545         cannot be put in the delay slot of a branch.
31546         (eligible_for_restore_insn): Simplify.
31547         (eligible_for_return_delay): Return false if the instruction cannot be
31548         put in the delay slot of a branch and simplify.
31549         (eligible_for_sibcall_delay): Return false if the instruction cannot be
31550         put in the delay slot of a branch.
31551         * config/sparc/sparc.md (fix_ut699): New attribute.
31552         (tls_call_delay): Delete.
31553         (in_call_delay): Reimplement.
31554         (eligible_for_sibcall_delay): Rename into...
31555         (in_sibcall_delay): ...this.
31556         (eligible_for_return_delay): Rename into...
31557         (in_return_delay): ...this.
31558         (in_branch_delay): Reimplement.
31559         (in_uncond_branch_delay): Delete.
31560         (in_annul_branch_delay): Delete.
31561
31562 2014-03-14  Richard Henderson  <rth@redhat.com>
31563
31564         PR target/60525
31565         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
31566         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
31567         (*floathi<X87MODEF>2_i387_with_temp): Remove.
31568         (floathi splitters): Remove.
31569         (float<SWI48x>xf2): New pattern.
31570         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
31571         code that tried to handle DImode for 32-bit, but which was excluded
31572         by the pattern's condition.  Drop allocation of stack temporary.
31573         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
31574         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
31575         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
31576         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
31577         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
31578         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
31579         (*float<SWI48><MODEF>2_sse_interunit): Remove.
31580         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
31581         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
31582         (*float<SWI48x><X87MODEF>2_i387): Remove.
31583         (all float _with_temp splitters): Remove.
31584         (*float<SWI48x><MODEF>2_i387): New pattern.
31585         (*float<SWI48><MODEF>2_sse): New pattern.
31586         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
31587         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
31588
31589 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
31590             Marek Polacek  <polacek@redhat.com>
31591
31592         PR middle-end/60484
31593         * common.opt (dump_base_name_prefixed): New Variable.
31594         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
31595         if x_dump_base_name_prefixed is already set, set it at the end.
31596
31597 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
31598
31599         PR rtl-optimization/60508
31600         * lra-constraints.c (get_reload_reg): Add new parameter
31601         in_subreg_p.
31602         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
31603         Pass the new parameter values.
31604
31605 2014-03-14  Richard Biener  <rguenther@suse.de>
31606
31607         * common.opt: Revert unintented changes from r205065.
31608         * opts.c: Likewise.
31609
31610 2014-03-14  Richard Biener  <rguenther@suse.de>
31611
31612         PR middle-end/60518
31613         * cfghooks.c (split_block): Properly adjust all loops the
31614         block was a latch of.
31615
31616 2014-03-14  Martin Jambor  <mjambor@suse.cz>
31617
31618         PR lto/60461
31619         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
31620         and simplify it.
31621
31622 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
31623
31624         PR target/59396
31625         * config/avr/avr.c (avr_set_current_function): Pass function name
31626         through default_strip_name_encoding before sanity checking instead
31627         of skipping the first char of the assembler name.
31628
31629 2014-03-13  Richard Henderson  <rth@redhat.com>
31630
31631         PR debug/60438
31632         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
31633         (ix86_force_to_memory, ix86_free_from_memory): Remove.
31634         * config/i386/i386-protos.h: Likewise.
31635         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
31636         in the expander instead of a splitter.
31637         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
31638         any possibility of requiring a memory.
31639         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
31640         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
31641         (fp branch splitters): Update for ix86_split_fp_branch.
31642         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
31643         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
31644         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
31645         (*fop_<MODEF>_2_i387): Remove f/r alternative.
31646         (*fop_<MODEF>_3_i387): Likewise.
31647         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
31648         (splitters for the fop_* register patterns): Remove.
31649         (fscalexf4_i387): Rename from *fscalexf4_i387.
31650         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
31651
31652 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
31653
31654         PR tree-optimization/59779
31655         * tree-dfa.c (get_ref_base_and_extent): Use double_int
31656         type for bitsize and maxsize instead of HOST_WIDE_INT.
31657
31658 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
31659
31660         PR rtl-optimization/57320
31661         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
31662         the CFG after thread_prologue_and_epilogue_insns.
31663
31664 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
31665
31666         PR rtl-optimization/57189
31667         * lra-constraints.c (process_alt_operands): Disfavor spilling
31668         vector pseudos.
31669
31670 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
31671
31672         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
31673
31674 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
31675
31676         PR tree-optimization/59025
31677         PR middle-end/60418
31678         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
31679         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
31680
31681 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
31682
31683         PR target/60486
31684         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
31685         calls of avr_out_plus_1.
31686
31687 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
31688
31689         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
31690         BB's single pred and update the father loop's latch info later.
31691
31692 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
31693
31694         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
31695         (VEC_M): Likewise.
31696         (VEC_N): Likewise.
31697         (VEC_R): Likewise.
31698         (VEC_base): Likewise.
31699         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
31700         registers, we need to swap double words in little endian mode.
31701
31702         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
31703         to be a container mode for 128-bit integer operations added in ISA
31704         2.07.  Unlike TImode and PTImode, the preferred register set is
31705         the Altivec/VMX registers for the 128-bit operations.
31706
31707         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
31708         declarations.
31709         (rs6000_split_128bit_ok_p): Likewise.
31710
31711         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
31712         macros for creating ISA 2.07 normal and overloaded builtin
31713         functions with 3 arguments.
31714         (BU_P8V_OVERLOAD_3): Likewise.
31715         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
31716         for use as overloaded functions.
31717         (VPERM_1TI_UNS): Likewise.
31718         (VSEL_1TI): Likewise.
31719         (VSEL_1TI_UNS): Likewise.
31720         (ST_INTERNAL_1ti): Likewise.
31721         (LD_INTERNAL_1ti): Likewise.
31722         (XXSEL_1TI): Likewise.
31723         (XXSEL_1TI_UNS): Likewise.
31724         (VPERM_1TI): Likewise.
31725         (VPERM_1TI_UNS): Likewise.
31726         (XXPERMDI_1TI): Likewise.
31727         (SET_1TI): Likewise.
31728         (LXVD2X_V1TI): Likewise.
31729         (STXVD2X_V1TI): Likewise.
31730         (VEC_INIT_V1TI): Likewise.
31731         (VEC_SET_V1TI): Likewise.
31732         (VEC_EXT_V1TI): Likewise.
31733         (EQV_V1TI): Likewise.
31734         (NAND_V1TI): Likewise.
31735         (ORC_V1TI): Likewise.
31736         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
31737         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
31738         overloaded builtin.
31739         (VADDUQM): Likewise.
31740         (VSUBCUQ): Likewise.
31741         (VADDEUQM): Likewise.
31742         (VADDECUQ): Likewise.
31743         (VSUBEUQM): Likewise.
31744         (VSUBECUQ): Likewise.
31745
31746         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
31747         __int128_t and __uint128_t types.
31748         (__uint128_type): Likewise.
31749         (altivec_categorize_keyword): Add support for vector __int128_t,
31750         vector __uint128_t, vector __int128, and vector unsigned __int128
31751         as a container type for TImode operations that need to be done in
31752         VSX/Altivec registers.
31753         (rs6000_macro_to_expand): Likewise.
31754         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
31755         to support 128-bit integer instructions vaddcuq, vadduqm,
31756         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
31757         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
31758
31759         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
31760         for V1TImode, and set up preferences to use VSX/Altivec registers.
31761         Setup VSX reload handlers.
31762         (rs6000_debug_reg_global): Likewise.
31763         (rs6000_init_hard_regno_mode_ok): Likewise.
31764         (rs6000_preferred_simd_mode): Likewise.
31765         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
31766         (easy_altivec_constant): Likewise.
31767         (output_vec_const_move): Likewise.
31768         (rs6000_expand_vector_set): Convert V1TImode set and extract to
31769         simple move.
31770         (rs6000_expand_vector_extract): Likewise.
31771         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
31772         addressing.
31773         (rs6000_const_vec): Add support for V1TImode.
31774         (rs6000_emit_le_vsx_load): Swap double words when loading or
31775         storing TImode/V1TImode.
31776         (rs6000_emit_le_vsx_store): Likewise.
31777         (rs6000_emit_le_vsx_move): Likewise.
31778         (rs6000_emit_move): Add support for V1TImode.
31779         (altivec_expand_ld_builtin): Likewise.
31780         (altivec_expand_st_builtin): Likewise.
31781         (altivec_expand_vec_init_builtin): Likewise.
31782         (altivec_expand_builtin): Likewise.
31783         (rs6000_init_builtins): Add support for V1TImode type.  Add
31784         support for ISA 2.07 128-bit integer builtins.  Define type names
31785         for the VSX/Altivec vector types.
31786         (altivec_init_builtins): Add support for overloaded vector
31787         functions with V1TImode type.
31788         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
31789         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
31790         external function.
31791         (rs6000_split_128bit_ok_p): Likewise.
31792         (rs6000_handle_altivec_attribute): Create V1TImode from vector
31793         __int128_t and vector __uint128_t.
31794
31795         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
31796         and mode attributes.
31797         (VSX_M): Likewise.
31798         (VSX_M2): Likewise.
31799         (VSm): Likewise.
31800         (VSs): Likewise.
31801         (VSr): Likewise.
31802         (VSv): Likewise.
31803         (VS_scalar): Likewise.
31804         (VS_double): Likewise.
31805         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
31806
31807         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
31808         we support the ISA 2.07 128-bit integer arithmetic instructions.
31809         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
31810         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
31811         and TImode types for use with the builtin functions.
31812         (V1TI_type_node): Likewise.
31813         (unsigned_V1TI_type_node): Likewise.
31814         (intTI_type_internal_node): Likewise.
31815         (uintTI_type_internal_node): Likewise.
31816
31817         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
31818         128-bit builtin functions.
31819         (UNSPEC_VADDEUQM): Likewise.
31820         (UNSPEC_VADDECUQ): Likewise.
31821         (UNSPEC_VSUBCUQ): Likewise.
31822         (UNSPEC_VSUBEUQM): Likewise.
31823         (UNSPEC_VSUBECUQ): Likewise.
31824         (VM): Add V1TImode to vector mode iterators.
31825         (VM2): Likewise.
31826         (VI_unit): Likewise.
31827         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
31828         (altivec_vaddcuq): Likewise.
31829         (altivec_vsubuqm): Likewise.
31830         (altivec_vsubcuq): Likewise.
31831         (altivec_vaddeuqm): Likewise.
31832         (altivec_vaddecuq): Likewise.
31833         (altivec_vsubeuqm): Likewise.
31834         (altivec_vsubecuq): Likewise.
31835
31836         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
31837         mode iterators.
31838         (BOOL_128): Likewise.
31839         (BOOL_REGS_OUTPUT): Likewise.
31840         (BOOL_REGS_OP1): Likewise.
31841         (BOOL_REGS_OP2): Likewise.
31842         (BOOL_REGS_UNARY): Likewise.
31843         (BOOL_REGS_AND_CR0): Likewise.
31844
31845         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
31846         128-bit integer builtin support.
31847         (vec_vadduqm): Likewise.
31848         (vec_vaddecuq): Likewise.
31849         (vec_vaddeuqm): Likewise.
31850         (vec_vsubecuq): Likewise.
31851         (vec_vsubeuqm): Likewise.
31852         (vec_vsubcuq): Likewise.
31853         (vec_vsubuqm): Likewise.
31854
31855         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
31856         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
31857         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
31858         128-bit integer add/subtract to ISA 2.07.
31859
31860 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
31861
31862         * config/arc/arc.c (arc_predicate_delay_insns):
31863         Fix third argument passed to conditionalize_nonjump.
31864
31865 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
31866
31867         * config/aarch64/aarch64-builtins.c
31868         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
31869         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
31870         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
31871         instead of __builtin_lfloor.
31872         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
31873
31874 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
31875
31876         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
31877         (tree_ssa_ifcombine_bb_1): New function.
31878         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
31879         is an empty forwarder block to then_bb or vice versa and then_bb
31880         and else_bb are effectively swapped.
31881
31882 2014-03-12  Christian Bruel  <christian.bruel@st.com>
31883
31884         PR target/60264
31885         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
31886         REG_CFA_DEF_CFA note.
31887         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
31888         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
31889
31890 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31891
31892         PR tree-optimization/60454
31893         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
31894
31895 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31896
31897         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
31898         Do not define target_cpu_default2 to generic.
31899         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
31900         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
31901         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
31902
31903 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
31904             Marc Glisse  <marc.glisse@inria.fr>
31905
31906         PR tree-optimization/60502
31907         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
31908         instead of build_low_bits_mask.
31909
31910 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
31911
31912         PR middle-end/60482
31913         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
31914         if there are multiple uses, but op doesn't live on E edge.
31915         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
31916         clobber stmts before __builtin_unreachable.
31917
31918 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
31919
31920         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
31921         hard_frame_pointer_rtx.
31922         * cse.c (cse_insn): Remove volatile check.
31923         * cselib.c (cselib_process_insn): Likewise.
31924         * dse.c (scan_insn): Likewise.
31925
31926 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
31927
31928         * config/arc/arc.c (conditionalize_nonjump): New function,
31929         broken out of ...
31930         (arc_ifcvt): ... this.
31931         (arc_predicate_delay_insns): Use it.
31932
31933 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
31934
31935         * config/arc/predicates.md (extend_operand): During/after reload,
31936         allow const_int_operand.
31937         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
31938         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
31939         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
31940         to "i".
31941         (umulsi3_highpart_i): Likewise.
31942
31943 2014-03-11  Richard Biener  <rguenther@suse.de>
31944
31945         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
31946         Add asserts to guard possible wrong-code bugs.
31947
31948 2014-03-11  Richard Biener  <rguenther@suse.de>
31949
31950         PR tree-optimization/60429
31951         PR tree-optimization/60485
31952         * tree-ssa-structalias.c (set_union_with_increment): Properly
31953         take into account all fields that overlap the shifted vars.
31954         (do_sd_constraint): Likewise.
31955         (do_ds_constraint): Likewise.
31956         (get_constraint_for_ptr_offset): Likewise.
31957
31958 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
31959
31960         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
31961         (nios2_compute_frame_layout):
31962         Add calculation of cfun->machine->fp_save_offset.
31963         (nios2_expand_prologue): Correct setting of frame pointer register
31964         in prologue.
31965         (nios2_expand_epilogue): Update recovery of stack pointer from
31966         frame pointer accordingly.
31967         (nios2_initial_elimination_offset): Update calculation of offset
31968         for eliminating to HARD_FRAME_POINTER_REGNUM.
31969
31970 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
31971
31972         PR ipa/60457
31973         * ipa.c (symtab_remove_unreachable_nodes): Don't call
31974         cgraph_get_create_node on VAR_DECLs.
31975
31976 2014-03-10  Richard Biener  <rguenther@suse.de>
31977
31978         PR middle-end/60474
31979         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
31980
31981 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
31982
31983         * config/vms/vms.opt (vms_float_format): New variable.
31984
31985 2014-03-08  Tobias Burnus  <burnus@net-b.de>
31986
31987         * doc/invoke.texi (-fcilkplus): Update implementation status.
31988
31989 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
31990             Richard Biener  <rguenther@suse.de>
31991
31992         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
31993         consistently accross all TUs.
31994         (run_gcc): Enable -fshort-double automatically at link at link-time
31995         and disallow override.
31996
31997 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
31998
31999         PR target/58271
32000         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
32001         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
32002         if they can't be used.
32003
32004 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32005
32006         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
32007         for Solaris 11/x86 ld.
32008         * configure: Regenerate.
32009
32010 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32011
32012         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
32013         (LIB_TLS_SPEC): Save as ld_tls_libs.
32014         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
32015         (HAVE_AS_IX86_TLSLDM): New test.
32016         * configure, config.in: Regenerate.
32017         * config/i386/i386.c (legitimize_tls_address): Fall back to
32018         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
32019         cannot support TLS_MODEL_LOCAL_DYNAMIC.
32020         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
32021         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
32022
32023 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
32024
32025         * common.opt (fira-loop-pressure): Mark as optimization.
32026
32027 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
32028
32029         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
32030         an OpenMP mappable type.
32031
32032 2014-03-06  Matthias Klose  <doko@ubuntu.com>
32033
32034         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
32035         MULTILIB_OSDIRNAMES is not defined.
32036
32037 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
32038             Meador Inge  <meadori@codesourcery.com>
32039
32040         PR target/58595
32041         * config/arm/arm.c (arm_tls_symbol_p): Remove.
32042         (arm_legitimize_address): Call legitimize_tls_address for any
32043         arm_tls_referenced_p expression, handle constant addend.  Call it
32044         before testing for !TARGET_ARM.
32045         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
32046
32047 2014-03-06  Richard Biener  <rguenther@suse.de>
32048
32049         PR middle-end/60445
32050         PR lto/60424
32051         PR lto/60427
32052         Revert
32053         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
32054
32055         * tree-streamer.c (record_common_node): Assert we don't record
32056         nodes with type double.
32057         (preload_common_node): Skip type double, complex double and double
32058         pointer since it is now frontend dependent due to fshort-double option.
32059
32060 2014-03-06  Richard Biener  <rguenther@suse.de>
32061
32062         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
32063         or -fno-lto is specified and the linker has full plugin support.
32064         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
32065         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
32066         * lto-wrapper.c (merge_and_complain): Merge compile-time
32067         optimization levels.
32068         (run_gcc): And pass it through to the link options.
32069
32070 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
32071
32072         PR debug/60381
32073         Revert:
32074         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
32075         PR debug/59992
32076         * cselib.c (remove_useless_values): Skip to avoid quadratic
32077         behavior if the condition moved from...
32078         (cselib_process_insn): ... here holds.
32079
32080 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
32081
32082         PR plugins/59335
32083         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
32084         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
32085
32086         PR plugins/59335
32087         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
32088         (TM_H): Add x86-tune.def.
32089
32090 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32091
32092         * config/aarch64/aarch64.c (generic_tunings):
32093         Use cortexa57_extra_costs.
32094
32095 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
32096
32097         PR lto/60404
32098         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
32099         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
32100         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
32101         cost for in_lto_p.
32102
32103 2014-03-04  Heiher  <r@hev.cc>
32104
32105         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
32106         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
32107
32108 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
32109
32110         * config/i386/predicates.md (const2356_operand): Change to ...
32111         (const2367_operand): ... this.
32112         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
32113         const2367_operand.
32114         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
32115         (*avx512pf_scatterpf<mode>sf): Ditto.
32116         (avx512pf_scatterpf<mode>df): Ditto.
32117         (*avx512pf_scatterpf<mode>df_mask): Ditto.
32118         (*avx512pf_scatterpf<mode>df): Ditto.
32119         * config/i386/i386.c (ix86_expand_builtin): Update
32120         incorrect hint operand error message.
32121
32122 2014-03-04  Richard Biener  <rguenther@suse.de>
32123
32124         * lto-section-in.c (lto_get_section_data): Fix const cast.
32125
32126 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
32127
32128         * tree-streamer.c (record_common_node): Assert we don't record
32129         nodes with type double.
32130         (preload_common_node): Skip type double, complex double and double
32131         pointer since it is now frontend dependent due to fshort-double option.
32132
32133 2014-03-04  Richard Biener  <rguenther@suse.de>
32134
32135         PR lto/60405
32136         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
32137         (lto_input_toplevel_asms): Likewise.
32138         * lto-section-in.c (lto_get_section_data): Instead do it here
32139         for every section.
32140
32141 2014-03-04  Richard Biener  <rguenther@suse.de>
32142
32143         PR tree-optimization/60382
32144         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
32145         dead PHIs a reduction.
32146
32147 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
32148
32149         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
32150         hint value.
32151         (_mm_prefetch): Move out of GCC target("sse") pragma.
32152         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
32153         GCC target("prfchw") pragma.
32154         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
32155         for locality <= 2.
32156         * config/i386/i386.c (ix86_option_override_internal): Enable
32157         -mprfchw with -mprefetchwt1.
32158
32159 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
32160
32161         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
32162         Mark as varying.
32163
32164 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
32165
32166         * opts.h (CL_PCH_IGNORE): Define.
32167         * targhooks.c (option_affects_pch_p):
32168         Return false for options that have CL_PCH_IGNORE set.
32169         * opt-functions.awk: Process PchIgnore.
32170         * doc/options.texi: Document PchIgnore.
32171
32172         * config/arc/arc.opt (misize): Add PchIgnore property.
32173
32174 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32175
32176         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
32177         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
32178         constraint on constants to permit them being loaded into
32179         GENERAL_REGS or BASE_REGS.
32180
32181 2014-03-03  Nick Clifton  <nickc@redhat.com>
32182
32183         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
32184         anti-cacnonical alternatives.
32185         (negandhi3_real): New pattern.
32186         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
32187
32188 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
32189
32190         * config/avr/avr-mcus.def: Remove atxmega16x1.
32191         * config/avr/avr-tables.opt: Regenerate.
32192         * config/avr/t-multilib: Regenerate.
32193         * doc/avr-mmcu.texi: Regenerate.
32194
32195 2014-03-03  Tobias Grosser  <tobias@grosser.es>
32196             Mircea Namolaru  <mircea.namolaru@inria.fr>
32197
32198         PR tree-optimization/58028
32199         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
32200         scalar dimensions.
32201
32202 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
32203
32204         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
32205         not handled by recognizers.
32206
32207 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
32208
32209         PR middle-end/60175
32210         * function.c (expand_function_end): Don't emit
32211         clobber_return_register sequence if clobber_after is a BARRIER.
32212         * cfgexpand.c (construct_exit_block): Append instructions before
32213         return_label to prev_bb.
32214
32215 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32216
32217         * config/rs6000/constraints.md: Document reserved use of "wc".
32218
32219 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
32220
32221         PR ipa/60150
32222         * ipa.c (function_and_variable_visibility): When dissolving comdat
32223         group, also set all symbols to local.
32224
32225 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
32226
32227         PR ipa/60306
32228
32229         Revert:
32230         2013-12-14  Jan Hubicka  <jh@suse.cz>
32231         PR middle-end/58477
32232         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
32233
32234 2014-03-02  Jon Beniston  <jon@beniston.com>
32235
32236         PR bootstrap/48230
32237         PR bootstrap/50927
32238         PR bootstrap/52466
32239         PR target/46898
32240         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
32241         (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
32242         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
32243         (simple_return, *simple_return): New patterns
32244         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
32245         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
32246
32247 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
32248
32249         * dwarf2out.c (gen_subprogram_die): Tidy.
32250
32251 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
32252
32253         PR target/60071
32254         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
32255         (*mov_t_msb_neg_negc): ... this new insn.
32256
32257 2014-02-28  Jason Merrill  <jason@redhat.com>
32258
32259         PR c++/58678
32260         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
32261         function.
32262
32263 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
32264
32265         PR c++/60314
32266         * dwarf2out.c (decltype_auto_die): New static.
32267         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
32268         (gen_type_die_with_usage): Handle 'decltype(auto)'.
32269         (is_cxx_auto): Likewise.
32270
32271 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
32272
32273         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
32274         we are not using general regs only.
32275
32276 2014-02-28  Richard Biener  <rguenther@suse.de>
32277
32278         PR target/60280
32279         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
32280         previous fix and only allow to remove trivial pre-headers
32281         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
32282         (remove_forwarder_block): Properly update the latch of a loop.
32283
32284 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
32285
32286         PR debug/59992
32287         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
32288         (cselib_preserved_hash_table): New.
32289         (preserve_constants_and_equivs): Move preserved vals to it.
32290         (cselib_find_slot): Look it up first.
32291         (cselib_init): Initialize it.
32292         (cselib_finish): Release it.
32293         (dump_cselib_table): Dump it.
32294
32295 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
32296
32297         PR debug/59992
32298         * cselib.c (remove_useless_values): Skip to avoid quadratic
32299         behavior if the condition moved from...
32300         (cselib_process_insn): ... here holds.
32301
32302 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
32303
32304         PR debug/57232
32305         * var-tracking.c (vt_initialize): Apply the same condition to
32306         preserve the CFA base value.
32307
32308 2014-02-28  Joey Ye  <joey.ye@arm.com>
32309
32310         PR target/PR60169
32311         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
32312         if reload in progress or completed.
32313
32314 2014-02-28  Tobias Burnus  <burnus@net-b.de>
32315
32316         PR middle-end/60147
32317         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
32318         NAMELIST_DECL.
32319
32320 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
32321
32322         * doc/tm.texi.in (Condition Code Status): Update documention for
32323         relative locations of cc0-setter and cc0-user.
32324
32325 2014-02-27  Jeff Law  <law@redhat.com>
32326
32327         PR rtl-optimization/52714
32328         * combine.c (try_combine): When splitting an unrecognized PARALLEL
32329         into two independent simple sets, if I3 is a jump, ensure the
32330         pattern we place into I3 is a (set (pc) ...).
32331
32332 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
32333             Jeff Law  <law@redhat.com>
32334
32335         PR rtl-optimization/49847
32336         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
32337         are in different blocks.
32338         * doc/tm.texi (Condition Code Status): Update documention for
32339         relative locations of cc0-setter and cc0-user.
32340
32341 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
32342
32343         PR target/59222
32344         * lra.c (lra_emit_add): Check SUBREG too.
32345
32346 2014-02-27  Andreas Schwab  <schwab@suse.de>
32347
32348         * config/m68k/m68k.c (m68k_option_override): Disable
32349         -flive-range-shrinkage for classic m68k.
32350         (m68k_override_options_after_change): Likewise.
32351
32352 2014-02-27  Marek Polacek  <polacek@redhat.com>
32353
32354         PR middle-end/59223
32355         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
32356         -Wmaybe-uninitialized.
32357
32358 2014-02-27  Alan Modra  <amodra@gmail.com>
32359
32360         PR target/57936
32361         * reload1.c (emit_input_reload_insns): When reload_override_in,
32362         set old to rl->in_reg when rl->in_reg is a subreg.
32363
32364 2014-02-26  Richard Biener  <rguenther@suse.de>
32365
32366         PR bootstrap/60343
32367         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
32368
32369 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
32370
32371         * common/config/i386/predicates.md (const1256_operand): Remove.
32372         (const2356_operand): New.
32373         (const_1_to_2_operand): Remove.
32374         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
32375         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
32376         (*avx512pf_gatherpf<mode>sf): Ditto.
32377         (avx512pf_gatherpf<mode>df): Ditto.
32378         (*avx512pf_gatherpf<mode>df_mask): Ditto.
32379         (*avx512pf_gatherpf<mode>df): Ditto.
32380         (avx512pf_scatterpf<mode>sf): Ditto.
32381         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
32382         (*avx512pf_scatterpf<mode>sf): Ditto.
32383         (avx512pf_scatterpf<mode>df): Ditto.
32384         (*avx512pf_scatterpf<mode>df_mask): Ditto.
32385         (*avx512pf_scatterpf<mode>df): Ditto.
32386         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
32387
32388 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
32389
32390         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
32391         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
32392         (_mm512_mask_testn_epi64_mask): Move to ...
32393         * config/i386/avx512cdintrin.h: Here.
32394         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
32395         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
32396         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
32397         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
32398         TARGET_AVX512F from TARGET_AVX512CD.
32399
32400 2014-02-26  Richard Biener  <rguenther@suse.de>
32401
32402         PR ipa/60327
32403         * ipa.c (walk_polymorphic_call_targets): Properly guard
32404         call to inline_update_overall_summary.
32405
32406 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
32407
32408         PR target/60280
32409         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
32410         and latches only if requested.  Fix latch if it is removed.
32411         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
32412         LOOPS_HAVE_PREHEADERS.
32413
32414 2014-02-25  Andrew Pinski  <apinski@cavium.com>
32415
32416         * builtins.c (expand_builtin_thread_pointer): Create a new target
32417         when the target is NULL.
32418
32419 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
32420
32421         PR rtl-optimization/60317
32422         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
32423         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
32424         * lra-assigns.c: Include params.h.
32425         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
32426         other reload pseudos considerations.
32427
32428 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32429
32430         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
32431         to use canonical form for nor<mode>3.
32432
32433 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32434
32435         PR target/55426
32436         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
32437         conversions.
32438
32439 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
32440
32441         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
32442         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
32443         (ix86_handle_option): Handle OPT_mprefetchwt1.
32444         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
32445         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
32446         PREFETCHWT1 CPUID.
32447         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
32448         OPTION_MASK_ISA_PREFETCHWT1.
32449         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
32450         (PTA_PREFETCHWT1): New.
32451         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
32452         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
32453         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
32454         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
32455         (*prefetch_avx512pf_<mode>_: Change into ...
32456         (*prefetch_prefetchwt1_<mode>: This.
32457         * config/i386/i386.opt (mprefetchwt1): New.
32458         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
32459         (_mm_prefetch): Handle intent to write.
32460         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
32461
32462 2014-02-25  Richard Biener  <rguenther@suse.de>
32463
32464         PR middle-end/60291
32465         * emit-rtl.c (mem_attrs_htab): Remove.
32466         (mem_attrs_htab_hash): Likewise.
32467         (mem_attrs_htab_eq): Likewise.
32468         (set_mem_attrs): Always allocate new mem-attrs when something changed.
32469         (init_emit_once): Do not allocate mem_attrs_htab.
32470
32471 2014-02-25  Richard Biener  <rguenther@suse.de>
32472
32473         PR lto/60319
32474         * lto-opts.c (lto_write_options): Output non-explicit conservative
32475         -fwrapv, -fno-trapv and -fno-strict-overflow.
32476         * lto-wrapper.c (merge_and_complain): Handle merging those options.
32477         (run_gcc): And pass them through.
32478
32479 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
32480
32481         * sel-sched.c (calculate_new_fences): New parameter ptime.
32482         Calculate it as a maximum over all fence cycles.
32483         (sel_sched_region_2): Adjust the call to calculate_new_fences.
32484         Print the final schedule timing when sched_verbose.
32485
32486 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
32487
32488         PR rtl-optimization/60292
32489         * sel-sched.c (fill_vec_av_set): Do not reset target availability
32490         bit fot the fence instruction.
32491
32492 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
32493
32494         * calls.h: Fix typo in comment.
32495
32496 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
32497
32498         * config/pa/pa.c (pa_output_move_double): Don't valididate when
32499         adjusting offsetable addresses.
32500
32501 2014-02-24  Guozhi Wei  <carrot@google.com>
32502
32503         * sparseset.h (sparseset_pop): Fix the wrong index.
32504
32505 2014-02-24  Walter Lee  <walt@tilera.com>
32506
32507         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
32508         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
32509         triplet.
32510         * common/config/tilegx/tilegx-common.c
32511         (TARGET_DEFAULT_TARGET_FLAGS): Define.
32512         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
32513         (LINK_SPEC): Ditto.
32514         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
32515         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
32516         (tilegx_gimplify_va_arg_expr): Handle big endian.
32517         (tilegx_expand_unaligned_load): Ditto.
32518         (tilegx_expand_unaligned_store): Ditto.
32519         (TARGET_RETURN_IN_MSB): New.
32520         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
32521         (TARGET_ENDIAN_DEFAULT): New.
32522         (TARGET_BIG_ENDIAN): Handle big endian.
32523         (BYTES_BIG_ENDIAN): Ditto.
32524         (WORDS_BIG_ENDIAN): Ditto.
32525         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
32526         (ENDIAN_SPEC): New.
32527         (EXTRA_SPECS): New.
32528         * config/tilegx/tilegx.md (extv): Handle big endian.
32529         (extzv): Ditto.
32530         (insn_st<n>): Ditto.
32531         (insn_st<n>_add<bitsuffix>): Ditto.
32532         (insn_stnt<n>): Ditto.
32533         (insn_stnt<n>_add<bitsuffix>):Ditto.
32534         (vec_interleave_highv8qi): Handle big endian.
32535         (vec_interleave_highv8qi_be): New.
32536         (vec_interleave_highv8qi_le): New.
32537         (insn_v1int_h): Handle big endian.
32538         (vec_interleave_lowv8qi): Handle big endian.
32539         (vec_interleave_lowv8qi_be): New.
32540         (vec_interleave_lowv8qi_le): New.
32541         (insn_v1int_l): Handle big endian.
32542         (vec_interleave_highv4hi): Handle big endian.
32543         (vec_interleave_highv4hi_be): New.
32544         (vec_interleave_highv4hi_le): New.
32545         (insn_v2int_h): Handle big endian.
32546         (vec_interleave_lowv4hi): Handle big endian.
32547         (vec_interleave_lowv4hi_be): New.
32548         (vec_interleave_lowv4hi_le): New.
32549         (insn_v2int_l): Handle big endian.
32550         (vec_interleave_highv2si): Handle big endian.
32551         (vec_interleave_highv2si_be): New.
32552         (vec_interleave_highv2si_le): New.
32553         (insn_v4int_h): Handle big endian.
32554         (vec_interleave_lowv2si): Handle big endian.
32555         (vec_interleave_lowv2si_be): New.
32556         (vec_interleave_lowv2si_le): New.
32557         (insn_v4int_l): Handle big endian.
32558         * config/tilegx/tilegx.opt (mbig-endian): New option.
32559         (mlittle-endian): New option.
32560         * doc/install.texi: Document tilegxbe-linux.
32561         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
32562
32563 2014-02-24  Martin Jambor  <mjambor@suse.cz>
32564
32565         PR ipa/60266
32566         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
32567         there are no parameter descriptors.
32568
32569 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
32570
32571         PR rtl-optimization/60268
32572         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
32573         initialization to ...
32574         (sched_rgn_init): ... here.
32575         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
32576
32577 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
32578
32579         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
32580         names.
32581
32582 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
32583
32584         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
32585         definition.
32586
32587 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
32588
32589         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
32590         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
32591
32592 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
32593
32594         * config/microblaze/predicates.md: Add cmp_op predicate.
32595         * config/microblaze/microblaze.md: Add branch_compare instruction
32596         which uses cmp_op predicate and emits cmp insn before branch.
32597         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
32598         to microblaze_expand_conditional_branch and consolidate logic.
32599         (microblaze_expand_conditional_branch): emit branch_compare
32600         insn instead of handling cmp op separate from branch insn.
32601
32602 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32603
32604         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
32605         to permit subregs.
32606
32607 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32608
32609         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
32610         define_insn with define_expand and new define_insn
32611         *altivec_lve<VI_char>x_internal.
32612         (altivec_stve<VI_char>x): Replace define_insn with define_expand
32613         and new define_insn *altivec_stve<VI_char>x_internal.
32614         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
32615         prototype.
32616         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
32617         lve*x built-ins.
32618         (altivec_expand_stvex_be): New function.
32619
32620 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
32621
32622         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
32623         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
32624         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
32625         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
32626
32627 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
32628
32629         PR target/60298
32630         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
32631         instead of emit_move_insn.
32632
32633 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32634
32635         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
32636         vspltw with vsldoi.
32637         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
32638         gen_altivec_vsumsws.
32639
32640 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32641
32642         * config/rs6000/altivec.md (altivec_lvxl): Rename as
32643         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
32644         (altivec_lvxl_<mode>): New define_expand incorporating
32645         -maltivec=be semantics where needed.
32646         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
32647         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
32648         semantics where needed.
32649         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
32650         (altivec_stvx_<mode>): New define_expand incorporating
32651         -maltivec=be semantics where needed.
32652         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
32653         VM2 iterator instead of V4SI.
32654         (altivec_stvxl_<mode>): New define_expand incorporating
32655         -maltivec=be semantics where needed.
32656         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
32657         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
32658         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
32659         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
32660         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
32661         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
32662         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
32663         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
32664         ALTIVEC_BUILTIN_STVXL.
32665         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
32666         (altivec_expand_stvx_be): Likewise.
32667         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
32668         (altivec_expand_lvx_be): Likewise.
32669         (altivec_expand_stvx_be): Likewise.
32670         (altivec_expand_builtin): Add cases for
32671         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
32672         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
32673         (altivec_init_builtins): Add definitions for
32674         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
32675         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
32676
32677 2014-02-21  Catherine Moore  <clm@codesourcery.com>
32678
32679         * doc/invoke.texi (mvirt, mno-virt): Document.
32680         * config/mips/mips.opt (mvirt): New option.
32681         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
32682
32683 2014-02-21  Richard Biener  <rguenther@suse.de>
32684
32685         PR tree-optimization/60276
32686         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
32687         (STMT_VINFO_MIN_NEG_DIST): New macro.
32688         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
32689         STMT_VINFO_MIN_NEG_DIST.
32690         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
32691         made for negative dependence distances still hold.
32692
32693 2014-02-21  Richard Biener  <rguenther@suse.de>
32694
32695         PR middle-end/60291
32696         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
32697         DECL_INITIAL for globals not in the current function context.
32698
32699 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
32700
32701         PR tree-optimization/56490
32702         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
32703         * tree-ssa-uninit.c: Include params.h.
32704         (compute_control_dep_chain): Add num_calls argument, return false
32705         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
32706         num_calls to recursive call.
32707         (find_predicates): Change dep_chain into normal array,
32708         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
32709         variable and adjust compute_control_dep_chain caller.
32710         (find_def_preds): Likewise.
32711
32712 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
32713
32714         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
32715         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
32716
32717 2014-02-21  Nick Clifton  <nickc@redhat.com>
32718
32719         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
32720         (pushhi1): Likewise.
32721         (popqi1): Add mode to pre_dec.
32722         (pophi1): Likewise.
32723
32724 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
32725
32726         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
32727         mode for mask of V8SFmode permutation.
32728
32729 2014-02-20  Richard Henderson  <rth@redhat.com>
32730
32731         PR c++/60272
32732         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
32733         a new pseudo for OLDVAL.
32734
32735 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
32736
32737         PR target/57896
32738         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
32739         gen_reg_rtx if d->testing_p.
32740         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
32741         if d->testing_p and we will certainly return true.
32742         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
32743         if d->testing_p.
32744
32745 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
32746
32747         * emit-rtl.c (gen_reg_rtx): Assert that
32748         crtl->emit.regno_pointer_align_length is non-zero.
32749
32750 2014-02-20  Richard Henderson  <rth@redhat.com>
32751
32752         PR c++/60272
32753         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
32754         on failure the store back into EXPECT.
32755
32756 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
32757             Sandra Loosemore  <sandra@codesourcery.com>
32758
32759         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
32760         * config/nios2/nios2.c (nios2_function_profiler): Add
32761         -fPIC (flag_pic == 2) support.
32762         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
32763         (nios2_large_offset_p): New function.
32764         (nios2_unspec_reloc_p): Move up position, update to use
32765         nios2_large_offset_p.
32766         (nios2_unspec_address): Remove function.
32767         (nios2_unspec_offset): New function.
32768         (nios2_large_got_address): New function.
32769         (nios2_got_address): Add large offset support.
32770         (nios2_legitimize_tls_address): Update usage of removed and new
32771         functions.
32772         (nios2_symbol_binds_local_p): New function.
32773         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
32774         (nios2_legitimize_address): Update to use nios2_large_offset_p.
32775         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
32776         (nios2_print_operand): Merge H/L processing, add hiadj/lo
32777         processing for (const (unspec ...)).
32778         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
32779
32780 2014-02-20  Richard Biener  <rguenther@suse.de>
32781
32782         * tree-cfg.c (replace_uses_by): Mark altered BBs before
32783         doing the substitution.
32784         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
32785
32786 2014-02-20  Martin Jambor  <mjambor@suse.cz>
32787
32788         PR ipa/55260
32789         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
32790         info when checking whether lattices are bottom.
32791
32792 2014-02-20  Richard Biener  <rguenther@suse.de>
32793
32794         PR middle-end/60221
32795         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
32796         regions at -O0.
32797
32798 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
32799
32800         PR ipa/58555
32801         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
32802         parameter specifying the scaling.
32803         (inline_call): Update.
32804         (want_inline_recursively): Guard division by zero.
32805         (recursive_inlining): Update.
32806         * ipa-inline.h (clone_inlined_nodes): Update.
32807
32808 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
32809
32810         PR target/60204
32811         * config/i386/i386.c (classify_argument): Pass structures of size
32812         64 bytes or less in register.
32813
32814 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
32815             Kirill Yukhin  <kirill.yukhin@intel.com>
32816
32817         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
32818         (_mm_rcp28_round_ss): Ditto.
32819         (_mm_rsqrt28_round_sd): Ditto.
32820         (_mm_rsqrt28_round_ss): Ditto.
32821         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
32822         (_mm_rcp14_round_ss): Ditto.
32823         (_mm_rsqrt14_round_sd): Ditto.
32824         (_mm_rsqrt14_round_ss): Ditto.
32825         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
32826         the first input operand, get rid of match_dup.
32827         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
32828         attribute to sse.
32829         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
32830         Ditto.
32831         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
32832         operand as the first input operand, set type attribute.
32833         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
32834         Set type attribute.
32835         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
32836         operand as the first input operand, set type attribute.
32837
32838 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32839
32840         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
32841         bit of zero.
32842
32843 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
32844
32845         PR target/60207
32846         * config/i386/i386.c (construct_container): Remove TFmode check
32847         for X86_64_INTEGER_CLASS.
32848
32849 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
32850
32851         PR target/59794
32852         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
32853         only when -Wpsabi is enabled.
32854
32855 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
32856
32857         PR target/59799
32858         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
32859         passing arrays in registers are the same as for structs, so remove the
32860         special case for them.
32861
32862 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
32863
32864         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
32865         destination type, extract only the valid bits if the source type is not
32866         integral and has a different mode.
32867
32868 2014-02-19  Richard Biener  <rguenther@suse.de>
32869
32870         PR ipa/60243
32871         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
32872         for all calls.
32873
32874 2014-02-19  Richard Biener  <rguenther@suse.de>
32875
32876         PR ipa/60243
32877         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
32878         (ipa_modify_call_arguments): Emit an argument load explicitely and
32879         preserve virtual SSA form there and for the replacement call.
32880         Do not update SSA form nor free dominance info.
32881
32882 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
32883
32884         * ipa.c (function_and_variable_visibility): Also clear WEAK
32885         flag when disolving COMDAT_GROUP.
32886
32887 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
32888
32889         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
32890         * ipa-prop.c (ipa_set_jf_known_type): Return early when
32891         not devirtualizing.
32892         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
32893         do more sanity checks.
32894         (detect_type_change): Return true when giving up early.
32895         (compute_complex_assign_jump_func): Fix type parameter of
32896         ipa_set_ancestor_jf.
32897         (compute_complex_ancestor_jump_func): Likewise.
32898         (update_jump_functions_after_inlining): Fix updating of
32899         ancestor function.
32900         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
32901
32902 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
32903
32904         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
32905         inline clones when edge disappears.
32906
32907 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
32908
32909         PR target/60203
32910         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
32911         Split 64-bit moves into 2 patterns.  Do not allow the use of
32912         direct move for TDmode in little endian, since the decimal value
32913         has little endian bytes within a word, but the 64-bit pieces are
32914         ordered in a big endian fashion, and normal subreg's of TDmode are
32915         not allowed.
32916         (mov<mode>_64bit_dm): Likewise.
32917         (movtd_64bit_nodm): Likewise.
32918
32919 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
32920
32921         PR tree-optimization/60174
32922         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
32923         statement of an SSA_NAME that occurs in an abnormal PHI node.
32924
32925 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
32926
32927         PR sanitizer/60142
32928         * final.c (SEEN_BB): Remove.
32929         (SEEN_NOTE, SEEN_EMITTED): Renumber.
32930         (final_scan_insn): Don't force_source_line on second
32931         NOTE_INSN_BASIC_BLOCK.
32932
32933 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
32934
32935         PR target/60205
32936         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
32937         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
32938         (type_natural_mode): Warn ABI change when %zmm register is not
32939         available for AVX512F vector value passing.
32940
32941 2014-02-18  Kai Tietz  <ktietz@redhat.com>
32942
32943         PR target/60193
32944         * config/i386/i386.c (ix86_expand_prologue): Use value in
32945         rax register as displacement when restoring %r10 or %rax.
32946         Fix wrong offset when restoring both registers.
32947
32948 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
32949
32950         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
32951         assertion with conditional return.
32952
32953 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
32954             Uros Bizjak  <ubizjak@gmail.com>
32955
32956         PR driver/60233
32957         * config/i386/driver-i386.c (host_detect_local_cpu): If
32958         YMM state is not saved by the OS, also clear has_f16c.  Move
32959         CPUID 0x80000001 handling before YMM state saving checking.
32960
32961 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
32962
32963         PR rtl-optimization/58960
32964         * haifa-sched.c (alloc_global_sched_pressure_data): New,
32965         factored out from ...
32966         (sched_init): ... here.
32967         (free_global_sched_pressure_data): New, factored out from ...
32968         (sched_finish): ... here.
32969         * sched-int.h (free_global_sched_pressure_data): Declare.
32970         * sched-rgn.c (nr_regions_initial): New static global.
32971         (haifa_find_rgns): Initialize it.
32972         (schedule_region): Disable sched-pressure for the newly
32973         generated regions.
32974
32975 2014-02-17  Richard Biener  <rguenther@suse.de>
32976
32977         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
32978         release SSA defs of pattern stmts.
32979
32980 2014-02-17  Richard Biener  <rguenther@suse.de>
32981
32982         * tree-inline.c (expand_call_inline): Release the virtual
32983         operand defined by the call we are about to inline.
32984
32985 2014-02-17  Richard Biener  <rguenther@suse.de>
32986
32987         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
32988
32989 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
32990             Ilya Tocar  <ilya.tocar@intel.com>
32991
32992         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
32993         arguments order in builtin.
32994         (_mm512_permutexvar_epi64): Ditto.
32995         (_mm512_mask_permutexvar_epi64): Ditto
32996         (_mm512_maskz_permutexvar_epi32): Ditto
32997         (_mm512_permutexvar_epi32): Ditto
32998         (_mm512_mask_permutexvar_epi32): Ditto
32999
33000 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33001
33002         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
33003         (p8_vmrgow): Likewise.
33004
33005 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33006
33007         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
33008         endian targets.
33009
33010 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
33011
33012         PR target/60203
33013         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
33014         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
33015         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
33016         using direct move instructions on ISA 2.07.  Also adjust
33017         instruction length for 64-bit.
33018         (mov<mode>_64bit, TFmode/TDmode): Likewise.
33019         (mov<mode>_32bit, TFmode/TDmode): Likewise.
33020
33021 2014-02-15  Alan Modra  <amodra@gmail.com>
33022
33023         PR target/58675
33024         PR target/57935
33025         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
33026         find_replacement on parts of insn rtl that might be reloaded.
33027
33028 2014-02-15  Richard Biener  <rguenther@suse.de>
33029
33030         PR tree-optimization/60183
33031         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
33032         (tree_ssa_phiprop): Calculate and free post-dominators.
33033
33034 2014-02-14  Jeff Law  <law@redhat.com>
33035
33036         PR rtl-optimization/60131
33037         * ree.c (get_extended_src_reg): New function.
33038         (combine_reaching_defs): Use it rather than assuming location of REG.
33039         (find_and_remove_re): Verify first operand of extension is
33040         a REG before adding the insns to the copy list.
33041
33042 2014-02-14  Roland McGrath  <mcgrathr@google.com>
33043
33044         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
33045         * configure: Regenerated.
33046         * config.in: Regenerated.
33047         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
33048         instead of ASM_SHORT.
33049
33050 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
33051             Richard Earnshaw  <rearnsha@arm.com>
33052
33053         PR rtl-optimization/59535
33054         * lra-constraints.c (process_alt_operands): Encourage alternative
33055         when unassigned pseudo class is superset of the alternative class.
33056         (inherit_reload_reg): Don't inherit when optimizing for code size.
33057         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
33058         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
33059         modes not less than 4 for Thumb1.
33060
33061 2014-02-14  Kyle McMartin  <kyle@redhat.com>
33062
33063         PR pch/60010
33064         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
33065
33066 2014-02-14  Richard Biener  <rguenther@suse.de>
33067
33068         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
33069         (get_frame_arg): Drop the assert with langhook types_compatible_p.
33070         Do not strip INDIRECT_REFs.
33071
33072 2014-02-14  Richard Biener  <rguenther@suse.de>
33073
33074         PR lto/60179
33075         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
33076         DECL_FUNCTION_SPECIFIC_TARGET.
33077         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
33078         * tree-streamer-out.c (pack_ts_target_option): Remove.
33079         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
33080         (write_ts_function_decl_tree_pointers): Do not stream
33081         DECL_FUNCTION_SPECIFIC_TARGET.
33082         * tree-streamer-in.c (unpack_ts_target_option): Remove.
33083         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
33084         (lto_input_ts_function_decl_tree_pointers): Do not stream
33085         DECL_FUNCTION_SPECIFIC_TARGET.
33086
33087 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
33088
33089         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
33090         (get_initial_def_for_induction, vectorizable_induction): Ignore
33091         debug stmts when looking for exit_phi.
33092         (vectorizable_live_operation): Fix up condition.
33093
33094 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
33095
33096         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
33097         nreverse() because it changes the content of original tree list.
33098
33099 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
33100
33101         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
33102         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
33103
33104 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
33105
33106         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
33107         GNU coding standards.
33108
33109 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
33110
33111         PR debug/60152
33112         * dwarf2out.c (gen_subprogram_die): Don't call
33113         add_calling_convention_attribute if subr_die is old_die.
33114
33115 2014-02-13  Sharad Singhai  <singhai@google.com>
33116
33117         * doc/optinfo.texi: Fix order of nodes.
33118
33119 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
33120
33121         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
33122         operands[2], not operands[3].
33123
33124 2014-02-13  Richard Biener  <rguenther@suse.de>
33125
33126         PR bootstrap/59878
33127         * doc/install.texi (ISL): Update recommended version to 0.12.2,
33128         mention the possibility of an in-tree build.
33129         (CLooG): Update recommended version to 0.18.1, mention the
33130         possibility of an in-tree build and clarify that the ISL
33131         bundled with CLooG does not work.
33132
33133 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
33134
33135         PR target/43546
33136         * expr.c (compress_float_constant): If x is a hard register,
33137         extend into a pseudo and then move to x.
33138
33139 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
33140
33141         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
33142         caused by bad second argument to warning_at() with -mhotpatch and
33143         nested functions (e.g. with gfortran).
33144
33145 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
33146
33147         * opts.c (option_name): Remove "enabled by default" rider.
33148
33149 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
33150
33151         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
33152
33153 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
33154             Uros Bizjak  <ubizjak@gmail.com>
33155
33156         PR target/60151
33157         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
33158         * configure: Regenerated.
33159
33160 2014-02-12  Richard Biener  <rguenther@suse.de>
33161
33162         * vec.c (vec_prefix::calculate_allocation): Move as
33163         inline variant to vec.h.
33164         (vec_prefix::calculate_allocation_1): New out-of-line version.
33165         * vec.h (vec_prefix::calculate_allocation_1): Declare.
33166         (vec_prefix::m_has_auto_buf): Rename to ...
33167         (vec_prefix::m_using_auto_storage): ... this.
33168         (vec_prefix::calculate_allocation): Inline the easy cases
33169         and dispatch to calculate_allocation_1 which doesn't need the
33170         prefix address.
33171         (va_heap::reserve): Use gcc_checking_assert.
33172         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
33173         m_using_auto_storage.
33174         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
33175         member and adjust.
33176         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
33177         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
33178         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
33179
33180 2014-02-12  Richard Biener  <rguenther@suse.de>
33181
33182         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
33183         when we found a dependence.
33184
33185 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
33186
33187         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
33188         common code...
33189         (maybe_fold_stmt): ... into this new function.
33190         * omp-low.c (lower_omp): Update comment.
33191
33192         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
33193         last use.
33194
33195         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
33196         dereference.
33197
33198 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
33199
33200         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
33201         identifiers in comments.
33202         (cortexa53_extra_costs): Likewise.
33203         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
33204         (cortexa7_extra_costs): Likewise.
33205         (cortexa12_extra_costs): Likewise.
33206         (cortexa15_extra_costs): Likewise.
33207         (v7m_extra_costs): Likewise.
33208
33209 2014-02-12  Richard Biener  <rguenther@suse.de>
33210
33211         PR middle-end/60092
33212         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
33213         of posix_memalign being successful.
33214         (lower_stmt): Restrict lowering of posix_memalign to when
33215         -ftree-bit-ccp is enabled.
33216
33217 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
33218
33219         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
33220         arg_loc.
33221         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
33222
33223 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
33224
33225         PR rtl-optimization/60116
33226         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
33227         other_insn once the combination has been validated.
33228
33229 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
33230
33231         PR lto/59468
33232         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
33233         and wrapper.
33234         * ipa-devirt.c: Include demangle.h
33235         (odr_violation_reported): New static variable.
33236         (add_type_duplicate): Update odr_violations.
33237         (maybe_record_node): Add completep parameter; update it.
33238         (record_target_from_binfo): Add COMPLETEP parameter;
33239         update it as needed.
33240         (possible_polymorphic_call_targets_1): Likewise.
33241         (struct polymorphic_call_target_d): Add nonconstruction_targets;
33242         rename FINAL to COMPLETE.
33243         (record_targets_from_bases): Sanity check we found the binfo;
33244         fix COMPLETEP updating.
33245         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
33246         parameter, fix computing of COMPLETEP.
33247         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
33248         at LTO time do demangling.
33249         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
33250         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
33251         parameter.
33252         (gimple_get_virt_method_for_binfo): Likewise.
33253         * gimple-fold.h (gimple_get_virt_method_for_binfo,
33254         gimple_get_virt_method_for_vtable): Update prototypes.
33255
33256 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
33257
33258         PR target/49008
33259         * genautomata.c (add_presence_absence): Fix typo with
33260         {final_}presence_list.
33261
33262 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
33263
33264         PR target/60137
33265         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
33266         for VSX/Altivec vectors that land in GPR registers.
33267
33268 2014-02-11  Richard Henderson  <rth@redhat.com>
33269             Jakub Jelinek  <jakub@redhat.com>
33270
33271         PR debug/59776
33272         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
33273         around drhs if type conversion to lacc->type is not useless.
33274
33275 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33276
33277         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
33278         tuning struct.
33279         (cortex-a57.cortex-a53): Likewise.
33280         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
33281
33282 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33283
33284         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
33285         arm_restrict_it.
33286
33287 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
33288
33289         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
33290         add_options_for_arm_vfp3.
33291
33292 2014-02-11  Jeff Law  <law@redhat.com>
33293
33294         PR middle-end/54041
33295         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
33296         object with an undesirable mode.
33297
33298 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33299
33300         PR libgomp/60107
33301         * config/i386/sol2-9.h: New file.
33302         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
33303         *-*-solaris2.9*): Use it.
33304
33305 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
33306
33307         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
33308         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
33309
33310 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
33311
33312         * config/microblaze/microblaze.c: Extend mcpu version format
33313
33314 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
33315
33316         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
33317
33318 2014-02-10  Richard Henderson  <rth@redhat.com>
33319
33320         PR target/59927
33321         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
33322         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
33323         ms-abi vs -mno-accumulate-outgoing-args.
33324         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
33325         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
33326         respect to ms-abi.
33327
33328 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33329
33330         PR middle-end/60080
33331         * cfgexpand.c (expand_asm_operands): Attach source location to
33332         ASM_INPUT rtx objects.
33333         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
33334
33335 2014-02-10  Nick Clifton  <nickc@redhat.com>
33336
33337         * config/mn10300/mn10300.c (popcount): New function.
33338         (mn10300_expand_prologue): Include saved registers in stack usage
33339         count.
33340
33341 2014-02-10  Jeff Law  <law@redhat.com>
33342
33343         PR middle-end/52306
33344         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
33345         when changing the SET_DEST of a prior insn to avoid an input reload.
33346
33347 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
33348
33349         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
33350         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
33351         -mcall-openbsd, or -mcall-linux.
33352         (CC1_ENDIAN_BIG_SPEC): Remove.
33353         (CC1_ENDIAN_LITTLE_SPEC): Remove.
33354         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
33355         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
33356         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
33357         and %cc1_endian_default.
33358         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
33359
33360 2014-02-10  Richard Biener  <rguenther@suse.de>
33361
33362         PR tree-optimization/60115
33363         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
33364         MEM_REF handling.  Properly verify that the accesses are not
33365         out of the objects bound.
33366
33367 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33368
33369         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
33370         coretex to cortex.
33371
33372 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
33373
33374         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
33375         proper constants and fix formatting.
33376         (possible_polymorphic_call_targets): Fix formatting.
33377
33378 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
33379             Ilya Tocar  <ilya.tocar@intel.com>
33380
33381         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
33382         (_mm512_loadu_epi32): Renamed into...
33383         (_mm512_loadu_si512): This.
33384         (_mm512_storeu_epi32): Renamed into...
33385         (_mm512_storeu_si512): This.
33386         (_mm512_maskz_ceil_ps): Removed.
33387         (_mm512_maskz_ceil_pd): Ditto.
33388         (_mm512_maskz_floor_ps): Ditto.
33389         (_mm512_maskz_floor_pd): Ditto.
33390         (_mm512_floor_round_ps): Ditto.
33391         (_mm512_floor_round_pd): Ditto.
33392         (_mm512_ceil_round_ps): Ditto.
33393         (_mm512_ceil_round_pd): Ditto.
33394         (_mm512_mask_floor_round_ps): Ditto.
33395         (_mm512_mask_floor_round_pd): Ditto.
33396         (_mm512_mask_ceil_round_ps): Ditto.
33397         (_mm512_mask_ceil_round_pd): Ditto.
33398         (_mm512_maskz_floor_round_ps): Ditto.
33399         (_mm512_maskz_floor_round_pd): Ditto.
33400         (_mm512_maskz_ceil_round_ps): Ditto.
33401         (_mm512_maskz_ceil_round_pd): Ditto.
33402         (_mm512_expand_pd): Ditto.
33403         (_mm512_expand_ps): Ditto.
33404         * config/i386/i386.c (ix86_builtins): Remove
33405         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
33406         (bdesc_args): Ditto.
33407         * config/i386/predicates.md (const1256_operand): New.
33408         (const_1_to_2_operand): Ditto.
33409         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
33410         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
33411         (*avx512pf_gatherpf<mode>sf): Ditto.
33412         (avx512pf_gatherpf<mode>df): Ditto.
33413         (*avx512pf_gatherpf<mode>df_mask): Ditto.
33414         (*avx512pf_gatherpf<mode>df): Ditto.
33415         (avx512pf_scatterpf<mode>sf): Ditto.
33416         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
33417         (*avx512pf_scatterpf<mode>sf): Ditto.
33418         (avx512pf_scatterpf<mode>df): Ditto.
33419         (*avx512pf_scatterpf<mode>df_mask): Ditto.
33420         (*avx512pf_scatterpf<mode>df): Ditto.
33421         (avx512f_expand<mode>): Removed.
33422         (<shift_insn><mode>3<mask_name>): Change predicate type.
33423
33424 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
33425
33426         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
33427         not at the end of datarefs vector use ordered_remove to avoid
33428         reordering datarefs vector.
33429
33430         PR c/59984
33431         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
33432         mark local addressable non-static vars as GOVD_PRIVATE
33433         instead of GOVD_LOCAL.
33434         * omp-low.c (lower_omp_for): Move gimple_bind_vars
33435         and BLOCK_VARS of gimple_bind_block to new_stmt rather
33436         than copying them.
33437
33438         PR middle-end/60092
33439         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
33440         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
33441         assume_aligned or alloc_align attributes.
33442         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
33443         arguments.  Handle also assume_aligned and alloc_align attributes.
33444         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
33445         calls to functions with assume_aligned or alloc_align attributes.
33446         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
33447
33448 2014-02-08  Terry Guo  <terry.guo@arm.com>
33449
33450         * doc/invoke.texi: Document ARM -march=armv7e-m.
33451
33452 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
33453
33454         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
33455         flag on __cilkrts_rethrow builtin.
33456
33457         PR ipa/60026
33458         * ipa-cp.c (determine_versionability): Fail at -O0
33459         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
33460         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
33461
33462         Revert:
33463         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
33464
33465         PR ipa/60026
33466         * tree-inline.c (copy_forbidden): Fail for
33467         __attribute__((optimize (0))) functions.
33468
33469 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
33470
33471         * varpool.c: Include pointer-set.h.
33472         (varpool_remove_unreferenced_decls): Variables in other partitions
33473         will not be output; be however careful to not lose information
33474         about partitioning.
33475
33476 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
33477
33478         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
33479         lookup in the vtable constructor.
33480
33481 2014-02-07  Jeff Law  <law@redhat.com>
33482
33483         PR target/40977
33484         * config/m68k/m68k.md (ashldi_extsi): Turn into a
33485         define_insn_and_split.
33486
33487         * ipa-inline.c (inline_small_functions): Fix typos.
33488
33489 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
33490
33491         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
33492         (s390_can_use_return_insn): Declare.
33493         * config/s390/s390.h (EPILOGUE_USES): Define.
33494         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
33495         instructions.
33496         (s390_chunkify_start): Handle return JUMP_LABELs.
33497         (s390_early_mach): Emit a main_pool instruction on the entry edge.
33498         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
33499         (s390_can_use_return_insn): New functions.
33500         (s390_fix_long_loop_prediction): Handle conditional returns.
33501         (TARGET_SET_UP_BY_PROLOGUE): Define.
33502         * config/s390/s390.md (ANY_RETURN): New code iterator.
33503         (*creturn, *csimple_return, return, simple_return): New patterns.
33504
33505 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
33506
33507         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
33508         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
33509         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
33510         REG_CFA_RESTORE list when deciding not to restore a register.
33511
33512 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
33513
33514         * config/s390/s390.c: Include tree-pass.h and context.h.
33515         (s390_early_mach): New function, split out from...
33516         (s390_emit_prologue): ...here.
33517         (pass_data_s390_early_mach): New pass structure.
33518         (pass_s390_early_mach): New class.
33519         (s390_option_override): Create and register early_mach pass.
33520         Move to end of file.
33521
33522 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
33523
33524         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
33525         to match for the exit block.
33526
33527 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33528
33529         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
33530         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
33531         Reject misaligned operands.
33532
33533 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33534
33535         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
33536
33537 2014-02-07  Richard Biener  <rguenther@suse.de>
33538
33539         PR middle-end/60092
33540         * gimple-low.c (lower_builtin_posix_memalign): New function.
33541         (lower_stmt): Call it to lower posix_memalign in a way
33542         to make alignment info accessible.
33543
33544 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
33545
33546         PR c++/60082
33547         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
33548         __builtin_setjmp_receiver.
33549
33550 2014-02-07  Richard Biener  <rguenther@suse.de>
33551
33552         PR middle-end/60092
33553         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
33554         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
33555         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
33556         Handle BUILT_IN_POSIX_MEMALIGN.
33557         (find_func_clobbers): Likewise.
33558         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
33559         (call_may_clobber_ref_p_1): Likewise.
33560
33561 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
33562
33563         PR ipa/59918
33564         * ipa-devirt.c (record_target_from_binfo): Remove overactive
33565         sanity check.
33566
33567 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
33568
33569         PR ipa/59469
33570         * lto-cgraph.c (lto_output_node): Use
33571         symtab_get_symbol_partitioning_class.
33572         (lto_output_varpool_node): likewise.
33573         (symtab_get_symbol_partitioning_class): Move here from
33574         lto/lto-partition.c
33575         * cgraph.h (symbol_partitioning_class): Likewise.
33576         (symtab_get_symbol_partitioning_class): Declare.
33577
33578 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
33579
33580         * ggc.h (ggc_internal_cleared_alloc): New macro.
33581         * vec.h (vec_safe_copy): Handle memory stats.
33582         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
33583         * target-globals.c (save_target_globals): Likewise.
33584
33585 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
33586
33587         PR target/60077
33588         * expr.c (emit_move_resolve_push): Export; be bit more selective
33589         on when to clear alias set.
33590         * expr.h (emit_move_resolve_push): Declare.
33591         * function.h (struct function): Add tail_call_marked.
33592         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
33593         * config/i386/i386-protos.h (ix86_expand_push): Remove.
33594         * config/i386/i386.md (TImode move expander): De not call
33595         ix86_expand_push.
33596         (FP push expanders): Preserve memory attributes.
33597         * config/i386/sse.md (push<mode>1): Remove.
33598         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
33599         (ix86_expand_push): Remove.
33600         * config/i386/mmx.md (push<mode>1): Remove.
33601
33602 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
33603
33604         PR rtl-optimization/60030
33605         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
33606         lopart with paradoxical subreg before shifting it up by hprec.
33607
33608 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33609
33610         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
33611         Remove extra newline at end of file.
33612         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
33613         (arm_issue_rate): Handle cortexa57.
33614         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
33615         (cortex-a57.cortex-a53): Likewise.
33616
33617 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
33618
33619         PR target/59575
33620         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
33621         don't record in REG_FRAME_RELATED_EXPR registers not set in that
33622         bitmask.
33623         (arm_expand_prologue): Adjust all callers.
33624         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
33625         info, registers also at the lowest numbered registers side.  Use
33626         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
33627         XEXP.
33628
33629         PR debug/59992
33630         * var-tracking.c (adjust_mems): Before adding a SET to
33631         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
33632
33633 2014-02-06  Alan Modra  <amodra@gmail.com>
33634
33635         PR target/60032
33636         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
33637         change SDmode to DDmode when lra_in_progress.
33638
33639 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
33640
33641         PR middle-end/59150
33642         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
33643         free_data_ref on the dr first, and before goto again also set dr
33644         to the next dr.  For simd_lane_access, free old datarefs[i] before
33645         overwriting it.  For get_vectype_for_scalar_type failure, don't
33646         free_data_ref if simd_lane_access.
33647
33648         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
33649
33650         PR target/60062
33651         * tree.h (opts_for_fn): New inline function.
33652         (opt_for_fn): Define.
33653         * config/i386/i386.c (ix86_function_regparm): Use
33654         opt_for_fn (decl, optimize) instead of optimize.
33655
33656 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
33657
33658         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
33659         for SYMBOL_REF in large memory model.
33660
33661 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33662
33663         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
33664         and crypto support.
33665         (cortex-a57): Likewise.
33666         (cortex-a57.cortex-a53): Likewise.
33667
33668 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
33669             Kugan Vivekanandarajah  <kuganv@linaro.org>
33670
33671         * config/arm/arm.c (arm_vector_alignment_reachable): Check
33672         unaligned_access.
33673         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
33674
33675 2014-02-06  Richard Biener  <rguenther@suse.de>
33676
33677         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
33678         set_loop_copy and initialize_original_copy_tables.
33679
33680 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
33681
33682         * config/aarch64/aarch64-simd.md
33683         (aarch64_ashr_simddi): Change QI to SI.
33684
33685 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
33686             Jakub Jelinek  <jakub@redhat.com>
33687
33688         PR middle-end/60013
33689         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
33690         of the dataflow.
33691
33692 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33693
33694         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
33695         CODE_FOR_altivec_vpku[hw]um to
33696         CODE_FOR_altivec_vpku[hw]um_direct.
33697         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
33698         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
33699         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
33700         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
33701
33702 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33703
33704         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
33705         generation for -maltivec=be.
33706         (altivec_vsumsws): Simplify redundant test.
33707
33708 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33709
33710         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
33711         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
33712         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
33713         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
33714         gen_altivec_vpkuwum.
33715         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
33716         BYTES_BIG_ENDIAN.
33717         (altivec_vpks<VI_char>ss): Likewise.
33718         (altivec_vpks<VI_char>us): Likewise.
33719         (altivec_vpku<VI_char>us): Likewise.
33720         (altivec_vpku<VI_char>um): Likewise.
33721         (altivec_vpku<VI_char>um_direct): New (copy of
33722         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
33723         internal use).
33724         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
33725         target is little endian and -maltivec=be is not specified.
33726         (*altivec_vupkhs<VU_char>_direct): New (copy of
33727         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
33728         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
33729         target is little endian and -maltivec=be is not specified.
33730         (*altivec_vupkls<VU_char>_direct): New (copy of
33731         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
33732         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
33733         little endian and -maltivec=be is not specified.
33734         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
33735         little endian and -maltivec=be is not specified.
33736
33737 2014-02-05  Richard Henderson  <rth@redhat.com>
33738
33739         PR debug/52727
33740         * combine-stack-adj.c: Revert r206943.
33741         * sched-int.h (struct deps_desc): Add last_args_size.
33742         * sched-deps.c (init_deps): Initialize it.
33743         (sched_analyze_insn): Add OUTPUT dependencies between insns that
33744         contain REG_ARGS_SIZE notes.
33745
33746 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
33747
33748         * lto-cgraph.c (asm_nodes_output): Make global.
33749         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
33750         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
33751         (driver_handle_option): Handle OPT_fwpa.
33752
33753 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
33754
33755         PR ipa/59947
33756         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
33757         a comment typo and formatting issue.  If odr_hash hasn't been
33758         created, return vNULL and set *completep to false.
33759
33760         PR middle-end/57499
33761         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
33762         bb with no successors.
33763
33764 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
33765
33766         PR target/59718
33767         * doc/invoke.texi (-march): Clarify documentation for ARM.
33768         (-mtune): Likewise.
33769         (-mcpu): Likewise.
33770
33771 2014-02-05  Richard Biener  <rguenther@suse.de>
33772
33773         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
33774         when not vectorizing because of too many alias checks.
33775         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
33776         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
33777
33778 2014-02-05  Nick Clifton  <nickc@redhat.com>
33779
33780         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
33781         accept extended registers in any mode when compiling for the MN10300.
33782
33783 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
33784
33785         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
33786         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
33787         sanitization attributes.
33788         (can_inline_edge_p): Likewise.
33789         (sanitize_attrs_match_for_inline_p): New function.
33790
33791 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
33792
33793         * ipa-prop.c (detect_type_change): Shor circuit testing of
33794         type changes on THIS pointer.
33795
33796 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
33797
33798         PR target/59777
33799         * config/pa/pa.c (legitimize_tls_address): Return original address
33800         if not passed a SYMBOL_REF rtx.
33801         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
33802         addresses.
33803         (pa_emit_move_sequence): Simplify TLS source operands.
33804         (pa_legitimate_constant_p): Reject all TLS constants.
33805         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
33806         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
33807
33808 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
33809
33810         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
33811         groups when we know they are controlled by LTO.
33812         * varasm.c (default_binds_local_p_1): If object is in other partition,
33813         it will be resolved locally.
33814
33815 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33816
33817         * config/host-linux.c (linux_gt_pch_use_address): Don't
33818         use SSIZE_MAX because it is not always defined.
33819
33820 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
33821
33822         PR bootstrap/59913
33823         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
33824         threshold for pseudo splitting.
33825         (update_ebb_live_info): Process call argument hard registers and
33826         hard registers from insn definition too.
33827         (max_small_class_regs_num): New constant.
33828         (inherit_in_ebb): Update live hard regs through EBBs.  Update
33829         reloads_num only for small register classes.  Don't split for
33830         outputs of jumps.
33831
33832 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
33833
33834         PR ipa/60058
33835         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
33836         is non-null.
33837
33838 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
33839
33840         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
33841         visibility is safe.
33842
33843 2014-02-04  Marek Polacek  <polacek@redhat.com>
33844
33845         * gdbinit.in (pel): Define.
33846
33847 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33848
33849         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
33850         behavior.
33851
33852 2014-02-04  Richard Biener  <rguenther@suse.de>
33853
33854         PR lto/59723
33855         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
33856         in function context local.
33857         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
33858         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
33859         similar to LTO_imported_decl_ref.
33860
33861 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
33862
33863         PR tree-optimization/60002
33864         * cgraphclones.c (build_function_decl_skip_args): Clear
33865         DECL_LANG_SPECIFIC.
33866
33867         PR tree-optimization/60023
33868         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
33869         false to gsi_replace.
33870         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
33871         has been in some EH region and vec_stmt could throw, add
33872         vec_stmt into the same EH region.
33873         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
33874         has no lhs, ignore it.
33875         * internal-fn.c (expand_MASK_LOAD): Likewise.
33876
33877         PR ipa/60026
33878         * tree-inline.c (copy_forbidden): Fail for
33879         __attribute__((optimize (0))) functions.
33880
33881         PR other/58712
33882         * omp-low.c (simd_clone_struct_copy): If from->inbranch
33883         is set, copy one less argument.
33884         (expand_simd_clones): Don't subtract clone_info->inbranch
33885         from simd_clone_struct_alloc argument.
33886
33887         PR rtl-optimization/57915
33888         * recog.c (simplify_while_replacing): If all unary/binary/relational
33889         operation arguments are constant, attempt to simplify those.
33890
33891         PR middle-end/59261
33892         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
33893         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
33894
33895 2014-02-04  Richard Biener  <rguenther@suse.de>
33896
33897         PR tree-optimization/60012
33898         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
33899         TBAA disambiguation to all DDRs.
33900
33901 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33902
33903         PR target/59788
33904         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
33905         (LINK_SPEC): Use it for -shared, -shared-libgcc.
33906
33907 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
33908
33909         PR ipa/59882
33910         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
33911
33912 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
33913
33914         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
33915         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
33916
33917 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
33918
33919         PR ipa/59831
33920         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
33921         to figure out targets of polymorphic calls with known decl.
33922         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33923         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
33924         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
33925         (get_polymorphic_call_info): ... here.
33926         (get_polymorphic_call_info_from_invariant): New function.
33927
33928 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
33929
33930         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
33931         lookup via vtable pointer; check for type consistency
33932         and turn inconsitent facts into UNREACHABLE.
33933         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33934         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
33935         type inconsistent querries; return UNREACHABLE instead.
33936
33937 2014-02-03  Richard Henderson  <rth@twiddle.net>
33938
33939         PR tree-opt/59924
33940         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
33941         already processed this node.
33942         (normalize_one_pred_1): Pass along mark_set.
33943         (normalize_one_pred): Create and destroy a pointer_set_t.
33944         (normalize_one_pred_chain): Likewise.
33945
33946 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
33947
33948         PR gcov-profile/58602
33949         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
33950
33951 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
33952
33953         PR ipa/59831
33954         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
33955         -fno-devirtualize; try to devirtualize by the knowledge of
33956         virtual table pointer given by aggregate propagation.
33957         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33958         (ipa_print_node_jump_functions): Dump also offset that
33959         is relevant for polymorphic calls.
33960         (determine_known_aggregate_parts): Add arg_type parameter; use it
33961         instead of determining the type from pointer type.
33962         (ipa_compute_jump_functions_for_edge): Update call of
33963         determine_known_aggregate_parts.
33964         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
33965         (gimple_get_virt_method_for_binfo): ... here; simplify using
33966         vtable_pointer_value_to_vtable.
33967         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
33968         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
33969         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
33970         (vtable_pointer_value_to_vtable): Break out from ...; handle also
33971         POINTER_PLUS_EXPR.
33972         (vtable_pointer_value_to_binfo): ... here.
33973         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
33974
33975 2014-02-03  Teresa Johnson  <tejohnson@google.com>
33976
33977         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
33978         redef of outer loop index variable.
33979
33980 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
33981
33982         PR c++/53017
33983         PR c++/59211
33984         * doc/extend.texi (Function Attributes): Typo.
33985
33986 2014-02-03  Cong Hou  <congh@google.com>
33987
33988         PR tree-optimization/60000
33989         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
33990         if the vectorized statement is a store.  A store statement can only
33991         appear at the end of pattern statements.
33992
33993 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
33994
33995         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
33996         (ix86_option_override_internal): Default long double to 64-bit for
33997         32-bit Bionic and to 128-bit for 64-bit Bionic.
33998
33999         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
34000         TARGET_LONG_DOUBLE_128 is true.
34001         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
34002
34003         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
34004         (mlong-double-64): Negate -mlong-double-128.
34005         (mlong-double-128): New option.
34006
34007         * config/i386/i386-c.c (ix86_target_macros): Define
34008         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
34009
34010         * doc/invoke.texi: Document -mlong-double-128.
34011
34012 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
34013
34014         PR rtl-optimization/60024
34015         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
34016
34017 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
34018
34019         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
34020
34021 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
34022
34023         PR rtl-optimization/57662
34024         * sel-sched.c (code_motion_path_driver): Do not mark already not
34025         existing blocks in the visiting bitmap.
34026
34027 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
34028
34029         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
34030         on the insn being emitted.
34031
34032 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
34033             Will Deacon  <will.deacon@arm.com>
34034
34035         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
34036
34037 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34038
34039         * config/arm/arm-tables.opt: Regenerate.
34040
34041 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34042
34043         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
34044         for vector types other than V16QImode.
34045         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
34046         define_expand, and call altivec_expand_vec_perm_le when producing
34047         code with little endian element order.
34048         (*altivec_vperm_<mode>_internal): New insn having previous
34049         behavior of altivec_vperm_<mode>.
34050         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
34051         altivec_expand_vec_perm_le when producing code with little endian
34052         element order.
34053         (*altivec_vperm_<mode>_uns_internal): New insn having previous
34054         behavior of altivec_vperm_<mode>_uns.
34055
34056 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34057
34058         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
34059         (altivec_vsumsws): Add handling for -maltivec=be with a little
34060         endian target.
34061         (altivec_vsumsws_direct): New.
34062         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
34063         gen_altivec_vsumsws.
34064
34065 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
34066
34067         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
34068         vtable_pointer_value_to_binfo): New functions.
34069         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
34070         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
34071
34072 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
34073
34074         * config/nios2/nios2.md (load_got_register): Initialize GOT
34075         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
34076         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
34077
34078 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
34079
34080         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
34081         preserverd by passthrough, do not propagate the type.
34082
34083 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
34084
34085         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
34086         (mips_atomic_assign_expand_fenv): New function.
34087         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
34088
34089 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
34090
34091         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
34092         (__builtin_mips_set_fcsr): Likewise.
34093         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
34094         MIPS_USI_FTYPE_VOID.
34095         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
34096         (mips16_expand_set_fcsr): Likewise.
34097         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
34098         (mips16_set_fcsr_stub): Likewise.
34099         (mips16_get_fcsr_one_only_stub): New class.
34100         (mips16_set_fcsr_one_only_stub): Likewise.
34101         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
34102         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
34103         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
34104         (hard_float): New availability predicate.
34105         (mips_builtins): Add get_fcsr and set_fcsr.
34106         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
34107         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
34108         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
34109         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
34110         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
34111         patterns.
34112
34113 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
34114
34115         * config/mips/mips.c (mips_one_only_stub): New class.
34116         (mips_need_mips16_rdhwr_p): Replace with...
34117         (mips16_rdhwr_stub): ...this new variable.
34118         (mips16_stub_call_address): New function.
34119         (mips16_rdhwr_one_only_stub): New class.
34120         (mips_expand_thread_pointer): Use mips16_stub_call_address.
34121         (mips_output_mips16_rdhwr): Delete.
34122         (mips_finish_stub): New function.
34123         (mips_code_end): Use it to handle rdhwr stubs.
34124
34125 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
34126
34127         PR target/60017
34128         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
34129         when calculating size of integer atomic types.
34130
34131 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
34132
34133         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
34134
34135 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
34136
34137         PR tree-optimization/60003
34138         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
34139         * profile.c (branch_prob): Use gimple_call_builtin_p
34140         to check for BUILT_IN_SETJMP_RECEIVER.
34141         * tree-inline.c (copy_bb): Call notice_special_calls.
34142
34143 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
34144
34145         PR bootstrap/59985
34146         * lra-constraints.c (process_alt_operands): Update reload_sum only
34147         on the first pass.
34148
34149 2014-01-31  Richard Henderson  <rth@redhat.com>
34150
34151         PR middle-end/60004
34152         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
34153         until after else_eh is processed.
34154
34155 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
34156
34157         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
34158         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
34159         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
34160         in smmintrin.h, remove them.
34161         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
34162         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
34163         * config/i386/i386.md (ROUND_SAE): Fix value.
34164         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
34165         (const48_operand): New.
34166         * config/i386/subst.md (round), (round_expand): Use
34167         const_4_or_8_to_11_operand.
34168         (round_saeonly), (round_saeonly_expand): Use const48_operand.
34169
34170 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
34171
34172         * config/i386/constraints.md (Yk): Swap meaning with k.
34173         * config/i386/i386.md (movhi_internal): Change Yk to k.
34174         (movqi_internal): Ditto.
34175         (*k<logic><mode>): Ditto.
34176         (*andhi_1): Ditto.
34177         (*andqi_1): Ditto.
34178         (kandn<mode>): Ditto.
34179         (*<code>hi_1): Ditto.
34180         (*<code>qi_1): Ditto.
34181         (kxnor<mode>): Ditto.
34182         (kortestzhi): Ditto.
34183         (kortestchi): Ditto.
34184         (kunpckhi): Ditto.
34185         (*one_cmplhi2_1): Ditto.
34186         (*one_cmplqi2_1): Ditto.
34187         * config/i386/sse.md (): Change k to Yk.
34188         (avx512f_load<mode>_mask): Ditto.
34189         (avx512f_blendm<mode>): Ditto.
34190         (avx512f_store<mode>_mask): Ditto.
34191         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
34192         (avx512f_storedqu<mode>_mask): Ditto.
34193         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
34194         Ditto.
34195         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
34196         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
34197         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
34198         (avx512f_maskcmp<mode>3): Ditto.
34199         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
34200         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
34201         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
34202         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
34203         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
34204         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
34205         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
34206         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
34207         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
34208         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
34209         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
34210         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
34211         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
34212         (vec_extract_lo_<mode>_maskm): Ditto.
34213         (vec_extract_hi_<mode>_maskm): Ditto.
34214         (avx512f_vternlog<mode>_mask): Ditto.
34215         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
34216         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
34217         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
34218         (avx512f_<code>v8div16qi2_mask): Ditto.
34219         (avx512f_<code>v8div16qi2_mask_store): Ditto.
34220         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
34221         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
34222         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
34223         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
34224         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
34225         (*avx512pf_gatherpf<mode>df_mask): Ditto.
34226         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
34227         (*avx512pf_scatterpf<mode>df_mask): Ditto.
34228         (avx512cd_maskb_vec_dupv8di): Ditto.
34229         (avx512cd_maskw_vec_dupv16si): Ditto.
34230         (avx512f_vpermi2var<mode>3_maskz): Ditto.
34231         (avx512f_vpermi2var<mode>3_mask): Ditto.
34232         (avx512f_vpermi2var<mode>3_mask): Ditto.
34233         (avx512f_vpermt2var<mode>3_maskz): Ditto.
34234         (*avx512f_gathersi<mode>): Ditto.
34235         (*avx512f_gathersi<mode>_2): Ditto.
34236         (*avx512f_gatherdi<mode>): Ditto.
34237         (*avx512f_gatherdi<mode>_2): Ditto.
34238         (*avx512f_scattersi<mode>): Ditto.
34239         (*avx512f_scatterdi<mode>): Ditto.
34240         (avx512f_compress<mode>_mask): Ditto.
34241         (avx512f_compressstore<mode>_mask): Ditto.
34242         (avx512f_expand<mode>_mask): Ditto.
34243         * config/i386/subst.md (mask): Change k to Yk.
34244         (mask_scalar_merge): Ditto.
34245         (sd): Ditto.
34246
34247 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
34248
34249         * doc/extend.texi (Vector Extensions): Document ?: in C++.
34250
34251 2014-01-31  Richard Biener  <rguenther@suse.de>
34252
34253         PR middle-end/59990
34254         * builtins.c (fold_builtin_memory_op): Make sure to not
34255         use a floating-point mode or a boolean or enumeral type for
34256         the copy operation.
34257
34258 2014-01-30  DJ Delorie  <dj@redhat.com>
34259
34260         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
34261         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
34262         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
34263         whenever main() has an epilogue.
34264
34265 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34266
34267         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
34268         unused variable "field".
34269         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
34270         (vsx_mergeh_<mode>): Likewise.
34271         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
34272         (altivec_vmrghh): Likewise.
34273         (altivec_vmrghw): Likewise.
34274         (altivec_vmrglb): Likewise.
34275         (altivec_vmrglh): Likewise.
34276         (altivec_vmrglw): Likewise.
34277         (altivec_vspltb): Add missing uses.
34278         (altivec_vsplth): Likewise.
34279         (altivec_vspltw): Likewise.
34280         (altivec_vspltsf): Likewise.
34281
34282 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
34283
34284         PR target/59923
34285         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
34286         frame related instructions.
34287
34288 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
34289
34290         PR rtl-optimization/59959
34291         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
34292         any reload of register whose subreg is invalid.
34293
34294 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
34295
34296         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
34297         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
34298         Add missing return type - void.
34299
34300 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34301
34302         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
34303         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
34304         remove element index adjustment for endian (now handled in vsx.md
34305         and altivec.md).
34306         (altivec_expand_vec_perm_const): Use
34307         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
34308         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
34309         (vsx_xxspltw_<mode>): Adjust element index for little endian.
34310         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
34311         define_expand and a new define_insn *altivec_vspltb_internal;
34312         adjust for -maltivec=be on a little endian target.
34313         (altivec_vspltb_direct): New.
34314         (altivec_vsplth): Divide into a define_expand and a new
34315         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
34316         little endian target.
34317         (altivec_vsplth_direct): New.
34318         (altivec_vspltw): Divide into a define_expand and a new
34319         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
34320         little endian target.
34321         (altivec_vspltw_direct): New.
34322         (altivec_vspltsf): Divide into a define_expand and a new
34323         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
34324         a little endian target.
34325
34326 2014-01-30  Richard Biener  <rguenther@suse.de>
34327
34328         PR tree-optimization/59993
34329         * tree-ssa-forwprop.c (associate_pointerplus): Check we
34330         can propagate form the earlier stmt and avoid the transform
34331         when the intermediate result is needed.
34332
34333 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
34334
34335         * README.Portability: Fix typo.
34336
34337 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
34338
34339         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
34340         comparison_operator with ordered_comparison_operator.
34341
34342 2014-01-30  Nick Clifton  <nickc@redhat.com>
34343
34344         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
34345         Rename to mn10300_store_multiple_regs.
34346         * config/mn10300/mn10300.c: Likewise.
34347         * config/mn10300/mn10300.md (store_movm): Fix typo: call
34348         store_multiple_regs.
34349         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
34350         Call mn10300_store_multiple_regs.
34351
34352 2014-01-30  Nick Clifton  <nickc@redhat.com>
34353             DJ Delorie  <dj@redhat.com>
34354
34355         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
34356         %fp 2 to keep registers after it properly word-aligned.
34357         (rl78_alloc_physical_registers_umul): Handle the case where both
34358         input operands are the same.
34359
34360 2014-01-30  Richard Biener  <rguenther@suse.de>
34361
34362         PR tree-optimization/59903
34363         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
34364         check properly.
34365
34366 2014-01-30  Jason Merrill  <jason@redhat.com>
34367
34368         PR c++/59633
34369         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
34370
34371         PR c++/59645
34372         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
34373
34374 2014-01-30  Richard Biener  <rguenther@suse.de>
34375
34376         PR tree-optimization/59951
34377         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
34378
34379 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
34380
34381         PR target/59784
34382         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
34383         SFmode to DFmode case.
34384
34385 2014-01-29  DJ Delorie  <dj@redhat.com>
34386
34387         * config/msp430/msp430.opt (-minrt): New.
34388         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
34389         if -minrt given.
34390         (ENDFILE_SPEC): Likewise.
34391
34392 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
34393
34394         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
34395         (estimate_function_body_sizes): Use it.
34396
34397 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
34398
34399         PR c++/58561
34400         * dwarf2out.c (is_cxx_auto): New.
34401         (is_base_type): Use it.
34402         (gen_type_die_with_usage): Likewise.
34403
34404 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34405
34406         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
34407         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
34408         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
34409         -maltivec=be with LE targets.
34410         (vsx_mergeh_<mode>): Likewise.
34411         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
34412         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
34413         (altivec_vmrghb): Replace with define_expand and new
34414         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
34415         (altivec_vmrghb_direct): New define_insn.
34416         (altivec_vmrghh): Replace with define_expand and new
34417         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
34418         (altivec_vmrghh_direct): New define_insn.
34419         (altivec_vmrghw): Replace with define_expand and new
34420         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
34421         (altivec_vmrghw_direct): New define_insn.
34422         (*altivec_vmrghsf): Adjust for endianness.
34423         (altivec_vmrglb): Replace with define_expand and new
34424         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
34425         (altivec_vmrglb_direct): New define_insn.
34426         (altivec_vmrglh): Replace with define_expand and new
34427         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
34428         (altivec_vmrglh_direct): New define_insn.
34429         (altivec_vmrglw): Replace with define_expand and new
34430         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
34431         (altivec_vmrglw_direct): New define_insn.
34432         (*altivec_vmrglsf): Adjust for endianness.
34433         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
34434         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
34435         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
34436         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
34437         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
34438         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
34439         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
34440         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
34441
34442 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
34443
34444         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
34445         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
34446         whitespace.
34447
34448 2014-01-29  Richard Biener  <rguenther@suse.de>
34449
34450         PR tree-optimization/58742
34451         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
34452         associate_pointerplus_align.
34453         (associate_pointerplus_diff): New function.
34454         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
34455         and associate_pointerplus_diff.
34456
34457 2014-01-29  Richard Biener  <rguenther@suse.de>
34458
34459         * lto-streamer.h (LTO_major_version): Bump to 3.
34460         (LTO_minor_version): Reset to 0.
34461
34462 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
34463
34464         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
34465         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
34466         (arm_file_start): Generate correct asm header for armv7ve.
34467         * config/arm/bpabi.h: Add multilib support for armv7ve.
34468         * config/arm/driver-arm.c: Change the architectures of cortex-a7
34469         and cortex-a15 to armv7ve.
34470         * config/arm/t-aprofile: Add multilib support for armv7ve.
34471         * doc/invoke.texi: Document -march=armv7ve.
34472
34473 2014-01-29  Richard Biener  <rguenther@suse.de>
34474
34475         PR tree-optimization/58742
34476         * tree-ssa-forwprop.c (associate_plusminus): Return true
34477         if we changed sth, defer EH cleanup to ...
34478         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
34479         (simplify_mult): New function.
34480
34481 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
34482
34483         PR middle-end/59917
34484         PR tree-optimization/59920
34485         * tree.c (build_common_builtin_nodes): Remove
34486         __builtin_setjmp_dispatcher initialization.
34487         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
34488         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
34489         instead of gsi_after_labels + manually skipping debug stmts.
34490         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
34491         ignore bbs with IFN_ABNORMAL_DISPATCHER.
34492         * tree-inline.c (copy_edges_for_bb): Remove
34493         can_make_abnormal_goto argument, instead add abnormal_goto_dest
34494         argument.  Ignore computed_goto_p stmts.  Don't call
34495         make_abnormal_goto_edges.  If a call might need abnormal edges
34496         for non-local gotos, see if it already has an edge to
34497         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
34498         with true argument, don't do anything then, otherwise add
34499         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
34500         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
34501         caller.
34502         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
34503         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
34504         (lower_stmt): Don't set data->calls_builtin_setjmp.
34505         (lower_builtin_setjmp): Adjust comment.
34506         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
34507         * tree-cfg.c (found_computed_goto): Remove.
34508         (factor_computed_gotos): Remove.
34509         (make_goto_expr_edges): Return bool, true for computed gotos.
34510         Don't call make_abnormal_goto_edges.
34511         (build_gimple_cfg): Don't set found_computed_goto, don't call
34512         factor_computed_gotos.
34513         (computed_goto_p): No longer static.
34514         (make_blocks): Don't set found_computed_goto.
34515         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
34516         (make_edges): If make_goto_expr_edges returns true, push bb
34517         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
34518         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
34519         vector.  Record mapping between bbs and OpenMP regions if there
34520         are any, adjust make_gimple_omp_edges caller.  Call
34521         handle_abnormal_edges.
34522         (make_abnormal_goto_edges): Remove.
34523         * tree-cfg.h (make_abnormal_goto_edges): Remove.
34524         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
34525         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
34526         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
34527         * internal-fn.def (ABNORMAL_DISPATCHER): New.
34528         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
34529         filling *region also set *region_idx to (*region)->entry->index.
34530
34531         PR other/58712
34532         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
34533         For REGs set ORIGINAL_REGNO.
34534
34535 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
34536
34537         * doc/md.texi: Mention that a target shouldn't implement
34538         vec_widen_(s|u)mul_even/odd pair if it is less efficient
34539         than hi/lo pair.
34540
34541 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
34542
34543         PR tree-optimization/59594
34544         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
34545         a copy of the datarefs vector rather than the vector itself.
34546
34547 2014-01-28  Jason Merrill  <jason@redhat.com>
34548
34549         PR c++/53756
34550         * dwarf2out.c (auto_die): New static.
34551         (gen_type_die_with_usage): Handle C++1y 'auto'.
34552         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
34553         on definition.
34554
34555 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
34556
34557         PR target/59672
34558         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
34559         (SPEC_X32): Likewise.
34560         (SPEC_64): Likewise.
34561         * config/i386/i386.c (ix86_option_override_internal): Turn off
34562         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
34563         for TARGET_16BIT.
34564         (x86_file_start): Output .code16gcc for TARGET_16BIT.
34565         * config/i386/i386.h (TARGET_16BIT): New macro.
34566         (TARGET_16BIT_P): Likewise.
34567         * config/i386/i386.opt: Add m16.
34568         * doc/invoke.texi: Document -m16.
34569
34570 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
34571
34572         PR preprocessor/59935
34573         * input.c (location_get_source_line): Bail out on when line number
34574         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
34575
34576 2014-01-28  Richard Biener  <rguenther@suse.de>
34577
34578         PR tree-optimization/58742
34579         * tree-ssa-forwprop.c (associate_plusminus): Handle
34580         pointer subtraction of the form (T)(P + A) - (T)P.
34581
34582 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34583
34584         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
34585         at const_int_cost.
34586
34587 2014-01-28  Richard Biener  <rguenther@suse.de>
34588
34589         Revert
34590         2014-01-28  Richard Biener  <rguenther@suse.de>
34591
34592         PR rtl-optimization/45364
34593         PR rtl-optimization/59890
34594         * var-tracking.c (local_get_addr_clear_given_value): Handle
34595         already cleared slot.
34596         (val_reset): Handle not allocated local_get_addr_cache.
34597         (vt_find_locations): Use post-order on the inverted CFG.
34598
34599 2014-01-28  Richard Biener  <rguenther@suse.de>
34600
34601         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
34602
34603 2014-01-28  Richard Biener  <rguenther@suse.de>
34604
34605         PR rtl-optimization/45364
34606         PR rtl-optimization/59890
34607         * var-tracking.c (local_get_addr_clear_given_value): Handle
34608         already cleared slot.
34609         (val_reset): Handle not allocated local_get_addr_cache.
34610         (vt_find_locations): Use post-order on the inverted CFG.
34611
34612 2014-01-28  Alan Modra  <amodra@gmail.com>
34613
34614         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
34615         * configure.ac <recursive call for build != host>: Define
34616         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
34617         and LD_FOR_BUILD too.
34618         * configure: Regenerate.
34619
34620 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
34621
34622         * config/i386/i386.c (get_builtin_code_for_version): Separate
34623         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
34624         Broadwell from Haswell.
34625
34626 2014-01-27  Steve Ellcey  <sellcey@mips.com>
34627
34628         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
34629         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
34630         * config/mips/mips.c (mips_option_override): Change setting
34631         of TARGET_DSP.
34632         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
34633         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
34634         Change from Mask to Var.
34635
34636 2014-01-27  Jeff Law  <law@redhat.com>
34637
34638         * ipa-inline.c (inline_small_functions): Fix typo.
34639
34640 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
34641
34642         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
34643         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
34644         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
34645         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
34646         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
34647         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
34648         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
34649         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
34650         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
34651         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
34652         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
34653         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
34654         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
34655         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
34656         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
34657         (_mm512_storeu_epi64): Ditto.
34658         (_mm512_cmpge_epi32_mask): Ditto.
34659         (_mm512_cmpge_epu32_mask): Ditto.
34660         (_mm512_cmpge_epi64_mask): Ditto.
34661         (_mm512_cmpge_epu64_mask): Ditto.
34662         (_mm512_cmple_epi32_mask): Ditto.
34663         (_mm512_cmple_epu32_mask): Ditto.
34664         (_mm512_cmple_epi64_mask): Ditto.
34665         (_mm512_cmple_epu64_mask): Ditto.
34666         (_mm512_cmplt_epi32_mask): Ditto.
34667         (_mm512_cmplt_epu32_mask): Ditto.
34668         (_mm512_cmplt_epi64_mask): Ditto.
34669         (_mm512_cmplt_epu64_mask): Ditto.
34670         (_mm512_cmpneq_epi32_mask): Ditto.
34671         (_mm512_cmpneq_epu32_mask): Ditto.
34672         (_mm512_cmpneq_epi64_mask): Ditto.
34673         (_mm512_cmpneq_epu64_mask): Ditto.
34674         (_mm512_expand_pd): Ditto.
34675         (_mm512_expand_ps): Ditto.
34676         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
34677         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
34678         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
34679         * config/i386/i386.c (ix86_builtins): Add
34680         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
34681         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
34682         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
34683         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
34684         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
34685         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
34686         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
34687         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
34688         IX86_BUILTIN_PMOVUSQW512_MEM.
34689         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
34690         __builtin_ia32_pmovsqd512mem_mask,
34691         __builtin_ia32_pmovqd512mem_mask,
34692         __builtin_ia32_pmovusqw512mem_mask,
34693         __builtin_ia32_pmovsqw512mem_mask,
34694         __builtin_ia32_pmovqw512mem_mask,
34695         __builtin_ia32_pmovusdw512mem_mask,
34696         __builtin_ia32_pmovsdw512mem_mask,
34697         __builtin_ia32_pmovdw512mem_mask,
34698         __builtin_ia32_pmovqb512mem_mask,
34699         __builtin_ia32_pmovusqb512mem_mask,
34700         __builtin_ia32_pmovsqb512mem_mask,
34701         __builtin_ia32_pmovusdb512mem_mask,
34702         __builtin_ia32_pmovsdb512mem_mask,
34703         __builtin_ia32_pmovdb512mem_mask.
34704         (bdesc_args): Add __builtin_ia32_expanddf512,
34705         __builtin_ia32_expandsf512.
34706         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
34707         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
34708         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
34709         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
34710         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
34711         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
34712         (avx512f_<code>v8div16qi2_mask_store): This.
34713         (avx512f_expand<mode>): New.
34714
34715 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
34716
34717         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
34718         New.
34719         (_mm512_mask_prefetch_i64gather_pd): Ditto.
34720         (_mm512_prefetch_i32scatter_pd): Ditto.
34721         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
34722         (_mm512_prefetch_i64scatter_pd): Ditto.
34723         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
34724         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
34725         (_mm512_mask_prefetch_i64gather_ps): Ditto.
34726         (_mm512_prefetch_i32scatter_ps): Ditto.
34727         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
34728         (_mm512_prefetch_i64scatter_ps): Ditto.
34729         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
34730         * config/i386/i386-builtin-types.def: Define
34731         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
34732         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
34733         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
34734         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
34735         IX86_BUILTIN_SCATTERPFQPD.
34736         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
34737         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
34738         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
34739         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
34740         __builtin_ia32_scatterpfqps.
34741         (ix86_expand_builtin): Expand new built-ins.
34742         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
34743         fix memory access data type.
34744         (*avx512pf_gatherpf<mode>_mask): Ditto.
34745         (*avx512pf_gatherpf<mode>): Ditto.
34746         (avx512pf_scatterpf<mode>): Ditto.
34747         (*avx512pf_scatterpf<mode>_mask): Ditto.
34748         (*avx512pf_scatterpf<mode>): Ditto.
34749         (GATHER_SCATTER_SF_MEM_MODE): New.
34750         (avx512pf_gatherpf<mode>df): Ditto.
34751         (*avx512pf_gatherpf<mode>df_mask): Ditto.
34752         (*avx512pf_scatterpf<mode>df): Ditto.
34753
34754 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
34755
34756         PR bootstrap/59934
34757         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
34758         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
34759         reached.
34760
34761 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
34762
34763         * common/config/arm/arm-common.c
34764         (arm_rewrite_mcpu): Handle multiple names.
34765         * config/arm/arm.h
34766         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
34767
34768 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
34769
34770         * gimple-builder.h (create_gimple_tmp): Delete.
34771
34772 2014-01-27  Christian Bruel  <christian.bruel@st.com>
34773
34774         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
34775         words comparisons.
34776
34777 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
34778
34779         * config/pa/pa.md (call): Generate indirect long calls to non-local
34780         functions when outputing 32-bit code.
34781         (call_value): Likewise except for special call to buggy powf function.
34782
34783         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
34784         portable runtime and PIC indirect calls.
34785         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
34786         and PIC call sequences.  Use ldo instead of blr to set return register
34787         in PIC call sequence.
34788
34789 2014-01-25  Walter Lee  <walt@tilera.com>
34790
34791         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
34792         avoid clobbering a live register.
34793
34794 2014-01-25  Walter Lee  <walt@tilera.com>
34795
34796         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
34797         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
34798         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
34799         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
34800
34801 2014-01-25  Walter Lee  <walt@tilera.com>
34802
34803         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
34804         arguments on even registers.
34805         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
34806         STACK_BOUNDARY.
34807         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
34808         (BIGGEST_ALIGNMENT): Ditto.
34809         (BIGGEST_FIELD_ALIGNMENT): Ditto.
34810
34811 2014-01-25  Walter Lee  <walt@tilera.com>
34812
34813         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
34814         insns before bundling.
34815         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
34816
34817 2014-01-25  Walter Lee  <walt@tilera.com>
34818
34819         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
34820         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
34821         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
34822
34823 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
34824
34825         * config/mips/constraints.md (kl): Delete.
34826         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
34827         define expands, using...
34828         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
34829         instructions for MIPS16.
34830         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
34831         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
34832
34833 2014-01-25  Walter Lee  <walt@tilera.com>
34834
34835         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
34836         (clzdi2): Ditto.
34837         (ffsdi2): Ditto.
34838
34839 2014-01-25  Walter Lee  <walt@tilera.com>
34840
34841         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
34842         (TARGET_EXPAND_TO_RTL_HOOK): Define.
34843
34844 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
34845
34846         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
34847         Handle XOR.
34848
34849 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
34850
34851         * print-rtl.c (in_call_function_usage): New var.
34852         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
34853         EXPR_LIST mode as mode and not as reg note name.
34854
34855         PR middle-end/59561
34856         * cfgloopmanip.c (copy_loop_info): If
34857         loop->warned_aggressive_loop_optimizations, make sure
34858         the flag is set in target loop too.
34859
34860 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
34861
34862         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
34863         flag_cilkplus.
34864         * builtins.def: Likewise.
34865         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
34866         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
34867         * ira.c (ira_setup_eliminable_regset): Likewise.
34868         * omp-low.c (gate_expand_omp): Likewise.
34869         (execute_lower_omp): Likewise.
34870         (diagnose_sb_0): Likewise.
34871         (gate_diagnose_omp_blocks): Likewise.
34872         (simd_clone_clauses_extract): Likewise.
34873         (gate): Likewise.
34874
34875 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34876
34877         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
34878         correction for little endian...
34879         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
34880         here.
34881
34882 2014-01-24  Jeff Law  <law@redhat.com>
34883
34884         PR tree-optimization/59919
34885         * tree-vrp.c (find_assert_locations_1): Do not register asserts
34886         for non-returning calls.
34887
34888 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
34889
34890         * common/config/aarch64/aarch64-common.c
34891         (aarch64_rewrite_mcpu): Handle multiple names.
34892         * config/aarch64/aarch64.h
34893         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
34894
34895 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
34896
34897         * input.c (add_file_to_cache_tab): Handle the case where fopen
34898         returns NULL.
34899
34900 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
34901
34902         PR target/59929
34903         * config/i386/i386.md (pushsf splitter): Get stack adjustment
34904         from push operand if code of push isn't PRE_DEC.
34905
34906 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
34907
34908         PR target/59909
34909         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
34910         -mquad-memory-atomic.  Update -mquad-memory documentation to say
34911         it is only used for non-atomic loads/stores.
34912
34913         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
34914         -mquad-memory or -mquad-memory-atomic switches.
34915
34916         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
34917         -mquad-memory-atomic to ISA 2.07 support.
34918
34919         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
34920         to separate support of normal quad word memory operations (ldq, stq)
34921         from the atomic quad word memory operations.
34922
34923         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
34924         support to separate non-atomic quad word operations from atomic
34925         quad word operations.  Disable non-atomic quad word operations in
34926         little endian mode so that we don't have to swap words after the
34927         load and before the store.
34928         (quad_load_store_p): Add comment about atomic quad word support.
34929         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
34930         options printed with -mdebug=reg.
34931
34932         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
34933         -mquad-memory-atomic as the test for whether we have quad word
34934         atomic instructions.
34935         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
34936         or -mp8-vector are used, allow byte/half-word atomic operations.
34937
34938         * config/rs6000/sync.md (load_lockedti): Insure that the address
34939         is a proper indexed or indirect address for the lqarx instruction.
34940         On little endian systems, swap the hi/lo registers after the lqarx
34941         instruction.
34942         (load_lockedpti): Use indexed_or_indirect_operand predicate to
34943         insure the address is valid for the lqarx instruction.
34944         (store_conditionalti): Insure that the address is a proper indexed
34945         or indirect address for the stqcrx. instruction.  On little endian
34946         systems, swap the hi/lo registers before doing the stqcrx.
34947         instruction.
34948         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
34949         insure the address is valid for the stqcrx. instruction.
34950
34951         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
34952         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
34953         type of quad memory support is available.
34954
34955 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
34956
34957         PR regression/59915
34958         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
34959         there is a danger of looping.
34960
34961 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
34962
34963         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
34964         force flag_ira_loop_pressure if set via command line.
34965
34966 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
34967
34968         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
34969         (ashr_simd): New builtin handling DI mode.
34970         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
34971         (aarch64_sshr_simddi): New match pattern.
34972         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
34973         (vshrd_n_s64): Likewise.
34974         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
34975
34976 2014-01-23  Nick Clifton  <nickc@redhat.com>
34977
34978         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
34979         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
34980         favour of mcu specific scripts.
34981         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
34982         430x multilibs.
34983
34984 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
34985             Alex Velenko  <Alex.Velenko@arm.com>
34986
34987         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
34988         (vaddv_s16): Likewise.
34989         (vaddv_s32): Likewise.
34990         (vaddv_u8): Likewise.
34991         (vaddv_u16): Likewise.
34992         (vaddv_u32): Likewise.
34993         (vaddvq_s8): Likewise.
34994         (vaddvq_s16): Likewise.
34995         (vaddvq_s32): Likewise.
34996         (vaddvq_s64): Likewise.
34997         (vaddvq_u8): Likewise.
34998         (vaddvq_u16): Likewise.
34999         (vaddvq_u32): Likewise.
35000         (vaddvq_u64): Likewise.
35001         (vaddv_f32): Likewise.
35002         (vaddvq_f32): Likewise.
35003         (vaddvq_f64): Likewise.
35004         (vmaxv_f32): Likewise.
35005         (vmaxv_s8): Likewise.
35006         (vmaxv_s16): Likewise.
35007         (vmaxv_s32): Likewise.
35008         (vmaxv_u8): Likewise.
35009         (vmaxv_u16): Likewise.
35010         (vmaxv_u32): Likewise.
35011         (vmaxvq_f32): Likewise.
35012         (vmaxvq_f64): Likewise.
35013         (vmaxvq_s8): Likewise.
35014         (vmaxvq_s16): Likewise.
35015         (vmaxvq_s32): Likewise.
35016         (vmaxvq_u8): Likewise.
35017         (vmaxvq_u16): Likewise.
35018         (vmaxvq_u32): Likewise.
35019         (vmaxnmv_f32): Likewise.
35020         (vmaxnmvq_f32): Likewise.
35021         (vmaxnmvq_f64): Likewise.
35022         (vminv_f32): Likewise.
35023         (vminv_s8): Likewise.
35024         (vminv_s16): Likewise.
35025         (vminv_s32): Likewise.
35026         (vminv_u8): Likewise.
35027         (vminv_u16): Likewise.
35028         (vminv_u32): Likewise.
35029         (vminvq_f32): Likewise.
35030         (vminvq_f64): Likewise.
35031         (vminvq_s8): Likewise.
35032         (vminvq_s16): Likewise.
35033         (vminvq_s32): Likewise.
35034         (vminvq_u8): Likewise.
35035         (vminvq_u16): Likewise.
35036         (vminvq_u32): Likewise.
35037         (vminnmv_f32): Likewise.
35038         (vminnmvq_f32): Likewise.
35039         (vminnmvq_f64): Likewise.
35040
35041 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
35042
35043         * config/aarch64/aarch64-simd.md
35044         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
35045         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
35046         (*aarch64_mul3_elt<mode>): Likewise.
35047         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
35048         (*aarch64_mul3_elt_to_64v2df): Likewise.
35049         (*aarch64_mla_elt<mode>): Likewise.
35050         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
35051         (*aarch64_mls_elt<mode>): Likewise.
35052         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
35053         (*aarch64_fma4_elt<mode>): Likewise.
35054         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
35055         (*aarch64_fma4_elt_to_64v2df): Likewise.
35056         (*aarch64_fnma4_elt<mode>): Likewise.
35057         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
35058         (*aarch64_fnma4_elt_to_64v2df): Likewise.
35059         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
35060         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
35061         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
35062         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
35063         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
35064         (aarch64_sqdmull_lane<mode>_internal): Likewise.
35065         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
35066
35067 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
35068
35069         * config/aarch64/aarch64-simd.md
35070         (aarch64_be_checked_get_lane<mode>): New define_expand.
35071         * config/aarch64/aarch64-simd-builtins.def
35072         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
35073         New builtin definition.
35074         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
35075         Use new safe be builtin.
35076
35077 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
35078
35079         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
35080         New define_insn.
35081         (aarch64_be_st1<mode>): Likewise.
35082         (aarch_ld1<VALL:mode>): Define_expand modified.
35083         (aarch_st1<VALL:mode>): Likewise.
35084         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
35085         (UNSPEC_ST1): Likewise.
35086
35087 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
35088
35089         * config/microblaze/microblaze.md: Add trap insn and attribute
35090
35091 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
35092
35093         PR preprocessor/58580
35094         * input.h (location_get_source_line): Take an additional line_size
35095         parameter.
35096         (void diagnostics_file_cache_fini): Declare new function.
35097         * input.c (struct fcache): New type.
35098         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
35099         New static constants.
35100         (diagnostic_file_cache_init, total_lines_num)
35101         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
35102         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
35103         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
35104         (get_next_line, read_next_line, goto_next_line, read_line_num):
35105         New static function definitions.
35106         (diagnostic_file_cache_fini): New function.
35107         (location_get_source_line): Take an additional output line_len
35108         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
35109         read_line_num.
35110         * diagnostic.c (diagnostic_finish): Call
35111         diagnostic_file_cache_fini.
35112         (adjust_line): Take an additional input parameter for the length
35113         of the line, rather than calculating it with strlen.
35114         (diagnostic_show_locus): Adjust the use of
35115         location_get_source_line and adjust_line with respect to their new
35116         signature.  While displaying a line now, do not stop at the first
35117         null byte.  Rather, display the zero byte as a space and keep
35118         going until we reach the size of the line.
35119         * Makefile.in: Add vec.o to OBJS-libcommon
35120
35121 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
35122             Ilya Tocar  <ilya.tocar@intel.com>
35123
35124         * config/i386/avx512fintrin.h (_mm512_kmov): New.
35125         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
35126         (__builtin_ia32_kmov16): Ditto.
35127         * config/i386/i386.md (UNSPEC_KMOV): New.
35128         (kmovw): Ditto.
35129
35130 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
35131
35132         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
35133         (_mm512_storeu_si512): Ditto.
35134
35135 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
35136
35137         PR target/52125
35138         * rtl.h (get_referenced_operands): Declare.
35139         * recog.c (get_referenced_operands): New function.
35140         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
35141         operands have been referenced when recording LO_SUM references.
35142
35143 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
35144
35145         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
35146
35147 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
35148
35149         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
35150         Enable for generic and recent AMD targets.
35151
35152 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
35153
35154         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
35155         ARG_SIZE note when adjustment was eliminated.
35156
35157 2014-01-22  Jeff Law  <law@redhat.com>
35158
35159         PR tree-optimization/59597
35160         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
35161         in file.  Accept new argument REGISTERING and use it to modify
35162         dump output appropriately.
35163         (register_jump_thread): Corresponding changes.
35164         (mark_threaded_blocks): Reinstate code to cancel unprofitable
35165         thread paths involving joiner blocks.  Add code to dump cancelled
35166         jump threading paths.
35167
35168 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
35169
35170         PR rtl-optimization/59477
35171         * lra-constraints.c (inherit_in_ebb): Process call for living hard
35172         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
35173
35174 2014-01-22  Tom Tromey  <tromey@redhat.com>
35175
35176         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
35177         PARAMS.
35178         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
35179
35180 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
35181
35182         PR rtl-optimization/59896
35183         * lra-constraints.c (process_alt_operands): Check unused note for
35184         matched operands of insn with no output reloads.
35185
35186 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
35187
35188         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
35189         (mips_move_from_gpr_cost): Likewise.
35190
35191 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
35192
35193         PR rtl-optimization/59858
35194         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
35195         ira_class_hard_regs_num.
35196         (process_alt_operands): Increase reject for dying matched operand.
35197
35198 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
35199
35200         PR target/59003
35201         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
35202         smaller than size, perform several stores or loads and stores
35203         at dst + count - size to store or copy all of size bytes, rather
35204         than just last modesize bytes.
35205
35206 2014-01-20  DJ Delorie  <dj@redhat.com>
35207
35208         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
35209         that CLOBBERs are REGs before propogating their values.
35210
35211 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
35212
35213         PR middle-end/59789
35214         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
35215         (cgraph_inline_failed_type): New function.
35216         * cgraph.h (DEFCIFCODE): Add type.
35217         (cgraph_inline_failed_type_t): New enum.
35218         (cgraph_inline_failed_type): New prototype.
35219         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
35220         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
35221         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
35222         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
35223         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
35224         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
35225         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
35226         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
35227         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
35228         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
35229         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
35230         OPTIMIZATION_MISMATCH.
35231         * tree-inline.c (expand_call_inline): Emit errors during
35232         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
35233
35234 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
35235
35236         PR target/59685
35237         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
35238         mode attribute in insn output.
35239
35240 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
35241
35242         * output.h (output_constant): Delete.
35243         * varasm.c (output_constant): Make private.
35244
35245 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
35246
35247         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
35248
35249 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
35250
35251         PR middle-end/59860
35252         * tree.h (fold_builtin_strcat): New prototype.
35253         * builtins.c (fold_builtin_strcat): No longer static.  Add len
35254         argument, if non-NULL, don't call c_strlen.  Optimize
35255         directly into __builtin_memcpy instead of __builtin_strcpy.
35256         (fold_builtin_2): Adjust fold_builtin_strcat caller.
35257         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
35258
35259 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
35260
35261         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
35262         for SImode_address_operand operands, having only a REG argument.
35263
35264 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
35265
35266         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
35267         loader name using mbig-endian.
35268         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
35269
35270 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
35271
35272         * doc/invoke.texi (-march): Clarify documentation for AArch64.
35273         (-mtune): Likewise.
35274         (-mcpu): Likewise.
35275
35276 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
35277
35278         * config/aarch64/aarch64-protos.h
35279         (aarch64_cannot_change_mode_class_ptr): Declare.
35280         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
35281         aarch64_cannot_change_mode_class_ptr): New.
35282         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
35283         backend hook aarch64_cannot_change_mode_class.
35284
35285 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
35286
35287         * common/config/aarch64/aarch64-common.c
35288         (aarch64_handle_option): Don't handle any option order logic here.
35289         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
35290         selected_cpu, warn on architecture version mismatch.
35291         (aarch64_override_options): Fix parsing order for option strings.
35292
35293 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
35294             Iain Sandoe  <iain@codesourcery.com>
35295
35296         PR bootstrap/59496
35297         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
35298         warning.  Amend comment to reflect current functionality.
35299
35300 2014-01-20  Richard Biener  <rguenther@suse.de>
35301
35302         PR middle-end/59860
35303         * builtins.c (fold_builtin_strcat): Remove case better handled
35304         by tree-ssa-strlen.c.
35305
35306 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
35307
35308         * config/aarch64/aarch64.opt
35309         (mcpu, march, mtune): Make case-insensitive.
35310
35311 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
35312
35313         PR target/59880
35314         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
35315         if operands[1] is a REG or ZERO_EXTEND of a REG.
35316
35317 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
35318
35319         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
35320
35321 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
35322
35323         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
35324         long non-pic millicode calls.
35325
35326 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
35327
35328         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
35329
35330 2014-01-19  Kito Cheng  <kito@0xlab.org>
35331
35332         * builtins.c (expand_movstr): Check movstr expand done or fail.
35333
35334 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
35335             H.J. Lu  <hongjiu.lu@intel.com>
35336
35337         PR target/59379
35338         * config/i386/i386.md (*lea<mode>): Zero-extend return register
35339         to DImode for zero-extended addresses.
35340
35341 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
35342
35343         PR rtl-optimization/57763
35344         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
35345         on the new indirect jump_insn and increment LABEL_NUSES (label).
35346
35347 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
35348
35349         PR bootstrap/59580
35350         PR bootstrap/59583
35351         * config.gcc (x86_archs): New variable.
35352         (x86_64_archs): Likewise.
35353         (x86_cpus): Likewise.
35354         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
35355         --with-arch/--with-cpu= options.
35356         Support --with-arch=/--with-cpu={nehalem,westmere,
35357         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
35358
35359 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
35360
35361         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
35362         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
35363
35364 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
35365
35366         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
35367
35368 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
35369
35370         PR target/58944
35371         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
35372         clear cpp_get_options (parse_in)->warn_unused_macros for
35373         ix86_target_macros_internal with cpp_define.
35374
35375 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
35376
35377         * jump.c (delete_related_insns): Keep (use (insn))s.
35378         * reorg.c (redundant_insn): Check for barriers too.
35379
35380 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
35381
35382         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
35383
35384 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
35385
35386         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
35387         call to $$dyncall when TARGET_LONG_CALLS is true.
35388
35389 2014-01-17  Jeff Law  <law@redhat.com>
35390
35391         * ree.c (combine_set_extension): Temporarily disable test for
35392         changing number of hard registers.
35393
35394 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
35395
35396         PR middle-end/58125
35397         * ipa-inline-analysis.c (inline_free_summary):
35398         Do not free summary of aliases.
35399
35400 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
35401
35402         PR middle-end/59706
35403         * gimplify.c (gimplify_expr): Use create_tmp_var
35404         instead of create_tmp_var_raw.  If cond doesn't have
35405         integral type, don't add the IFN_ANNOTATE builtin at all.
35406
35407 2014-01-17  Martin Jambor  <mjambor@suse.cz>
35408
35409         PR ipa/59736
35410         * ipa-cp.c (prev_edge_clone): New variable.
35411         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
35412         Also resize prev_edge_clone vector.
35413         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
35414         (ipcp_edge_removal_hook): New function.
35415         (ipcp_driver): Register ipcp_edge_removal_hook.
35416
35417 2014-01-17  Andrew Pinski  <apinski@cavium.com>
35418             Steve Ellcey  <sellcey@mips.com>
35419
35420         PR target/59462
35421         * config/mips/mips.c (mips_print_operand): Check operand mode instead
35422         of operator mode.
35423
35424 2014-01-17  Jeff Law  <law@redhat.com>
35425
35426         PR middle-end/57904
35427         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
35428         so that pass_ccp runs first.
35429
35430 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
35431
35432         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
35433         (ix86_adjust_cost): Use !TARGET_XXX.
35434         (do_reorder_for_imul): Likewise.
35435         (swap_top_of_ready_list): Likewise.
35436         (ix86_sched_reorder): Likewise.
35437
35438 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
35439
35440         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
35441         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
35442         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
35443         (intel_memset): New.  Duplicate slm_memset.
35444         (intel_cost): New.  Duplicate slm_cost.
35445         (m_INTEL): New macro.
35446         (processor_target_table): Add "intel".
35447         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
35448         with PROCESSOR_INTEL for "intel".
35449         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
35450         PROCESSOR_SILVERMONT.
35451         (ix86_issue_rate): Likewise.
35452         (ix86_adjust_cost): Likewise.
35453         (ia32_multipass_dfa_lookahead): Likewise.
35454         (swap_top_of_ready_list): Likewise.
35455         (ix86_sched_reorder): Likewise.
35456         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
35457         instead of TARGET_OPT_AGU.
35458         * config/i386/i386.h (TARGET_INTEL): New.
35459         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
35460         (processor_type): Add PROCESSOR_INTEL.
35461         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
35462         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
35463
35464 2014-01-17  Marek Polacek  <polacek@redhat.com>
35465
35466         PR c/58346
35467         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
35468         size is zero.
35469
35470 2014-01-17  Richard Biener  <rguenther@suse.de>
35471
35472         PR tree-optimization/46590
35473         * opts.c (default_options_table): Add entries for
35474         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
35475         all enabled at -O1 but not for -Og.
35476         * common.opt (fbranch-count-reg): Remove Init(1).
35477         (fmove-loop-invariants): Likewise.
35478         (ftree-pta): Likewise.
35479
35480 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
35481
35482         * config/i386/i386.c (ix86_data_alignment): For compatibility with
35483         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
35484         decls to at least the GCC 4.8 used alignments.
35485
35486         PR fortran/59440
35487         * tree-nested.c (convert_nonlocal_reference_stmt,
35488         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
35489         of GIMPLE_BIND stmts, adjust associated decls.
35490
35491 2014-01-17  Richard Biener  <rguenther@suse.de>
35492
35493         PR tree-optimization/46590
35494         * vec.h (vec<>::bseach): New member function implementing
35495         binary search according to C89 bsearch.
35496         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
35497         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
35498         bitmap pointer again.  Make accesses_in_loop a flat array.
35499         (mem_ref_obstack): New global.
35500         (outermost_indep_loop): Adjust for mem_ref->stored changes.
35501         (mark_ref_stored): Likewise.
35502         (ref_indep_loop_p_2): Likewise.
35503         (set_ref_stored_in_loop): New helper function.
35504         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
35505         (memref_free): Adjust.
35506         (record_mem_ref_loc): Simplify.
35507         (gather_mem_refs_stmt): Adjust.
35508         (sort_locs_in_loop_postorder_cmp): New function.
35509         (analyze_memory_references): Sort accesses_in_loop after
35510         loop postorder number.
35511         (find_ref_loc_in_loop_cmp): New function.
35512         (for_all_locs_in_loop): Find relevant cluster of locs in
35513         accesses_in_loop and iterate without recursion.
35514         (execute_sm): Avoid uninit warning.
35515         (struct ref_always_accessed): Simplify.
35516         (ref_always_accessed::operator ()): Likewise.
35517         (ref_always_accessed_p): Likewise.
35518         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
35519         loop postorder numbers here.
35520         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
35521         numbers.
35522
35523 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
35524
35525         PR c++/57945
35526         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
35527         on decls for which assemble_alias has been called.
35528
35529 2014-01-17  Nick Clifton  <nickc@redhat.com>
35530
35531         * config/msp430/msp430.opt: (mcpu): New option.
35532         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
35533         (msp430_option_override): Parse target_cpu.  If the MCU name
35534         matches a generic string, clear target_mcu.
35535         (msp430_attr): Allow numeric interrupt values up to 63.
35536         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
35537         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
35538         option.
35539         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
35540         Add mcpu matches.
35541         * config/msp430/msp430.md (popm): Use %J rather than %I.
35542         (addsi3): Use msp430_nonimmediate_operand for operand 2.
35543         (addhi_cy_i): Use immediate_operand for operand 2.
35544         * doc/invoke.texi: Document -mcpu option.
35545
35546 2014-01-17  Richard Biener  <rguenther@suse.de>
35547
35548         PR rtl-optimization/38518
35549         * df.h (df_analyze_loop): Declare.
35550         * df-core.c: Include cfgloop.h.
35551         (df_analyze_1): Split out main part of df_analyze.
35552         (df_analyze): Adjust.
35553         (loop_inverted_post_order_compute): New function.
35554         (loop_post_order_compute): Likewise.
35555         (df_analyze_loop): New function avoiding whole-function
35556         postorder computes.
35557         * loop-invariant.c (find_defs): Use df_analyze_loop.
35558         (find_invariants): Adjust.
35559         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
35560
35561 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
35562
35563         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
35564         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
35565
35566 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
35567
35568         * ipa-ref.c (ipa_remove_stmt_references): Fix references
35569         traversal when removing references.
35570
35571 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
35572
35573         PR ipa/59775
35574         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
35575
35576 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
35577
35578         PR middle-end/56791
35579         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
35580         pushing a reload for an autoinc when we had previously reloaded an
35581         inner part of the address.
35582
35583 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
35584
35585         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
35586         field.
35587         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
35588         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
35589         when not giving up or versioning for alias only because of
35590         loop->safelen.
35591         (vect_analyze_data_ref_dependences): Set to true.
35592         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
35593         is a GIMPLE_PHI.
35594         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
35595         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
35596         to the condition.
35597
35598         PR middle-end/58344
35599         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
35600
35601         PR target/59839
35602         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
35603         operand 0 predicate for gathers, use a new pseudo as subtarget.
35604
35605 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
35606
35607         PR middle-end/59609
35608         * lra-constraints.c (process_alt_operands): Add printing debug info.
35609         Check absence of input/output reloads for matched operands too.
35610
35611 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
35612
35613         PR rtl-optimization/59835
35614         * ira.c (ira_init_register_move_cost): Increase cost for
35615         impossible modes.
35616
35617 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
35618
35619         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
35620
35621 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
35622
35623         PR target/59780
35624         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
35625         non-register objects.  Use gen_(high/low)part more consistently.
35626         Fix assertions.
35627
35628 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
35629
35630         PR target/59844
35631         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
35632         endian support, remove tests for WORDS_BIG_ENDIAN.
35633         (p8_mfvsrd_3_<mode>): Likewise.
35634         (reload_gpr_from_vsx<mode>): Likewise.
35635         (reload_gpr_from_vsxsf): Likewise.
35636         (p8_mfvsrd_4_disf): Likewise.
35637
35638 2014-01-16  Richard Biener  <rguenther@suse.de>
35639
35640         PR rtl-optimization/46590
35641         * lcm.c (compute_antinout_edge): Use postorder iteration.
35642         (compute_laterin): Use inverted postorder iteration.
35643
35644 2014-01-16  Nick Clifton  <nickc@redhat.com>
35645
35646         PR middle-end/28865
35647         * varasm.c (output_constant): Return the number of bytes actually
35648         emitted.
35649         (output_constructor_array_range): Update the field size with the
35650         number of bytes emitted by output_constant.
35651         (output_constructor_regular_field): Likewise.  Also do not
35652         complain if the total number of bytes emitted is now greater
35653         than the expected fieldpos.
35654         * output.h (output_constant): Update prototype and descriptive comment.
35655
35656 2014-01-16  Marek Polacek  <polacek@redhat.com>
35657
35658         PR middle-end/59827
35659         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
35660         it is error_mark_node.
35661
35662 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
35663
35664         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
35665         VALID_AVX256_REG_OR_OI_MODE.
35666
35667 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
35668
35669         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
35670         current procedure should be profiled.
35671
35672 2014-01-15  Andrew Pinski  <apinski@cavium.com>
35673
35674         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
35675         of moving from/to the STACK_REG register class.
35676
35677 2014-01-15  Richard Henderson  <rth@redhat.com>
35678
35679         PR debug/54694
35680         * reginfo.c (global_regs_decl): Globalize.
35681         * rtl.h (global_regs_decl): Declare.
35682         * ira.c (do_reload): Diagnose frame_pointer_needed and it
35683         reserved via global_regs.
35684
35685 2014-01-15  Teresa Johnson  <tejohnson@google.com>
35686
35687         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
35688
35689 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
35690
35691         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
35692         and vmulosh rather than call gen_vec_widen_smult_*.
35693         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
35694         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
35695         (vec_widen_smult_even_v16qi): Likewise.
35696         (vec_widen_umult_even_v8hi): Likewise.
35697         (vec_widen_smult_even_v8hi): Likewise.
35698         (vec_widen_umult_odd_v16qi): Likewise.
35699         (vec_widen_smult_odd_v16qi): Likewise.
35700         (vec_widen_umult_odd_v8hi): Likewise.
35701         (vec_widen_smult_odd_v8hi): Likewise.
35702         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
35703         vmuloub rather than call gen_vec_widen_umult_*.
35704         (vec_widen_umult_lo_v16qi): Likewise.
35705         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
35706         vmulosb rather than call gen_vec_widen_smult_*.
35707         (vec_widen_smult_lo_v16qi): Likewise.
35708         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
35709         rather than call gen_vec_widen_umult_*.
35710         (vec_widen_umult_lo_v8hi): Likewise.
35711         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
35712         rather than call gen_vec_widen_smult_*.
35713         (vec_widen_smult_lo_v8hi): Likewise.
35714
35715 2014-01-15  Jeff Law  <law@redhat.com>
35716
35717         PR tree-optimization/59747
35718         * ree.c (find_and_remove_re): Properly handle case where a second
35719         eliminated extension requires widening a copy created for elimination
35720         of a prior extension.
35721         (combine_set_extension): Ensure that the number of hard regs needed
35722         for a destination register does not change when we widen it.
35723
35724 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
35725
35726         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
35727         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
35728         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
35729         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
35730         (avr-*-rtems*): Likewise.
35731         (bfin*-rtems*): Likewise.
35732         (moxie-*-rtems*): Likewise.
35733         (h8300-*-rtems*): Likewise.
35734         (i[34567]86-*-rtems*): Likewise.
35735         (lm32-*-rtems*): Likewise.
35736         (m32r-*-rtems*): Likewise.
35737         (m68k-*-rtems*): Likewise.
35738         (microblaze*-*-rtems*): Likewise.
35739         (mips*-*-rtems*): Likewise.
35740         (powerpc-*-rtems*): Likewise.
35741         (sh-*-rtems*): Likewise.
35742         (sparc-*-rtems*): Likewise.
35743         (sparc64-*-rtems*): Likewise.
35744         (v850-*-rtems*): Likewise.
35745         (m32c-*-rtems*): Likewise.
35746
35747 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
35748
35749         PR rtl-optimization/59511
35750         * ira.c (ira_init_register_move_cost): Use memory costs for some
35751         cases of register move cost calculations.
35752         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
35753         instead of BB frequency.
35754         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
35755         * lra-assigns.c (find_hard_regno_for): Ditto.
35756
35757 2014-01-15  Richard Biener  <rguenther@suse.de>
35758
35759         PR tree-optimization/59822
35760         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
35761         (vectorizable_load): Use it to hoist defs of uses of invariant
35762         loads out of the loop.
35763
35764 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
35765             Kugan Vivekanandarajah  <kuganv@linaro.org>
35766
35767         PR target/59695
35768         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
35769         truncation.
35770
35771 2014-01-15  Richard Biener  <rguenther@suse.de>
35772
35773         PR rtl-optimization/59802
35774         * lcm.c (compute_available): Use inverted postorder to seed
35775         the initial worklist.
35776
35777 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35778
35779         PR target/59803
35780         * config/s390/s390.c (s390_preferred_reload_class): Don't return
35781         ADDR_REGS for invalid symrefs in non-PIC code.
35782
35783 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
35784
35785         PR other/58712
35786         * builtins.c (determine_block_size): Initialize *probable_max_size
35787         even if len_rtx is CONST_INT.
35788
35789 2014-01-14  Andrew Pinski  <apinski@cavium.com>
35790
35791         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
35792         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
35793         (cortexa53_tunings): Likewise.
35794         (aarch64_sched_issue_rate): New function.
35795         (TARGET_SCHED_ISSUE_RATE): Define.
35796
35797 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
35798
35799         * ira-costs.c (find_costs_and_classes): Add missed
35800         ira_init_register_move_cost_if_necessary.
35801
35802 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
35803
35804         PR target/59787
35805         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
35806
35807 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
35808
35809         PR target/59794
35810         * config/i386/i386.c (type_natural_mode): Add a bool parameter
35811         to indicate if type is used for function return value.  Warn ABI
35812         change if the vector mode isn't available for function return value.
35813         (ix86_function_arg_advance): Pass false to type_natural_mode.
35814         (ix86_function_arg): Likewise.
35815         (ix86_gimplify_va_arg): Likewise.
35816         (function_arg_32): Don't warn ABI change.
35817         (ix86_function_value): Pass true to type_natural_mode.
35818         (ix86_return_in_memory): Likewise.
35819         (ix86_struct_value_rtx): Removed.
35820         (TARGET_STRUCT_VALUE_RTX): Likewise.
35821
35822 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
35823
35824         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
35825         converting a conditional jump into a conditional return.
35826
35827 2014-01-14  Richard Biener  <rguenther@suse.de>
35828
35829         PR tree-optimization/58921
35830         PR tree-optimization/59006
35831         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
35832         hoisting invariant stmts.
35833         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
35834         invariant loads on the preheader edge if possible.
35835
35836 2014-01-14  Joey Ye  <joey.ye@arm.com>
35837
35838         * doc/plugin.texi (Building GCC plugins): Update to C++.
35839
35840 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
35841
35842         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
35843         (_mm_rcp28_round_ss): Ditto.
35844         (_mm_rsqrt28_round_sd): Ditto.
35845         (_mm_rsqrt28_round_ss): Ditto.
35846         (_mm_rcp28_sd): Ditto.
35847         (_mm_rcp28_ss): Ditto.
35848         (_mm_rsqrt28_sd): Ditto.
35849         (_mm_rsqrt28_ss): Ditto.
35850         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
35851         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
35852         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
35853         (IX86_BUILTIN_RCP28SD): Ditto.
35854         (IX86_BUILTIN_RCP28SS): Ditto.
35855         (IX86_BUILTIN_RSQRT28SD): Ditto.
35856         (IX86_BUILTIN_RSQRT28SS): Ditto.
35857         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
35858         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
35859         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
35860         (ix86_expand_special_args_builtin): Expand new FTYPE.
35861         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
35862         (srcp14<mode>): Make insn unary.
35863         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
35864         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
35865         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
35866         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
35867         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
35868         Fix rounding: make it SAE only.
35869         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
35870         Ditto.
35871         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
35872         Ditto.
35873         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
35874         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
35875         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
35876         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
35877         (round_saeonly_mask_scalar_operand4): Ditto.
35878         (round_saeonly_mask_scalar_op3): Ditto.
35879         (round_saeonly_mask_scalar_op4): Ditto.
35880
35881 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35882
35883         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
35884         Implement -maltivec=be for vec_insert and vec_extract.
35885
35886 2014-01-10  DJ Delorie  <dj@redhat.com>
35887
35888         * config/msp430/msp430.md (call_internal): Don't allow memory
35889         references with SP as the base register.
35890         (call_value_internal): Likewise.
35891         * config/msp430/constraints.md (Yc): New.  For memory references
35892         that don't use SP as a base register.
35893
35894         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
35895         "an integer without a # prefix"
35896         * config/msp430/msp430.md (epilogue_helper): Use it.
35897
35898 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
35899
35900         PR target/59617
35901         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
35902         AVX512F gather builtins.
35903         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
35904         on gather decls with INTEGER_TYPE masktype.
35905         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
35906         directly into the builtin rather than hoisting it before loop.
35907
35908         PR tree-optimization/59387
35909         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
35910         (scev_const_prop): If folded_casts and type has undefined overflow,
35911         use force_gimple_operand instead of force_gimple_operand_gsi and
35912         for each added stmt if it is assign with
35913         arith_code_with_undefined_signed_overflow, call
35914         rewrite_to_defined_overflow.
35915         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
35916         gimple-fold.h instead.
35917         (arith_code_with_undefined_signed_overflow,
35918         rewrite_to_defined_overflow): Moved to ...
35919         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
35920         rewrite_to_defined_overflow): ... here.  No longer static.
35921         Include gimplify-me.h.
35922         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
35923         rewrite_to_defined_overflow): New prototypes.
35924
35925 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35926
35927         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
35928
35929 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
35930
35931         * builtins.c (get_object_alignment_2): Minor tweak.
35932         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
35933
35934 2014-01-13  Christian Bruel  <christian.bruel@st.com>
35935
35936         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
35937         optimized non constant lengths.
35938
35939 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
35940
35941         PR libgomp/59194
35942         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
35943         load as __atomic_load_N if possible.
35944
35945 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
35946
35947         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
35948         target parameter.
35949         (rs6000_expand_builtin): Adjust call.
35950
35951 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
35952
35953         PR target/58115
35954         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
35955         * config/rs6000/rs6000.c: Include target-globals.h.
35956         (rs6000_set_current_function): Instead of doing target_reinit
35957         unconditionally, use save_target_globals_default_opts and
35958         restore_target_globals.
35959
35960         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
35961         FPSCR.
35962         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
35963         (rs6000_expand_builtin): Handle mffs and mtfsf.
35964         (rs6000_init_builtins): Define mffs and mtfsf.
35965         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
35966         (rs6000_mffs): New pattern.
35967         (rs6000_mtfsf): New pattern.
35968
35969 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
35970
35971         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
35972         Start narrowing with START.  Apply candidate-use pair
35973         and check overall cost in narrowing.
35974         (iv_ca_prune): Pass new argument.
35975
35976 2014-01-10  Jeff Law  <law@redhat.com>
35977
35978         PR middle-end/59743
35979         * ree.c (combine_reaching_defs): Ensure the defining statement
35980         occurs before the extension when optimizing extensions with
35981         different source and destination hard registers.
35982
35983 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
35984
35985         PR ipa/58585
35986         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
35987         vtables into the type inheritance graph.
35988
35989 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
35990
35991         PR rtl-optimization/59754
35992         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
35993         modes in the REGNO != REGNO case.
35994
35995 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35996
35997         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
35998
35999 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
36000
36001         PR tree-optimization/59745
36002         * tree-predcom.c (tree_predictive_commoning_loop): Call
36003         free_affine_expand_cache if giving up because components is NULL.
36004
36005         * target-globals.c (save_target_globals): Allocate < 4KB structs using
36006         GC in payload of target_globals struct instead of allocating them on
36007         the heap and the larger structs separately using GC.
36008         * target-globals.h (struct target_globals): Make regs, hard_regs,
36009         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
36010         of GTY((skip)) and change type to void *.
36011         (reset_target_globals): Cast loads from those fields to corresponding
36012         types.
36013
36014 2014-01-10  Steve Ellcey  <sellcey@mips.com>
36015
36016         PR plugins/59335
36017         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
36018         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
36019         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
36020
36021 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
36022
36023         PR target/59744
36024         * aarch64-modes.def (CC_Zmode): New flags mode.
36025         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
36026         represents an equality.
36027         (aarch64_get_condition_code): Handle CC_Zmode.
36028         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
36029
36030 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36031
36032         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
36033         extraction in good case.
36034
36035 2014-01-10  Richard Biener  <rguenther@suse.de>
36036
36037         PR tree-optimization/59374
36038         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
36039         checking after SLP discovery.  Mark stmts not participating
36040         in any SLP instance properly.
36041
36042 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36043
36044         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
36045         when handling a SET rtx.
36046
36047 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36048
36049         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
36050         (cortex-a57): Likewise.
36051         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
36052
36053 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36054
36055         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
36056         non-iwmmxt builtins.
36057
36058 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
36059
36060         PR ipa/58252
36061         PR ipa/59226
36062         * ipa-devirt.c record_target_from_binfo): Take as argument
36063         stack of binfos and lookup matching one for virtual inheritance.
36064         (possible_polymorphic_call_targets_1): Update.
36065
36066 2014-01-10  Huacai Chen  <chenhc@lemote.com>
36067
36068         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
36069         kernel strings for Loongson-2E/2F/3A.
36070
36071 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
36072
36073         PR middle-end/59670
36074         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
36075         is_gimple_call before calling gimple_call_internal_p.
36076
36077 2014-01-09  Steve Ellcey  <sellcey@mips.com>
36078
36079         * Makefile.in (TREE_FLOW_H): Remove.
36080         (TREE_SSA_H): Add file names from tree-flow.h.
36081         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
36082         * tree.h: Remove tree-flow.h reference.
36083         * hash-table.h: Remove tree-flow.h reference.
36084         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
36085         reference with tree-ssa-loop.h.
36086
36087 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
36088
36089         * doc/invoke.texi: Add -maltivec={be,le} options, and document
36090         default element-order behavior for -maltivec.
36091         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
36092         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
36093         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
36094         when targeting big endian, at least for now.
36095         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
36096
36097 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
36098
36099         PR middle-end/47735
36100         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
36101         var satisfies use_register_for_decl, just take into account type
36102         alignment, rather than decl alignment.
36103
36104         PR tree-optimization/59622
36105         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
36106         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
36107         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
36108         Don't devirtualize for inplace at all.  For targets.length () == 1,
36109         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
36110
36111 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
36112
36113         * config/i386/i386.md (cpu): Remove the unused btver1.
36114
36115 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
36116
36117         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
36118
36119 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
36120
36121         PR target/58115
36122         * tree-core.h (struct target_globals): New forward declaration.
36123         (struct tree_target_option): Add globals field.
36124         * tree.h (TREE_TARGET_GLOBALS): Define.
36125         (prepare_target_option_nodes_for_pch): New prototype.
36126         * target-globals.h (struct target_globals): Define even if
36127         !SWITCHABLE_TARGET.
36128         * tree.c (prepare_target_option_node_for_pch,
36129         prepare_target_option_nodes_for_pch): New functions.
36130         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
36131         * config/i386/i386.c: Include target-globals.h.
36132         (ix86_set_current_function): Instead of doing target_reinit
36133         unconditionally, use save_target_globals_default_opts and
36134         restore_target_globals.
36135
36136 2014-01-09  Richard Biener  <rguenther@suse.de>
36137
36138         PR tree-optimization/59715
36139         * tree-cfg.h (split_critical_edges): Declare.
36140         * tree-cfg.c (split_critical_edges): Export.
36141         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
36142
36143 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
36144
36145         * cfgexpand.c (expand_stack_vars): Optionally disable
36146         asan stack protection.
36147         (expand_used_vars): Likewise.
36148         (partition_stack_vars): Likewise.
36149         * asan.c (asan_emit_stack_protection): Optionally disable
36150         after return stack usage.
36151         (instrument_derefs): Optionally disable memory access instrumentation.
36152         (instrument_builtin_call): Likewise.
36153         (instrument_strlen_call): Likewise.
36154         (asan_protect_global): Optionally disable global variables protection.
36155         * doc/invoke.texi: Added doc for new options.
36156         * params.def: Added new options.
36157         * params.h: Likewise.
36158
36159 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
36160
36161         PR rtl-optimization/59724
36162         * ifcvt.c (cond_exec_process_if_block): Don't call
36163         flow_find_head_matching_sequence with 0 longest_match.
36164         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
36165         non-active insns if !stop_after.
36166         (try_head_merge_bb): Revert 2014-01-07 changes.
36167
36168 2014-01-08  Jeff Law  <law@redhat.com>
36169
36170         * ree.c (get_sub_rtx): New function, extracted from...
36171         (merge_def_and_ext): Here.
36172         (combine_reaching_defs): Use get_sub_rtx.
36173
36174 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
36175
36176         * cgraph.h (varpool_variable_node): Do not choke on null node.
36177
36178 2014-01-08  Catherine Moore  <clm@codesourcery.com>
36179
36180         * config/mips/mips.md (simple_return): Attempt to use JRC
36181         for microMIPS.
36182         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
36183
36184 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
36185
36186         PR rtl-optimization/59137
36187         * reorg.c (steal_delay_list_from_target): Call update_block for
36188         elided insns.
36189         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
36190
36191 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
36192
36193         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
36194         two duplicate entries.
36195
36196 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
36197
36198         Revert:
36199         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
36200
36201         * config/mips/mips.c (mips_truncated_op_cost): New function.
36202         (mips_rtx_costs): Adjust test for BADDU.
36203         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
36204
36205         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
36206
36207         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
36208         (*baddu_si): ...this new pattern.
36209
36210 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
36211
36212         PR ipa/59722
36213         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
36214
36215 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
36216
36217         PR middle-end/57748
36218         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
36219         inner_reference_p.
36220         (expand_expr, expand_normal): Adjust.
36221         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
36222         inner_reference_p. Use inner_reference_p to expand inner references.
36223         (store_expr): Adjust.
36224         * cfgexpand.c (expand_call_stmt): Adjust.
36225
36226 2014-01-08  Rong Xu  <xur@google.com>
36227
36228         * gcov-io.c (gcov_var): Move from gcov-io.h.
36229         (gcov_position): Ditto.
36230         (gcov_is_error): Ditto.
36231         (gcov_rewrite): Ditto.
36232         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
36233         only part to libgcc/libgcov.h.
36234
36235 2014-01-08  Marek Polacek  <polacek@redhat.com>
36236
36237         PR middle-end/59669
36238         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
36239
36240 2014-01-08  Marek Polacek  <polacek@redhat.com>
36241
36242         PR sanitizer/59667
36243         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
36244
36245 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
36246
36247         PR rtl-optimization/59649
36248         * stor-layout.c (get_mode_bounds): For BImode return
36249         0 and STORE_FLAG_VALUE.
36250
36251 2014-01-08  Richard Biener  <rguenther@suse.de>
36252
36253         PR middle-end/59630
36254         * gimple.h (is_gimple_builtin_call): Remove.
36255         (gimple_builtin_call_types_compatible_p): New.
36256         (gimple_call_builtin_p): New overload.
36257         * gimple.c (is_gimple_builtin_call): Remove.
36258         (validate_call): Rename to ...
36259         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
36260         check return types.
36261         (validate_type): New static function.
36262         (gimple_call_builtin_p): New overload and adjust.
36263         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
36264         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
36265         (gimple_fold_stmt_to_constant_1): Likewise.
36266         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
36267
36268 2014-01-08  Richard Biener  <rguenther@suse.de>
36269
36270         PR middle-end/59471
36271         * gimplify.c (gimplify_expr): Gimplify register-register type
36272         VIEW_CONVERT_EXPRs to separate stmts.
36273
36274 2014-01-07  Jeff Law  <law@redhat.com>
36275
36276         PR middle-end/53623
36277         * ree.c (combine_set_extension): Handle case where source
36278         and destination registers in an extension insn are different.
36279         (combine_reaching_defs): Allow source and destination registers
36280         in extension to be different under limited circumstances.
36281         (add_removable_extension): Remove restriction that the
36282         source and destination registers in the extension are the same.
36283         (find_and_remove_re): Emit a copy from the extension's
36284         destination to its source after the defining insn if
36285         the source and destination registers are different.
36286
36287         PR middle-end/59285
36288         * ifcvt.c (merge_if_block): If we are merging a block with more than
36289         one successor with a block with no successors, remove any BARRIER
36290         after the second block.
36291
36292 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
36293
36294         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
36295
36296 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
36297
36298         PR target/59652
36299         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
36300         for 14-bit register offsets when INT14_OK_STRICT is false.
36301
36302 2014-01-07  Roland Stigge  <stigge@antcom.de>
36303             Michael Meissner  <meissner@linux.vnet.ibm.com>
36304
36305         PR 57386/target
36306         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
36307         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
36308
36309 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
36310
36311         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
36312         -mcpu.
36313
36314 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
36315
36316         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
36317         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
36318         rtx is const0_rtx or not.
36319
36320 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
36321
36322         PR target/58115
36323         * target-globals.c (save_target_globals): Remove this_fn_optab
36324         handling.
36325         * toplev.c: Include optabs.h.
36326         (target_reinit): Temporarily restore the global options if another
36327         set of options are in force.
36328
36329 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
36330
36331         PR rtl-optimization/58668
36332         * cfgcleanup.c (flow_find_cross_jump): Don't count
36333         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
36334         to determine what is counted.
36335         (flow_find_head_matching_sequence): Use active_insn_p to determine
36336         what is counted.
36337         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
36338         counting change.
36339         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
36340         determine what is counted.
36341
36342         PR tree-optimization/59643
36343         * tree-predcom.c (split_data_refs_to_components): If one dr is
36344         read and one write, determine_offset fails and the write isn't
36345         in the bad component, just put the read into the bad component.
36346
36347 2014-01-07  Mike Stump  <mikestump@comcast.net>
36348             Jakub Jelinek  <jakub@redhat.com>
36349
36350         PR pch/59436
36351         * tree-core.h (struct tree_optimization_option): Change optabs
36352         type from unsigned char * to void *.
36353         * optabs.c (init_tree_optimization_optabs): Adjust
36354         TREE_OPTIMIZATION_OPTABS initialization.
36355
36356 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
36357
36358         PR target/59644
36359         * config/i386/i386.h (struct machine_function): Add
36360         no_drap_save_restore field.
36361         * config/i386/i386.c (ix86_save_reg): Use
36362         !cfun->machine->no_drap_save_restore instead of
36363         crtl->stack_realign_needed.
36364         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
36365         this function clears frame_pointer_needed.  Set
36366         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
36367         and DRAP reg is needed.
36368
36369 2014-01-06  Marek Polacek  <polacek@redhat.com>
36370
36371         PR c/57773
36372         * doc/implement-c.texi: Mention that other integer types are
36373         permitted as bit-field types in strictly conforming mode.
36374
36375 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
36376
36377         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
36378         is newly allocated.
36379
36380 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
36381
36382         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
36383
36384 2014-01-06  Martin Jambor  <mjambor@suse.cz>
36385
36386         PR ipa/59008
36387         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
36388         to int.
36389         * ipa-prop.c (ipa_print_node_params): Fix indentation.
36390
36391 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
36392
36393         PR debug/59350
36394         PR debug/59510
36395         * var-tracking.c (add_stores): Preserve the value of the source even if
36396         we don't record the store.
36397
36398 2014-01-06  Terry Guo  <terry.guo@arm.com>
36399
36400         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
36401
36402 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
36403
36404         PR bootstrap/59541
36405         * config/darwin.c (darwin_function_section): Adjust return values to
36406         correspond to optimisation changes made in r206070.
36407
36408 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
36409
36410         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
36411         from prefetch_block tune setting.
36412         (nocona_cost): Correct size of prefetch block to 64.
36413
36414 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
36415
36416         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
36417         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
36418         used to save the static chain register in the computation of the offset
36419         from which the FP registers need to be restored.
36420
36421 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
36422
36423         PR tree-optimization/59519
36424         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
36425         ICE if get_current_def (current_new_name) is already non-NULL, as long
36426         as it is a phi result of some other phi in *new_exit_bb that has
36427         the same argument.
36428
36429         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
36430         or vmovdqu* for misaligned_operand.
36431         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
36432         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
36433         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
36434         aligned_mem for AVX512F masked aligned load and store builtins and for
36435         non-temporal moves.
36436
36437 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
36438
36439         PR tree-optimization/59651
36440         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
36441         Address range for negative step should be added by TYPE_SIZE_UNIT.
36442
36443 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
36444
36445         * config/m68k/m68k.c (handle_move_double): Handle pushes with
36446         overlapping registers also for registers other than the stack pointer.
36447
36448 2014-01-03  Marek Polacek  <polacek@redhat.com>
36449
36450         PR other/59661
36451         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
36452         __builtin_FILE.
36453
36454 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
36455
36456         PR target/59625
36457         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
36458         asm goto as jump.
36459
36460         * config/i386/i386.md (MODE_SIZE): New mode attribute.
36461         (push splitter): Use <P:MODE_SIZE> instead of
36462         GET_MODE_SIZE (<P:MODE>mode).
36463         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
36464         (mov -1, reg peephole2): Likewise.
36465         * config/i386/sse.md (*mov<mode>_internal,
36466         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
36467         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
36468         *<code><mode>3, *andnot<mode>3<mask_name>,
36469         <mask_codefor><code><mode>3<mask_name>): Likewise.
36470         * config/i386/subst.md (mask_mode512bit_condition,
36471         sd_mask_mode512bit_condition): Likewise.
36472
36473 2014-01-02  Xinliang David Li  <davidxl@google.com>
36474
36475         PR tree-optimization/59303
36476         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
36477         (dump_predicates): Better output format.
36478         (pred_equal_p): New function.
36479         (is_neq_relop_p): Ditto.
36480         (is_neq_zero_form_p): Ditto.
36481         (pred_expr_equal_p): Ditto.
36482         (pred_neg_p): Ditto.
36483         (simplify_pred): Ditto.
36484         (simplify_preds_2): Ditto.
36485         (simplify_preds_3): Ditto.
36486         (simplify_preds_4): Ditto.
36487         (simplify_preds): Ditto.
36488         (push_pred): Ditto.
36489         (push_to_worklist): Ditto.
36490         (get_pred_info_from_cmp): Ditto.
36491         (is_degenerated_phi): Ditto.
36492         (normalize_one_pred_1): Ditto.
36493         (normalize_one_pred): Ditto.
36494         (normalize_one_pred_chain): Ditto.
36495         (normalize_preds): Ditto.
36496         (normalize_cond_1): Remove function.
36497         (normalize_cond): Ditto.
36498         (is_gcond_subset_of): Ditto.
36499         (is_subset_of_any): Ditto.
36500         (is_or_set_subset_of): Ditto.
36501         (is_and_set_subset_of): Ditto.
36502         (is_norm_cond_subset_of): Ditto.
36503         (pred_chain_length_cmp): Ditto.
36504         (convert_control_dep_chain_into_preds): Type change.
36505         (find_predicates): Ditto.
36506         (find_def_preds): Ditto.
36507         (destroy_predicates_vecs): Ditto.
36508         (find_matching_predicates_in_rest_chains): Ditto.
36509         (use_pred_not_overlap_with_undef_path_pred): Ditto.
36510         (is_pred_expr_subset): Ditto.
36511         (is_pred_chain_subset_of): Ditto.
36512         (is_included_in): Ditto.
36513         (is_superset_of): Ditto.
36514
36515 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
36516
36517         Update copyright years.
36518
36519 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
36520
36521         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
36522         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
36523         config/arc/arc.md, config/arc/arc.opt,
36524         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
36525         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
36526         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
36527         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
36528         config/linux-protos.h, config/linux.c, config/winnt-c.c,
36529         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
36530         vtable-verify.c, vtable-verify.h: Use the standard form for the
36531         copyright notice.
36532
36533 2014-01-02  Tobias Burnus  <burnus@net-b.de>
36534
36535         * gcc.c (process_command): Update copyright notice dates.
36536         * gcov-dump.c: Ditto.
36537         * gcov.c: Ditto.
36538         * doc/cpp.texi: Bump @copying's copyright year.
36539         * doc/cppinternals.texi: Ditto.
36540         * doc/gcc.texi: Ditto.
36541         * doc/gccint.texi: Ditto.
36542         * doc/gcov.texi: Ditto.
36543         * doc/install.texi: Ditto.
36544         * doc/invoke.texi: Ditto.
36545
36546 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
36547
36548         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
36549
36550 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
36551
36552         * config/i386/sse.md (*mov<mode>_internal): Guard
36553         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
36554
36555         PR rtl-optimization/59647
36556         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
36557         new_rtx into UNSIGNED_FLOAT rtxes.
36558 \f
36559 Copyright (C) 2014 Free Software Foundation, Inc.
36560
36561 Copying and distribution of this file, with or without modification,
36562 are permitted in any medium without royalty provided the copyright
36563 notice and this notice are preserved.