alpha.c: Include rtl-iter.h.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
2
3         * config/alpha/alpha.c: Include rtl-iter.h.
4         (split_small_symbolic_operand_1): Delete.
5         (split_small_symbolic_operand): Use FOR_EACH_SUBRTX_PTR.
6
7 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8
9         * config/s390/s390.c: Include rtl-iter.h.
10         (check_dpu): Delete.
11         (s390_loop_unroll_adjust): Only iterate over patterns.
12         Use FOR_EACH_SUBRTX.
13
14 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
15
16         * config/spu/spu.c: Include rtl-iter.h
17         (ea_symbol_ref): Replace with...
18         (ea_symbol_ref_p): ...this new function.
19         (spu_legitimate_address_p): Update call accordingly.
20         (spu_legitimate_constant_p): Likewise.  Use FOR_EACH_SUBRTX.
21
22 2014-10-27  Phil Muldoon  <pmuldoon@redhat.com>
23             Tom Tromey  <tromey@redhat.com>
24
25         * aclocal.m4, configure: Rebuild.
26         * Makefile.in (aclocal_deps): Add gcc-plugin.m4.
27         * configure.ac: Use GCC_ENABLE_PLUGINS.
28         * stor-layout.c (finish_bitfield_layout): Now public.  Change
29         argument type to 'tree'.
30         (finish_record_layout): Update.
31         * stor-layout.h (finish_bitfield_layout): Declare.
32
33 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
34
35         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define again.
36         * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
37         Restore, enable for bigendian, update to use __builtin..._scal...
38
39 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
40
41         * config/aarch64/aarch64-simd-builtins.def (reduc_smax_, reduc_smin_,
42         reduc_umax_, reduc_umin_, reduc_smax_nan_, reduc_smin_nan_): Remove.
43         (reduc_smax_scal_, reduc_smin_scal_, reduc_umax_scal_,
44         reduc_umin_scal_, reduc_smax_nan_scal_, reduc_smin_nan_scal_): New.
45
46         * config/aarch64/aarch64-simd.md
47         (reduc_<maxmin_uns>_<mode>): Rename VDQV_S variant to...
48         (reduc_<maxmin_uns>_internal<mode>): ...this.
49         (reduc_<maxmin_uns>_<mode>): New (VDQ_BHSI).
50         (reduc_<maxmin_uns>_scal_<mode>): New (*2).
51
52         (reduc_<maxmin_uns>_v2si): Combine with below, renaming...
53         (reduc_<maxmin_uns>_<mode>): Combine V2F with above, renaming...
54         (reduc_<maxmin_uns>_internal_<mode>): ...to this (VDQF).
55
56         * config/aarch64/arm_neon.h (vmaxv_f32, vmaxv_s8, vmaxv_s16,
57         vmaxv_s32, vmaxv_u8, vmaxv_u16, vmaxv_u32, vmaxvq_f32, vmaxvq_f64,
58         vmaxvq_s8, vmaxvq_s16, vmaxvq_s32, vmaxvq_u8, vmaxvq_u16, vmaxvq_u32,
59         vmaxnmv_f32, vmaxnmvq_f32, vmaxnmvq_f64, vminv_f32, vminv_s8,
60         vminv_s16, vminv_s32, vminv_u8, vminv_u16, vminv_u32, vminvq_f32,
61         vminvq_f64, vminvq_s8, vminvq_s16, vminvq_s32, vminvq_u8, vminvq_u16,
62         vminvq_u32, vminnmv_f32, vminnmvq_f32, vminnmvq_f64): Update to use
63         __builtin_aarch64_reduc_..._scal; remove vget_lane wrapper.
64
65 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
66
67         * config/aarch64/aarch64-simd-builtins.def
68         (reduc_splus_<mode>/VDQF, reduc_uplus_<mode>/VDQF, reduc_splus_v4sf):
69         Remove.
70         (reduc_plus_scal_<mode>, reduc_plus_scal_v4sf): New.
71
72         * config/aarch64/aarch64-simd.md (reduc_<sur>plus_mode): Remove.
73         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_plus_scal_<mode>): New.
74
75         (reduc_<sur>plus_mode): Change SUADDV -> UNSPEC_ADDV, rename to...
76         (aarch64_reduc_plus_internal<mode>): ...this.
77
78         (reduc_<sur>plus_v2si): Change SUADDV -> UNSPEC_ADDV, rename to...
79         (aarch64_reduc_plus_internalv2si): ...this.
80
81         (reduc_splus_<mode>/V2F): Rename to...
82         (aarch64_reduc_plus_internal<mode>): ...this.
83
84         * config/aarch64/iterators.md
85         (UNSPEC_SADDV, UNSPEC_UADDV, SUADDV): Remove.
86         (UNSPEC_ADDV): New.
87         (sur): Remove elements for UNSPEC_SADDV and UNSPEC_UADDV.
88
89         * config/aarch64/arm_neon.h (vaddv_s8, vaddv_s16, vaddv_s32, vaddv_u8,
90         vaddv_u16, vaddv_u32, vaddvq_s8, vaddvq_s16, vaddvq_s32, vaddvq_s64,
91         vaddvq_u8, vaddvq_u16, vaddvq_u32, vaddvq_u64, vaddv_f32, vaddvq_f32,
92         vaddvq_f64): Change __builtin_aarch64_reduc_[us]plus_... to
93         __builtin_aarch64_reduc_plus_scal, remove vget_lane wrapper.
94
95 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
96
97         PR tree-optimization/61114
98         * doc/md.texi (Standard Names): Add reduc_(plus,[us](min|max))|scal
99         optabs, and note in reduc_[us](plus|min|max) to prefer the former.
100
101         * expr.c (expand_expr_real_2): Use reduc_..._scal if available, fall
102         back to old reduc_... + BIT_FIELD_REF only if not.
103
104         * optabs.c (optab_for_tree_code): for REDUC_(MAX,MIN,PLUS)_EXPR,
105         return the reduce-to-scalar (reduc_..._scal) optab.
106         (scalar_reduc_to_vector): New.
107
108         * optabs.def (reduc_smax_scal_optab, reduc_smin_scal_optab,
109         reduc_plus_scal_optab, reduc_umax_scal_optab, reduc_umin_scal_optab):
110         New.
111
112         * optabs.h (scalar_reduc_to_vector): Declare.
113
114         * tree-vect-loop.c (vectorizable_reduction): Look for optabs reducing
115         to either scalar or vector.
116
117 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
118
119         PR tree-optimization/61114
120         * expr.c (expand_expr_real_2): For REDUC_{MIN,MAX,PLUS}_EXPR, add
121         extract_bit_field around optab result.
122
123         * fold-const.c (fold_unary_loc): For REDUC_{MIN,MAX,PLUS}_EXPR, produce
124         scalar not vector.
125
126         * tree-cfg.c (verify_gimple_assign_unary): Check result vs operand type
127         for REDUC_{MIN,MAX,PLUS}_EXPR.
128
129         * tree-vect-loop.c (vect_analyze_loop): Update comment.
130         (vect_create_epilog_for_reduction): For direct vector reduction, use
131         result of tree code directly without extract_bit_field.
132
133         * tree.def (REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR): Update
134         comment.
135
136 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
137
138         * basic-block.h: Remove all includes.
139         (enum profile_status_d, struct control_flow_graph): Move to cfg.h
140         * cfg.h (profile_status_d, struct control_flow_graph): Relocate here.
141         * Makefile.in (GTFILES): Add cfg.h to list.
142         * cgraph.h (symbol_table::create_empty): Move to cgraph.c.
143         * cgraph.c (symbol_table::create_empty): Relocate from cgraph.h.
144         * genconditions.c (write_header): Add predict.h and basic-block.h to
145         lits of includes.
146         * genemit.c (main): Ditto.
147         * genpreds.c (write_insn_preds_c): Ditto.
148         * genrecog.c (write_header): Ditto.
149         * gengtype.c (open_base_files): Add predict.h, basic-block.h, and cfg.h
150         to list of includes.
151         * alias.c: Adjust include files.
152         * asan.c: Ditto.
153         * auto-inc-dec.c: Ditto.
154         * auto-profile.c: Ditto.
155         * bb-reorder.c: Ditto.
156         * bt-load.c: Ditto.
157         * builtins.c: Ditto.
158         * caller-save.c: Ditto.
159         * calls.c: Ditto.
160         * cfg.c: Ditto.
161         * cfganal.c: Ditto.
162         * cfgbuild.c: Ditto.
163         * cfgcleanup.c: Ditto.
164         * cfgexpand.c: Ditto.
165         * cfghooks.c: Ditto.
166         * cfgloop.c: Ditto.
167         * cfgloopanal.c: Ditto.
168         * cfgloopmanip.c: Ditto.
169         * cfgrtl.c: Ditto.
170         * cgraphbuild.c: Ditto.
171         * cgraphclones.c: Ditto.
172         * cgraphunit.c: Ditto.
173         * combine-stack-adj.c: Ditto.
174         * combine.c: Ditto.
175         * compare-elim.c: Ditto.
176         * coverage.c: Ditto.
177         * cprop.c: Ditto.
178         * cse.c: Ditto.
179         * cselib.c: Ditto.
180         * data-streamer-in.c: Ditto.
181         * data-streamer-out.c: Ditto.
182         * data-streamer.c: Ditto.
183         * dce.c: Ditto.
184         * ddg.c: Ditto.
185         * ddg.h: Ditto.
186         * df-core.c: Ditto.
187         * df-problems.c: Ditto.
188         * df-scan.c: Ditto.
189         * df.h: Ditto.
190         * dojump.c: Ditto.
191         * dominance.c: Ditto.
192         * domwalk.c: Ditto.
193         * dse.c: Ditto.
194         * dwarf2cfi.c: Ditto.
195         * emit-rtl.c: Ditto.
196         * et-forest.c: Ditto.
197         * except.c: Ditto.
198         * expmed.c: Ditto.
199         * expr.c: Ditto.
200         * final.c: Ditto.
201         * fold-const.c: Ditto.
202         * function.c: Ditto.
203         * fwprop.c: Ditto.
204         * gcc-plugin.h: Ditto.
205         * gcse.c: Ditto.
206         * generic-match-head.c: Ditto.
207         * ggc-page.c: Ditto.
208         * gimple-builder.c: Ditto.
209         * gimple-expr.c: Ditto.
210         * gimple-fold.c: Ditto.
211         * gimple-iterator.c: Ditto.
212         * gimple-low.c: Ditto.
213         * gimple-match-head.c: Ditto.
214         * gimple-pretty-print.c: Ditto.
215         * gimple-ssa-isolate-paths.c: Ditto.
216         * gimple-ssa-strength-reduction.c: Ditto.
217         * gimple-streamer-in.c: Ditto.
218         * gimple-streamer-out.c: Ditto.
219         * gimple-streamer.h: Ditto.
220         * gimple-walk.c: Ditto.
221         * gimple.c: Ditto.
222         * gimplify-me.c: Ditto.
223         * gimplify.c: Ditto.
224         * graph.c: Ditto.
225         * graphite-blocking.c: Ditto.
226         * graphite-clast-to-gimple.c: Ditto.
227         * graphite-dependences.c: Ditto.
228         * graphite-interchange.c: Ditto.
229         * graphite-isl-ast-to-gimple.c: Ditto.
230         * graphite-optimize-isl.c: Ditto.
231         * graphite-poly.c: Ditto.
232         * graphite-scop-detection.c: Ditto.
233         * graphite-sese-to-poly.c: Ditto.
234         * graphite.c: Ditto.
235         * haifa-sched.c: Ditto.
236         * hw-doloop.c: Ditto.
237         * ifcvt.c: Ditto.
238         * init-regs.c: Ditto.
239         * internal-fn.c: Ditto.
240         * ipa-cp.c: Ditto.
241         * ipa-devirt.c: Ditto.
242         * ipa-icf-gimple.c: Ditto.
243         * ipa-icf.c: Ditto.
244         * ipa-inline-analysis.c: Ditto.
245         * ipa-inline.c: Ditto.
246         * ipa-polymorphic-call.c: Ditto.
247         * ipa-profile.c: Ditto.
248         * ipa-prop.c: Ditto.
249         * ipa-pure-const.c: Ditto.
250         * ipa-reference.c: Ditto.
251         * ipa-split.c: Ditto.
252         * ipa-utils.c: Ditto.
253         * ipa.c: Ditto.
254         * ira-build.c: Ditto.
255         * ira-color.c: Ditto.
256         * ira-conflicts.c: Ditto.
257         * ira-costs.c: Ditto.
258         * ira-emit.c: Ditto.
259         * ira-lives.c: Ditto.
260         * ira.c: Ditto.
261         * jump.c: Ditto.
262         * lcm.c: Ditto.
263         * loop-doloop.c: Ditto.
264         * loop-init.c: Ditto.
265         * loop-invariant.c: Ditto.
266         * loop-iv.c: Ditto.
267         * loop-unroll.c: Ditto.
268         * lower-subreg.c: Ditto.
269         * lra-assigns.c: Ditto.
270         * lra-coalesce.c: Ditto.
271         * lra-constraints.c: Ditto.
272         * lra-eliminations.c: Ditto.
273         * lra-lives.c: Ditto.
274         * lra-spills.c: Ditto.
275         * lra.c: Ditto.
276         * lto-cgraph.c: Ditto.
277         * lto-compress.c: Ditto.
278         * lto-opts.c: Ditto.
279         * lto-section-in.c: Ditto.
280         * lto-section-out.c: Ditto.
281         * lto-streamer-in.c: Ditto.
282         * lto-streamer-out.c: Ditto.
283         * lto-streamer.c: Ditto.
284         * mcf.c: Ditto.
285         * mode-switching.c: Ditto.
286         * modulo-sched.c: Ditto.
287         * omp-low.c: Ditto.
288         * optabs.c: Ditto.
289         * opts-global.c: Ditto.
290         * passes.c: Ditto.
291         * postreload-gcse.c: Ditto.
292         * postreload.c: Ditto.
293         * predict.c: Ditto.
294         * print-rtl.c: Ditto.
295         * profile.c: Ditto.
296         * recog.c: Ditto.
297         * ree.c: Ditto.
298         * reg-stack.c: Ditto.
299         * regcprop.c: Ditto.
300         * regcprop.h: Ditto.
301         * reginfo.c: Ditto.
302         * regrename.c: Ditto.
303         * regstat.c: Ditto.
304         * reload.c: Ditto.
305         * reload1.c: Ditto.
306         * reorg.c: Ditto.
307         * resource.c: Ditto.
308         * rtlanal.c: Ditto.
309         * sched-deps.c: Ditto.
310         * sched-ebb.c: Ditto.
311         * sched-int.h: Ditto.
312         * sched-rgn.c: Ditto.
313         * sched-vis.c: Ditto.
314         * sel-sched-dump.c: Ditto.
315         * sel-sched-ir.c: Ditto.
316         * sel-sched-ir.h: Ditto.
317         * sel-sched.c: Ditto.
318         * sese.c: Ditto.
319         * shrink-wrap.c: Ditto.
320         * stack-ptr-mod.c: Ditto.
321         * stmt.c: Ditto.
322         * store-motion.c: Ditto.
323         * symtab.c: Ditto.
324         * toplev.c: Ditto.
325         * tracer.c: Ditto.
326         * trans-mem.c: Ditto.
327         * tree-affine.c: Ditto.
328         * tree-call-cdce.c: Ditto.
329         * tree-cfg.c: Ditto.
330         * tree-cfgcleanup.c: Ditto.
331         * tree-chrec.c: Ditto.
332         * tree-complex.c: Ditto.
333         * tree-data-ref.c: Ditto.
334         * tree-dfa.c: Ditto.
335         * tree-eh.c: Ditto.
336         * tree-emutls.c: Ditto.
337         * tree-if-conv.c: Ditto.
338         * tree-inline.c: Ditto.
339         * tree-into-ssa.c: Ditto.
340         * tree-loop-distribution.c: Ditto.
341         * tree-nested.c: Ditto.
342         * tree-nrv.c: Ditto.
343         * tree-object-size.c: Ditto.
344         * tree-outof-ssa.c: Ditto.
345         * tree-parloops.c: Ditto.
346         * tree-phinodes.c: Ditto.
347         * tree-predcom.c: Ditto.
348         * tree-pretty-print.c: Ditto.
349         * tree-profile.c: Ditto.
350         * tree-scalar-evolution.c: Ditto.
351         * tree-sra.c: Ditto.
352         * tree-ssa-address.c: Ditto.
353         * tree-ssa-alias.c: Ditto.
354         * tree-ssa-ccp.c: Ditto.
355         * tree-ssa-coalesce.c: Ditto.
356         * tree-ssa-copy.c: Ditto.
357         * tree-ssa-copyrename.c: Ditto.
358         * tree-ssa-dce.c: Ditto.
359         * tree-ssa-dom.c: Ditto.
360         * tree-ssa-dse.c: Ditto.
361         * tree-ssa-forwprop.c: Ditto.
362         * tree-ssa-ifcombine.c: Ditto.
363         * tree-ssa-live.c: Ditto.
364         * tree-ssa-loop-ch.c: Ditto.
365         * tree-ssa-loop-im.c: Ditto.
366         * tree-ssa-loop-ivcanon.c: Ditto.
367         * tree-ssa-loop-ivopts.c: Ditto.
368         * tree-ssa-loop-manip.c: Ditto.
369         * tree-ssa-loop-niter.c: Ditto.
370         * tree-ssa-loop-prefetch.c: Ditto.
371         * tree-ssa-loop-unswitch.c: Ditto.
372         * tree-ssa-loop.c: Ditto.
373         * tree-ssa-math-opts.c: Ditto.
374         * tree-ssa-operands.c: Ditto.
375         * tree-ssa-phiopt.c: Ditto.
376         * tree-ssa-phiprop.c: Ditto.
377         * tree-ssa-pre.c: Ditto.
378         * tree-ssa-propagate.c: Ditto.
379         * tree-ssa-reassoc.c: Ditto.
380         * tree-ssa-sccvn.c: Ditto.
381         * tree-ssa-sink.c: Ditto.
382         * tree-ssa-strlen.c: Ditto.
383         * tree-ssa-structalias.c: Ditto.
384         * tree-ssa-tail-merge.c: Ditto.
385         * tree-ssa-ter.c: Ditto.
386         * tree-ssa-threadedge.c: Ditto.
387         * tree-ssa-threadupdate.c: Ditto.
388         * tree-ssa-uncprop.c: Ditto.
389         * tree-ssa-uninit.c: Ditto.
390         * tree-ssa.c: Ditto.
391         * tree-ssanames.c: Ditto.
392         * tree-stdarg.c: Ditto.
393         * tree-streamer-in.c: Ditto.
394         * tree-streamer-out.c: Ditto.
395         * tree-streamer.c: Ditto.
396         * tree-switch-conversion.c: Ditto.
397         * tree-tailcall.c: Ditto.
398         * tree-vect-data-refs.c: Ditto.
399         * tree-vect-generic.c: Ditto.
400         * tree-vect-loop-manip.c: Ditto.
401         * tree-vect-loop.c: Ditto.
402         * tree-vect-patterns.c: Ditto.
403         * tree-vect-slp.c: Ditto.
404         * tree-vect-stmts.c: Ditto.
405         * tree-vectorizer.c: Ditto.
406         * tree-vrp.c: Ditto.
407         * tree.c: Ditto.
408         * tsan.c: Ditto.
409         * ubsan.c: Ditto.
410         * valtrack.c: Ditto.
411         * valtrack.h: Ditto.
412         * value-prof.c: Ditto.
413         * var-tracking.c: Ditto.
414         * varasm.c: Ditto.
415         * varpool.c: Ditto.
416         * vtable-verify.c: Ditto.
417         * web.c: Ditto.
418         * config/aarch64/aarch64-builtins.c: Ditto.
419         * config/aarch64/aarch64.c: Ditto.
420         * config/alpha/alpha.c: Ditto.
421         * config/arc/arc.c: Ditto.
422         * config/arm/arm.c: Ditto.
423         * config/avr/avr.c: Ditto.
424         * config/bfin/bfin.c: Ditto.
425         * config/c6x/c6x.c: Ditto.
426         * config/cr16/cr16.c: Ditto.
427         * config/cris/cris.c: Ditto.
428         * config/darwin-c.c: Ditto.
429         * config/darwin.c: Ditto.
430         * config/epiphany/epiphany.c: Ditto.
431         * config/epiphany/mode-switch-use.c: Ditto.
432         * config/epiphany/resolve-sw-modes.c: Ditto.
433         * config/fr30/fr30.c: Ditto.
434         * config/frv/frv.c: Ditto.
435         * config/h8300/h8300.c: Ditto.
436         * config/i386/i386.c: Ditto.
437         * config/i386/winnt.c: Ditto.
438         * config/ia64/ia64.c: Ditto.
439         * config/iq2000/iq2000.c: Ditto.
440         * config/lm32/lm32.c: Ditto.
441         * config/m32c/m32c.c: Ditto.
442         * config/m32r/m32r.c: Ditto.
443         * config/m68k/m68k.c: Ditto.
444         * config/mcore/mcore.c: Ditto.
445         * config/mep/mep.c: Ditto.
446         * config/microblaze/microblaze.c: Ditto.
447         * config/mips/mips.c: Ditto.
448         * config/mmix/mmix.c: Ditto.
449         * config/mn10300/mn10300.c: Ditto.
450         * config/moxie/moxie.c: Ditto.
451         * config/msp430/msp430.c: Ditto.
452         * config/nds32/nds32-cost.c: Ditto.
453         * config/nds32/nds32-fp-as-gp.c: Ditto.
454         * config/nds32/nds32-intrinsic.c: Ditto.
455         * config/nds32/nds32-isr.c: Ditto.
456         * config/nds32/nds32-md-auxiliary.c: Ditto.
457         * config/nds32/nds32-memory-manipulation.c: Ditto.
458         * config/nds32/nds32-pipelines-auxiliary.c: Ditto.
459         * config/nds32/nds32-predicates.c: Ditto.
460         * config/nds32/nds32.c: Ditto.
461         * config/nios2/nios2.c: Ditto.
462         * config/pa/pa.c: Ditto.
463         * config/pdp11/pdp11.c: Ditto.
464         * config/rl78/rl78.c: Ditto.
465         * config/rs6000/rs6000.c: Ditto.
466         * config/rx/rx.c: Ditto.
467         * config/s390/s390.c: Ditto.
468         * config/sh/sh-mem.cc: Ditto.
469         * config/sh/sh.c: Ditto.
470         * config/sh/sh_optimize_sett_clrt.cc: Ditto.
471         * config/sh/sh_treg_combine.cc: Ditto.
472         * config/sparc/sparc.c: Ditto.
473         * config/spu/spu.c: Ditto.
474         * config/stormy16/stormy16.c: Ditto.
475         * config/tilegx/tilegx.c: Ditto.
476         * config/tilepro/tilepro.c: Ditto.
477         * config/v850/v850.c: Ditto.
478         * config/vax/vax.c: Ditto.
479         * config/xtensa/xtensa.c: Ditto.
480
481 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
482
483         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Comment out.
484         * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
485         Remove using preprocessor directives.
486
487 2014-10-27  Richard Biener  <rguenther@suse.de>
488
489         * match.pd (0 % X): Properly use the iterator iterating over
490         all modulo operators.
491         (X % 1): Likewise.
492
493 2014-10-27  Richard Biener  <rguenther@suse.de>
494
495         * tree-ssa-forwprop.c: Include tree-cfgcleanup.h and tree-into-ssa.h.
496         (lattice): New global.
497         (fwprop_ssa_val): New function.
498         (fold_all_stmts): Likewise.
499         (pass_forwprop::execute): Finally fold all stmts.
500
501 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
502
503         PR c++/53061
504         * doc/invoke.texi (fmessage-length): Update text to match reality.
505
506 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
507
508         * config/microblaze/microblaze.c: Include rtl-iter.h.
509         (microblaze_tls_referenced_p_1): Delete.
510         (microblaze_tls_referenced_p): Use FOR_EACH_SUBRTX.
511
512 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
513
514         * config/mips/mips.c (mips_at_reg_p): Delete.
515         (mips_need_noat_wrapper_p): Use FOR_EACH_SUBRTX.
516
517 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
518
519         * config/mips/mips.c (mips_record_lo_sum): Replace with...
520         (mips_record_lo_sums): ...this new function.
521         (mips_reorg_process_insns): Update accordingly.
522
523 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
524
525         * config/mips/mips.c (mips_sim_insn): Update comment.
526         (mips_sim_wait_regs_2): Delete.
527         (mips_sim_wait_regs_1): Use FOR_EACH_SUBRTX_VAR.
528
529 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
530
531         * config/mips/mips.c (r10k_needs_protection_p_call): Take a const_rtx
532         and return a bool.  Iterate over all subrtxes here.
533         (r10k_needs_protection_p): Update accordingly.
534
535 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
536
537         * config/mips/mips.c (r10k_needs_protection_p_1): Take an rtx
538         rather than an rtx pointer.  Change type of insn from "void *"
539         to its real type.  Return bool rather than int.  Iterate over
540         all subrtxes here.
541         (r10k_needs_protection_p_store): Update accordingly.
542         (r10k_needs_protection_p): Likewise.
543
544 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
545
546         * config/mips/mips.c (mips16_rewrite_pool_refs_info): Delete.
547         (mips16_rewrite_pool_refs): Take the insn and constant pool as
548         parameters.  Iterate over the instruction's pattern and return void.
549         (mips16_lay_out_constants): Update accordingly.
550
551 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
552
553         * config/mips/mips.c (mips_kernel_reg_p): Replace with...
554         (mips_refers_to_kernel_reg_p): ...this new function.
555         (mips_expand_prologue): Update accordingly.
556
557 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
558
559         * config/mips/mips.c (mips_rewrite_small_data_1): Take the context
560         as a parameter instead of the containing MEM.  Iterate over all
561         subrtxes.  Don't return a value.
562         (mips_rewrite_small_data): Update call accordingly.
563
564 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
565
566         * config/mips/mips.c: Include rtl-iter.h.
567         (mips_small_data_pattern_1): Take an rtx rather than an rtx pointer.
568         Take the context as a parameter instead of the containing MEM.
569         Iterate over all subrtxes.
570         (mips_small_data_pattern_p): Update call accordingly.
571
572 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
573
574         * config/mep/mep.c (mep_mul_hilo_bypass_1): Delete.
575         (mep_mul_hilo_bypass_p): Use FOR_EACH_SUBRTX.
576
577 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
578
579         * config/mep/mep.c (mep_store_find_set): Take a const_rtx and
580         return a bool.  Replace "void *" with specific type.  Iterate
581         over all subrtxes.
582         (mep_store_data_bypass_1): Update calls accordingly.
583
584 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
585
586         * config/mep/mep.c: Include rtl-iter.h.
587         (global_reg_mentioned_p_1): Take a const_rtx and return a bool.
588         (xtensa_tls_referenced_p): Return a bool.  Use FOR_EACH_SUBRTX.
589
590 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
591
592         * config/xtensa/xtensa.c: Include rtl-iter.h.
593         (xtensa_tls_referenced_p_1): Delete.
594         (xtensa_tls_referenced_p): Use FOR_EACH_SUBRTX.
595
596 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
597
598         * config/sh/sh.c (sh_contains_memref_p_1): Delete.
599         (sh_contains_memref_p): Use FOR_EACH_SUBRTX.
600
601 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
602
603         * config/sh/sh-protos.h (shmedia_cleanup_truncate): Take an
604         rtx as argument and return the number of changes.
605         * config/sh/sh.c: Include rtl-iter.h.
606         (shmedia_cleanup_truncate): Take an rtx as argument and iterate
607         over all subrtxes.  Return the number of changes made.
608         * config/sh/sh.md: Update caller accordingly.
609
610 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
611
612         * config/m68k/m68k.c (m68k_tls_reference_p_1): Delete.
613         (m68k_tls_reference_p): Use FOR_EACH_SUBRTX_VAR.
614
615 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
616
617         * config/m68k/m68k.c: Include rtl-iter.h.
618         (m68k_final_prescan_insn_1): Delete.
619         (m68k_final_prescan_insn): Use FOR_EACH_SUBRTX_VAR.
620
621 2014-10-25  Jakub Jelinek  <jakub@redhat.com>
622
623         PR tree-optimization/63641
624         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Set high
625         to low + prec - 1 - clz (mask) instead of low + prec - clz (mask).
626
627 2014-10-25  Alan Modra  <amodra@gmail.com>
628
629         PR rtl-optimization/63615
630         * simplify-rtx.c (simplify_plus_minus): Set "canonicalized" on
631         decomposing PLUS or MINUS if operands are not placed adjacent
632         in the "ops" array.
633
634 2014-10-25  Joseph Myers  <joseph@codesourcery.com>
635
636         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Do
637         not allow e500 double in registers not satisyfing
638         SPE_SIMD_REGNO_P.
639
640 2014-10-24  Aldy Hernandez  <aldyh@redhat.com>
641
642         * dwarf2out.c (declare_in_namespace): Only emit external
643         declarations in the local scope once.
644
645 2014-10-24  Jonathan Wakely  <jwakely@redhat.com>
646
647         * ginclude/stdbool.h: Do not define bool, true or false in C++11.
648
649 2014-10-24  Charles Baylis  <charles.baylis@linaro.org>
650
651         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rewrite using builtins,
652         update uses to use new macro arguments.
653         (__LD3_LANE_FUNC): Likewise.
654         (__LD4_LANE_FUNC): Likewise.
655
656 2014-10-24  Charles Baylis  <charles.baylis@linaro.org>
657
658         * config/aarch64/aarch64-builtins.c
659         (aarch64_types_loadstruct_lane_qualifiers): Define.
660         * config/aarch64/aarch64-simd-builtins.def (ld2_lane, ld3_lane,
661         ld4_lane): New builtins.
662         * config/aarch64/aarch64-simd.md (aarch64_vec_load_lanesoi_lane<mode>):
663         New pattern.
664         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
665         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
666         (aarch64_ld2_lane<mode>): New expand.
667         (aarch64_ld3_lane<mode>): Likewise.
668         (aarch64_ld4_lane<mode>): Likewise.
669         * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
670         UNSPEC_LD2_LANE, UNSPEC_LD3_LANE, UNSPEC_LD4_LANE.
671
672 2014-10-24  Georg-Johann Lay  <avr@gjlay.de>
673
674         * avr-protos.h (avr_out_sign_extend): New.
675         * avr.c (avr_adjust_insn_length) [ADJUST_LEN_SEXT]: Handle.
676         (avr_out_sign_extend): New function.
677         * avr.md (extendqihi2, extendqipsi2, extendqisi2, extendhipsi2)
678         (extendhisi2, extendpsisi2): Use it.
679         (adjust_len) [sext]: New.
680
681 2014-10-24  Martin Liska  <mliska@suse.cz>
682
683         * ipa-icf.c (sem_function::compare_phi_node): PHI result comparison
684         added.
685
686 2014-10-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
687
688         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Define.
689         (LINK_SPEC): Include CA53_ERR_835769_SPEC.
690         * config/aarch64/aarch64-linux.h (CA53_ERR_835769_SPEC): Define.
691         (LINK_SPEC): Include CA53_ERR_835769_SPEC.
692
693 2014-10-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
694
695         * config/aarch64/aarch64.h (ADJUST_INSN_LENGTH): Wrap definition in
696         do while (0).
697         * config/aarch64/aarch64.c (is_mem_p): Delete.
698         (is_memory_op): Rename to...
699         (has_memory_op): ... This.  Use FOR_EACH_SUBRTX.
700         (dep_between_memop_and_curr): Assert that the input is a SET.
701         (aarch64_madd_needs_nop): Add comment.  Do not call
702         dep_between_memop_and_curr on NULL body.
703         (aarch64_final_prescan_insn): Add comment.
704         Include rtl-iter.h.
705
706 2014-10-24  Richard Biener  <rguenther@suse.de>
707
708         * Makefile.in (BUILD_CPPLIB): Move $(LIBINTL) $(LIBICONV)
709         to genmatch BUILD_LIBS instead.
710
711 2014-10-24  Richard Biener  <rguenther@suse.de>
712
713         * genmatch.c (expr::gen_transform): Use fold_buildN_loc
714         and build_call_expr_loc.
715         (dt_simplify::gen): Drop non_lvalue for GIMPLE, use
716         non_lvalue_loc to build it for GENERIC.
717         (decision_tree::gen_generic): Add location argument to
718         generic_simplify prototype.
719         (capture_info): New class.
720         (capture_info::capture_info): New constructor.
721         (capture_info::walk_match): New method.
722         (capture_info::walk_result): New method.
723         (capture_info::walk_c_expr): New method.
724         (dt_simplify::gen): Handle preserving side-effects for
725         GENERIC code generation.
726         (decision_tree::gen_generic): Do not reject operands
727         with TREE_SIDE_EFFECTS.
728         * generic-match.h: New file.
729         * generic-match-head.c: Include generic-match.h, not gimple-match.h.
730         * match.pd: Add some constant folding patterns from fold-const.c.
731         * fold-const.c: Include generic-match.h.
732         (fold_unary_loc): Dispatch to generic_simplify.
733         (fold_ternary_loc): Likewise.
734         (fold_binary_loc): Likewise.  Remove patterns now implemented
735         by generic_simplify.
736         * gimple-fold.c (replace_stmt_with_simplification): New function.
737         (fold_stmt_1): Add valueize parameter, dispatch to gimple_simplify.
738         (no_follow_ssa_edges): New function.
739         (fold_stmt): New overload with valueization hook.  Use
740         no_follow_ssa_edges for the overload without hook.
741         (fold_stmt_inplace): Likewise.
742         * gimple-fold.h (no_follow_ssa_edges): Declare.
743
744 2014-10-24  Felix Yang  <felix.yang@huawei.com>
745         Jiji Jiang  <jiangjiji@huawei.com>
746
747         PR target/63173
748         * config/aarch64/arm_neon.h (__LD2R_FUNC): Remove macro.
749         (__LD3R_FUNC): Ditto.
750         (__LD4R_FUNC): Ditto.
751         (vld2_dup_s8, vld2_dup_s16, vld2_dup_s32, vld2_dup_f32, vld2_dup_f64,
752          vld2_dup_u8, vld2_dup_u16, vld2_dup_u32, vld2_dup_p8, vld2_dup_p16
753          vld2_dup_s64, vld2_dup_u64, vld2q_dup_s8, vld2q_dup_p8,
754          vld2q_dup_s16, vld2q_dup_p16, vld2q_dup_s32, vld2q_dup_s64,
755          vld2q_dup_u8, vld2q_dup_u16, vld2q_dup_u32, vld2q_dup_u64
756          vld2q_dup_f32, vld2q_dup_f64): Rewrite using builtin functions.
757         (vld3_dup_s64, vld3_dup_u64, vld3_dup_f64, vld3_dup_s8
758          vld3_dup_p8, vld3_dup_s16, vld3_dup_p16, vld3_dup_s32
759          vld3_dup_u8, vld3_dup_u16, vld3_dup_u32, vld3_dup_f32
760          vld3q_dup_s8, vld3q_dup_p8, vld3q_dup_s16, vld3q_dup_p16
761          vld3q_dup_s32, vld3q_dup_s64, vld3q_dup_u8, vld3q_dup_u16
762          vld3q_dup_u32, vld3q_dup_u64, vld3q_dup_f32, vld3q_dup_f64): Likewise.
763         (vld4_dup_s64, vld4_dup_u64, vld4_dup_f64, vld4_dup_s8
764          vld4_dup_p8, vld4_dup_s16, vld4_dup_p16, vld4_dup_s32
765          vld4_dup_u8, vld4_dup_u16, vld4_dup_u32, vld4_dup_f32
766          vld4q_dup_s8, vld4q_dup_p8, vld4q_dup_s16, vld4q_dup_p16
767          vld4q_dup_s32, vld4q_dup_s64, vld4q_dup_u8, vld4q_dup_u16
768          vld4q_dup_u32, vld4q_dup_u64, vld4q_dup_f32, vld4q_dup_f64): Likewise.
769         * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
770         UNSPEC_LD2_DUP, UNSPEC_LD3_DUP, UNSPEC_LD4_DUP.
771         * config/aarch64/aarch64-simd-builtins.def (ld2r, ld3r, ld4r): New
772         builtins.
773         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>): New pattern.
774         (aarch64_simd_ld3r<mode>): Likewise.
775         (aarch64_simd_ld4r<mode>): Likewise.
776         (aarch64_ld2r<mode>): New expand.
777         (aarch64_ld3r<mode>): Likewise.
778         (aarch64_ld4r<mode>): Likewise.
779
780 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
781
782         * rtlanal.c (get_base_term): Handle SCRATCH.
783
784 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
785
786         * haifa-sched.c (sched_init): Disable max_issue when scheduling for
787         register pressure.
788
789 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
790
791         * haifa-sched.c (cached_first_cycle_multipass_dfa_lookahead,)
792         (cached_issue_rate): Remove.  Use dfa_lookahead and issue_rate instead.
793         (max_issue, choose_ready, sched_init): Update.
794
795 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
796
797         * sched-int.h (struct _haifa_insn_data:last_rfs_win): New field.
798         * haifa-sched.c (INSN_LAST_RFS_WIN): New access macro.
799         (rfs_result): Set INSN_LAST_RFS_WIN.  Update signature.
800         (rank_for_schedule): Update calls to rfs_result to pass new parameters.
801         (print_rank_for_schedule_stats): Print out elements of ready list that
802         ended up on their respective places due to each of the sorting
803         heuristics.
804         (ready_sort): Update.
805         (debug_ready_list_1): Improve printout for SCHED_PRESSURE_MODEL.
806         (schedule_block): Update.
807
808 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
809
810         * haifa-sched.c (sched_class_regs_num, call_used_regs_num): New static
811         arrays.  Use sched_class_regs_num instead of ira_class_hard_regs_num.
812         (print_curr_reg_pressure, setup_insn_reg_pressure_info,)
813         (model_update_pressure, model_spill_cost): Use sched_class_regs_num.
814         (model_start_schedule): Update.
815         (sched_pressure_start_bb): New static function.  Calculate
816         sched_class_regs_num.
817         (schedule_block): Use it.
818         (alloc_global_sched_pressure_data): Calculate call_used_regs_num.
819
820 2014-10-24  Richard Biener  <rguenther@suse.de>
821
822         * Makefile.in (BUILD_CPPLIB): When in stage2+ use the
823         host library and make sure to pull in the required libintl
824         and libiconv dependencies.
825
826 2014-10-24  Richard Biener  <rguenther@suse.de>
827
828         * fold-const.c (fold_binary_loc): Fix copy-and-pasto.
829
830 2014-10-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
831
832         PR bootstrap/63632
833         * collect2.c (main): Filter out -fno-lto.
834
835 2014-10-24  Martin Liska  <mliska@suse.cz>
836
837         * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes): Guard
838         division by zero in dumps.
839         (sem_item_optimizer::merge_classes): Ditto.
840
841 2014-10-23  John David Anglin  <danglin@gcc.gnu.org>
842
843         * config/pa/pa.c (pa_can_combine_p): Fix typo in last change.
844
845 2014-10-23  Ian Lance Taylor  <iant@google.com>
846
847         * tree-vrp.c (extract_range_from_assert): Fix typo in comment.
848
849 2014-10-23  Ian Lance Taylor  <iant@google.com>
850
851         * config/mep/mep.h (TARGET_HAS_F_SETLKW): Don't undefine.
852
853 2014-10-23  Jakub Jelinek  <jakub@redhat.com>
854
855         PR debug/63623
856         * var-tracking.c (stack_adjust_offset_pre_post_cb): New function.
857         (stack_adjust_offset_pre_post): Use it through for_each_inc_dec,
858         instead of only handling autoinc in dest if it is a MEM.
859         (vt_stack_adjustments): Fix up formatting.
860
861 2014-10-23  DJ Delorie  <dj@redhat.com>
862
863         * config/msp430/msp430.c (msp430_print_operand): 'x' modifier is
864         independend of -mlarge.
865         * config/msp430/constraints.md (Ys): Update comment.
866
867 2014-10-23  Evgeny Stupachenko  <evstupac@gmail.com>
868
869         PR target/63534
870         PR target/63618
871         * cse.c (delete_trivially_dead_insns): Consider PIC register is used
872         while it is pseudo.
873         * dse.c (deletable_insn_p): Likewise.
874
875 2014-10-23  Georg-Johann Lay  <avr@gjlay.de>
876
877         * config/avr/avr.c: Fix GNU coding rules and typos.
878         * config/avr/avr.h: Dito.
879         * config/avr/avr-c.c: Dito.
880         * config/avr/avr.md: Dito.
881
882 2014-10-23  Kirill Yukhin  <kirill.yukhin@intel.com>
883
884         * config/i386/sse.md (define_mode_iterator VI1248_AVX512VL_AVX512BW):
885         New.
886         (define_insn "*abs<mode>2"): Use VI1248_AVX512VL_AVX512BW mode
887         iterator.
888         (define_expand "abs<mode>2"): Ditto.
889
890 2014-10-23  Kirill Yukhin  <kirill.yukhin@intel.com>
891
892         * tree-core.h (tree_var_decl): Extend `function_code' field
893         by one bit, move `regdecl_flag' field to ...
894         (tree_decl_with_vis): Here.
895         * tree.h (DECL_STATIC_CHAIN): Update struct name.
896
897 2014-10-23  Richard Biener  <rguenther@suse.de>
898
899         * Makefile.in (BUILD_CPPLIB): Add.
900         (build/genmatch$(build_exeext)): Use BUILD_CPPLIB, not CPPLIB.
901         Drop LIBIBERTY.
902
903 2014-10-23  Richard Biener  <rguenther@suse.de>
904
905         * fold-const.c (fold_binary_loc): Preserve side-effects of
906         X - X when simplifying to 0.
907         * stor-layout.c (finish_bitfield_representative): Strip
908         side-effects of evaluating the difference of two DECL_FIELD_OFFSET.
909
910 2014-10-22  Richard Biener  <rguenther@suse.de>
911             Tobias Burnus <burnus@net-b.de>
912
913         PR lto/63603
914         * gcc.c (LINK_COMMAND_SPEC): Add %{fno-lto}.
915
916 2014-10-22  Dehao Chen  <dehao@google.com>
917
918         * auto-profile.c: Change order of header files.
919
920 2014-10-22  Guozhi Wei  <carrot@google.com>
921
922         PR tree-optimization/63530
923         tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
924         pointer alignment according to DR_MISALIGNMENT.
925
926 2014-10-22  David Malcolm  <dmalcolm@redhat.com>
927
928         * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.
929
930 2014-10-22  Andrew MacLeod  <amacleod@redhat.com>
931
932         * cfgbuild.h: New.  Add prototypes for cfgbuild.c.
933         * cfgcleanup.h: New.  Add prototypes for cfgcleanup.c.
934         * cfgloopmanip.h: New.  Add prototypes for cfgloopmanip.c.
935         * dominance.h: New.  Add prototypes for dominance.c.
936         * cfgloop.h: Move some prototypes/enum to cfgloopmanip.h and include it.
937         * cfghooks.h: (struct profile_record) Relocate here.
938         Relocate 2 prototypes from basic-block.h.
939         * basic-block.h: Move prototypes and struct to new header files.
940         Include cfgbuild.h, cfgcleanup.h, and dominance.h.
941         * rtl.h: Move a few prototypes to new header files.
942         * cfgcleanup.c (merge_memattrs): Make static.
943         * genopinit.c (main): Add predict.h to list of includes.
944         * predict.h: Update prototype list to match predict.c.
945         * predict.c (maybe_hot_count_p): Export.
946         (cgraph_edge::maybe_hot_p): Move to cgraph.c.
947         (cgraph_node::optimize_for_size_p): Move to cgraph.h.
948         * cgraph.h (cgraph_node::optimize_for_size_p): Relocate here.
949         * cgraph.c (cgraph_edge::maybe_hot_p): Relocate here.
950         * profile.h: Adjust prototypes.
951         * ifcvt.h: New.  Relocate struct ce_if_block here.
952         * ifcvt.c: Include ifcvt.h.
953         * config/frv/frv.c: Include ifcvt.h.
954         * config/frv/frv-protos.h: Add 'struct' to ce_if_block * parameters.
955
956 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
957
958         * lra.c (lra): Remove call to recog_init.
959         * config/i386/i386.md (preferred_for_speed): New attribute
960         (*float<SWI48:mode><MODEF:mode>2_sse): Override it instead of
961         "enabled".  Remove check for sched1.
962
963 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
964
965         * recog.h (recog_data_d): Remove enabled_alternatives.
966         * recog.c (extract_insn): Don't set it.
967         * reload.c (find_reloads): Call get_enabled_alternatives.
968
969 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
970
971         * recog.h (constrain_operands): Add an alternative_mask parameter.
972         (constrain_operands_cached): Likewise.
973         (get_preferred_alternatives): Declare new form.
974         * recog.c (get_preferred_alternatives): New bb-taking instance.
975         (constrain_operands): Take the set of available alternatives as
976         a parameter.
977         (check_asm_operands, insn_invalid_p, extract_constrain_insn)
978         (extract_constrain_insn_cached): Update calls to constrain_operands.
979         * caller-save.c (reg_save_code): Likewise.
980         * ira.c (setup_prohibited_mode_move_regs): Likewise.
981         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
982         * ree.c (combine_reaching_defs): Likewise.
983         * reload.c (can_reload_into): Likewise.
984         * reload1.c (reload, reload_as_needed, inc_for_reload): Likewise.
985         (gen_reload_chain_without_interm_reg_p, emit_input_reload_insns)
986         (emit_insn_if_valid_for_reload): Likewise.
987         * reorg.c (fill_slots_from_thread): Likewise.
988         * config/i386/i386.c (ix86_attr_length_address_default): Likewise.
989         * config/pa/pa.c (pa_can_combine_p): Likewise.
990         * config/rl78/rl78.c (insn_ok_now): Likewise.
991         * config/sh/sh.md (define_peephole2): Likewise.
992         * final.c (final_scan_insn): Update call to constrain_operands_cached.
993
994 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
995
996         * doc/md.texi: Document "preferred_for_size" and "preferred_for_speed"
997         attributes.
998         * genattr.c (main): Handle "preferred_for_size" and
999         "preferred_for_speed" in the same way as "enabled".
1000         * recog.h (bool_attr): New enum.
1001         (target_recog): Replace x_enabled_alternatives with x_bool_attr_masks.
1002         (get_preferred_alternatives, check_bool_attrs): Declare.
1003         * recog.c (have_bool_attr, get_bool_attr, get_bool_attr_mask_uncached)
1004         (get_bool_attr_mask, get_preferred_alternatives, check_bool_attrs):
1005         New functions.
1006         (get_enabled_alternatives): Use get_bool_attr_mask.
1007         * ira-costs.c (record_reg_classes): Use get_preferred_alternatives
1008         instead of recog_data.enabled_alternatives.
1009         * ira.c (ira_setup_alts): Likewise.
1010         * postreload.c (reload_cse_simplify_operands): Likewise.
1011         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
1012         * ira-lives.c (preferred_alternatives): New variable.
1013         (process_bb_node_lives): Set it.
1014         (check_and_make_def_conflict, make_early_clobber_and_input_conflicts)
1015         (single_reg_class, ira_implicitly_set_insn_hard_regs): Use it instead
1016         of recog_data.enabled_alternatives.
1017         * lra-int.h (lra_insn_recog_data): Replace enabled_alternatives
1018         to preferred_alternatives.
1019         * lra-constraints.c (process_alt_operands): Update accordingly.
1020         * lra.c (lra_set_insn_recog_data): Likewise.
1021         (lra_update_insn_recog_data): Assert check_bool_attrs.
1022
1023 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
1024
1025         * recog.h (extract_constrain_insn): Declare.
1026         * recog.c (extract_constrain_insn): New function.
1027         * lra.c (check_rtl): Use it.
1028         * postreload.c (reload_cse_simplify_operands): Likewise.
1029         * reg-stack.c (check_asm_stack_operands): Likewise.
1030         (subst_asm_stack_regs): Likewise.
1031         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
1032         * regrename.c (build_def_use): Likewise.
1033         * sel-sched.c (get_reg_class): Likewise.
1034         * config/arm/arm.c (note_invalid_constants): Likewise.
1035         * config/s390/predicates.md (execute_operation): Likewise.
1036
1037 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
1038             Yury Gribov  <y.gribov@samsung.com>
1039
1040         * common.opt (flag_sanitize_recover): New variable.
1041         (fsanitize-recover): Remove Var/Init, deprecate.
1042         (fsanitize-recover=): New option.
1043         * doc/invoke.texi (fsanitize-recover): Update docs.
1044         * opts.c (finish_options): Use opts->x_flag_sanitize
1045         instead of flag_sanitize.  Prohibit -fsanitize-recover
1046         for anything besides UBSan.  Formatting.
1047         (common_handle_option): Handle OPT_fsanitize_recover_
1048         and OPT_fsanitize_recover.  Use opts->x_flag_sanitize
1049         instead of flag_sanitize.
1050         * asan.c (pass_sanopt::execute): Fix up formatting.
1051         * ubsan.c (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn,
1052         ubsan_expand_objsize_ifn, ubsan_build_overflow_builtin,
1053         instrument_bool_enum_load, ubsan_instrument_float_cast,
1054         instrument_nonnull_arg, instrument_nonnull_return): Check
1055         bits in flag_sanitize_recover bitmask instead of
1056         flag_sanitize_recover as bool flag.
1057
1058 2014-10-22  Jiong Wang <jiong.wang@arm.com>
1059
1060         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add missing '\'.
1061
1062 2014-10-22  Renlin Li <renlin.li@arm.com>
1063
1064         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
1065         __ARM_FEATURE_IDIV__.
1066
1067 2014-10-22  Richard Biener  <rguenther@suse.de>
1068
1069         * Makefile.in (s-match): Adjust dependencies to only catch
1070         match.pd.
1071
1072 2014-10-22  Richard Biener  <rguenther@suse.de>
1073         Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
1074
1075         * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
1076         (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
1077         (gimple-match.c): Generate by triggering s-match.
1078         (generic-match.c): Likewise.
1079         (s-match): Rule to build gimple-match.c and generic-match.c
1080         by running the genmatch generator program.
1081         (build/hash-table.o): Dependencies to build hash-table.c for the host.
1082         (build/genmatch.o): Dependencies to build genmatch.
1083         (genprog): Add match.
1084         (build/genmatch): Likewise.
1085         (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
1086         * generic-match-head.c: New file.
1087         * gimple-match-head.c: Likewise.
1088         * gimple-match.h: Likewise.
1089         * genmatch.c: Likewise.
1090         * match.pd: Likewise.
1091         * builtins.h (fold_builtin_n): Export.
1092         * builtins.c (fold_builtin_n): Likewise.
1093         * gimple-fold.h (gimple_build): Declare various overloads.
1094         (gimple_simplify): Likewise.
1095         (gimple_convert): Re-implement in terms of gimple_build.
1096         * gimple-fold.c (gimple_convert): Remove.
1097         (gimple_build): New functions.
1098         * doc/match-and-simplify.texi: New file.
1099         * doc/gccint.texi: Add menu item Match and Simplify and include
1100         match-and-simplify.texi.
1101
1102 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
1103
1104         PR target/63594
1105         * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
1106         V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
1107         even for just TARGET_AVX2, not only for
1108         TARGET_AVX512VL && TARGET_AVX512BW.  For V{32HI,64QI}mode,
1109         call ix86_vector_duplicate_value only if TARGET_AVX512BW,
1110         otherwise build it using concatenation of 256-bit
1111         broadcast.
1112         * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
1113         avx512 broadcast patterns.
1114         (vec_dup<mode>): Likewise.  For avx2 use
1115         v<sseintprefix>broadcast<bcstscalarsuff> instead of
1116         vbroadcast<ssescalarmodesuffix>.
1117         (AVX2_VEC_DUP_MODE): New mode iterator.
1118         (*vec_dup<mode>): New TARGET_AVX2 define_insn with
1119         AVX2_VEC_DUP_MODE iterator, add a splitter for that.
1120
1121         PR target/63542
1122         * config/i386/i386.c (ix86_pic_register_p): Also return
1123         true if x is a hard register with ORIGINAL_REGNO equal to
1124         pic_offset_table_rtx pseudo REGNO.
1125         (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
1126         after reload, subtract GOT_SYMBOL_NAME symbol if possible.
1127
1128 2014-10-22  Alan Modra  <amodra@gmail.com>
1129
1130         * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
1131         * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
1132         (gcc_obstack_init): Use obstack_specify_allocation in place of
1133         _obstack_begin.
1134         * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
1135         (regexp_representation): Likewise.
1136         * godump.c (go_output_type): Likewise.
1137
1138 2014-10-21  John David Anglin  <danglin@gcc.gnu.org>
1139
1140         * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
1141         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
1142         * config/pa/pa.opt (mjump-in-delay): Ignore option.  Update comment.
1143
1144 2014-10-21 Manuel López-Ibáñez  <manu@gcc.gnu.org>
1145
1146         * doc/invoke.texi (pedantic-errors): Explain better.
1147
1148 2014-10-21  Joern Rennecke  <joern.rennecke@embecosm.com>
1149             Vidya Praveen <vidya.praveen@atmel.com>
1150             Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
1151             Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
1152             Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
1153
1154         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
1155         __MEMX for avrtiny.
1156         * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
1157         (avr_nonconst_pointer_addrspace): Likewise.
1158         * config/avr/avr.h (AVR_HAVE_LPM): Define.
1159
1160         Added AVRTINY architecture to avr target.
1161         * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
1162         (base_arch_s): member added for AVRTINY architecture.
1163         * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
1164         alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
1165         AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
1166         and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
1167         respectively. LAST_CALLEE_SAVED_REG macro added for the last register
1168         in callee saved register list.
1169         (avr_option_override): CCP address updated for AVRTINY.
1170         (avr_init_expanders): tmp and zero rtx initialized as per arch.
1171         Reset avr_have_dimode if AVRTINY.
1172         (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
1173         (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
1174         (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
1175         Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
1176         (expand_epilogue): Likewise.
1177         (avr_print_operand): Print CCP address in case of AVRTINY also.
1178         <TBD>bad address
1179         (function_arg_regno_p): Check different register list for arguments
1180         if AVRTINY.
1181         (init_cumulative_args): Check for AVRTINY to update number of argument
1182         registers.
1183         (tiny_valid_direct_memory_access_range): New function. Return false if
1184         direct memory access range is not in accepted range for AVRTINY.
1185         (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
1186         indirect load (with displacement) for AVRTINY.
1187         (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
1188         avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
1189         (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
1190         indirect load (no displacement) for AVRTINY.
1191         (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
1192         indirect load (with displacement) for AVRTINY.
1193         (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
1194         indirect load for pre-decrement address.
1195         (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
1196         functions. Update instruction length for AVRTINY.
1197         (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
1198         SImode.
1199         (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
1200         (out_movsi_r_mr): Likewise, for SImode.
1201         (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
1202         indirect store (no displacement) for AVRTINY.
1203         (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
1204         indirect store (with displacement) for AVRTINY.
1205         (out_movsi_mr_r): Emit out insn for IO address store. Update store
1206         instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
1207         store functions.
1208         (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
1209         indirect load (no displacement) for PSImode in AVRTINY.
1210         (avr_out_load_psi_reg_disp_tiny): New function to handle register
1211         indirect load (with displacement) for PSImode in AVRTINY.
1212         (avr_out_load_psi): Call PSImode register indirect load functions for
1213         AVRTINY. Update instruction length for AVRTINY.
1214         (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
1215         indirect store (no displacement) for PSImode in AVRTINY.
1216         (avr_out_store_psi_reg_disp_tiny): New function to handle register
1217         indirect store (with displacement) for PSImode in AVRTINY.
1218         (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
1219         register indirect store functions for AVRTINY.
1220         (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
1221         register indirect store (with displacement) for AVRTINY.
1222         (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
1223         register indirect store function for QImode in AVRTINY.
1224         (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
1225         (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
1226         indirect store (no displacement) for HImode in AVRTINY.
1227         (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
1228         indirect store (with displacement) for HImode in AVRTINY.
1229         (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
1230         indirect store for post-increment address in HImode.
1231         (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
1232         register indirect store function for HImode in AVRTINY.
1233         (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
1234         in case of AVRTINY.
1235         (order_regs_for_local_alloc): Updated register allocation order for
1236         AVRTINY.
1237         (avr_conditional_register_usage): New function. It is a target hook
1238         (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
1239         used registers list and register allocation order for AVRTINY.
1240         (avr_return_in_memory): Update return value size for AVRTINY.
1241         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
1242         for AVRTINY arch and tiny program memory base address.
1243         * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
1244         (avr_texinfo): Added description for AVRTINY arch.
1245         * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
1246         STATIC_CHAIN_REGNUM for AVRTINY.
1247         * config/avr/avr-mcus.def: Added AVRTINY arch devices.
1248         * config/avr/avr.md: Added constants for tmp/ zero registers in
1249         AVRTINY. Attributes for AVRTINY added.
1250         (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
1251         memory access range.
1252         (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
1253         in AVRTINY memory access range.
1254         (*mov<mode>): Likewise for HImode and SImode.
1255         (*movsf): Likewise for SFmode.
1256         (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
1257         not have sbiw.
1258         * config/avr/avr-protos.h: Added function prototype for
1259         tiny_valid_direct_memory_access_range.
1260         * config/avr/avr-tables.opt: Regenerate.
1261         * gcc/config/avr/t-multilib: Regenerate.
1262         * doc/avr-mmcu.texi: Regenerate.
1263
1264 2014-10-21  Andrew Pinski  <apinski@cavium.com>
1265
1266         * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
1267         available option also.
1268         * config/aarch64/aarch64-cost-tables.h: New file.
1269         * config/aarch64/aarch64-cores.def (thunderx): New core.
1270         * config/aarch64/aarch64-tune.md: Regenerate.
1271         * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
1272         of config/arm/aarch-cost-tables.h.
1273         (thunderx_regmove_cost): New variable.
1274         (thunderx_tunings): New variable.
1275
1276 2014-10-21  Dehao Chen  <dehao@google.com>
1277
1278         * auto-profile.c: New file.
1279         * auto-profile.h: New file.
1280         * basic-block.h (maybe_hot_count_p): New export func.
1281         (add_working_set): New export func.
1282         * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
1283         (GCOV_TAG_AFDO_FUNCTION): Likewise.
1284         (GCOV_TAG_AFDO_WORKING_SET): Likewise.
1285         * opts.c (enable_fdo_optimizations): New func.
1286         (common_handle_option): Handle -fauto-profile flag.
1287         * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
1288         (class pass_early_inline): Export early_inliner.
1289         (early_inliner): Likewise.
1290         (pass_early_inline::execute): Likewise.
1291         * ipa-inline.h (early_inliner): Likewise.
1292         * predict.c (maybe_hot_count_p): New export func.
1293         (counts_to_freqs): AutoFDO logic.
1294         (rebuild_frequencies): Likewise.
1295         * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
1296         * profile.c (add_working_set): New func.
1297         * Makefile.in (auto-profile.o): New object file.
1298         * passes.def (pass_ipa_auto_profile): New pass.
1299         * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
1300         * tree-pass.h (make_pass_ipa_auto_profile): New pass.
1301         * toplev.c (compile_file): AutoFDO logic.
1302         * doc/invoke.texi (-fauto-profile): New doc.
1303         * coverage.c (coverage_init): AutoFDO logic.
1304         * common.opt (-fauto-profile): New flag.
1305         * timevar.def (TV_IPA_AUTOFDO): New tag.
1306         * value-prof.c (gimple_alloc_histogram_value): New export func.
1307         (check_ic_target): Likewise.
1308         * value-prof.h (gimple_alloc_histogram_value): Likewise.
1309         (check_ic_target): Likewise.
1310
1311 2014-10-21  David Malcolm  <dmalcolm@redhat.com>
1312
1313         * cgraph.c (cgraph_c_finalize): New function.
1314         * cgraph.h (cgraph_c_finalize): New prototype.
1315         (cgraphunit_c_finalize): New prototype.
1316         * cgraphunit.c (first_analyzed): Move from analyze_functions
1317         to file-scope.
1318         (first_analyzed_var): Likewise.
1319         (analyze_functions): Move static variables into file-scope.
1320         (cgraphunit_c_finalize): New function.
1321         * diagnostic.c (diagnostic_finish): Free the memory for
1322         context->classify_diagnostic and context->printer, running the
1323         destructor for the latter.
1324         (bt_stop): Use toplev::main.
1325         * dwarf2out.c (dwarf2out_finalize): New function.
1326         * dwarf2out.h (dwarf2out_c_finalize): New prototype.
1327         * gcse.c (gcse_c_finalize): New function.
1328         * gcse.h (gcse_c_finalize): New prototype.
1329         * ggc-page.c (init_ggc): Make idempotent.
1330         * input.c (input_location): Initialize to UNKNOWN_LOCATION.
1331         * ipa-cp.c (ipa_cp_c_finalize): New function.
1332         * ipa-prop.h (ipa_cp_c_finalize): New prototype.
1333         * ipa-pure-const.c (function_insertion_hook_holder): Move to be
1334         a field of class pass_ipa_pure_const.
1335         (node_duplication_hook_holder): Likewise.
1336         (node_removal_hook_holder): Likewise.
1337         (register_hooks): Convert to method...
1338         (pass_ipa_pure_const::register_hooks): ...here, converting
1339         static variable init_p into...
1340         (pass_ipa_pure_const::init_p): ...new field.
1341         (pure_const_generate_summary): Update invocation of
1342         register_hooks to invoke as a method of current_pass.
1343         (pure_const_read_summary): Likewise.
1344         (propagate): Convert to...
1345         (pass_ipa_pure_const::execute): ...method.
1346         * ipa-reference.c (ipa_init): Move static bool init_p from here
1347         to...
1348         (ipa_init_p): New file-scope variable, so that it can be reset
1349         when repeatedly invoking the compiler within one process by...
1350         (ipa_reference_c_finalize): New function.
1351         * ipa-reference.h (ipa_reference_c_finalize): New.
1352         * main.c (main): Replace invocation of toplev_main with
1353         construction of a toplev instance, and call its "main" method.
1354         * params.c (global_init_params): Add an assert that
1355         params_finished is false.
1356         (params_c_finalize): New.
1357         * params.h (params_c_finalize): New.
1358         * passes.c (execute_ipa_summary_passes): Set "current_pass" before
1359         invoking generate_summary, for the benefit of pass_ipa_pure_const.
1360         (ipa_write_summaries_2): Assign "pass" to "current_pass" global
1361         before calling write_summary hook.
1362         (ipa_write_optimization_summaries_1): Likewise when calling
1363         write_optimization_summary hook.
1364         (ipa_read_summaries_1): Likewise for read_summary hook.
1365         (ipa_read_optimization_summaries_1): Likewise for
1366         read_optimization_summary hook.
1367         (execute_ipa_stmt_fixups): Likewise.
1368         * stringpool.c (init_stringpool): Clean up if we're called more
1369         than once.
1370         * timevar.c (timevar_init): Ignore repeated calls.
1371         * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
1372         "ipa-prop.h".
1373         (general_init): Reset "input_location" to UNKNOWN_LOCATION.
1374         (initialize_rtl): Move static local "initialized_once"
1375         into file scope, and rename to...
1376         (rtl_initialized): New variable.
1377         (do_compile): Move timevar initialization from here to
1378         toplev::start_timevars.
1379         (toplev::toplev, toplev::~toplev, toplev::start_timevars,
1380         toplev::finalize): New functions.
1381         (toplev_main): Rename to...
1382         (toplev::main): ...this.
1383         * toplev.h (class toplev): New class.
1384
1385 2014-10-21  Andrew MacLeod  <amacleod@redhat.com>
1386
1387         * loop-doloop.c: Include loop-unroll.h.
1388
1389 2014-10-21  Andrew MacLeod  <amacleod@redhat.com>
1390
1391         * cfg.h: New.  Header file for cfg.c.
1392         * cfganal.h: New.  Header file for cfganal.c.
1393         * lcm.h: New.  Header file for lcm.c.
1394         * loop-unroll.h: New.  Header file for loop-unroll.h.
1395         * cfgloop.h: (unroll_loops): Remove prototype.
1396         * basic-block.h: Move prototypes and structs to new header files.
1397         Include cfg.h, cfganal.h, and lcm.h.
1398         * loop-init.c: Include loop-unroll.h.
1399         * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
1400         * modulo-sched.c: Include loop-unroll.h.
1401
1402 2014-10-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1403
1404         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
1405         MARKER_BYTE_UNKNOWN markers when handling casts.
1406
1407 2014-10-21  Richard Biener  <rguenther@suse.de>
1408
1409         * tree-ssa-phiopt.c (value_replacement): Properly verify we
1410         are the non-singleton PHI.
1411
1412 2014-10-21  Jakub Jelinek  <jakub@redhat.com>
1413
1414         PR tree-optimization/63563
1415         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
1416         if either dra or drb stmts are not normal loads/stores.
1417
1418 2014-10-21  Ilya Tocar  <ilya.tocar@intel.com>
1419
1420         * config/i386/i386.c (expand_vec_perm_1): Fix
1421         expand_vec_perm_palignr case.
1422         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
1423         VI1_AVX512.
1424
1425 2014-10-21  Zhenqiang Chen  <zhenqiang.chen@arm.com>
1426
1427         * cfgloopanal.c (seq_cost): Delete.
1428         * rtl.h (seq_cost): New prototype.
1429         * rtlanal.c (seq_cost): New function.
1430         * tree-ssa-loop-ivopts.c (seq_cost): Delete.
1431
1432 2014-10-20  Andrew MacLeod  <amacleod@redhat.com>
1433
1434         * cfgrtl.h: New.  Add prototypes for cfgrtl.c.
1435         * basic-block.h: Remove prototypes for cfgrtl.c.
1436         * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
1437         prototypes to cfgrtl.h.
1438         * profile.h (profile_info): Add extern export declaration.
1439         * rtl.h: Remove prototypes for cfgrtl.h.
1440         * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
1441         * ipa-inline.c: Include profile.h.
1442         * loop-unroll.c: Ditto.
1443         * modulo-sched.c: Ditto.
1444         * postreload-gcse.c: Ditto.
1445         * predict.c: Ditto.
1446         * sched-ebb.c: Ditto.
1447         * sched-rgn.c: Ditto.
1448         * tracer.c: Ditto.
1449         * tree-ssa-loop-ivcanon.c: Ditto.
1450
1451 2014-10-20  Richard Biener  <rguenther@suse.de>
1452
1453         * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
1454         operands to get a def operand kind match.  Signal mismatches
1455         to the parent so we can try swapping its operands.
1456         (vect_build_slp_tree): Try swapping operands if they have
1457         a mismatched operand kind.
1458
1459 2014-10-20  Alan Modra  <amodra@gmail.com>
1460
1461         PR debug/60655
1462         * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
1463         Increase "ops" array size.  Correct array size tests.  Init
1464         n_constants in loop.  Break out of innermost loop when finding
1465         a trivial CONST expression.
1466
1467 2014-10-20  Martin Liska  <mliska@suse.cz>
1468
1469         PR ipa/63583
1470         * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
1471         Gimple tempate string is compared.
1472
1473 2014-10-20  Uros Bizjak  <ubizjak@gmail.com>
1474
1475         * varasm.c (const_alias_set): Remove.
1476         (init_varasm_once): Remove initialization of const_alias_set.
1477         (build_constant_desc): Do not set alias set to const_alias_set.
1478
1479 2014-10-19  Ilya Verbin  <ilya.verbin@intel.com>
1480
1481         * configure: Regenerate.
1482         * configure.ac: Move the test for section attribute specifier "e" in GAS
1483         out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
1484         * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
1485         * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
1486         ifdef HAVE_GAS_SECTION_EXCLUDE.
1487
1488 2014-10-19  Andreas Schwab  <schwab@linux-m68k.org>
1489
1490         * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
1491         match_operand expression.
1492
1493 2014-10-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1494             David Edelsohn  <dje.gcc@gmail.com>
1495
1496         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
1497         function.
1498         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
1499
1500 2014-10-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1501
1502         * doc/invoke.texi (Options to Request or Suppress Warnings):
1503         Explain options precedence.
1504         (Wtrampolines): Do not indent paragraph.
1505
1506 2014-10-18  John David Anglin  <danglin@gcc.gnu.org>
1507
1508         * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
1509         * config/pa/pa-protos.h (pa_following_call): Delete declaration.
1510         (pa_jump_in_call_delay): Likewise.
1511         * config/pa/pa.c (pa_option_override): Remove jump in call delay
1512         override.
1513         (pa_output_millicode_call): Remove support for jump in call delay.
1514         (pa_output_call): Likewise.
1515         (pa_jump_in_call_delay): Delete.
1516         (pa_following_call): Likewise.
1517         * config/pa/pa.md (in_call_delay): Remove jump in delay check.
1518         (uncond_branch): Remove following call check from attribute length.
1519
1520 2014-10-18  Oleg Endo  <olegendo@gcc.gnu.org>
1521
1522         PR target/53513
1523         * config/sh/sh-modes.def (PSI): Remove.
1524         * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
1525         * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
1526         (sh_reorg): Remove commented out FPSCR code.
1527         (fpscr_set_from_mem): Use SImode instead of PSImode.  Emit lds_fpscr
1528         insn instead of move insn.
1529         (sh_hard_regno_mode_ok): Return SImode for FPSCR.
1530         (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
1531         handling.
1532         (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
1533         (sh1_builtin_p): Uncomment.
1534         (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
1535         (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
1536         * config/sh/sh/predicates.md (fpscr_operand): Simplify.
1537         (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
1538         (general_movsrc_operand, general_movdst_operand): Disallow
1539         fpscr_operand.
1540         * config/sh/sh.md (FPSCR_FR): New constant.
1541         (push_fpscr): Emit sts_fpscr insn.
1542         (pop_fpscr): Emit lds_fpscr_insn.
1543         (movsi_ie): Disallow FPSCR operands.
1544         (fpu_switch, unnamed related split, extend_psi_si,
1545         truncate_si_psi): Remove insns.
1546         (lds_fpscr, sts_fpscr): New insns.
1547         (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
1548
1549 2014-10-17  Eric Botcazou  <ebotcazou@adacore.com>
1550
1551         * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
1552         (clone_inlined_nodes): Do not overwrite the clone if above predicate
1553         returns true.
1554
1555 2014-10-17  Ilya Tocar  <ilya.tocar@intel.com>
1556
1557         * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
1558         (expand_vec_perm_d): Ditto.
1559         (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
1560         V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
1561         V4DFmode.
1562         (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
1563         (ix86_expand_sse_unpack): Handle V64QImode.
1564         (expand_vec_perm_blend): Update conditions for TARGET, handle
1565         V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
1566         (expand_vec_perm_pshufb): Handle V64QImode.
1567         (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
1568         V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
1569         (ix86_expand_vec_perm_const_1): Call  ix86_expand_vec_perm_vpermi2.
1570         (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
1571         (ix86_expand_vecop_qihi): Handle V64QImode.
1572         * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
1573         (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
1574         (define_mode_iterator VEC_PERM_CONST): Add V32HI.
1575         (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
1576         (mul<mode>3): Use VI1_AVX512.
1577         (<sse2_avx2>_packsswb): Ditto.
1578         (<sse2_avx2>_packuswb): Ditto.
1579         (<ssse3_avx2>_pshufb<mode>3): Ditto.
1580         (<shift_insn><mode>3): Ditto.
1581
1582 2014-10-17  Kirill Yukhin  <kirill.yukhin@intel.com>
1583
1584         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
1585         conditions to fix bootstrap.
1586
1587 2014-10-17  Andrew MacLeod  <amacleod@redhat.com>
1588
1589         gcc-plugin.h:  Add tm.h and flattened includes from function.h.
1590
1591 2014-10-17  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1592             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1593             Anna Tikhonova  <anna.tikhonova@intel.com>
1594             Ilya Tocar  <ilya.tocar@intel.com>
1595             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1596             Ilya Verbin  <ilya.verbin@intel.com>
1597             Kirill Yukhin  <kirill.yukhin@intel.com>
1598             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1599
1600         * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
1601         and V32HI modes, update V8HI, V16QI, V32QI modes handling.
1602         (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
1603         * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
1604         (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
1605         (define_expand "vec_init<mode>"): Use VF48_I1248.
1606
1607 2014-10-17  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1608             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1609             Anna Tikhonova  <anna.tikhonova@intel.com>
1610             Ilya Tocar  <ilya.tocar@intel.com>
1611             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1612             Ilya Verbin  <ilya.verbin@intel.com>
1613             Kirill Yukhin  <kirill.yukhin@intel.com>
1614             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1615
1616         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
1617         expand_sse2_mulvxdi3.
1618
1619 2014-10-17  Richard Biener  <rguenther@suse.de>
1620
1621         * fold-const.c (fold_comparison): Remove redundant constant
1622         folding and operand swapping.
1623         (fold_binary_loc): Do comparison operand swapping here.
1624         (fold_ternary_loc): Canonicalize operand order for
1625         commutative ternary operations.
1626         * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
1627         and FMA_EXPR.
1628
1629 2014-10-17  Jakub Jelinek  <jakub@redhat.com>
1630
1631         PR tree-optimization/63464
1632         * gimple.h (gimple_seq_discard): New prototype.
1633         * gimple.c: Include stringpool.h and tree-ssanames.h.
1634         (gimple_seq_discard): New function.
1635         * optabs.h (lshift_cheap_p): New prototype.
1636         * optabs.c (lshift_cheap_p): New function, moved from...
1637         * tree-switch-conversion.c (lshift_cheap_p): ... here.
1638         * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
1639         (reassoc_branch_fixups): New variable.
1640         (update_range_test): Add otherrangep and seq arguments.
1641         Unshare exp.  If otherrange is NULL, use for other ranges
1642         array of pointers pointed by otherrangep instead.
1643         Emit seq before gimplified statements for tem.
1644         (optimize_range_tests_diff): Adjust update_range_test
1645         caller.
1646         (optimize_range_tests_xor): Likewise.  Fix up comment.
1647         (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
1648         functions.
1649         (optimize_range_tests): Adjust update_range_test caller.
1650         Call optimize_range_tests_to_bit_test.
1651         (branch_fixup): New function.
1652         (execute_reassoc): Call branch_fixup.
1653
1654         PR tree-optimization/63302
1655         * tree-ssa-reassoc.c (optimize_range_tests_xor,
1656         optimize_range_tests_diff): Use !integer_pow2p () instead of
1657         tree_log2 () < 0.
1658
1659 2014-10-17  Martin Liska  <mliska@suse.cz>
1660
1661         * ipa-icf.c (sem_function::merge): Local flags are set to false
1662         to enforce equal calling convention to be used.
1663         * opts.c (common_handle_option): Indentation fix.
1664
1665 2014-10-17  Marc Glisse  <marc.glisse@inria.fr>
1666
1667         * tree-into-ssa.c (is_old_name): Replace "new" with "old".
1668
1669 2014-10-17  Tom de Vries  <tom@codesourcery.com>
1670
1671         PR rtl-optimization/61605
1672         * regcprop.c (copyprop_hardreg_forward_1): Use
1673         regs_invalidated_by_this_call instead of regs_invalidated_by_call.
1674
1675 2014-10-17  Tom de Vries  <tom@codesourcery.com>
1676
1677         PR rtl-optimization/61605
1678         * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p.  Don't
1679         notice stores for noops.  Don't regard noops as copies.
1680
1681 2014-10-17  Uros Bizjak  <ubizjak@gmail.com>
1682
1683         * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
1684         register in a special way.
1685         (__cpuid_count): Ditto.
1686         * config/i386/driver-i386.h: Protect with
1687         "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
1688         (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
1689         is required to compile the function.
1690
1691 2014-10-16  DJ Delorie  <dj@redhat.com>
1692
1693         * flag-types.h (sanitize_code): Don't assume targets have 32-bit
1694         integers.
1695
1696         * config/rs6000/rs6000-c.c (rid_int128): New.
1697         (rs6000_macro_to_expand): Use instead of RID_INT128.
1698
1699 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
1700
1701         * function.h: Flatten file.  Remove includes, adjust prototypes to
1702         reflect only what is in function.h.
1703         (enum direction, struct args_size, struct locate_and_pad_arg_data,
1704         ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
1705         from expr.h.
1706         (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
1707         (optimize_function_for_size_p, optimize_function_for_speed_p): Move
1708         prototypes to predict.h.
1709         (init_varasm_status): Move prototype to varasm.h.
1710         * expr.h: Adjust include files.
1711         (enum direction, struct args_size, struct locate_and_pad_arg_data,
1712         ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
1713         to function.h.
1714         (locate_and_pad_parm): Move prototype to function.h.
1715         * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
1716         assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
1717         assign_temp, reposition_prologue_and_epilogue_notes,
1718         prologue_epilogue_contains, sibcall_epilogue_contains,
1719         update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
1720         set_return_jump_label): Move prototypes to function.h.
1721         * predict.h (optimize_function_for_size_p,
1722         optimize_function_for_speed_p): Relocate prototypes from function.h.
1723         * shrink-wrap.h (emit_return_into_block, active_insn_between,
1724         convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
1725         function.h.
1726         * varasm.h (init_varasm_status): Relocate prototype from function.h.
1727         * genattrtab.c (write_header): Add predict.h to include list.
1728         * genconditions.c (write_header): Add predict.h to include list.
1729         * genemit.c (main): Adjust header file includes.
1730         * gengtype.c (ifiles): Add flattened function.h header files.
1731         * genoutput.c (output_prologue): Add predict.h to include list.
1732         * genpreds.c (write_insn_preds_c): Adjust header file includes.
1733         * genrecog.c (write_header): Add flattened function.h header files.
1734         * alias.c: Adjust include files.
1735         * auto-inc-dec.c: Likewise.
1736         * basic-block.h: Likewise.
1737         * bb-reorder.c: Likewise.
1738         * bt-load.c: Likewise.
1739         * builtins.c: Likewise.
1740         * caller-save.c: Likewise.
1741         * calls.c: Likewise.
1742         * cfgbuild.c: Likewise.
1743         * cfgcleanup.c: Likewise.
1744         * cfgexpand.c: Likewise.
1745         * cfgloop.c: Likewise.
1746         * cfgloop.h: Likewise.
1747         * cfgrtl.c: Likewise.
1748         * cgraph.h: Likewise.
1749         * cgraphclones.c: Likewise.
1750         * cgraphunit.c: Likewise.
1751         * combine-stack-adj.c: Likewise.
1752         * combine.c: Likewise.
1753         * coverage.c: Likewise.
1754         * cprop.c: Likewise.
1755         * cse.c: Likewise.
1756         * cselib.c: Likewise.
1757         * dbxout.c: Likewise.
1758         * ddg.c: Likewise.
1759         * df-core.c: Likewise.
1760         * df-problems.c: Likewise.
1761         * df-scan.c: Likewise.
1762         * dojump.c: Likewise.
1763         * dwarf2cfi.c: Likewise.
1764         * dwarf2out.c: Likewise.
1765         * emit-rtl.c: Likewise.
1766         * except.c: Likewise.
1767         * explow.c: Likewise.
1768         * expr.c: Likewise.
1769         * final.c: Likewise.
1770         * function.c: Likewise.
1771         * gcse.c: Likewise.
1772         * gimple-fold.c: Likewise.
1773         * gimple-low.c: Likewise.
1774         * gimple-streamer.h: Likewise.
1775         * haifa-sched.c: Likewise.
1776         * ifcvt.c: Likewise.
1777         * ira.c: Likewise.
1778         * jump.c: Likewise.
1779         * lcm.c: Likewise.
1780         * loop-invariant.c: Likewise.
1781         * lra-assigns.c: Likewise.
1782         * lra-coalesce.c: Likewise.
1783         * lra-constraints.c: Likewise.
1784         * lra-eliminations.c: Likewise.
1785         * lra-lives.c: Likewise.
1786         * lra-spills.c: Likewise.
1787         * lra.c: Likewise.
1788         * lto-cgraph.c: Likewise.
1789         * lto-section-in.c: Likewise.
1790         * lto-section-out.c: Likewise.
1791         * lto-streamer-in.c: Likewise.
1792         * lto-streamer-out.c: Likewise.
1793         * mode-switching.c: Likewise.
1794         * modulo-sched.c: Likewise.
1795         * omp-low.c: Likewise.
1796         * optabs.c: Likewise.
1797         * passes.c: Likewise.
1798         * postreload-gcse.c: Likewise.
1799         * postreload.c: Likewise.
1800         * predict.c: Likewise.
1801         * profile.c: Likewise.
1802         * recog.c: Likewise.
1803         * ree.c: Likewise.
1804         * reg-stack.c: Likewise.
1805         * regcprop.c: Likewise.
1806         * reginfo.c: Likewise.
1807         * regrename.c: Likewise.
1808         * reload.c: Likewise.
1809         * reload1.c: Likewise.
1810         * reorg.c: Likewise.
1811         * resource.c: Likewise.
1812         * rtlanal.c: Likewise.
1813         * sched-deps.c: Likewise.
1814         * sched-ebb.c: Likewise.
1815         * sched-rgn.c: Likewise.
1816         * sel-sched-dump.c: Likewise.
1817         * sel-sched-ir.c: Likewise.
1818         * sel-sched.c: Likewise.
1819         * shrink-wrap.c: Likewise.
1820         * simplify-rtx.c: Likewise.
1821         * statistics.c: Likewise.
1822         * stmt.c: Likewise.
1823         * stor-layout.c: Likewise.
1824         * store-motion.c: Likewise.
1825         * symtab.c: Likewise.
1826         * targhooks.c: Likewise.
1827         * toplev.c: Likewise.
1828         * trans-mem.c: Likewise.
1829         * tree-cfg.c: Likewise.
1830         * tree-cfgcleanup.c: Likewise.
1831         * tree-dfa.c: Likewise.
1832         * tree-eh.c: Likewise.
1833         * tree-inline.c: Likewise.
1834         * tree-into-ssa.c: Likewise.
1835         * tree-nested.c: Likewise.
1836         * tree-nrv.c: Likewise.
1837         * tree-profile.c: Likewise.
1838         * tree-ssa-alias.c: Likewise.
1839         * tree-ssa-ccp.c: Likewise.
1840         * tree-ssa-copy.c: Likewise.
1841         * tree-ssa-copyrename.c: Likewise.
1842         * tree-ssa-dom.c: Likewise.
1843         * tree-ssa-operands.c: Likewise.
1844         * tree-ssa-propagate.c: Likewise.
1845         * tree-ssa-structalias.c: Likewise.
1846         * tree-ssa-tail-merge.c: Likewise.
1847         * tree-ssa-threadedge.c: Likewise.
1848         * tree-ssa-threadupdate.c: Likewise.
1849         * tree-ssa-uncprop.c: Likewise.
1850         * tree-ssa-uninit.c: Likewise.
1851         * tree-ssa.c: Likewise.
1852         * tree-stdarg.c: Likewise.
1853         * tree-tailcall.c: Likewise.
1854         * tree.c: Likewise.
1855         * tsan.c: Likewise.
1856         * valtrack.c: Likewise.
1857         * varasm.c: Likewise.
1858         * vmsdbgout.c: Likewise.
1859         * web.c: Likewise.
1860         * config/aarch64/aarch64.c: Add flattened includes from function.h.
1861         * config/alpha/alpha.c: Likewise.
1862         * config/arc/arc.c: Likewise.
1863         * config/arm/arm.c: Likewise.
1864         * config/avr/avr-log.c: Likewise.
1865         * config/avr/avr.c: Likewise.
1866         * config/bfin/bfin.c: Likewise.
1867         * config/c6x/c6x.c: Likewise.
1868         * config/cr16/cr16.c: Likewise.
1869         * config/cris/cris.c: Likewise.
1870         * config/darwin.c: Likewise.
1871         * config/epiphany/epiphany.c: Likewise.
1872         * config/epiphany/mode-switch-use.c: Likewise.
1873         * config/epiphany/resolve-sw-modes.c: Likewise.
1874         * config/fr30/fr30.c: Likewise.
1875         * config/frv/frv.c: Likewise.
1876         * config/h8300/h8300.c: Likewise.
1877         * config/i386/i386.c: Likewise.
1878         * config/ia64/ia64.c: Likewise.
1879         * config/iq2000/iq2000.c: Likewise.
1880         * config/lm32/lm32.c: Likewise.
1881         * config/m32c/m32c.c: Likewise.
1882         * config/m32r/m32r.c: Likewise.
1883         * config/m68k/m68k.c: Likewise.
1884         * config/mcore/mcore.c: Likewise.
1885         * config/mep/mep-pragma.c: Likewise.
1886         * config/mep/mep.c: Likewise.
1887         * config/microblaze/microblaze.c: Likewise.
1888         * config/mips/mips.c: Likewise.
1889         * config/mmix/mmix.c: Likewise.
1890         * config/mn10300/mn10300.c: Likewise.
1891         * config/moxie/moxie.c: Likewise.
1892         * config/msp430/msp430.c: Likewise.
1893         * config/nds32/nds32-cost.c: Likewise.
1894         * config/nds32/nds32-fp-as-gp.c: Likewise.
1895         * config/nds32/nds32-intrinsic.c: Likewise.
1896         * config/nds32/nds32-isr.c: Likewise.
1897         * config/nds32/nds32-md-auxiliary.c: Likewise.
1898         * config/nds32/nds32-memory-manipulation.c: Likewise.
1899         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1900         * config/nds32/nds32-predicates.c: Likewise.
1901         * config/nds32/nds32.c: Likewise.
1902         * config/nios2/nios2.c: Likewise.
1903         * config/pa/pa.c: Likewise.
1904         * config/pdp11/pdp11.c: Likewise.
1905         * config/rl78/rl78.c: Likewise.
1906         * config/rs6000/rs6000.c: Likewise.
1907         * config/rx/rx.c: Likewise.
1908         * config/s390/s390.c: Likewise.
1909         * config/score/score.c: Likewise.
1910         * config/sh/sh.c: Likewise.
1911         * config/sparc/sparc.c: Likewise.
1912         * config/spu/spu.c: Likewise.
1913         * config/stormy16/stormy16.c: Likewise.
1914         * config/tilegx/tilegx.c: Likewise.
1915         * config/tilepro/tilepro.c: Likewise.
1916         * config/v850/v850.c: Likewise.
1917         * config/vax/vax.c: Likewise.
1918         * config/xtensa/xtensa.c: Likewise.
1919
1920 2014-10-16  Richard Earnshaw  <rearnsha@arm.com>
1921
1922         * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
1923         (TARGET_LEGITIMIZE_ADDRESS): Redefine.
1924
1925 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
1926
1927         * config/sh/sh-protos.h (fldi_ok): Remove.
1928         * config/sh/sh.c (fldi_ok): Likewise.
1929         (sh_secondary_reload): Don't use fldi_ok.
1930         * config/sh/constraints.md (G constraint, H constraint): Don't use
1931         fldi_ok.
1932
1933 2014-10-16  Martin Liska  <mliska@suse.cz>
1934
1935         * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
1936         Cast to unsigned long.
1937         (sem_item_optimizer::dump_cong_classes): Likewise.
1938
1939 2014-10-16  Tom de Vries  <tom@codesourcery.com>
1940
1941         * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
1942         with SSA_NAME_IN_FREELIST.
1943
1944 2014-10-16  Richard Biener  <rguenther@suse.de>
1945
1946         PR middle-end/63554
1947         * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
1948         (fold_builtin_strncat_chk): Move ...
1949         * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
1950         (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
1951
1952 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
1953
1954         PR target/59401
1955         * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
1956         GBR to 0.
1957
1958 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1959             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1960             Anna Tikhonova  <anna.tikhonova@intel.com>
1961             Ilya Tocar  <ilya.tocar@intel.com>
1962             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1963             Ilya Verbin  <ilya.verbin@intel.com>
1964             Kirill Yukhin  <kirill.yukhin@intel.com>
1965             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1966
1967         * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
1968         V64QI modes.
1969
1970 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1971             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1972             Anna Tikhonova  <anna.tikhonova@intel.com>
1973             Ilya Tocar  <ilya.tocar@intel.com>
1974             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1975             Ilya Verbin  <ilya.verbin@intel.com>
1976             Kirill Yukhin  <kirill.yukhin@intel.com>
1977             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1978
1979         * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
1980         V16SI, V32HI, V64QI modes.
1981
1982 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
1983
1984         PR target/53513
1985         * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
1986         expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
1987
1988         * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
1989         to match fp insn patterns.
1990         (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
1991         list.
1992         (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
1993         expand_df_unop, expand_df_binop): Remove.
1994         (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
1995         FPSCR_STAT_REG as not call clobbered.
1996         (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
1997         invoking fpscr_set_from_mem.
1998
1999         * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
2000         (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
2001         FPSCR_STAT_REG.
2002         (REGISTER_NAMES): Adjust.
2003         (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
2004         (FIRST_PSEUDO_REGISTER): Increase to 156.
2005         (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
2006         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
2007         FPSCR_STAT_REG.
2008         (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
2009         FPSCR_MODES_REG and FPSCR_STAT_REG.
2010         (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
2011
2012         * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
2013         FPSCR_SZ): Add new constants.
2014         (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
2015
2016         (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
2017         (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
2018         Use TARGET_FPU_ANY condition.
2019         (fpu_switch peephole2): Remove.
2020         (fpu_switch split): Use simple_mem_operand to capture the mem and
2021         adjust split implementation.
2022         (extend_psi_si, truncate_si_psi): New insns.
2023         (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants.  Add
2024         set of FPSCR_MODES_REG.
2025
2026         (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
2027         reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
2028         calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
2029         call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
2030         call_value_compact, call_value_compact_rettramp, call,
2031         call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
2032         sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
2033         sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
2034         sibcall_value_compact, sibcall_value, call_value_pop_compact,
2035         call_value_pop_compact_rettramp, various unnamed splits):
2036         Replace use of FPSCR_REG with use of FPSCR_MODES_REG.  Adjust gen_*
2037         function uses.
2038
2039         (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
2040         (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
2041         (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
2042         (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
2043         (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
2044
2045         (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
2046         *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
2047         cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
2048         subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
2049         cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
2050         truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
2051         and use of FPSCR_MODES_REG.  Adjust gen_* function uses.
2052
2053 2014-10-16  Martin Liska  <mliska@suse.cz>
2054             Jan Hubicka  <hubicka@ucw.cz>
2055
2056         * Makefile.in: New object files included.
2057         * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
2058         is printed.
2059         (verify_edge_corresponds_to_fndecl): More sensitive verification
2060         of nodes that are merged by IPA ICF.
2061         * cgraph.h (cgraph_node::num_references): New function.
2062         * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
2063         * common.opt: New options ipa-icf, ipa-icf-functions and
2064         ipa-icf-variables introduced.
2065         * doc/invoke.texi: Documentation of new options introduced.
2066         * ipa-icf-gimple.c: New file.
2067         * ipa-icf-gimple.h: New file.
2068         * ipa-icf.c: New file.
2069         * ipa-icf.h: New file.
2070         * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
2071         (input_overwrite_node): Likewise.
2072         * lto-section-in.c: New icf section added.
2073         * lto-streamer.h (enum lto_section_type): Likewise.
2074         * opts.c (common_handle_option): New option added.
2075         * passes.def: New pass included.
2076         * timevar.def: Time variable for IPA ICF added.
2077         * tree-pass.h: New IPA ICF pass entry point added.
2078
2079 2014-10-16  Richard Biener  <rguenther@suse.de>
2080
2081         PR tree-optimization/63168
2082         * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
2083         latches if after merging they are no longer simple.
2084         * cfghooks.c (merge_blocks): Handle merging a latch block
2085         into another block.
2086
2087 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2088             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2089             Anna Tikhonova  <anna.tikhonova@intel.com>
2090             Ilya Tocar  <ilya.tocar@intel.com>
2091             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2092             Ilya Verbin  <ilya.verbin@intel.com>
2093             Kirill Yukhin  <kirill.yukhin@intel.com>
2094             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2095
2096         * config/i386/sse.md
2097         (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
2098         support AVX-512VL instructions.
2099
2100 2014-10-16  DJ Delorie  <dj@redhat.com>
2101
2102         * tree-core.h: Fix comment to not assume pointers are multiples of
2103         bytes.
2104
2105 2014-10-15  Tom Tromey  <tromey@redhat.com>
2106
2107         * timevar.h (class auto_timevar): New class.
2108
2109 2014-10-15  Uros Bizjak  <ubizjak@gmail.com>
2110
2111         PR go/59432
2112         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
2113         Remove the second alternative.
2114         (regprefix): Remove mode attribute.
2115         (atomic_compare_and_swap<mode>): Do not fixup operand 2.
2116         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
2117
2118         Revert:
2119         2013-11-05  Ian Lance Taylor  <iant@google.com>
2120
2121         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
2122         If possible, add .cfi directives to record change to bx.
2123         * config/i386/i386.c (ix86_emit_cfi): New function.
2124         * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
2125
2126 2014-10-15  Jan Hubicka  <hubicka@ucw.cz>
2127
2128         PR lto/62026
2129         * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
2130         to duplicate.
2131         * lto-streamer-out.c (lto_output): Handle correctly thunks that was born
2132         at WPA time.
2133
2134 2014-10-15  Vladimir Makarov  <vmakarov@redhat.com>
2135
2136         PR rtl-optimization/63448
2137         * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
2138         (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
2139         (LRA_MAX_INHERITANCE_PASSES): Use it.
2140         (lra_constraint_iter_after_spill): Remove.
2141         (lra_assignment_iter): New.
2142         (lra_assignment_iter_after_spill): New.
2143         * lra-assigns.c (lra_assignment_iter): New.
2144         (lra_assignment_iter_after_spill): New.
2145         (former_reload_pseudo_spill_p): New.
2146         (spill_for): Set up former_reload_pseudo_spill_p.
2147         (setup_live_pseudos_and_spill_after_risky): Ditto.
2148         (assign_by_spills): Ditto.
2149         (lra_assign): Increment lra_assignment_iter.  Print the iteration
2150         number.  Reset former_reload_pseudo_spill_p.  Check
2151         lra_assignment_iter_after_spill.
2152         * lra.c (lra): Remove lra_constraint_iter_after_spill.  Initialize
2153         lra_assignment_iter and lra_assignment_iter_after_spill.
2154         * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
2155         (lra_constraints): Remove code with
2156         lra_assignment_iter_after_spill.
2157
2158 2014-10-15  Teresa Johnson  <tejohnson@google.com>
2159
2160         PR bootstrap/63432
2161         * tree-ssa-threadupdate.c (recompute_probabilities): Better
2162         overflow checking.
2163
2164 2014-10-15  Renlin Li <renlin.li@arm.com>
2165
2166         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
2167         __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
2168         __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
2169         __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
2170
2171 2014-10-15  Richard Biener  <rguenther@suse.de>
2172
2173         * gimple-fold.c (gimple_fold_call): Properly keep virtual
2174         SSA form up-to-date when devirtualizing a call to
2175         __builtin_unreachable and avoid fixing up EH info here.
2176
2177 2014-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2178             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2179             Anna Tikhonova  <anna.tikhonova@intel.com>
2180             Ilya Tocar  <ilya.tocar@intel.com>
2181             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2182             Ilya Verbin  <ilya.verbin@intel.com>
2183             Kirill Yukhin  <kirill.yukhin@intel.com>
2184             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2185
2186         * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
2187         to support AVX-512BW.
2188         (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
2189         (define_expand "<plusminus_insn><mode>3"): Remove masking support.
2190         (define_insn "*<plusminus_insn><mode>3"): Ditto.
2191         (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
2192         (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
2193         (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
2194         (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
2195         (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
2196         (define_insn "*andnot<mode>3"): Ditto.
2197         (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
2198         (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
2199         (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
2200         (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
2201         (define_insn "*abs<mode>2"): Remove masking support.
2202         (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
2203         (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
2204         (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
2205
2206 2014-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2207             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2208             Anna Tikhonova  <anna.tikhonova@intel.com>
2209             Ilya Tocar  <ilya.tocar@intel.com>
2210             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2211             Ilya Verbin  <ilya.verbin@intel.com>
2212             Kirill Yukhin  <kirill.yukhin@intel.com>
2213             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2214
2215         * config/i386/predicates.md (define_predicate "constm1_operand"): New.
2216         * config/i386/sse.md
2217         (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
2218         (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
2219         (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
2220         (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
2221         (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
2222         (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
2223         (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
2224
2225 2014-10-15  Renlin Li <renlin.li@arm.com>
2226
2227         * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
2228
2229 2014-10-15  Jakub Jelinek  <jakub@redhat.com>
2230
2231         * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
2232         MINUS_EXPR in unsigned type to avoid undefined behavior.
2233
2234 2014-10-15  Eric Botcazou  <ebotcazou@adacore.com>
2235
2236         * stor-layout.c (self_referential_size): Do not promote arguments.
2237
2238 2014-10-15  Marek Polacek  <polacek@redhat.com>
2239
2240         * doc/invoke.texi: Update to reflect that GNU11 is the default
2241         mode for C.
2242         * c-common.h (c_language_kind): Update comment.
2243
2244 2014-10-15  Richard Biener  <rguenther@suse.de>
2245
2246         * hash-table.c: Include bconfig.h if building for the host.
2247         * hash-table.h: Do not include ggc.h on the host but just declare
2248         a few ggc allocation templates.
2249
2250 2014-10-15  Joern Rennecke  <joern.rennecke@embecosm.com>
2251             Jeff Law  <law@redhat.com>
2252
2253         * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
2254         multiple hard registers, use smaller mode derived from MODE.
2255
2256 2014-10-15  Andreas Schwab  <schwab@suse.de>
2257
2258         * explow.c (convert_memory_address_addr_space_1): Mark in_const
2259         as ATTRIBUTE_UNUSED.
2260
2261 2014-10-14  Jan Hubicka  <hubicka@ucw.cz>
2262
2263         * loop-unroll.c: (decide_unrolling_and_peeling): Rename to
2264         (decide_unrolling): ... this one.
2265         (peel_loops_completely): Remove.
2266         (decide_peel_simple): Remove.
2267         (decide_peel_once_rolling): Remove.
2268         (decide_peel_completely): Remove.
2269         (peel_loop_simple): Remove.
2270         (peel_loop_completely): Remove.
2271         (unroll_and_peel_loops): Rename to ...
2272         (unroll_loops): ... this one; handle only unrolling.
2273         * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and
2274         LPT_PEEL_SIMPLE.
2275         (UAP_PEEL): Remove.
2276         (unroll_and_peel_loops): Remove.
2277         (unroll_loops): New.
2278         * passes.def: Replace
2279         pass_rtl_unroll_and_peel_loops by pass_rtl_unroll_loops.
2280         * loop-init.c (gate_rtl_unroll_and_peel_loops,
2281         rtl_unroll_and_peel_loops): Rename to ...
2282         (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
2283         (pass_rtl_unroll_and_peel_loops): Rename to ...
2284         (pass_rtl_unroll_loops): ... this one.
2285         * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
2286         (make_pass_rtl_unroll_loops): New.
2287         * tree-ssa-loop-ivcanon.c: (estimated_peeled_sequence_size, try_peel_loop): New.
2288         (canonicalize_loop_induction_variables): Update.
2289
2290 2014-10-14  Max Filippov  <jcmvbkbc@gmail.com>
2291
2292         * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
2293         * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
2294         !TARGET_HARD_FLOAT_POSTINC.
2295         (*lsip, *ssip): new instructions.
2296
2297 2014-10-14  Max Filippov  <jcmvbkbc@gmail.com>
2298
2299         * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
2300         remove.
2301
2302 2014-10-14  Andrew Pinski  <apinski@cavium.com>
2303
2304         * explow.c (convert_memory_address_addr_space): Rename to ...
2305         (convert_memory_address_addr_space_1): This.  Add in_const argument.
2306         Inside a CONST RTL, permute the conversion and addition of constant
2307         for zero and sign extended pointers.
2308         (convert_memory_address_addr_space): New function.
2309
2310 2014-10-14  Andrew Pinski  <apinski@cavium.com>
2311
2312         Revert:
2313         2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
2314
2315         PR middle-end/49721
2316         * explow.c (convert_memory_address_addr_space): Also permute the
2317         conversion and addition of constant for zero-extend.
2318
2319 2014-10-14  DJ Delorie  <dj@redhat.com>
2320
2321         * config/msp430/msp430-modes.def (PSI): Add.
2322
2323         * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding): New.
2324         (msp430_hard_regno_nregs_with_padding): New.
2325         * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
2326         (msp430_hard_regno_nregs_has_padding): New.
2327         (msp430_hard_regno_nregs_with_padding): New.
2328         (msp430_unwind_word_mode): Use PSImode instead of SImode.
2329         (msp430_addr_space_legitimate_address_p): New.
2330         (msp430_asm_integer): New.
2331         (msp430_init_dwarf_reg_sizes_extra): New.
2332         (msp430_print_operand): Use X suffix for PSImode even in small model.
2333         * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
2334         (PTR_SIZE): ...but 4 bytes for EH.
2335         (SIZE_TYPE): Use __int20.
2336         (PTRDIFF_TYPE): Likewise.
2337         (INCOMING_FRAME_SP_OFFSET): Adjust.
2338         * config/msp430/msp430.md (movqi_topbyte): New.
2339         (movpsi): Use fixed suffixes.
2340         (movsipsi2): Enable for 430X, not large model.
2341         (extendhipsi2): Likewise.
2342         (zero_extendhisi2): Likewise.
2343         (zero_extendhisipsi2): Likewise.
2344         (extend_and_shift1_hipsi2): Likewise.
2345         (extendpsisi2): Likewise.
2346         (*bitbranch<mode>4_z): Fix suffix logic.
2347
2348 2014-10-14  Eric Botcazou  <ebotcazou@adacore.com>
2349
2350         PR ada/62019
2351         * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
2352         do not choke on null node.
2353         <VAR_DECL>: Likewise.
2354
2355 2014-10-14  DJ Delorie  <dj@redhat.com>
2356
2357         * machmode.h (int_n_data_t): New.
2358         (int_n_enabled_p): New.
2359         (int_n_data): New.
2360         * tree.c (int_n_enabled_p): New.
2361         (int_n_trees): New.
2362         (make_or_reuse_type): Check for all __intN types, not just
2363         __int128.
2364         (build_common_tree_nodes): Likewise.  Also fill in integer_typs[]
2365         entries.
2366         * tree.h (int128_integer_type_node): Remove.
2367         (int128_unsigned_type_node): Remove.
2368         (int_n_trees_t): New.
2369         (int_n_enabled_p): New.
2370         (int_n_trees): New.
2371         * toplev.c (standard_type_bitsize): New.
2372         (do_compile): Check which __intN types are enabled for the current
2373         run.
2374         * builtin-types.def (BT_INT128): Remove.
2375         (BT_UINT128): Remove.
2376         * machmode.def: Add macro to create __int128 for all targets.
2377         * stor-layout.c (mode_for_size): Support __intN types.
2378         (smallest_mode_for_size): Likewise.
2379         (initialize_sizetypes): Support __intN types.
2380         * genmodes.c (struct mode_data): Add int_n field.
2381         (blank_mode): Likewise.
2382         (INT_N): New.
2383         (make_int_n): New.
2384         (emit_insn_modes_h): Count __intN entries and define
2385         NUM_INT_N_ENTS.
2386         (emit_mode_int_n): New.
2387         (emit_insn_modes_c): Call it.
2388         * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
2389         types, not just __int128.
2390         * tree-core.h (integer_type_kind): Remove __int128-specific
2391         entries, reserve spots for __intN entries.
2392
2393         * config/msp430/msp430-modes.def (PSI): Add.
2394
2395 2014-10-14  Kito Cheng  <kito@0xlab.org>
2396
2397         * ira.c: Fix typo in comment.
2398         * ira.h: Ditto.
2399         * ira-build.c: Ditto.
2400         * ira-color.c: Ditto.
2401         * ira-emit.c: Ditto.
2402         * ira-int.h: Ditto.
2403         * ira-lives.c: Ditto.
2404
2405 2014-10-14  Uros Bizjak  <ubizjak@gmail.com>
2406
2407         PR rtl-optimization/63475
2408         * alias.c (true_dependence_1): Always use get_addr to extract
2409         true address operands from x_addr and mem_addr.  Use extracted
2410         address operands to check for references with alignment ANDs.
2411         Use extracted address operands with find_base_term and
2412         base_alias_check. For noncanonicalized operands call canon_rtx with
2413         extracted address operand.
2414         (write_dependence_1): Ditto.
2415         (may_alias_p): Ditto.  Remove unused calls to canon_rtx.
2416
2417 2014-10-14  Evgeny Stupachenko  <evstupac@gmail.com>
2418
2419         PR target/63534
2420         * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
2421         __morestack local.
2422
2423 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2424             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2425             Anna Tikhonova  <anna.tikhonova@intel.com>
2426             Ilya Tocar  <ilya.tocar@intel.com>
2427             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2428             Ilya Verbin  <ilya.verbin@intel.com>
2429             Kirill Yukhin  <kirill.yukhin@intel.com>
2430             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2431
2432         * config/i386/i386.c
2433         (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
2434         (ix86_expand_int_vcond): Ditto.
2435
2436 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2437             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2438             Anna Tikhonova  <anna.tikhonova@intel.com>
2439             Ilya Tocar  <ilya.tocar@intel.com>
2440             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2441             Ilya Verbin  <ilya.verbin@intel.com>
2442             Kirill Yukhin  <kirill.yukhin@intel.com>
2443             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2444
2445         * config/i386/i386.c
2446         (emit_reduc_half): Handle V64QI and V32HI mode.
2447         * config/i386/sse.md
2448         (define_mode_iterator VI_AVX512BW): New.
2449         (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
2450
2451 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2452             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2453             Anna Tikhonova  <anna.tikhonova@intel.com>
2454             Ilya Tocar  <ilya.tocar@intel.com>
2455             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2456             Ilya Verbin  <ilya.verbin@intel.com>
2457             Kirill Yukhin  <kirill.yukhin@intel.com>
2458             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2459
2460         * config/i386/sse.md
2461         (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
2462
2463 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2464             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2465             Anna Tikhonova  <anna.tikhonova@intel.com>
2466             Ilya Tocar  <ilya.tocar@intel.com>
2467             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2468             Ilya Verbin  <ilya.verbin@intel.com>
2469             Kirill Yukhin  <kirill.yukhin@intel.com>
2470             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2471
2472         * config/i386/i386.c
2473         (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
2474         * config/i386/sse.md
2475         (define_mode_iterator VI): Add V64QI and V32HI modes.
2476
2477 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2478             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2479             Anna Tikhonova  <anna.tikhonova@intel.com>
2480             Ilya Tocar  <ilya.tocar@intel.com>
2481             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2482             Ilya Verbin  <ilya.verbin@intel.com>
2483             Kirill Yukhin  <kirill.yukhin@intel.com>
2484             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2485
2486         * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
2487
2488 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2489             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2490             Anna Tikhonova  <anna.tikhonova@intel.com>
2491             Ilya Tocar  <ilya.tocar@intel.com>
2492             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2493             Ilya Verbin  <ilya.verbin@intel.com>
2494             Kirill Yukhin  <kirill.yukhin@intel.com>
2495             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2496
2497         * config/i386/sse.md
2498         (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
2499         (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
2500
2501 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2502             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2503             Anna Tikhonova  <anna.tikhonova@intel.com>
2504             Ilya Tocar  <ilya.tocar@intel.com>
2505             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2506             Ilya Verbin  <ilya.verbin@intel.com>
2507             Kirill Yukhin  <kirill.yukhin@intel.com>
2508             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2509
2510         * config/i386/sse.md
2511         (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
2512         (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
2513
2514 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2515             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2516             Anna Tikhonova  <anna.tikhonova@intel.com>
2517             Ilya Tocar  <ilya.tocar@intel.com>
2518             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2519             Ilya Verbin  <ilya.verbin@intel.com>
2520             Kirill Yukhin  <kirill.yukhin@intel.com>
2521             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2522
2523         * config/i386/sse.md
2524         (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
2525         (define_mode_iterator VI2_AVX2): Add V32HI mode.
2526         (define_expand "mul<mode>3<mask_name>"): Add masking.
2527         (define_insn "*mul<mode>3<mask_name>"): Ditto.
2528         (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
2529         (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
2530         (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
2531         (define_mode_attr SDOT_PMADD_SUF): Ditto.
2532         (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
2533         (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
2534         (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
2535         (define_insn "avx2_packusdw"): Delete.
2536         (define_insn "sse4_1_packusdw"): Ditto.
2537         (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
2538
2539 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2540             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2541             Anna Tikhonova  <anna.tikhonova@intel.com>
2542             Ilya Tocar  <ilya.tocar@intel.com>
2543             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2544             Ilya Verbin  <ilya.verbin@intel.com>
2545             Kirill Yukhin  <kirill.yukhin@intel.com>
2546             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2547
2548         * config/i386/sse.md
2549         (define_insn "vec_dup<mode>"): Update constraints.
2550
2551 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2552             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2553             Anna Tikhonova  <anna.tikhonova@intel.com>
2554             Ilya Tocar  <ilya.tocar@intel.com>
2555             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2556             Ilya Verbin  <ilya.verbin@intel.com>
2557             Kirill Yukhin  <kirill.yukhin@intel.com>
2558             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2559
2560         * config/i386/sse.md
2561         (define_mode_iterator SSESCALARMODE): Add V4TI mode.
2562         (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
2563         (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
2564
2565 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2566             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2567             Anna Tikhonova  <anna.tikhonova@intel.com>
2568             Ilya Tocar  <ilya.tocar@intel.com>
2569             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2570             Ilya Verbin  <ilya.verbin@intel.com>
2571             Kirill Yukhin  <kirill.yukhin@intel.com>
2572             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2573
2574         * config/i386/sse.md
2575         (define_expand "mul<mode>3<mask_name>"): Add masking.
2576
2577 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2578             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2579             Anna Tikhonova  <anna.tikhonova@intel.com>
2580             Ilya Tocar  <ilya.tocar@intel.com>
2581             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2582             Ilya Verbin  <ilya.verbin@intel.com>
2583             Kirill Yukhin  <kirill.yukhin@intel.com>
2584             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2585
2586         * config/i386/sse.md
2587         (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
2588         (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
2589
2590 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2591             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2592             Anna Tikhonova  <anna.tikhonova@intel.com>
2593             Ilya Tocar  <ilya.tocar@intel.com>
2594             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2595             Ilya Verbin  <ilya.verbin@intel.com>
2596             Kirill Yukhin  <kirill.yukhin@intel.com>
2597             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2598
2599         * config/i386/sse.md
2600         (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
2601         (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
2602         (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
2603         Ditto.
2604
2605 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2606             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2607             Anna Tikhonova  <anna.tikhonova@intel.com>
2608             Ilya Tocar  <ilya.tocar@intel.com>
2609             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2610             Ilya Verbin  <ilya.verbin@intel.com>
2611             Kirill Yukhin  <kirill.yukhin@intel.com>
2612             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2613
2614         * config/i386/sse.md
2615         (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
2616         use VF_128_256 mode iterator and update assembler emit code.
2617         (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
2618         (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
2619         Add masking, use VF_128_256 mode iterator.
2620         (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
2621         (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
2622         Add masking, use VF_128_256 mode iterator and update assembler emit
2623         code.
2624         (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
2625         (define_mode_attr avx512flogicsuff): Delete.
2626         (define_insn "avx512f_<logic><mode>"): Ditto.
2627         (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
2628         MODE_TI.
2629         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
2630
2631 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2632             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2633             Anna Tikhonova  <anna.tikhonova@intel.com>
2634             Ilya Tocar  <ilya.tocar@intel.com>
2635             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2636             Ilya Verbin  <ilya.verbin@intel.com>
2637             Kirill Yukhin  <kirill.yukhin@intel.com>
2638             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2639
2640         * config/i386/sse.md
2641         (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
2642         (define_expand "vashr<mode>3<mask_name>"): Add masking,
2643         use VI12_128 mode iterator.
2644         (define_expand "ashrv2di3<mask_name>"): New.
2645
2646 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2647             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2648             Anna Tikhonova  <anna.tikhonova@intel.com>
2649             Ilya Tocar  <ilya.tocar@intel.com>
2650             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2651             Ilya Verbin  <ilya.verbin@intel.com>
2652             Kirill Yukhin  <kirill.yukhin@intel.com>
2653             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2654
2655         * config/i386/i386.c
2656         (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
2657         CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
2658         CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
2659         CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
2660         CODE_FOR_avx512vl_ucmpv4si3_mask.
2661         * config/i386/sse.md
2662         (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
2663         "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
2664         (define_insn
2665         "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
2666         (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
2667         (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
2668         (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
2669         (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
2670         (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
2671
2672 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2673             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2674             Anna Tikhonova  <anna.tikhonova@intel.com>
2675             Ilya Tocar  <ilya.tocar@intel.com>
2676             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2677             Ilya Verbin  <ilya.verbin@intel.com>
2678             Kirill Yukhin  <kirill.yukhin@intel.com>
2679             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2680
2681         * config/i386/sse.md
2682         (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
2683         (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
2684         (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
2685         (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
2686         (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
2687         (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
2688         (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
2689         (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
2690         (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
2691
2692 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2693             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2694             Anna Tikhonova  <anna.tikhonova@intel.com>
2695             Ilya Tocar  <ilya.tocar@intel.com>
2696             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2697             Ilya Verbin  <ilya.verbin@intel.com>
2698             Kirill Yukhin  <kirill.yukhin@intel.com>
2699             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2700
2701         * config/i386/sse.md
2702         (define_insn "avx512f_blendm<mode>"): Delete.
2703         (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
2704         (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
2705         (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
2706         V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
2707         (define_insn
2708         "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2709         Remove.
2710         (define_insn
2711         "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2712         New.
2713         (define_insn
2714         "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2715         Ditto.
2716         (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
2717         (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
2718         (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
2719         (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
2720         Delete.
2721         (define_insn
2722         "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
2723         New.
2724         (define_insn
2725         "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
2726         Ditto.
2727         (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
2728         Delete.
2729         (define_insn
2730         "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
2731         New.
2732         (define_insn
2733         "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
2734         Ditto.
2735
2736 2014-10-14  Richard Biener  <rguenther@suse.de>
2737
2738         PR tree-optimization/63512
2739         * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
2740         modified.
2741
2742 2014-10-14  Oleg Endo  <olegendo@gcc.gnu.org>
2743
2744         PR target/63260
2745         * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
2746         abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute.  Remove use
2747         of FPSCR.
2748         (negsf2_i): Rename to *negsf2_i.
2749         (abssf2_i): Rename to *abssf2_i.
2750         (negdf2_i): Rename to *negdf2_i.
2751         (absdf2_i): Rename to *absdf2_i.
2752
2753 2014-10-14  Felix Yang  <felix.yang@huawei.com>
2754             Jeff Law  <law@redhat.com>
2755
2756         * ira.c (struct equivalence): Change member "is_arg_equivalence" and
2757         "replace" into boolean bitfields; turn member "loop_depth" into a short
2758         integer; add new member "no_equiv" and "reserved".
2759         (no_equiv): Set no_equiv of struct equivalence if register is marked
2760         as having no known equivalence.
2761         (update_equiv_regs): Check all definitions for a multiple-set
2762         register to make sure that the RHS have the same value.
2763
2764 2014-10-13  Richard Henderson  <rth@redhat.com>
2765
2766         * combine-stack-adj.c (no_unhandled_cfa): New.
2767         (maybe_merge_cfa_adjust): New.
2768         (combine_stack_adjustments_for_block): Use them.
2769
2770 2014-10-13  Aldy Hernandez  <aldyh@redhat.com>
2771
2772         * Makefile.in (TAGS): Tag ../include files.
2773
2774 2014-10-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2775
2776         * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
2777         to rs6000_dbx_register_number.
2778         (DWARF_FRAME_REGNUM): Redefine as identity map.
2779         (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
2780         * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
2781         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
2782         argument to handle .debug_frame and .eh_frame directly.  Always
2783         translate SPE high register numbers.  Add special treatment for CR,
2784         but only in .debug_frame.  Respect RS6000_USE_DWARF_NUMBERING.
2785
2786         * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
2787         * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
2788         (RS6000_USE_DWARF_NUMBERING): Define.
2789         * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
2790         (RS6000_USE_DWARF_NUMBERING): Define.
2791         * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
2792         (RS6000_USE_DWARF_NUMBERING): Define.
2793         * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
2794         (RS6000_USE_DWARF_NUMBERING): Define.
2795         * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
2796         * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
2797
2798 2014-10-13  Evgeny Stupachenko  <evstupac@gmail.com>
2799
2800         * config/i386/i386.c (ix86_address_cost): Lower cost for
2801         when address contains GOT register.
2802
2803 2014-10-13  Ilya Enkovich  <ilya.enkovich@intel.com>
2804             Vladimir Makarov  <vmakarov@redhat.com>
2805
2806         PR target/8340
2807         PR middle-end/47602
2808         PR rtl-optimization/55458
2809         * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
2810         (ix86_init_pic_reg): New.
2811         (ix86_select_alt_pic_regnum): Add check on pseudo register.
2812         (ix86_save_reg): Likewise.
2813         (ix86_expand_prologue): Remove PIC register initialization
2814         now performed in ix86_init_pic_reg.
2815         (ix86_output_function_epilogue): Add check on pseudo register.
2816         (set_pic_reg_ever_alive): New.
2817         (legitimize_pic_address): Replace df_set_regs_ever_live with new
2818         set_pic_reg_ever_alive.
2819         (legitimize_tls_address): Likewise.
2820         (ix86_pic_register_p): New check.
2821         (ix86_delegitimize_address): Add check on pseudo register.
2822         (ix86_expand_call): Insert move from pseudo PIC register to ABI
2823         defined REAL_PIC_OFFSET_TABLE_REGNUM.
2824         (TARGET_INIT_PIC_REG): New.
2825         (TARGET_USE_PSEUDO_PIC_REG): New.
2826         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
2827         if pic_offset_table_rtx exists.
2828         * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
2829         Document.
2830         * doc/tm.texi: Regenerate.
2831         * function.c (assign_parms): Generate pseudo register for PIC.
2832         * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
2833         register.
2834         * ira-color.c (color_pass): Add check on pseudo register.
2835         * ira-emit.c (change_loop): Don't create copies for PIC pseudo
2836         register.
2837         * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
2838         register.
2839         (ira): Add target specific PIC register initialization.
2840         (do_reload): Keep PIC pseudo register.
2841         * lra-assigns.c (spill_for): Add checks on pseudo register.
2842         * lra-constraints.c (contains_symbol_ref_p): New.
2843         (lra_constraints): Enable lra risky transformations when PIC is pseudo
2844         register.
2845         * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
2846         * target.def (use_pseudo_pic_reg): New.
2847         (init_pic_reg): New.
2848
2849 2014-10-13  Evgeny Stupachenko  <evstupac@gmail.com>
2850
2851         * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
2852         Remove m_SILVERMONT and m_INTEL from the tune.
2853
2854 2014-10-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2855
2856         PR libfortran/63471
2857         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
2858         when _HPUX_SOURCE is defined.
2859
2860 2014-10-13  Jan Hubicka  <hubicka@ucw.cz>
2861
2862         PR tree-optimization/62127
2863         * tree.c (remap_type_1): When remapping array, remap
2864         also its type.
2865
2866 2014-10-13  Christophe Lyon  <christophe.lyon@linaro.org>
2867
2868         * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
2869         longer impact parallelization.
2870
2871 2014-10-13  Jan Hubicka  <hubicka@ucw.cz>
2872
2873         PR bootstrap/63496
2874         * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
2875
2876 2014-10-13  Marat Zakirov  <m.zakirov@samsung.com>
2877
2878         * asan.c (instrument_derefs): BIT_FIELD_REF added.
2879
2880 2014-10-13  Richard Biener  <rguenther@suse.de>
2881
2882         PR tree-optimization/63419
2883         * gimple-fold.h (gimple_convert): New function.
2884         * gimple-fold.c (gimple_convert): Likewise.
2885         * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
2886         to split out required conversions early.
2887
2888 2014-10-13  Richard Sandiford  <richard.sandiford@arm.com>
2889
2890         * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
2891         Add the parts of an insn in reverse order, with the pattern at
2892         the top of the queue.  Detect when we're iterating over a SEQUENCE
2893         pattern and in that case just consider patterns of subinstructions.
2894
2895 2014-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
2896
2897         PR target/59401
2898         * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
2899         of rtx.
2900         * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
2901         insn walking.
2902         (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
2903         address.  Use def chains to handle GBR clobbering call insns.
2904
2905 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
2906
2907         * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
2908         config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
2909         config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
2910         function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
2911         output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
2912         tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
2913         * doc/gty.texi (for_user): Document new option.
2914         * gengtype.c (create_user_defined_type): Don't try to get a struct for
2915         char.
2916         (walk_type): Don't error out on for_user option.
2917         (write_func_for_structure): Emit user marking routines if requested by
2918         for_user option.
2919         (write_local_func_for_structure): Likewise.
2920         (main): Mark types with for_user option as used.
2921         * ggc.h (gt_pch_nx): Add overload for unsigned int.
2922         * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
2923         * hash-table.h (ggc_hasher): New struct.
2924         (hash_table::create_ggc): New function.
2925         (gt_pch_nx): New overload for hash_table.
2926
2927 2014-10-11  Oleg Endo  <olegendo@gcc.gnu.org>
2928
2929         * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
2930         * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
2931         * config/sh/sh.c: Likewise.
2932         * config/sh/sh-mem.cc: Likewise.
2933         * config/sh/sh.md: Likewise.
2934         * config/sh/predicates.md: Likewise.
2935         * config/sh/sync.md: Likewise.
2936
2937 2014-10-11  Martin Liska  <mliska@suse.cz>
2938
2939         PR middle-end/63376
2940         * cgraphunit.c (symbol_table::process_new_functions): Missing call
2941         for call_cgraph_insertion_hooks added.
2942
2943 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
2944
2945         PR c/63495
2946         * stor-layout.c (min_align_of_type): Don't decrease alignment
2947         through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
2948         TYPE_USER_ALIGN is set.
2949
2950 2014-10-10  Uros Bizjak  <ubizjak@gmail.com>
2951
2952         PR rtl-optimization/63483
2953         * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
2954         references when alignment ANDs are involved.
2955         (write_dependence_p): Ditto.
2956         (may_alias_p): Ditto.
2957
2958 2014-10-10  Marek Polacek  <polacek@redhat.com>
2959
2960         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
2961         * doc/invoke.texi: Document -fsanitize=object-size.
2962         * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
2963         or it into SANITIZE_UNDEFINED.
2964         * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
2965         * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
2966         * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
2967         * opts.c (common_handle_option): Handle -fsanitize=object-size.
2968         * ubsan.c: Include tree-object-size.h.
2969         (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
2970         (ubsan_expand_bounds_ifn): Use false instead of 0.
2971         (ubsan_expand_objsize_ifn): New function.
2972         (instrument_object_size): New function.
2973         (pass_ubsan::execute): Add object size instrumentation.
2974         * ubsan.h (ubsan_expand_objsize_ifn): Declare.
2975
2976 2014-10-10  Richard Henderson  <rth@redhat.com>
2977
2978         PR target/63404
2979         * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
2980         Restrict the set of expressions we're willing to move.
2981
2982 2014-10-10  Jeff Law  <law@redhat.com>
2983
2984         * ira.c (struct equivalence): Promote INIT_INSNs field to
2985         an rtx_insn_list.  Add comments.
2986         (no_equiv): Promote LIST to an rtx_insn_list.  Update
2987         testing for and creating the special marker.  Use methods
2988         to extract the insn and next pointers.  Promote INSN to an
2989         rtx_insn.
2990         (update_equiv_regs): Update test for special marker in the
2991         INIT_INSNs list.
2992
2993 2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2994
2995         * configure.ac: Add --enable-fix-cortex-a53-835769 option.
2996         * configure: Regenerate.
2997         * config/aarch64/aarch64.c (aarch64_override_options): Handle
2998         TARGET_FIX_ERR_A53_835769_DEFAULT.
2999         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
3000         value to 2.
3001         * doc/install.texi (aarch64*-*-*): Document
3002         new --enable-fix-cortex-a53-835769 option.
3003
3004 2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3005             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3006
3007         * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
3008         (ADJUST_INSN_LENGTH): Define.
3009         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
3010         * config/aarch64/aarch64.c (is_mem_p): New function.
3011         (is_memory_op): Likewise.
3012         (aarch64_prev_real_insn): Likewise.
3013         (is_madd_op): Likewise.
3014         (dep_between_memop_and_curr): Likewise.
3015         (aarch64_madd_needs_nop): Likewise.
3016         (aarch64_final_prescan_insn): Likewise.
3017         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
3018         and -mno-fix-cortex-a53-835769 options.
3019
3020 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
3021
3022         PR tree-optimization/63464
3023         * tree-switch-conversion.c (struct case_bit_test): Remove
3024         hi and lo fields, add wide_int mask field.
3025         (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
3026         hi/lo fields into wide_int mask operations, optimize by pretending
3027         minval to be 0 if maxval is small enough.
3028         (process_switch): Adjust caller.
3029
3030 2014-10-10  Richard Biener  <rguenther@suse.de>
3031
3032         PR tree-optimization/63379
3033         * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
3034         a neutral operand for min/max when it is not a reduction chain.
3035
3036 2014-10-10  Richard Biener  <rguenther@suse.de>
3037
3038         PR tree-optimization/63476
3039         * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
3040         (BB_LIVE_VOP_ON_EXIT): New define.
3041         (create_expression_by_pieces): Assign VUSEs to stmts.
3042         (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
3043         (pass_pre::execute): Assert virtual SSA form is up-to-date
3044         after insertion.
3045
3046 2014-10-10  Eric Botcazou  <ebotcazou@adacore.com>
3047
3048         * lra-assigns.c (assign_by_spills): Error out on spill failure.
3049
3050 2014-10-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
3051
3052         * pa-polymorphic-call.c (check_stmt_for_type_change): Move
3053         assertion.
3054
3055 2014-10-09  Richard Biener  <rguenther@suse.de>
3056
3057         PR tree-optimization/63380
3058         * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
3059         may trap.
3060
3061 2014-10-09  Joern Rennecke  <joern.rennecke@embecosm.com>
3062
3063         * config/avr/avr.opt (mmcu=): Change to have a string value.
3064         (mn-flash=, mskip-bug, march=, mrmw): New options.
3065         (HeaderInclude): New.
3066         (mmcu=): Remove Var / Init clauses.
3067         * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
3068         -specs option.
3069         (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
3070         (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
3071         (SYMBOL_FLAG_IO_LOW): Define.
3072         (avr_device_to_as, avr_device_to_ld): Don't declare.
3073         (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
3074         (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
3075         (EXTRA_SPEC_FUNCTIONS): Don't define.
3076         (ASM_SPEC): Translate -arch= option to -mmcu= option.
3077         (LINK_SPEC): Translate -arch= option to -m= option.
3078         Don't use device_to_ld / device_to_data_start.
3079         (STARTFILE_SPEC): Now empty.
3080         (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
3081         * config/avr/gen-avr-mmcu-specs.c: New file.
3082         * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
3083         (s-device-specs): Likewise.
3084         (GCC_PASSES): Add s-device-specs.
3085         (install-driver): Depend on install-device-specs.
3086         (install-device-specs): New rule.
3087         * config/avr/avr.c (avr_option_override): Look up mcu arch by
3088         avr_arch_index and provide fallback initialization for avr_n_flash.
3089         (varasm.h): #include.
3090         (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
3091         (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
3092         (avr_attribute_table): Add "io", "address" and "io_low".
3093         (avr_asm_output_aligned_decl_common): Change type of decl to tree.
3094         Add special handling for symbols with "io" and/or "address" attributes.
3095         (avr_asm_asm_output_aligned_bss): New function.
3096         (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
3097         as appropriate.  Handle io_low attribute.
3098         (avr_out_sbxx_branch): Handle symbolic io addresses.
3099         (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
3100         avr_n_flash instead of avr_current_device->n_flash.
3101         (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
3102         (avr_emit_movmemhi): Likewise.
3103         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
3104         Use TARGET_RMW instead of avr_current_device->dev_attributes.
3105         Don't define avr_current_device->macro (that's the specfile's job).
3106         Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
3107         * config/avr/avr.c (avr_2word_insn_p): Likewise.
3108         * config/avr/avr.md (*cpse.ne): Likewise.
3109         (mov<mode>): Use avr_eval_addr_attrib.
3110         (cbi): Change constraint for low_io_address_operand operand to "i".
3111         (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
3112         * config/avr/predicates.md (io_address_operand):
3113         Allow SYMBOL_REF with SYMBOL_FLAG_IO.
3114         (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
3115         * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
3116         Update prototype.
3117         (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
3118         * config/avr/genmultilib.awk: Use -march=.
3119         Remove Multilib matches processing.
3120         * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
3121         * config/avr/avr-arch.h: Add double include guard.
3122         (avr_mcu_t) <library_name>: Update comment.
3123         * config/avr/driver-avr.c (avr_device_to_as): Delete.
3124         (avr_device_to_ld, avr_device_to_data_start): Likewise.
3125         (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
3126         (avr_device_to_sp8): Likewise.
3127         * config/avr/genopt.sh:  Instead avr_mcu, emit an Enum for avr_arch.
3128
3129         * doc/extend.texi (io, address): Document new AVR variable attributes.
3130         (io_low): Likewise.
3131
3132 2014-10-09  Marek Polacek  <polacek@redhat.com>
3133
3134         * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
3135
3136 2014-10-08  Richard Biener  <rguenther@suse.de>
3137
3138         PR tree-optimization/61969
3139         * tree-nrv.c (pass_nrv::execute): Properly test for automatic
3140         variables.
3141
3142 2014-10-09  Richard Biener  <rguenther@suse.de>
3143
3144         PR tree-optimization/63445
3145         * tree-vrp.c (simplify_cond_using_ranges): Only warn about
3146         overflow for non-equality compares.
3147
3148 2014-10-09  Uros Bizjak  <ubizjak@gmail.com>
3149
3150         PR rtl-optimization/57003
3151         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
3152         also check CALL_INSN_FUNCTION_USAGE for clobbers again after
3153         killing regs_invalidated_by_call.
3154
3155 2014-10-08  Teresa Johnson  <tejohnson@google.com>
3156
3157         PR bootstrap/63432.
3158         * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
3159         (ssa_fix_duplicate_block_edges): Invoke it.
3160         (mark_threaded_blocks): Make two passes to avoid ordering dependences.
3161
3162 2014-10-08  Oleg Endo  <olegendo@gcc.gnu.org>
3163
3164         PR target/52941
3165         * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
3166         atomic_fetch_<fetchop_name>si_hard,
3167         atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
3168         atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
3169         atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
3170         atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
3171
3172 2014-10-08  Rong Xu  <xur@google.com>
3173
3174         * gcov-tool.c (profile_overlap): New driver function
3175         to compute profile overlap.
3176         (print_overlap_usage_message): New.
3177         (overlap_usage): New.
3178         (do_overlap): New.
3179         (print_usage): Add calls to overlap function.
3180         (main): Ditto.
3181         * doc/gcov-tool.texi: Add documentation.
3182
3183 2014-10-08  Steve Ellcey  <sellcey@mips.com>
3184
3185         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
3186         LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
3187
3188 2014-10-08  Jan Hubicka  <hubicka@ucw.cz>
3189
3190         * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
3191         pattern matching of MEM_REF.
3192         (check_stmt_for_type_change): Update.
3193
3194 2014-10-08  Steve Ellcey  <sellcey@mips.com>
3195
3196         * config/mips/linux64.h: Remove.
3197         * config/mips/gnu-user64.h: Remove.
3198         * gcc.config (mips*-*-*): Remove references to linux64.h and
3199         gnu-user64.h
3200         * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
3201         with modified version from gnu-user64.h.
3202         (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
3203         (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
3204         * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
3205         linux64.h.
3206         (GNU_USER_LINK_EMULATION64): Ditto.
3207         (GNU_USER_LINK_EMULATIONN32): Ditto.
3208         (GLIBC_DYNAMIC_LINKER32): Ditto.
3209         (GLIBC_DYNAMIC_LINKER64): Ditto.
3210         (GLIBC_DYNAMIC_LINKERN32): Ditto.
3211         (UCLIBC_DYNAMIC_LINKER32): Ditto.
3212         (UCLIBC_DYNAMIC_LINKER64): Ditto.
3213         (UCLIBC_DYNAMIC_LINKERN32): Ditto.
3214         (BIONIC_DYNAMIC_LINKERN32): Ditto.
3215         (GNU_USER_DYNAMIC_LINKERN32): Ditto.
3216         (GLIBC_DYNAMIC_LINKER): Delete.
3217         (UCLIBC_DYNAMIC_LINKER): Delete.
3218
3219 2014-10-08  Joern Rennecke  <joern.rennecke@embecosm.com>
3220             Richard Biener  <rguenther@suse.de>
3221
3222         * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
3223         Get address space from operand 0 (BASE).
3224
3225 2014-10-07  Iain Sandoe  <iain@codesourcery.com>
3226
3227         PR target/61387
3228         * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
3229
3230 2014-10-07  Aldy Hernandez  <aldyh@redhat.com>
3231
3232         * dwarf2out.c: Remove current_function_has_inlines.
3233         (gen_subprogram_die): Same.
3234         (gen_inlined_subroutine_die): Same.
3235
3236 2014-10-07  Ilya Tocar  <ilya.tocar@intel.com>
3237
3238         * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
3239         type.
3240         (_addcarry_u64): Ditto.
3241         (_addcarryx_u64): Ditto.
3242
3243 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
3244
3245         * cgraph.h (cgraph_node::get_fun): Declare.
3246         * cgraph.c (cgraph_node::get_fun): New method.
3247         * ipa-inline.c (can_inline_edge_p): Use it.
3248
3249 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
3250
3251         * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
3252         and -ftrapping-math.
3253         * lto-wrapper.c (merge_and_complain): Likewise.
3254         (run_gcc): Likewise.
3255
3256 2014-10-06  Rong Xu  <xur@google.com>
3257
3258         * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
3259         * tree-profile.c: (params.h): New include.
3260         (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
3261         and __gcov_indirect_call_topn_counters for
3262         indirect_call_topn_profile.
3263         (gimple_init_edge_profiler): New decls for
3264         __gcov_indirect_call_topn_profiler.
3265         (gimple_gen_ic_profiler): Generate the correct profiler call.
3266         (gimple_gen_ic_func_profiler): Fix format.
3267         * value-prof.c (params.h): New include.
3268         (dump_histogram_value): Hanlde indirect_call_topn counters.
3269         (stream_in_histogram_value): Ditto.
3270         (gimple_indirect_call_to_profile): Use indirect_call_topn
3271         profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
3272         (gimple_find_values_to_profile): Hanlde indirect_call_topn
3273         counters.
3274         * value-prof.h (enum hist_type): Histrogram type for
3275         indirect_call_topn counters.
3276         * profile.c (instrument_values): Instrument
3277         indirect_call_topn counters.
3278
3279 2014-10-06  Rong Xu  <xur@google.com>
3280
3281         * Makefile.in: Fix dependence.
3282         * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
3283         indirect call topn profiler.
3284         * gcov-io.h: Ditto.
3285
3286 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
3287
3288         * calls.c (expand_call): Do not use the target as the return slot if
3289         it is not sufficiently aligned.
3290
3291 2014-10-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3292
3293         * config/rs6000/rs6000.c (analyze_swaps commentary): Add
3294         discussion of permutes and why we don't handle them.
3295
3296 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
3297
3298         * config/sparc/predicates.md (int_register_operand): Delete.
3299
3300 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
3301
3302         * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
3303
3304 2014-10-06  Jakub Jelinek  <jakub@redhat.com>
3305
3306         * ubsan.h (ubsan_get_source_location): New prototype.
3307         * ubsan.c (ubsan_source_location_type): New variable.
3308         Function renamed to ...
3309         (ubsan_get_source_location_type): ... this.  Cache
3310         return value in ubsan_source_location_type variable.
3311         (ubsan_source_location, ubsan_create_data): Use
3312         ubsan_get_source_location_type instead of
3313         ubsan_source_location_type.
3314         * asan.c (asan_protect_global): Don't protect globals
3315         with ubsan_get_source_location_type () type.
3316         (asan_add_global): Provide global decl location info
3317         if possible.
3318
3319 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
3320
3321         * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
3322         sanity check.
3323
3324 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
3325
3326         * ipa-polymorphic-call.c (possible_placement_new): Fix condition
3327         on size.
3328         (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
3329         into vptr pointer.
3330         (ipa_polymorphic_call_context::dump): Fix formating.
3331         (walk_ssa_copies): Add logic avoiding loops; update uses.
3332         * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
3333
3334 2014-10-02  Mark Wielaard  <mjw@redhat.com>
3335
3336         PR debug/63239
3337         * dwarf2out.c (gen_subprogram_die): When a member function is
3338         explicitly deleted then add a DW_AT_GNU_deleted attribute.
3339         * langhooks.h (struct lang_hooks_for_decls): Add
3340         function_decl_deleted_p langhook.
3341         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
3342         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
3343
3344 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
3345
3346         * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
3347         NULL pointer checks.
3348         (ipa_polymorphic_call_context::get_dynamic_type): Return true
3349         if type doesn't change.
3350         * cgraph.h (cgraph_indirect_call_info): New flag.
3351         * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
3352         (cgraph_node::dump): Dump it.
3353         * ipa-prop.c (ipa_analyze_call_uses):  Ignore return valud
3354         of context.get_dynamic_type.
3355         (ipa_make_edge_direct_to_target): Do not speculate
3356         edge that is already speuclative.
3357         (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
3358         speculate to __builtin_unreachable
3359         (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
3360         vptr_changed.
3361         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
3362
3363 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
3364
3365         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
3366         get_dynamic_type; drop TODO.
3367         * ipa-polymorphic-call.c
3368         (ipa_polymorphic_call_context::get_dynamic_type): Be ready
3369         for otr_type to be unknown.
3370
3371 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
3372
3373         * common/config/score/score-common.c: Remove.
3374         * config.gcc: Remove support for score-*.
3375         * config/score/constraints.md: Remove.
3376         * config/score/elf.h: Remove.
3377         * config/score/predicates.md: Remove.
3378         * config/score/score-conv.h: Remove.
3379         * config/score/score-generic.md: Remove.
3380         * config/score/score-modes.def: Remove.
3381         * config/score/score-protos.h: Remove.
3382         * config/score/score.c: Remove.
3383         * config/score/score.h: Remove.
3384         * config/score/score.md: Remove.
3385         * config/score/score.opt: Remove.
3386         * doc/md.texi: Don't document score-*.
3387
3388 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
3389
3390         PR pch/63429
3391         * genconditions.c: Directly include ggc.h before rtl.h.
3392
3393 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
3394
3395         * ipa-polymorphic-call.c
3396         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
3397         code determining speculative type.
3398         (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
3399
3400 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3401
3402         * altivec.md (altivec_lvsl): New define_expand.
3403         (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
3404         (altivec_lvsr): New define_expand.
3405         (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
3406         * rs6000.c (rs6000_expand_builtin): Change to use
3407         altivec_lvs[lr]_direct; remove commented-out code.
3408
3409 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3410
3411         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3412         Issue a warning message when vec_lvsl or vec_lvsr is used with a
3413         little endian target.
3414
3415 2014-10-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3416
3417         * tree-pretty-print.c (dump_location): Make it extern. Dump also
3418         the column.
3419         * tree-pretty-print.h (dump_location): Declare.
3420         * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
3421         (pp_gimple_stmt_1): Likewise.
3422         (dump_implicit_edges): Likewise.
3423         * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
3424         LOCATION_LINE.
3425
3426
3427 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
3428
3429         * gcc.c (driver::global_initializations): Remove "const" so
3430         that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
3431         and decoded_options_count.
3432
3433 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
3434
3435         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
3436         macro.
3437         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
3438         TARGET_E500_DOUBLE case here.
3439
3440 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
3441
3442         PR c++/54427
3443         PR c++/57198
3444         PR c++/58845
3445         * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
3446
3447 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
3448
3449         * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
3450         * lto-cgraph.c (lto_output_edge, input_edge): Stream
3451         in_polymorphic_cdtor
3452         * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
3453         (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
3454         * cgraphclones.c (cgraph_edge::clone): Likewise.
3455         * ipa-prop.c (update_jump_functions_after_inlining,
3456         try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
3457         to possible_dynamic_type_change.
3458         (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
3459         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
3460         IN_POLY_CDOTR argument.
3461
3462         * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
3463         for BASE and OUTER_TYPE being NULL.
3464         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
3465         in_poly_cdtor parameter.
3466
3467 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
3468
3469         * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
3470         (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
3471         TARGET_AVX512F.
3472         (expand_vec_perm_1): Likewise.
3473
3474 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
3475             Uros Bizjak  <ubizjak@gmail.com>
3476
3477         PR tree-optimization/61403
3478         * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
3479         error in comment.  Also optimize 256-bit vectors for AVX2
3480         or AVX (floating vectors only), provided the first permutation
3481         can be performed in one insn.
3482
3483 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
3484
3485         * gcc.c (class driver): New class.
3486         (main): Reimplement in terms of driver::main, moving most of the
3487         locals to be locals within individual methods of class driver.
3488         The remaining locals "explicit_link_files", "decoded_options" and
3489         "decoded_options_count" are used by multiple driver:: methods, and
3490         so become member data.  Doing so isolates the argc/argv reads and
3491         writes.  Replace "goto out" with a special exit code from
3492         new method driver::prepare_infiles.  Split out the old
3493         implementation of main into the following...
3494         (driver::main): New function, corresponding to the old "main"
3495         implementation.
3496         (driver::set_progname): New function, taken from the old
3497         "main" implementation.
3498         (driver::expand_at_files): Likewise.
3499         (driver::decode_argv): Likewise.
3500         (driver::global_initializations): Likewise.
3501         (driver::build_multilib_strings): Likewise.
3502         (driver::set_up_specs): Likewise.
3503         (driver::putenv_COLLECT_GCC): Likewise.
3504         (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
3505         (driver::handle_unrecognized_options): Likewise.
3506         (driver::maybe_print_and_exit): Likewise.
3507         (driver::prepare_infiles): Likewise.
3508         (driver::do_spec_on_infiles): Likewise.
3509         (driver::maybe_run_linker): Likewise.
3510         (driver::final_actions): Likewise.
3511         (driver::get_exit_code): Likewise.
3512
3513 2014-10-03  Yury Gribov  <y.gribov@samsung.com>
3514
3515         * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
3516         don't emit empty ctors.
3517
3518 2014-10-03  Eric Botcazou  <ebotcazou@adacore.com>
3519
3520         * convert.c (convert_to_integer): Do not introduce useless conversions
3521         between integral types.
3522
3523 2014-10-03  David Sherwood  <david.sherwood@arm.com>
3524
3525         * ira-int.h (ira_allocno): Mark hard_regno as signed.
3526
3527 2014-10-03  Ilya Enkovich  <ilya.enkovich@intel.com>
3528
3529         * lra-constraints.c (inherit_in_ebb): Handle calls with
3530         multiple return values.
3531         * caller-save.c (save_call_clobbered_regs): Likewise.
3532
3533 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
3534
3535         * tree-vect-data-refs.c (vect_permute_load_chain,
3536         vect_shift_permute_load_chain): Fix a typo in temporary var names,
3537         suffle3 to shuffle3.
3538
3539         PR libgomp/61200
3540         * omp-low.c (taskreg_contexts): New variable.
3541         (scan_omp_parallel): Push newly created context into taskreg_contexts
3542         vector and move record layout code to finish_taskreg_scan.
3543         (scan_omp_task): Likewise.
3544         (finish_taskreg_scan): New function.
3545         (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
3546         vector elements and release it.
3547
3548         PR target/62128
3549         * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
3550         of palignr arguments can't be used due to min 0 or max - min
3551         too high, try also op0, op1 order of palignr arguments.
3552
3553 2014-10-02  Jan Hubicka  <hubicka@ucw.cz>
3554
3555         * cgraph.h (ipa_polymorphic_call_context):
3556         Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
3557         private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
3558         * ipa-polymorphic-call.c
3559         (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
3560         past end of dynamic types.
3561         (ipa_polymorphic_call_context::stream_out,
3562         speculative_outer_type): Stream dynamic flag.
3563         (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
3564         (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
3565         Clear DYNAMIC.
3566         (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
3567         set it.
3568         (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
3569         * ipa-prop.c (update_jump_functions_after_inlining,
3570         try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
3571
3572 2014-10-02  Teresa Johnson  <tejohnson@google.com>
3573
3574         * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
3575         up when synthesizing counts to avoid rounding errors.
3576
3577 2014-10-02  Teresa Johnson  <tejohnson@google.com>
3578
3579         PR middle-end/63422
3580         * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
3581         asserts to handle incoming insanities.
3582
3583 2014-10-02  Martin Jambor  <mjambor@suse.cz>
3584
3585         PR tree-optimization/63375
3586         * tree-sra.c (build_access_from_expr_1): Disqualify volatile
3587         references.
3588
3589 2014-10-02  Olivier Hainque  <hainque@adacore.com>
3590
3591         * Makefile.in (CROSS): Define, to @CROSS.
3592
3593 2014-10-02  Jakub Jelinek  <jakub@redhat.com>
3594
3595         PR target/62128
3596         * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
3597         if it expands to a single insn only.
3598         (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument.  If true,
3599         fail unless in_order is true.  Add forward declaration.
3600         (expand_vec_perm_vperm2f128): Fix up comment about which permutation
3601         is useful for one_operand_p.
3602         (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
3603
3604 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
3605
3606         * cgraphclones.c (build_function_type_skip_args): Do not make new
3607         type variant of old.
3608
3609 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
3610
3611         * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
3612         when speculation is added.
3613         (ipa_edge_args): Add polymorphic_call_contexts.
3614         (ipa_get_ith_polymorhic_call_context): New accesor.
3615         (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
3616         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
3617         (ipa_compute_jump_functions_for_edge): Compute contexts.
3618         (update_jump_functions_after_inlining): Update contexts.
3619         (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
3620         update dumping; add speculative edge creation.
3621         (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
3622         context updating.
3623         (update_indirect_edges_after_inlining): Pass down context.
3624         (ipa_edge_duplication_hook): Duplicate contexts.
3625         (ipa_write_node_info): Stream out contexts.
3626         (ipa_read_node_info): Stream in contexts.
3627         * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
3628         types.
3629         (try_speculative_devirtualization): New function.
3630         * ipa-utils.h (try_speculative_devirtualization): Declare.
3631
3632 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
3633
3634         * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
3635         dumping during WPA.
3636
3637 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
3638
3639         * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
3640         type variants.
3641
3642 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
3643
3644         * ipa-polymorphic-call.c
3645         (ipa_polymorphic_call_context::restrict_to_inner_class):
3646         Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
3647         use speculation_consistent_p to do so; Add CONSDER_BASES
3648         and CONSIDER_PLACEMENT_NEW parameters.
3649         (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
3650         short circuit obvious cases.
3651         (ipa_polymorphic_call_context::dump): Improve formatting.
3652         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
3653         combine_speculation_with to record speculations; Do not ICE when
3654         object is located in pointer type decl; do not ICE for methods
3655         of UNION_TYPE; do not record nonpolymorphic types.
3656         (ipa_polymorphic_call_context::speculation_consistent_p): New method.
3657         (ipa_polymorphic_call_context::combine_speculation_with): New method.
3658         (ipa_polymorphic_call_context::combine_with): New method.
3659         (ipa_polymorphic_call_context::make_speculative): Move here; use
3660         combine speculation.
3661         * cgraph.h (ipa_polymorphic_call_context): Update
3662         restrict_to_inner_class prototype; add offset_by, make_speculative,
3663         combine_with, useless_p, combine_speculation_with and
3664         speculation_consistent_p methods.
3665         (ipa_polymorphic_call_context::offset_by): New method.
3666         (ipa_polymorphic_call_context::useless_p): New method.
3667
3668 2014-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3669
3670         PR rtl-optimization/62151
3671         * combine.c (can_combine_p): Allow the destination register of INSN
3672         to be clobbered in I3.
3673         (subst): Do not substitute into clobbers of registers.
3674
3675 2014-10-01  Jakub Jelinek  <jakub@redhat.com>
3676
3677         PR debug/63342
3678         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
3679         offset, TARGET_MEM_REF and SSA_NAME.
3680
3681         * config/i386/i386.c (expand_vec_perm_palignr): Handle
3682         256-bit vectors for TARGET_AVX2.
3683
3684         * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
3685         dfirst permutation.
3686
3687         PR target/63428
3688         * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
3689         argument to avx2_permv2ti.
3690
3691 2014-10-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3692
3693         * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
3694
3695 2014-09-30  Uros Bizjak  <ubizjak@gmail.com>
3696
3697         * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
3698         (fmod<mode>3): Ditto.
3699         (fpremxf4_i387): Ditto.
3700         (reminderxf3): Ditto.
3701         (reminder<mode>3): Ditto.
3702         (fprem1xf4_i387): Ditto.
3703
3704 2014-09-30  Teresa Johnson  <tejohnson@google.com>
3705
3706         * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
3707         duplicate_blocks bitmap.
3708         (remove_ctrl_stmt_and_useless_edges): Ditto.
3709         (create_block_for_threading): Ditto.
3710         (compute_path_counts): New function.
3711         (update_profile): Ditto.
3712         (recompute_probabilities): Ditto.
3713         (update_joiner_offpath_counts): Ditto.
3714         (freqs_to_counts_path): Ditto.
3715         (clear_counts_path): Ditto.
3716         (ssa_fix_duplicate_block_edges): Update profile info.
3717         (ssa_create_duplicates): Pass new parameter.
3718         (ssa_redirect_edges): Remove old profile update.
3719         (thread_block_1): New duplicate_blocks bitmap,
3720         remove old profile update.
3721         (thread_single_edge): Pass new parameter.
3722
3723 2014-09-30  Ilya Tocar  <ilya.tocar@intel.com>
3724
3725         PR middle-end/62120
3726         * varasm.c (decode_reg_name_and_count): Check availability for
3727         registers from ADDITIONAL_REGISTER_NAMES.
3728
3729 2014-09-30  David Malcolm  <dmalcolm@redhat.com>
3730
3731         PR plugins/63410
3732         * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
3733         (PLUGIN_HEADERS): Add pass-instances.def.
3734
3735 2014-09-30  James Greenhalgh  <james.greenhalgh@arm.com>
3736
3737         * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
3738         iterator.
3739         * config/aarch64/aarch64-simd.md
3740         (aarch64_sqdmull_laneq<mode>): Expand iterator.
3741         * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
3742         (vqdmulls_lane_s32): Fix return type.
3743         (vqdmulls_laneq_s32): New.
3744
3745 2014-09-30  Jakub Jelinek  <jakub@redhat.com>
3746
3747         PR inline-asm/63282
3748         * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
3749         or invert_jump_1 if jump isn't any_condjump_p.
3750
3751 2014-09-30  Terry Guo  <terry.guo@arm.com>
3752
3753         * config/arm/arm-cores.def (cortex-m7): New core name.
3754         * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
3755         (fpv5-d16): Ditto.
3756         * config/arm/arm-tables.opt: Regenerated.
3757         * config/arm/arm-tune.md: Regenerated.
3758         * config/arm/arm.h (TARGET_VFP5): New macro.
3759         * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
3760         * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
3761         smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
3762         * doc/invoke.texi: Document new cpu and fpu names.
3763
3764 2014-09-30  Jiong Wang  <jiong.wang@arm.com>
3765
3766         * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
3767         before sinking insn.
3768
3769 2014-09-30  David Sherwood  <david.sherwood@arm.com>
3770
3771         * ira-int.h (ira_allocno): Add "wmode" field.
3772         * ira-build.c (create_insn_allocnos): Add new "parent" function
3773         parameter.
3774         * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
3775         that cannot be accessed in wmode.
3776
3777 2014-09-30  Markus Trippelsdorf  <markus@trippelsdorf.de>
3778
3779         * data-streamer.c (bp_unpack_var_len_int): Avoid signed
3780         integer overflow.
3781
3782 2014-09-29  Andi Kleen  <ak@linux.intel.com>
3783
3784         * opts.c (print_filtered_help): Print --param min/max/default
3785         with -Q.
3786
3787 2014-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
3788
3789         * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
3790
3791 2014-09-29  Eric Botcazou  <ebotcazou@adacore.com>
3792
3793         * tree-vrp.c (get_single_symbol): New function.
3794         (build_symbolic_expr): Likewise.
3795         (symbolic_range_based_on_p): New predicate.
3796         (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
3797         for PLUS and MINUS.  Do not drop symbolic ranges at the end.
3798         (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
3799         operand is symbolic and based on the other operand.
3800
3801 2014-09-29  Chen Gang  <gang.chen.5i5j@gmail.com>
3802
3803         * config/microblaze/microblaze.md (call_internal1): Use VOID
3804         instead of SI to fix "((void (*)(void)) 0)()" issue
3805
3806 2014-09-29  Nick Clifton  <nickc@redhat.com>
3807
3808         * config/msp430/msp430.c (msp430_expand_prologue): Return a
3809         CLOBBER rtx for naked functions.
3810         (msp430_expand_epilogue): Likewise.
3811         (msp430_use_f5_series_hwmult): Cache result.
3812         (use_32bit_hwmult): Cache result.
3813         (msp430_no_hwmult): New function.
3814         (msp430_output_labelref): Use it.
3815
3816 2014-09-29  Jakub Jelinek  <jakub@redhat.com>
3817
3818         PR middle-end/63247
3819         * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
3820         of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
3821         use the alignment of avar rather than ovar.
3822
3823 2014-09-28  John David Anglin  <danglin@gcc.gnu.org>
3824
3825         * config/pa/pa.c (pa_output_function_epilogue): Only update
3826         last_address when a nonnote insn is found.
3827
3828 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
3829
3830         PR ipa/60665
3831         * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
3832
3833 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
3834
3835         PR ipa/62121
3836         * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
3837         fix pasto in checking array size.
3838
3839 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
3840
3841         PR middle-end/35545
3842         * passes.def (pass_tracer): Move before last dominator pass.
3843
3844 2014-09-26  Thomas Schwinge  <thomas@codesourcery.com>
3845
3846         * gcc.c (try_generate_repro): Remove argument "prog".  Change all
3847         users.
3848         (run_attempt): Handle errors of "pex_run" invocation.
3849
3850 2014-09-26  Christophe Lyon  <christophe.lyon@linaro.org>
3851
3852         * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
3853         (CC1_SPEC): Define.
3854         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
3855         (TARGET_ASAN_SHADOW_OFFSET): Define.
3856
3857 2014-09-26  Martin Liska  <mliska@suse.cz>
3858
3859         * cgraph.c (cgraph_node::release_body): New argument keep_arguments
3860         introduced.
3861         * cgraph.h: Likewise.
3862         * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
3863         * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
3864         * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
3865         * tree-ssa-alias.h: Likewise.
3866
3867 2014-09-26  Jakub Jelinek  <jakub@redhat.com>
3868             Max Ostapenko  <m.ostapenko@partner.samsung.com>
3869
3870         * common.opt: New option.
3871         * doc/invoke.texi: Describe new option.
3872         * gcc.c (execute): Don't free first string early, but at the end
3873         of the function.  Call retry_ice if compiler exited with
3874         ICE_EXIT_CODE.
3875         (main): Factor out common code.
3876         (print_configuration): New function.
3877         (files_equal_p): Likewise.
3878         (check_repro): Likewise.
3879         (run_attempt): Likewise.
3880         (do_report_bug): Likewise.
3881         (append_text): Likewise.
3882         (try_generate_repro): Likewise
3883
3884 2014-09-25  Andi Kleen  <ak@linux.intel.com>
3885
3886         * config/i386/i386.c (x86_print_call_or_nop): New function.
3887         (x86_function_profiler): Support -mnop-mcount and
3888         -mrecord-mcount.
3889         * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
3890         * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
3891
3892 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
3893
3894         * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
3895         * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
3896         * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
3897         Remove.
3898
3899 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
3900
3901         * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
3902         type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
3903         types_odr_comparable): Declare.
3904         (polymorphic_type_binfo_p): Move here from ipa-devirt.c
3905         * ipa-polymorphic-call.c: New file.
3906         (contains_polymorphic_type_p, possible_placement_new,
3907         ipa_polymorphic_call_context::restrict_to_inner_class,
3908         contains_type_p, decl_maybe_in_construction_p,
3909         ipa_polymorphic_call_context::stream_out,
3910         ipa_polymorphic_call_context::debug,
3911         ipa_polymorphic_call_context::stream_in,
3912         ipa_polymorphic_call_context::set_by_decl,
3913         ipa_polymorphic_call_context::set_by_invariant,
3914         walk_ssa_copies,
3915         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3916         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
3917         extr_type_from_vtbl_ptr_store, record_known_type
3918         check_stmt_for_type_change,
3919         ipa_polymorphic_call_context::get_dynamic_type): Move here from
3920         ipa-devirt.c
3921         * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
3922         and streamer-hooks.h
3923         (contains_polymorphic_type_p, possible_placement_new,
3924         ipa_polymorphic_call_context::restrict_to_inner_class,
3925         contains_type_p, decl_maybe_in_construction_p,
3926         ipa_polymorphic_call_context::stream_out,
3927         ipa_polymorphic_call_context::debug,
3928         ipa_polymorphic_call_context::stream_in,
3929         ipa_polymorphic_call_context::set_by_decl,
3930         ipa_polymorphic_call_context::set_by_invariant,
3931         walk_ssa_copies,
3932         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3933         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
3934         extr_type_from_vtbl_ptr_store, record_known_type
3935         check_stmt_for_type_change,
3936         ipa_polymorphic_call_context::get_dynamic_type): Move to
3937         ipa-polymorphic-call.c
3938         (type_all_derivations_known_p, types_odr_comparable,
3939         types_must_be_same_for_odr): Export.
3940         (type_known_to_have_no_deriavations_p): New function.
3941         * Makefile.in: Add ipa-polymorphic-call.c
3942
3943 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
3944
3945         * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
3946         for better storage.
3947         (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
3948         (possible_polymorphic_call_targets): Instead of computing both
3949         speculative and non-speculative answers, do just one at a time.
3950         Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
3951         (dump_targets): Break out from ...
3952         (dump_possible_polymorphic_call_targets): ... here; dump both speculative
3953         and non-speculative lists.
3954         (ipa_devirt): Update for new possible_polymorphic_call_targets API.
3955         * ipa-utils.h (possible_polymorphic_call_targets): Update.
3956
3957 2014-09-25  Uros Bizjak  <ubizjak@gmail.com>
3958
3959         PR rtl-optimization/63348
3960         * emit-rtl.c (try_split): Do not emit extra barrier.
3961
3962 2014-09-25  James Greenhalgh  <james.greenhalgh@arm.com>
3963
3964         * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
3965         * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
3966         new predicates.
3967         (aarch64_<sur>shll2_n<mode>): Likewise.
3968         (aarch64_<sur>shr_n<mode>): Likewise.
3969         (aarch64_<sur>sra_n<mode>: Likewise.
3970         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
3971         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
3972         * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
3973         * config/aarch64/iterators.md (ve_mode): New.
3974         (offsetlr): Remap to infix text for use in new predicates.
3975         * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
3976         (aarch64_simd_shift_imm_hi): Likewise.
3977         (aarch64_simd_shift_imm_si): Likewise.
3978         (aarch64_simd_shift_imm_di): Likewise.
3979         (aarch64_simd_shift_imm_offset_qi): Likewise.
3980         (aarch64_simd_shift_imm_offset_hi): Likewise.
3981         (aarch64_simd_shift_imm_offset_si): Likewise.
3982         (aarch64_simd_shift_imm_offset_di): Likewise.
3983         (aarch64_simd_shift_imm_bitsize_qi): Likewise.
3984         (aarch64_simd_shift_imm_bitsize_hi): Likewise.
3985         (aarch64_simd_shift_imm_bitsize_si): Likewise.
3986         (aarch64_simd_shift_imm_bitsize_di): Likewise.
3987
3988 2014-09-25  Jiong Wang  <jiong.wang@arm.com>
3989
3990         * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
3991         new created BB as the intersection of live-in from "old_dest" and
3992         live-out from "bb".
3993
3994 2014-09-25  Felix Yang  <felix.yang@huawei.com>
3995
3996         * lra.c (lra_set_insn_recog_data): Fix typo in comment.
3997         * genautomata.c (merge_states): Ditto.
3998
3999 2014-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
4000
4001         PR target/62218
4002         * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
4003         in instruction sequence.
4004
4005 2014-09-25  Nick Clifton  <nickc@redhat.com>
4006
4007         PR target/62218
4008         * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
4009         in instruction sequence.
4010
4011 2014-09-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4012
4013         PR target/63335
4014         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
4015         Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
4016
4017 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4018             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4019             Anna Tikhonova  <anna.tikhonova@intel.com>
4020             Ilya Tocar  <ilya.tocar@intel.com>
4021             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4022             Ilya Verbin  <ilya.verbin@intel.com>
4023             Kirill Yukhin  <kirill.yukhin@intel.com>
4024             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4025
4026         * config/i386/sse.md
4027         (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
4028         (define_expand "<avx2_avx512>_perm<mode>"): ... this.
4029         (define_expand "avx512f_perm<mode>_mask"): Rename to ...
4030         (define_expand "<avx512>_perm<mode>_mask"): ... this.
4031         Use VI8F_256_512 mode iterator.
4032         (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
4033         (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
4034
4035 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4036             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4037             Anna Tikhonova  <anna.tikhonova@intel.com>
4038             Ilya Tocar  <ilya.tocar@intel.com>
4039             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4040             Ilya Verbin  <ilya.verbin@intel.com>
4041             Kirill Yukhin  <kirill.yukhin@intel.com>
4042             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4043
4044         * config/i386/sse.md
4045         (define_insn "avx_movshdup256<mask_name>"): Add masking.
4046         (define_insn "sse3_movshdup<mask_name>"): Ditto.
4047         (define_insn "avx_movsldup256<mask_name>"): Ditto.
4048         (define_insn "sse3_movsldup<mask_name>"): Ditto.
4049         (define_insn "vec_dupv2df<mask_name>"): Ditto.
4050         (define_insn "*vec_concatv2df"): Add EVEX version.
4051
4052 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4053             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4054             Anna Tikhonova  <anna.tikhonova@intel.com>
4055             Ilya Tocar  <ilya.tocar@intel.com>
4056             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4057             Ilya Verbin  <ilya.verbin@intel.com>
4058             Kirill Yukhin  <kirill.yukhin@intel.com>
4059             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4060
4061         * config/i386/sse.md
4062         (define_insn "vec_set<mode>_0"): Add EVEX version.
4063
4064 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4065             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4066             Anna Tikhonova  <anna.tikhonova@intel.com>
4067             Ilya Tocar  <ilya.tocar@intel.com>
4068             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4069             Ilya Verbin  <ilya.verbin@intel.com>
4070             Kirill Yukhin  <kirill.yukhin@intel.com>
4071             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4072
4073         * config/i386/sse.md
4074         (define_insn
4075         "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
4076         New.
4077         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
4078         (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
4079         (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
4080         "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
4081         (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
4082         (define_expand "sse2_cvtpd2ps_mask): New.
4083         (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
4084         (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
4085
4086 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4087             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4088             Anna Tikhonova  <anna.tikhonova@intel.com>
4089             Ilya Tocar  <ilya.tocar@intel.com>
4090             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4091             Ilya Verbin  <ilya.verbin@intel.com>
4092             Kirill Yukhin  <kirill.yukhin@intel.com>
4093             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4094
4095         * config/i386/i386.c
4096         (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
4097         (ufix_notruncv8dfv8si2_mask_round): ... this.
4098         * config/i386/sse.md
4099         (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
4100         (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
4101         (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
4102         (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
4103         (define_expand "sse2_cvtpd2dq"): Delete.
4104         (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
4105         make 2nd operand const0 vector.
4106         (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
4107         Delete.
4108         (define_mode_attr pd2udqsuff): New.
4109         (define_insn
4110         "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
4111         (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
4112         (define_insn "*avx_cvttpd2dq256_2"): Delete.
4113         (define_expand "sse2_cvttpd2dq"): Ditto.
4114         (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
4115         make 2nd operand const0 vector.
4116
4117 2014-09-25  Jakub Jelinek  <jakub@redhat.com>
4118
4119         PR tree-optimization/63341
4120         * tree-vectorizer.h (vect_create_data_ref_ptr,
4121         vect_create_addr_base_for_vector_ref): Add another tree argument
4122         defaulting to NULL_TREE.
4123         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
4124         argument, pass it down to vect_create_addr_base_for_vector_ref.
4125         (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
4126         add that to base_offset too if non-NULL.
4127         * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
4128         for dr_explicit_realign_optimized set it to vector byte size
4129         - 1 instead of setting offset, pass byte_offset down to
4130         vect_create_data_ref_ptr.
4131
4132 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
4133
4134         * ipa-devirt.c (possible_polymorphic_call_targets): Remove
4135         forgotten debug output; canonicalize querries more wtih LTO.
4136
4137 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
4138
4139         * cgraph.h (class ipa_polymorphic_call_context): Move here from
4140         ipa-utils.h; add stream_int and stream_out methods.
4141         (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
4142         OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
4143         MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
4144         add CONTEXT.
4145         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
4146         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
4147         ipa_polymorphic_call_context::clear_speculation,
4148         ipa_polymorphic_call_context::clear_outer_type): Move here from
4149         ipa-utils.h
4150         * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
4151         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
4152         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
4153         ipa_polymorphic_call_context::clear_speculation,
4154         ipa_polymorphic_call_context::clear_outer_type): Likewise.
4155         * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
4156         streamer-hooks.h
4157         (ipa_polymorphic_call_context::stream_out): New method.
4158         (ipa_polymorphic_call_context::stream_in): New method.
4159         (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
4160         * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
4161         OUTER_TYPE.
4162         (ipa_analyze_call_uses): Simplify.
4163         (update_indirect_edges_after_inlining): Do not care about outer_type.
4164         (ipa_write_indirect_edge_info): Update.
4165         (ipa_write_indirect_edge_info): Likewise.
4166         * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
4167         (dump_edge_flags): Break out from ...
4168         (cgraph_node::dump): ... here; dump indirect edges.
4169
4170 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
4171
4172         * ipa-utils.h (polymorphic_call_context): Add
4173         metdhos dump, debug and clear_outer_type.
4174         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
4175         (ipa_polymorphic_call_context::clear_outer_type): New method.
4176         * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
4177         * ipa-devirt.c (types_odr_comparable): New function.
4178         (types_must_be_same_for_odr): New function.
4179         (odr_subtypes_equivalent_p): Simplify.
4180         (possible_placement_new): Break out from ...
4181         (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
4182         be more cuatious about returning false in cases the context may be
4183         valid in derived type or via placement new.
4184         (contains_type_p): Clear maybe_derived_type
4185         (ipa_polymorphic_call_context::dump): New method.
4186         (ipa_polymorphic_call_context::debug): New method.
4187         (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
4188         (ipa_polymorphic_call_context::set_by_invariant): Simplify.
4189         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
4190         (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
4191         to suceed on all valid cases; remove confused sanity check.
4192         (dump_possible_polymorphic_call_targets): Simplify.
4193
4194 2014-09-24  Aldy Hernandez  <aldyh@redhat.com>
4195
4196         * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
4197         lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
4198         tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
4199         varpool.c: Rename all instances of DECL_ABSTRACT to
4200         DECL_ABSTRACT_P.
4201
4202 2014-09-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4203
4204         * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
4205         special handling for stores whose SET_SRC is an UNSPEC (such as
4206         UNSPEC_STVE).
4207
4208 2014-09-24  Jiong Wang  <jiong.wang@arm.com>
4209
4210         * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
4211         !REG_P (src) to release more instruction sink opportunities.
4212
4213 2014-09-24  Wilco Dijkstra  <wilco.dijkstra@arm.com>
4214
4215         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
4216         move costs for 128-bit types.
4217
4218 2014-09-24  Martin Jambor  <mjambor@suse.cz>
4219
4220         * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
4221         when duplicating a PASS_THROUGH jump function when creating a
4222         speculative edge.
4223
4224 2014-09-24  Marek Polacek  <polacek@redhat.com>
4225
4226         PR c/61405
4227         PR c/53874
4228         * asan.c (maybe_instrument_call): Add default case.
4229         * ipa-pure-const.c (special_builtin_state): Likewise.
4230         * predict.c (expr_expected_value_1): Likewise.
4231         * lto-streamer-out.c (write_symbol): Initialize variable.
4232
4233 2014-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4234
4235         * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
4236         the lane.
4237         (vmuld_laneq_f64): Likewise.
4238         (vmuls_lane_f32): Likewise.
4239         (vmuls_laneq_f32): Likewise.
4240
4241 2014-09-24  Kirill Yukhin  <kirill.yukhin@intel.com>
4242
4243         PR bootstrap/63235
4244         * varpool.c (varpool_node::add): Pass decl attributes
4245         to lookup_attribute.
4246
4247 2014-09-24  Jakub Jelinek  <jakub@redhat.com>
4248
4249         PR sanitizer/63316
4250         * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
4251
4252 2014-09-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4253
4254         PR tree-optimization/63266
4255         * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
4256         marker for unknown byte value.
4257         (MARKER_MASK): New macro.
4258         (MARKER_BYTE_UNKNOWN): New macro.
4259         (HEAD_MARKER): New macro.
4260         (do_shift_rotate): Mark bytes with unknown values due to sign
4261         extension when doing an arithmetic right shift. Replace hardcoded
4262         mask for marker by new MARKER_MASK macro.
4263         (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
4264         numbers accordingly.
4265
4266 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4267             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4268             Anna Tikhonova  <anna.tikhonova@intel.com>
4269             Ilya Tocar  <ilya.tocar@intel.com>
4270             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4271             Ilya Verbin  <ilya.verbin@intel.com>
4272             Kirill Yukhin  <kirill.yukhin@intel.com>
4273             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4274
4275         * config/i386/sse.md
4276         (define_insn
4277         "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
4278         Add masking.
4279         (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
4280         (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
4281
4282 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4283             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4284             Anna Tikhonova  <anna.tikhonova@intel.com>
4285             Ilya Tocar  <ilya.tocar@intel.com>
4286             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4287             Ilya Verbin  <ilya.verbin@intel.com>
4288             Kirill Yukhin  <kirill.yukhin@intel.com>
4289             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4290
4291         * config/i386/sse.md
4292         (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
4293         (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
4294         (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
4295         (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
4296         (define_expand "avx512vl_pshuflw_mask"): New.
4297         (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
4298         (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
4299         (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
4300         (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
4301         (define_expand "avx512vl_pshufhw_mask"): New.
4302         (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
4303
4304 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4305             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4306             Anna Tikhonova  <anna.tikhonova@intel.com>
4307             Ilya Tocar  <ilya.tocar@intel.com>
4308             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4309             Ilya Verbin  <ilya.verbin@intel.com>
4310             Kirill Yukhin  <kirill.yukhin@intel.com>
4311             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4312
4313         * config/i386/i386.c
4314         (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
4315         CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
4316         CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
4317         CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
4318         CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
4319         * config/i386/sse.md
4320         (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
4321         (define_insn
4322         "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
4323         (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
4324         (define_insn
4325         "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
4326         (define_expand "avx512vl_pshufdv3_mask"): Ditto.
4327         (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
4328         (define_expand "avx512vl_pshufd_mask"): New.
4329         (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
4330
4331 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4332             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4333             Anna Tikhonova  <anna.tikhonova@intel.com>
4334             Ilya Tocar  <ilya.tocar@intel.com>
4335             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4336             Ilya Verbin  <ilya.verbin@intel.com>
4337             Kirill Yukhin  <kirill.yukhin@intel.com>
4338             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4339
4340         * config/i386/i386.c
4341         (CODE_FOR_avx2_extracti128): Rename to ...
4342         (CODE_FOR_avx_vextractf128v4di): this.
4343         (CODE_FOR_avx2_inserti128): Rename to ...
4344         (CODE_FOR_avx_vinsertf128v4di): this.
4345         (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
4346         CODE_FOR_avx_vextractf128v4di.
4347         (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
4348         CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
4349         CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
4350         CODE_FOR_avx512vl_vinsertv8si.
4351         * config/i386/sse.md
4352         (define_expand
4353         "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
4354         AVX512_VEC mode iterator.
4355         (define_insn
4356         "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
4357         Ditto.
4358         (define_expand
4359         "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
4360         AVX512_VEC_2 mode iterator.
4361         (define_insn "vec_set_lo_<mode><mask_name>"): New.
4362         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
4363         (define_expand "avx512vl_vinsert<mode>"): Ditto.
4364         (define_insn "avx2_vec_set_lo_v4di"): Delete.
4365         (define_insn "avx2_vec_set_hi_v4di"): Ditto.
4366         (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
4367         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
4368         (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
4369         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
4370         (define_expand "avx2_extracti128"): Delete.
4371         (define_expand "avx2_inserti128"): Ditto.
4372
4373 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4374             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4375             Anna Tikhonova  <anna.tikhonova@intel.com>
4376             Ilya Tocar  <ilya.tocar@intel.com>
4377             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4378             Ilya Verbin  <ilya.verbin@intel.com>
4379             Kirill Yukhin  <kirill.yukhin@intel.com>
4380             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4381
4382         * config/i386/sse.md
4383         (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
4384         (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
4385         (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
4386         (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
4387         (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
4388         (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
4389         (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
4390         (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
4391         (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
4392         (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
4393         (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
4394         (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
4395         (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
4396
4397 2014-09-24  Zhenqiang Chen  <zhenqiang.chen@arm.com>
4398
4399         PR rtl-optimization/63210
4400         * ira-color.c (assign_hard_reg): Ignore conflict cost if the
4401         HARD_REGNO is not available for CONFLICT_A.
4402
4403 2014-09-23  Andi Kleen  <ak@linux.intel.com>
4404
4405         * cgraph.h (symtab_node): Add no_reorder attribute.
4406         (symbol_table::output_asm_statements): Remove.
4407         * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
4408         (cgraph_node::create_version_clone): Dito.
4409         (symbol_table::output_asm_statements): Remove.
4410         * trans-mem.c (ipa_tm_create_version_alias): Dito.
4411         * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
4412         (output_in_order): Add no_reorder flag. Only handle no_reorder
4413         nodes when set.
4414         (symbol_table::compile): Add separate pass for no_reorder nodes.
4415         (process_common_attributes): Set no_reorder flag in symtab node.
4416         Add node argument.
4417         (process_function_and_variable_attributes): Pass symtab nodes to
4418         process_common_attributes.
4419         * doc/extend.texi (no_reorder): Document no_reorder attribute.
4420         * lto-cgraph.c (lto_output_node): Serialize no_reorder.
4421         (lto_output_varpool_node): Dito.
4422         (input_overwrite_node): Dito.
4423         (input_varpool_node): Dito.
4424         * varpool.c (varpool_node::add): Set no_reorder attribute.
4425         (symbol_table::remove_unreferenced_decls): Handle no_reorder.
4426         (symbol_table::output_variables): Dito.
4427         * symtab.c (symtab_node::dump_base): Print no_reorder.
4428
4429 2014-09-23  Jiong Wang  <jiong.wang@arm.com>
4430
4431         * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
4432         be INVALID_REGNUM.
4433
4434 2014-09-23  Thomas Schwinge  <thomas@codesourcery.com>
4435
4436         * configure: Regenerate.
4437
4438 2014-09-23  Alan Lawrence  <alan.lawrence@arm.com>
4439
4440         * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
4441         when result_mode == shift_mode.
4442
4443 2014-09-23  Kostya Serebryany  <kcc@google.com>
4444
4445         Update to match the changed asan API.
4446         * asan.c (asan_global_struct): Update the __asan_global definition
4447         to match the new API.
4448         (asan_add_global): Ditto.
4449         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
4450         to __asan_init_v4.
4451
4452 2014-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
4453
4454         * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
4455         refine the constraints used on 32/64-bit floating point moves.
4456         (f32_av): Likewise.
4457         (f64_vsx): Likewise.
4458         (f64_dm): Likewise.
4459         (f64_av): Likewise.
4460         (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
4461         (BOOL_REGS_OP1): Likewise.
4462         (BOOL_REGS_OP2): Likewise.
4463         (BOOL_REGS_UNARY): Likewise.
4464         (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
4465         32/64-bit floating point moves.  Do not use wa, instead use ww/ws
4466         for moves involving VSX registers.  Do not use constraints that
4467         target VSX registers for decimal types.
4468         (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
4469         (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
4470
4471 2014-09-23  Jan Hubicka  <hubicka@ucw.cz>
4472
4473         * tree.h (int_bit_position): Turn into inline function;
4474         implement using wide int.
4475         * tree.c (int_bit_position): Remove.
4476
4477 2014-09-23  Richard Sandiford  <richard.sandiford@arm.com>
4478
4479         PR bootstrap/63280
4480         * target-globals.c (target_globals::~target_globals): Fix location
4481         of ira_int destruction.
4482
4483 2014-09-23  Renlin Li  <renlin.li@arm.com>
4484
4485         * config/aarch64/aarch64.md (return): New.
4486         (simple_return): Likewise.
4487         * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
4488         * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
4489
4490 2014-09-23  Wilco Dijkstra  <wdijkstr@arm.com>
4491
4492         * common/config/aarch64/aarch64-common.c:
4493         (default_options aarch_option_optimization_table):
4494         Default to -fsched-pressure.
4495
4496 2014-09-23  Ilya Enkovich  <ilya.enkovich@intel.com>
4497
4498         * cfgcleanup.c (try_optimize_cfg): Do not remove label
4499         with LABEL_PRESERVE_P flag set.
4500
4501 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4502             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4503             Anna Tikhonova  <anna.tikhonova@intel.com>
4504             Ilya Tocar  <ilya.tocar@intel.com>
4505             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4506             Ilya Verbin  <ilya.verbin@intel.com>
4507             Kirill Yukhin  <kirill.yukhin@intel.com>
4508             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4509
4510         * config/i386/sse.md
4511         (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
4512         (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
4513         (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
4514         (define_insn "sse2_shufpd_v2df_mask"): New.
4515
4516 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4517             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4518             Anna Tikhonova  <anna.tikhonova@intel.com>
4519             Ilya Tocar  <ilya.tocar@intel.com>
4520             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4521             Ilya Verbin  <ilya.verbin@intel.com>
4522             Kirill Yukhin  <kirill.yukhin@intel.com>
4523             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4524
4525         * config/i386/sse.md
4526         (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
4527         (define_insn "avx_shufps256_1<mask_name>"): Ditto.
4528         (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
4529         (define_insn "sse_shufps_v4sf_mask"): New.
4530
4531 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4532             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4533             Anna Tikhonova  <anna.tikhonova@intel.com>
4534             Ilya Tocar  <ilya.tocar@intel.com>
4535             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4536             Ilya Verbin  <ilya.verbin@intel.com>
4537             Kirill Yukhin  <kirill.yukhin@intel.com>
4538             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4539
4540         * config/i386/sse.md
4541         (define_insn "avx_unpckhps256<mask_name>"): Add masking.
4542         (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
4543         (define_insn "avx_unpcklps256<mask_name>"): Ditto.
4544         (define_insn "unpcklps128_mask"): New.
4545
4546 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4547             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4548             Anna Tikhonova  <anna.tikhonova@intel.com>
4549             Ilya Tocar  <ilya.tocar@intel.com>
4550             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4551             Ilya Verbin  <ilya.verbin@intel.com>
4552             Kirill Yukhin  <kirill.yukhin@intel.com>
4553             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4554
4555         * config/i386/sse.md
4556         (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
4557         (define_insn "avx512vl_unpckhpd128_mask"): New.
4558         (define_expand "avx_movddup256<mask_name>"): Add masking.
4559         (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
4560         (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
4561         (define_insn "avx512vl_unpcklpd128_mask"): New.
4562
4563 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
4564
4565         * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4566         * doc/tm.texi: Regenerate.
4567         * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
4568         * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4569         * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
4570         Remove.
4571         * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4572         * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4573         * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4574         * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4575         * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
4576         Remove.
4577         * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4578         * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4579         * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4580         * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4581         * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4582         * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4583         * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4584         * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4585         * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4586         * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4587         * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
4588         Remove.
4589
4590 2014-09-22  Jan Hubicka  <hubicka@ucw.cz>
4591
4592         * tree-ssa-ccp.c (prop_value_d): Rename to ...
4593         (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
4594         * ipa-prop.c (struct type_change_info): Rename to ...
4595         (prop_type_change_info): ... this; update uses.
4596         * ggc-page.c (globals): Rename to ...
4597         (static struct ggc_globals): ... this; update uses.
4598         * tree-ssa-loop-im.c (mem_ref): Rename to ...
4599         (im_mem_ref): ... this; update uses.
4600         * ggc-common.c (loc_descriptor): Rename to ...
4601         (ggc_loc_descriptor): ... this; update uses.
4602         * lra-eliminations.c (elim_table): Rename to ...
4603         (lra_elim_table): ... this; update uses.
4604         * bitmap.c (output_info): Rename to ...
4605         (bitmap_output_info): ... this; update uses.
4606         * gcse.c (expr): Rename to ...
4607         (gcse_expr) ... this; update uses.
4608         (occr): Rename to ...
4609         (gcse_occr): .. this; update uses.
4610         * tree-ssa-copy.c (prop_value_d): Rename to ...
4611         (prop_value_t): ... this.
4612         * predict.c (block_info_def): Rename to ...
4613         (block_info): ... this; update uses.
4614         (edge_info_def): Rename to ...
4615         (edge_info): ... this; update uses.
4616         * profile.c (bb_info): Rename to ...
4617         (bb_profile_info): ... this; update uses.
4618         * alloc-pool.c (output_info): Rename to ...
4619         (pool_output_info): ... this; update uses.
4620         * ipa-cp.c (topo_info): Rename to ..
4621         (ipa_topo_info): ... this; update uses.
4622         * tree-nrv.c (nrv_data): Rename to ...
4623         (nrv_data_t): ... this; update uses.
4624         * ipa-split.c (bb_info): Rename to ...
4625         (split_bb_info): ... this one.
4626         * profile.h (edge_info): Rename to ...
4627         (edge_profile_info): ... this one; update uses.
4628         * dse.c (bb_info): Rename to ...
4629         (dse_bb_info): ... this one; update uses.
4630         * cprop.c (occr): Rename to ...
4631         (cprop_occr): ... this one; update uses.
4632         (expr): Rename to ...
4633         (cprop_expr): ... this one; update uses.
4634
4635 2014-09-22  Jason Merrill  <jason@redhat.com>
4636
4637         * Makefile.in (check-parallel-%): Add @.
4638
4639 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
4640
4641         * config/aarch64/geniterators.sh: New.
4642         * config/aarch64/iterators.md (VDQF_DF): New.
4643         * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
4644         * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
4645
4646 2014-09-22  Peter A. Bigot  <pab@pabigot.com>
4647
4648         * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
4649         -lnosys when -msim absent.
4650
4651 2014-09-22  Alan Lawrence  <alan.lawrence@arm.com>
4652
4653         * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
4654
4655 2014-09-22  Richard Biener  <rguenther@suse.de>
4656
4657         * gimplify.c (gimplify_init_constructor): Do not leave
4658         non-GIMPLE vector constructors around.
4659         * tree-cfg.c (verify_gimple_assign_single): Verify that
4660         CONSTRUCTORs have gimple elements.
4661
4662 2014-09-22  Jakub Jelinek  <jakub@redhat.com>
4663
4664         PR debug/63328
4665         * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
4666         insert a debug source bind stmt setting DEBUG_EXPR_DECL
4667         instead of a normal gimple assignment stmt.
4668
4669 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
4670
4671         * config/bfin/bfin.md: Fix use of constraints in define_split.
4672
4673 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
4674
4675         * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
4676         GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
4677
4678 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
4679
4680         * hard-reg-set.h: Include hash-table.h.
4681         (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
4682         field.
4683         * target-globals.c (target_globals::~target_globals): Call
4684         hard_regs->finalize.
4685         * rtl.h (subreg_shape): New structure.
4686         (shape_of_subreg): New function.
4687         (simplifiable_subregs): Declare.
4688         * reginfo.c (simplifiable_subreg): New structure.
4689         (simplifiable_subregs_hasher): Likewise.
4690         (simplifiable_subregs): New function.
4691         (invalid_mode_changes): Delete.
4692         (alid_mode_changes, valid_mode_changes_obstack): New variables.
4693         (record_subregs_of_mode): Remove subregs_of_mode parameter.
4694         Record valid mode changes in valid_mode_changes.
4695         (find_subregs_of_mode): Remove subregs_of_mode parameter.
4696         Update calls to record_subregs_of_mode.
4697         (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
4698         handling.  Initialize new variables.  Update call to
4699         find_subregs_of_mode.
4700         (invalid_mode_change_p): Check new variables instead of
4701         invalid_mode_changes.
4702         (finish_subregs_of_mode): Finalize new variables instead of
4703         invalid_mode_changes.
4704         (target_hard_regs::finalize): New function.
4705         * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
4706         even when CLASS_CANNOT_CHANGE_MODE is undefined.
4707
4708 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
4709
4710         * combine.c (subst): Use simplify_subreg_regno rather than
4711         REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
4712
4713 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
4714
4715         * rtl.h (subreg_info): Expand commentary
4716         * rtlanal.c (subreg_get_info): Likewise.
4717
4718 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
4719
4720         * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
4721         (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
4722         (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
4723
4724 2014-09-22  Zhenqiang Chen  <zhenqiang.chen@arm.com>
4725
4726         * config/arm/arm.c: #include "tm-constrs.h"
4727         (thumb1_size_rtx_costs): Adjust rtx costs.
4728
4729 2014-09-22  Hans-Peter Nilsson  <hp@axis.com>
4730
4731         * configure.ac (target_header_dir): Move block defining
4732         this to before the block setting inhibit_libc.
4733         (inhibit_libc): When considering $with_headers, just
4734         check it it's explicitly "no".  If not, also check if
4735         $target_header_dir/stdio.h is present.  If not, set
4736         inhibit_libc=true.
4737         * configure: Regenerate.
4738
4739 2014-09-21  Patrick Oppenlander  <pattyo.lists@gmail.com>
4740
4741         * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
4742
4743 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4744
4745         * config/rs6000/rs6000.md (div<mode>3): Fix comment.  Use a different
4746         insn for divides by integer powers of two.
4747         (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
4748         (mod<mode>3): Fix formatting.
4749         (three anonymous define_insn and two define_split): Delete.
4750
4751 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4752
4753         * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
4754         *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
4755         (floatdisf2_internal2): Ditto.
4756         (ashrdi3_no_power): Ditto.  Fix formatting.
4757
4758 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4759
4760         * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
4761         popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
4762         Tidy.
4763
4764 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4765
4766         * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
4767         constant, use addsi3 directly.
4768         (three anonymous define_insn, two define_split): Delete.
4769         (sub<mode>3): Move.  Do not allow constant second operand.
4770         Generate different insn for constant first operand.
4771         (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
4772         (subf<mode>3_imm): New.
4773         (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
4774         (*plus_ltu<mode>): Only handle registers.
4775         (*plus_ltu<mode>_1): New.  Handle integer third operand.
4776         (*plus_gtu<mode>): Only handle registers.
4777         (*plus_gtu<mode>_1): New.  Handle integer third operand.
4778
4779 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4780
4781         * config/rs6000/rs6000.md (iorxor): New code_iterator.
4782         (iorxor): New code_attr.
4783         (IORXOR): New code_attr.
4784         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
4785         (ior<mode>3, xor<mode>3): Delete.
4786         (<iorxor><mode>3): New.
4787         (splitter for "big" integer ior, xor): New.
4788         (*bool<mode>3): Move.  Also handle AND.
4789         (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
4790         (splitter for "big" integer ior, xor): Delete.
4791
4792 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4793
4794         * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
4795         (two anonymous define_insn and two define_split): Delete.
4796         (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
4797
4798 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4799
4800         * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
4801         (two anonymous define_insn and two define_split): Delete.
4802         (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
4803
4804 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4805
4806         * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
4807
4808 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4809
4810         * config/rs6000/predicates.md (ca_operand): Allow subregs.
4811         (input_operand): Do not allow ca_operand.
4812         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
4813         carry bit, allow SImode and Pmode.
4814         (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
4815
4816 2014-09-21  Uros Bizjak  <ubizjak@gmail.com>
4817
4818         * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
4819         clobbered registers using clobber_reg.  Remove UNSPEC decoration.
4820         * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
4821         (*call_rex64_ms_sysv): Remove.
4822         (*call_value_rex64_ms_sysv): Ditto.
4823         * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
4824
4825 2014-09-20  Joern Rennecke  <joern.rennecke@embecosm.com>
4826
4827         * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
4828         operand 3 to "CnL".
4829
4830 2014-09-20  Andreas Schwab  <schwab@suse.de>
4831
4832         * config/ia64/ia64.md: Remove constraints from define_split
4833         patterns.
4834
4835 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4836
4837         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
4838         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
4839         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
4840         (get_dynamic_type): Remove.
4841         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
4842         (clear_speculation): Bring to ipa-deivrt.h
4843         (get_class_context): Rename to ...
4844         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
4845         (contains_type_p): Update.
4846         (get_dynamic_type): Rename to ...
4847         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
4848         (possible_polymorphic_call_targets): UPdate.
4849         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
4850         * ipa-prop.c (ipa_analyze_call_uses): Update.
4851
4852 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4853
4854         * ipa-visibility.c (varpool_node::externally_visible_p): Do not
4855         privatize dynamic TLS variables.
4856
4857 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4858
4859         * diagnostic.c (warning_n): New function.
4860         * diagnostic-core.h (warning_n): Declare.
4861         * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
4862         output dynamic counts when available.
4863
4864 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4865
4866         PR tree-optimization/63255
4867         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
4868         issue in setting body_removed flag.
4869
4870 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4871
4872         PR c++/61825
4873         * c-family/c-common.c (handle_alias_ifunc_attribute): Check
4874         that visibility change is possible
4875         (handle_weakref_attribute): Likewise.
4876         * cgraph.h (symtab_node): Add method get_create and
4877         field refuse_visibility_changes.
4878         (symtab_node::get_create): New method.
4879         * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
4880         * varasm.c (mark_weak): Verify that visibility change is
4881         possible.
4882
4883 2014-09-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
4884
4885         * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
4886         for base_reg_operand to be common between LO_SUM and PLUS.
4887         (fusion_gpr_mem_combo): New predicate to match a fused address
4888         that combines the addis and memory offset address.
4889
4890         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
4891         calling signature.
4892         (emit_fusion_gpr_load): Likewise.
4893
4894         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
4895         signature to pass each argument separately, rather than
4896         using an operands array.  Rewrite the insns found by peephole2 to
4897         be a single insn, rather than hoping the insns will still be
4898         together when the peephole pass is done.  Drop being called via a
4899         normal peephole.
4900         (emit_fusion_gpr_load): Change calling signature to be called from
4901         the fusion_gpr_load_<mode> insns with a combined memory address
4902         instead of the peephole pass passing the addis and offset
4903         separately.
4904
4905         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
4906         fusion.
4907         (power8 fusion peephole): Drop support for doing power8 via a
4908         normal peephole that was created by the peephole2 pass.
4909         (power8 fusion peephole2): Create a new insn with the fused
4910         address, so that the fused operation is kept together after
4911         register allocation is done.
4912         (fusion_gpr_load_<mode>): Likewise.
4913
4914 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4915
4916         PR lto/63286
4917         * tree.c (need_assembler_name_p): Do not mangle variadic types.
4918
4919 2014-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
4920
4921         * recog.c (scratch_operand): Do not simply allow all hard registers:
4922         only allow those that are allocatable.
4923
4924 2014-09-19  Felix Yang  <felix.yang@huawei.com>
4925
4926         * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
4927         comments and fix spacing to conform to coding style.
4928
4929 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
4930
4931         * genrecog.c (validate_pattern): Allow empty constraints in
4932         a match_scratch.
4933
4934 2014-09-19  Aldy Hernandez  <aldyh@redhat.com>
4935
4936         * dwarf2out.c (decl_ultimate_origin): Update comment.
4937         * tree.c (block_ultimate_origin): Same.
4938
4939 2014-09-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4940
4941         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
4942         Update GCC version name to GCC 5.
4943         (rs6000_function_arg_boundary): Likewise.
4944         (rs6000_function_arg): Likewise.
4945
4946 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
4947
4948         * config/sh/sh.md: Fix use of constraints in define_split.
4949
4950 2014-09-19  Markus Trippelsdorf  <markus@trippelsdorf.de>
4951
4952         PR ipa/61998
4953         * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
4954
4955 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
4956
4957         * doc/md.texi (Modifiers): Consistently use "read/write"
4958         nomenclature rather than "input/output".
4959         * genrecog.c (constraints_supported_in_insn_p): New.
4960         (validate_pattern): If needed, also check constraints on
4961         MATCH_SCRATCH operands.
4962         * genoutput.c (validate_insn_alternatives): Catch earlyclobber
4963         operands with no '=' or '+' modifier.
4964
4965 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
4966
4967         * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
4968         scratch register as written.
4969
4970 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4971
4972         * config/s390/s390.c (s390_emit_epilogue): Remove bogus
4973         assignment.
4974
4975 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4976
4977         * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
4978         expanders.
4979
4980 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4981
4982         PR target/62662
4983         * config/s390/s390.c (s390_emit_epilogue): When doing the return
4984         address load optimization force s390_optimize_prologue to leave it
4985         that way.  Only do the optimization if we already decided to push
4986         r14 into a stack slot.
4987
4988 2014-09-19  Marat Zakirov  <m.zakirov@samsung.com>
4989
4990         * asan.c (build_check_stmt): Alignment arg was added.
4991         (asan_expand_check_ifn): Optimization for alignment >= 8.
4992
4993 2014-09-19  Olivier Hainque  <hainque@adacore.com>
4994
4995         * config/i386/vxworksae.h: Remove obsolete definitions.
4996         (STACK_CHECK_PROTECT): Define.
4997         * config/i386/vx-common.h: Remove.  Merge contents within
4998         config/i386/vxworks.h.
4999         * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
5000         i386/vx-common.h.
5001
5002 2014-09-19  Olivier Hainque  <hainque@adacore.com>
5003
5004         * config.gcc (powerpc-wrs-vxworksmils): New configuration.
5005         * config/rs6000/t-vxworksmils: New file.
5006         * config/rs6000/vxworksmils.h: New file.
5007
5008 2014-09-19  Olivier Hainque  <hainque@adacore.com>
5009
5010         * varasm.c (default_section_type_flags): Flag .persistent.bss
5011         sections as SECTION_BSS.
5012
5013 2014-09-19  Nick Clifton  <nickc@redhat.com>
5014
5015         * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
5016         pop'ed registers so that DCE does not eliminate them.
5017
5018 2014-09-18  Jan Hubicka  <hubicka@ucw.cz>
5019
5020         PR lto/63298
5021         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
5022
5023 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
5024
5025         * system.h (LIBGCC2_TF_CEXT): Poison.
5026         * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
5027         * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
5028         * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
5029         * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
5030         * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
5031         * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
5032         * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
5033         * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
5034         * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
5035
5036 2014-09-19  Kito Cheng  <kito@0xlab.org>
5037
5038         * except.h: Fix header guard.
5039         * addresses.h: Add missing header guard.
5040         * cfghooks.h: Likewise.
5041         * collect-utils.h: Likewise.
5042         * collect2-aix.h: Likewise.
5043         * conditions.h: Likewise.
5044         * cselib.h: Likewise.
5045         * dwarf2asm.h: Likewise.
5046         * graphds.h: Likewise.
5047         * graphite-scop-detection.h: Likewise.
5048         * gsyms.h: Likewise.
5049         * hw-doloop.h: Likewise.
5050         * incpath.h: Likewise.
5051         * ipa-inline.h: Likewise.
5052         * ipa-ref.h: Likewise.
5053         * ira-int.h: Likewise.
5054         * ira.h: Likewise.
5055         * lra-int.h: Likewise.
5056         * lra.h: Likewise.
5057         * lto-section-names.h: Likewise.
5058         * read-md.h: Likewise.
5059         * reload.h: Likewise.
5060         * rtl-error.h: Likewise.
5061         * sdbout.h: Likewise.
5062         * targhooks.h: Likewise.
5063         * tree-affine.h: Likewise.
5064         * xcoff.h: Likewise.
5065         * xcoffout.h: Likewise.
5066
5067 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
5068
5069         PR debug/63285
5070         * haifa-sched.c (schedule_block): Advance cycle at the end of BB
5071         if advance != 0.
5072
5073 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
5074
5075         PR target/61360
5076         * lra.c (lra): Call recog_init.
5077
5078 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
5079
5080         PR c++/62017
5081         * asan.c (transform_statements): Don't instrument clobber statements.
5082
5083 2014-09-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5084
5085         * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
5086         to neon_load1_1reg<q>.
5087
5088 2014-09-17  Jakub Jelinek  <jakub@redhat.com>
5089
5090         PR debug/63284
5091         * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
5092         if there are only debug stmts after the noreturn call, instead
5093         remove the debug stmts.
5094
5095 2014-09-17  Jan Hubicka  <hubicka@ucw.cz>
5096
5097         * ipa-devirt.c (type_pair, default_hashset_traits): New types.
5098         (odr_types_equivalent_p): Use pair hash.
5099         (odr_subtypes_equivalent_p): Likewise, do structural compare
5100         on ODR types that may be mismatched.
5101         (warn_odr): Support warning when only one field is given.
5102         (odr_types_equivalent_p): Strenghten comparsions made;
5103         support VOIDtype.
5104         (add_type_duplicate): Update VISITED hash set.
5105
5106 2014-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5107
5108         * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
5109         Enable selection of 'posix' or no thread model.
5110
5111 2014-09-17  Andrew Stubbs  <ams@codesourcery.com>
5112
5113         * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
5114         when architecture is older than ARMv7.
5115
5116 2014-09-16  John David Anglin  <danglin@gcc.gnu.org>
5117
5118         PR target/61853
5119         * config/pa/pa.c (pa_function_value): Directly handle aggregates
5120         that fit exactly in a word or double word.
5121
5122 2014-09-16  Ilya Tocar  <ilya.tocar@intel.com>
5123
5124         * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
5125         zmm/k regs support.
5126
5127 2014-09-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5128             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5129             Anna Tikhonova  <anna.tikhonova@intel.com>
5130             Ilya Tocar  <ilya.tocar@intel.com>
5131             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5132             Ilya Verbin  <ilya.verbin@intel.com>
5133             Kirill Yukhin  <kirill.yukhin@intel.com>
5134             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5135
5136         * config/i386/i386.c
5137         (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
5138         * config/i386/sse.md
5139         (define_mode_iterator VI48F_256): New.
5140         (define_mode_attr extract_type): Ditto.
5141         (define_mode_attr extract_suf): Ditto.
5142         (define_mode_iterator AVX512_VEC): Ditto.
5143         (define_expand
5144         "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
5145         AVX512_VEC.
5146         (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
5147         (define_insn
5148         "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
5149         Ditto.
5150         (define_mode_attr extract_type_2): Ditto.
5151         (define_mode_attr extract_suf_2): Ditto.
5152         (define_mode_iterator AVX512_VEC_2): Ditto.
5153         (define_expand
5154         "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
5155         AVX512_VEC_2 mode iterator.
5156         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
5157         (define_expand "avx512vl_vextractf128<mode>"): Ditto.
5158         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
5159         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
5160         (define_split for V16FI mode): Ditto.
5161         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
5162         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
5163         (define_split for VI8F_256 mode): Ditto.
5164         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
5165         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
5166         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
5167         (define_split for VI4F_256 mode): Ditto.
5168         (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
5169         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
5170         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
5171         (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
5172         (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
5173         (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
5174         (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
5175         Update `type' attribute, remove explicit `memory' attribute calculation.
5176
5177 2014-09-16  Kito Cheng  <kito@0xlab.org>
5178
5179         * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
5180         ira_spilled_reg_stack_slots_num if using lra.
5181         (do_reload): Remove release ira_spilled_reg_stack_slots part.
5182         * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
5183         make sure not using lra.
5184         (ira_reuse_stack_slot): Likewise.
5185         (ira_mark_new_stack_slot): Likewise.
5186
5187 2014-09-15  Andi Kleen  <ak@linux.intel.com>
5188
5189         * function.c (allocate_struct_function): Force
5190         DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
5191         profiling is disabled.
5192
5193 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
5194
5195         * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
5196         config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
5197         emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
5198         reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
5199         macro with statically checked member functions.
5200         * rtl.h (rtx_insn::deleted): New method.
5201         (rtx_insn::set_deleted): Likewise.
5202         (rtx_insn::set_undeleted): Likewise.
5203         (INSN_DELETED_P): Remove.
5204
5205 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
5206
5207         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
5208         result of emit_jump_insn_before to a new variable.
5209         * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
5210         (mark_jump_label_1): Likewise.
5211         (mark_jump_label_asm): Likewise.
5212         * reload1.c (gen_reload): Change type of tem to rtx_insn *.
5213         * rtl.h (mark_jump_label): Adjust.
5214
5215 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
5216
5217         * Makefile.in (dg_target_exps): Remove.
5218         (check_gcc_parallelize): Change to just an upper bound number.
5219         (check-%-subtargets): Always print the non-parallelized goals.
5220         (check_p_vars, check_p_comma, check_p_subwork): Remove.
5221         (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
5222         check_p_numbers3, check_p_numbers4, check_p_numbers5,
5223         check_p_numbers6): New variables.
5224         (check_p_numbers): Set to sequence from 1 to 9999.
5225         (check_p_subdirs): Set to sequence from 1 to minimum of
5226         $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
5227         or 128.
5228         (check-%, check-parallel-%): Rewritten so that for parallelized
5229         testing each job runs all the *.exp files, with
5230         GCC_RUNTEST_PARALLELIZE_DIR set in environment.
5231
5232 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
5233
5234         * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
5235         rtx to rtx_insn *.
5236         (arc_sets_cc_p): Likewise.
5237         * config/arc/arc.c (arc_print_operand): Use methods of
5238         "final_sequence" for clarity, and to enable strengthening of
5239         locals "jump" and "delay" from rtx to rtx_insn *.
5240         (arc_adjust_insn_length): Strengthen local "prev" from rtx to
5241         rtx_insn *; use method of rtx_sequence for typesafety.
5242         (arc_get_insn_variants): Use insn method of rtx_sequence for
5243         typesafety.
5244         (arc_pad_return): Likewise.
5245         (arc_attr_type): Strengthen param from rtx to rtx_insn *.
5246         (arc_sets_cc_p): Likewise.  Also, convert a GET_CODE check to a
5247         dyn_cast to rtx_sequence *, using insn method for typesafety.
5248         * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
5249         rtx_sequence * and use insn method when invoking get_attr_length.
5250         * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
5251         to rtx_insn *.  Replace a GET_CODE check with a dyn_cast to
5252         rtx_sequence *, introducing a local "seq", using its insn method
5253         from typesafety and clarity.
5254         (add_sched_insns_for_speculation): Strengthen local "next" from
5255         rtx to rtx_insn *.
5256         * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
5257         (predicate_insn): Likewise.
5258         * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
5259         second param.
5260         * config/cris/cris.c (cris_notice_update_cc): Likewise.
5261         * config/epiphany/epiphany-protos.h
5262         (extern void epiphany_insert_mode_switch_use): Likewise for param
5263         "insn".
5264         (get_attr_sched_use_fpu): Likewise for param.
5265         * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
5266         Likewise for param "insn".
5267         * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
5268         param "insn" of "target_insert_mode_switch_use" callback.
5269         * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
5270         (frv_issues_to_branch_unit_p): Likewise.
5271         (frv_pack_insn_p): Likewise.
5272         (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
5273         const rtx * (i.e. mutable rtx_def * const *) to
5274         rtx_insn * const *.
5275         * config/i386/i386-protos.h (standard_sse_constant_opcode):
5276         Strengthen first param from rtx to rtx_insn *.
5277         (output_fix_trunc): Likewise.
5278         * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
5279         (output_fix_trunc): Likewise.
5280         (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
5281         local "insn".
5282         (min_insn_size): Likewise for param "insn".
5283         (get_mem_group): Likewise.
5284         (is_cmp): Likewise.
5285         (get_insn_path): Likewise.
5286         (get_insn_group): Likewise.
5287         (count_num_restricted): Likewise.
5288         (fits_dispatch_window): Likewise.
5289         (add_insn_window): Likewise.
5290         (add_to_dispatch_window): Likewise.
5291         (debug_insn_dispatch_info_file): Likewise.
5292         * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
5293         first param.
5294         * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
5295         "cmp" and local "prev".
5296         (m32c_output_compare): Likewise for param "insn".
5297         * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
5298         a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
5299         (define_predicate "large_insn_p"): Likewise.
5300         * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
5301         param from rtx to rtx_insn *.
5302         (attr_op_mem m68k_sched_attr_op_mem): Likewise.
5303         * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
5304         (m68k_sched_attr_size): Likewise.
5305         (sched_get_opxy_mem_type): Likewise for param "insn".
5306         (m68k_sched_attr_op_mem): Likewise.
5307         (sched_mem_operand_p): Likewise.
5308         * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
5309         * config/mep/mep.c (mep_multi_slot): Likewise.
5310         * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
5311         first param.
5312         (mips_sync_loop_insns): Likewise.
5313         * config/mips/mips.c (mips_print_operand_punctuation): Use insn
5314         method of "final_sequence" for typesafety.
5315         (mips_process_sync_loop): Strengthen param "insn" from rtx to
5316         rtx_insn *.
5317         (mips_output_sync_loop): Likewise.
5318         (mips_sync_loop_insns): Likewise.
5319         (mips_74k_agen_init): Likewise.
5320         (mips_sched_init): Use NULL rather than NULL_RTX when working with
5321         insns.
5322         * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
5323         Strengthen param "insn" from rtx to rtx_insn *.
5324         * config/nds32/nds32.c (nds32_target_alignment): Likewise for
5325         local "insn".
5326         * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
5327         param.
5328         * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
5329         "insn".  Use method of rtx_sequence for typesafety.
5330         (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
5331         rtx_insn *.
5332         (branch_needs_nop_p): Likewise.
5333         (use_skip_p): Likewise.
5334         (pa_insn_refs_are_delayed): Likewise.
5335         * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
5336         for locals "insn", "ninsn".
5337         * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
5338         "insn".
5339         (is_cracked_insn): Likewise.
5340         (is_branch_slot_insn): Likewise.
5341         (is_nonpipeline_insn): Likewise.
5342         (insn_terminates_group_p): Likewise.
5343         (insn_must_be_first_in_group): Likewise.
5344         (insn_must_be_last_in_group): Likewise.
5345         (force_new_group): Likewise for param "next_insn".
5346         * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
5347         "insn".
5348         (s390_sched_score): Likewise.
5349         * config/sh/sh-protos.h (output_branch): Likewise for param 2.
5350         (rtx sfunc_uses_reg): Likewise for sole param.
5351         * config/sh/sh.c (sh_print_operand): Use insn method of
5352         final_sequence for typesafety.
5353         (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
5354         Use insn method of final_sequence for typesafety.
5355         (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
5356         * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
5357         for param.
5358         (eligible_for_return_delay): Likewise.
5359         (eligible_for_sibcall_delay): Likewise.
5360         * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
5361         (eligible_for_return_delay): Likewise.
5362         (eligible_for_sibcall_delay): Likewise.
5363         * config/stormy16/stormy16-protos.h
5364         (xstormy16_output_cbranch_hi): Likewise for final param.
5365         (xstormy16_output_cbranch_si): Likewise.
5366         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
5367         (xstormy16_output_cbranch_si): Likewise.
5368         * config/v850/v850-protos.h (notice_update_cc): Likewise.
5369         * config/v850/v850.c (notice_update_cc): Likewise.
5370
5371         * final.c (get_attr_length_1): Strengthen param "insn" and param
5372         of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
5373         (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
5374         (get_attr_min_length): Likewise.
5375         (shorten_branches): Likewise for signature of locals "length_fun"
5376         and "inner_length_fun".  Introduce local rtx_sequence * "seqn"
5377         from a checked cast and use its methods for clarity and to enable
5378         strengthening local "inner_insn" from rtx to rtx_insn *.
5379         * genattr.c (gen_attr): When writing out the prototypes of the
5380         various generated "get_attr_" functions, strengthen the params of
5381         the non-const functions from rtx to rtx_insn *.
5382         Similarly, strengthen the params of insn_default_length,
5383         insn_min_length, insn_variable_length_p, insn_current_length.
5384         (main): Similarly, strengthen the param of num_delay_slots,
5385         internal_dfa_insn_code, insn_default_latency, bypass_p,
5386         insn_latency, min_issue_delay, print_reservation,
5387         insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
5388         "insn_default_latency" callbacks.  Rename hook_int_rtx_unreachable
5389         to hook_int_rtx_insn_unreachable.
5390         * genattrtab.c (write_attr_get): When writing out the generated
5391         "get_attr_" functions, strengthen the param "insn" from rtx to
5392         rtx_insn *, eliminating a checked cast.
5393         (make_automaton_attrs): When writing out prototypes of
5394         "internal_dfa_insn_code_", "insn_default_latency_" functions
5395         and the "internal_dfa_insn_code" and "insn_default_latency"
5396         callbacks, strengthen their params from rtx to rtx_insn *
5397         * genautomata.c (output_internal_insn_code_evaluation): When
5398         writing out code, add a checked cast from rtx to rtx_insn * when
5399         invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
5400         (output_dfa_insn_code_func): Strengthen param of generated
5401         function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
5402         (output_trans_func): Likewise for generated function
5403         "state_transition".
5404         (output_internal_insn_latency_func): When writing out generated
5405         function "internal_insn_latency", rename params from "insn" and
5406         "insn2" to "insn_or_const0" and "insn2_or_const0".  Reintroduce
5407         locals "insn" and "insn2" as rtx_insn * with checked casts once
5408         we've proven that we're not dealing with const0_rtx.
5409         (output_insn_latency_func):  Strengthen param of generated
5410         function "insn_latency" from rtx to rtx_insn *.
5411         (output_print_reservation_func): Likewise for generated function
5412         "print_reservation".
5413         (output_insn_has_dfa_reservation_p): Likewise for generated
5414         function "insn_has_dfa_reservation_p".
5415         * hooks.c (hook_int_rtx_unreachable): Rename to...
5416         (hook_int_rtx_insn_unreachable): ...this, and strengthen param
5417         from rtx to rtx_insn *.
5418         * hooks.h (hook_int_rtx_unreachable): Likewise.
5419         (extern int hook_int_rtx_insn_unreachable): Likewise.
5420         * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
5421         (get_attr_min_length): Likewise.
5422         * recog.c (get_enabled_alternatives): Likewise.
5423         * recog.h (alternative_mask get_enabled_alternatives): Likewise.
5424         * reorg.c (find_end_label): Introduce local rtx "pat" and
5425         strengthen local "insn" from rtx to rtx_insn *.
5426         (redundant_insn): Use insn method of "seq" rather than element for
5427         typesafety; strengthen local "control" from rtx to rtx_insn *.
5428         * resource.c (mark_referenced_resources): Add checked cast to
5429         rtx_insn * within INSN/JUMP_INSN case.
5430         (mark_set_resources): Likewise.
5431         * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
5432         rtx to rtx_insn *.
5433
5434 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
5435
5436         * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
5437         param "label" from rtx to rtx_insn *.
5438         * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
5439         and local "op".
5440         * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
5441         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
5442         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
5443         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
5444         * final.c (default_label_align_after_barrier_max_skip): Strengthen
5445         param from rtx to rtx_insn *.
5446         (default_loop_align_max_skip): Likewise.
5447         (default_label_align_max_skip): Likewise.
5448         (default_jump_align_max_skip): Likewise.
5449         * target.def (label_align_after_barrier_max_skip): Likewise.
5450         (loop_align_max_skip): Likewise.
5451         (label_align_max_skip): Likewise.
5452         (jump_align_max_skip): Likewise.
5453         * targhooks.h (default_label_align_after_barrier_max_skip):
5454         Likewise.
5455         (default_loop_align_max_skip): Likewise.
5456         (default_label_align_max_skip): Likewise.
5457         (default_jump_align_max_skip): Likewise.
5458
5459 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
5460
5461         * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
5462         from const_rtx to const rtx_insn *.  Update union members from rtx
5463         to rtx_insn *.
5464         * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
5465         * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
5466         (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
5467         strengthen both params from const_rtx to const rtx_insn *.
5468         * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
5469         (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
5470         * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
5471         rtx_insn *.
5472         * target.def (can_follow_jump): Strengthen both params from
5473         const_rtx to const rtx_insn *, and update default implementation
5474         from hook_bool_const_rtx_const_rtx_true to
5475         hook_bool_const_rtx_insn_const_rtx_insn_true.
5476
5477 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
5478
5479         * sched-deps.c (deps_start_bb): Strengthen param "head" and local
5480         "insn" from rtx to rtx_insn *.
5481         * sched-int.h (deps_start_bb): Likewise for 2nd param.
5482
5483 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5484             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5485             Anna Tikhonova  <anna.tikhonova@intel.com>
5486             Ilya Tocar  <ilya.tocar@intel.com>
5487             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5488             Ilya Verbin  <ilya.verbin@intel.com>
5489             Kirill Yukhin  <kirill.yukhin@intel.com>
5490             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5491
5492         * config/i386/sse.md
5493         (define_insn "vcvtph2ps<mask_name>"): Add masking.
5494         (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
5495         (define_insn "vcvtph2ps256<mask_name>"): Ditto.
5496         (define_expand "vcvtps2ph_mask"): New.
5497         (define_insn "*vcvtps2ph<mask_name>"): Add masking.
5498         (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
5499         (define_insn "vcvtps2ph256<mask_name>"): Ditto.
5500
5501 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5502             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5503             Anna Tikhonova  <anna.tikhonova@intel.com>
5504             Ilya Tocar  <ilya.tocar@intel.com>
5505             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5506             Ilya Verbin  <ilya.verbin@intel.com>
5507             Kirill Yukhin  <kirill.yukhin@intel.com>
5508             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5509
5510         * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
5511         New.
5512         (define_mode_iterator VI24_AVX512BW_1): Ditto.
5513         (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
5514         (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
5515         (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
5516         also for TARGET_AVX512VL.
5517         (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
5518
5519 2014-09-15  Markus Trippelsdorf  <markus@trippelsdorf.de>
5520
5521         * doc/install.texi (Options specification): add
5522         --disable-libsanitizer item.
5523
5524 2014-09-14  James Clarke  <jrtc27@jrtc27.com>
5525             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
5526
5527         PR target/61407
5528         * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
5529         and above.
5530         * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
5531         kernel version check to avoid incrementing it after every major OS X
5532         release.
5533         (darwin_default_min_version): Avoid static memory buffer.
5534
5535 2014-09-13  Jan Hubicka  <hubicka@ucw.cz>
5536
5537         * tree.c (need_assembler_name_p): Store C++ type mangling only
5538         for aggregates.
5539
5540 2014-09-13  Marek Polacek  <polacek@redhat.com>
5541
5542         * tree.c (protected_set_expr_location): Don't check whether T is
5543         non-null here.
5544
5545 2014-09-12  DJ Delorie  <dj@redhat.com>
5546
5547         * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
5548         (extend_and_shift1_hipsi2): Likewise.
5549         (extend_and_shift2_hipsi2): Likewise.
5550
5551 2014-09-12  David Malcolm  <dmalcolm@redhat.com>
5552
5553         * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
5554         with NULL when dealing with an insn.
5555         * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
5556         from rtx to rtx_insn *.
5557         * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
5558         const_rtx to const rtx_insn *.
5559         * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
5560
5561 2014-09-12  Trevor Saunders  <tsaunders@mozilla.com>
5562
5563         * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
5564         assert.
5565
5566 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
5567
5568         * target.def (libgcc_floating_mode_supported_p): New hook.
5569         * targhooks.c (default_libgcc_floating_mode_supported_p): New
5570         function.
5571         * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
5572         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
5573         (LIBGCC2_HAS_TF_MODE): Remove.
5574         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
5575         * doc/tm.texi: Regenerate.
5576         * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
5577         machine mode.
5578         * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
5579         (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
5580         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
5581         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
5582         * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5583         * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
5584         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
5585         * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
5586         * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
5587         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
5588         function.
5589         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
5590         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5591         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5592         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5593         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5594         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5595         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5596         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
5597         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
5598         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
5599         * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5600         * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
5601         * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
5602         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
5603         Remove.
5604         * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
5605         New macro.
5606         (ia64_libgcc_floating_mode_supported_p): New function.
5607         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
5608         * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
5609         (IA64_NO_LIBGCC_TFMODE): Define.
5610         * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
5611         * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
5612         macro.
5613         (pdp11_scalar_mode_supported_p): New function.
5614         * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
5615         * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
5616
5617 2014-09-12  Richard Biener  <rguenther@suse.de>
5618
5619         PR middle-end/63237
5620         * gimple-fold.c (get_maxval_strlen): Gimplify string length.
5621
5622 2014-09-12  Marc Glisse  <marc.glisse@inria.fr>
5623
5624         * tree.c (integer_each_onep): New function.
5625         * tree.h (integer_each_onep): Declare it.
5626         * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
5627         -A - 1 to ~A.  Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
5628         (X & 1) == 0 for vector and complex.
5629
5630 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
5631
5632         * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
5633         for A57.
5634         (cortexa53_regmove_cost): New cost table for A53.  Increase GP2FP/FP2GP
5635         cost to spilling from integer to FP registers.
5636
5637 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
5638
5639         * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
5640         move handling.
5641         (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
5642         are now handled correctly.
5643
5644 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
5645
5646         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
5647         handling of CALLER_SAVE_REGS and POINTER_REGS.
5648
5649 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
5650
5651         * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
5652         the number of hard registers.
5653
5654 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5655             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5656             Anna Tikhonova  <anna.tikhonova@intel.com>
5657             Ilya Tocar  <ilya.tocar@intel.com>
5658             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5659             Ilya Verbin  <ilya.verbin@intel.com>
5660             Kirill Yukhin  <kirill.yukhin@intel.com>
5661             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5662
5663         * config/i386/sse.md
5664         (define_mode_iterator VI48_AVX512VL): New.
5665         (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
5666         "avx512f_vternlog<mode>_maskz" and update mode iterator.
5667         (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
5668         from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
5669         (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
5670         "avx512f_vternlog<mode>_mask" and update mode iterator.
5671         (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
5672         from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
5673         iterator.
5674         (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
5675         "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
5676         (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
5677         "avx512f_<rotate><mode><mask_name>" and update mode iterator.
5678         (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
5679         (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
5680
5681 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5682             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5683             Anna Tikhonova  <anna.tikhonova@intel.com>
5684             Ilya Tocar  <ilya.tocar@intel.com>
5685             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5686             Ilya Verbin  <ilya.verbin@intel.com>
5687             Kirill Yukhin  <kirill.yukhin@intel.com>
5688             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5689
5690         * config/i386/sse.md (VI128_256): Delete.
5691         (define_mode_iterator VI124_256): New.
5692         (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
5693         (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
5694         (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
5695         (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
5696         "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
5697         (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
5698         (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
5699         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
5700         iterator.
5701         (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
5702         in presence of AVX-512.
5703
5704 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5705             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5706             Anna Tikhonova  <anna.tikhonova@intel.com>
5707             Ilya Tocar  <ilya.tocar@intel.com>
5708             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5709             Ilya Verbin  <ilya.verbin@intel.com>
5710             Kirill Yukhin  <kirill.yukhin@intel.com>
5711             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5712
5713         * config/i386/sse.md
5714         (define_expand "<avx512>_gathersi<mode>"): Rename from
5715         "avx512f_gathersi<mode>".
5716         (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
5717         (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
5718         (define_expand "<avx512>_gatherdi<mode>"): Rename from
5719         "avx512f_gatherdi<mode>".
5720         (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
5721         (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
5722         wide versions.
5723         (define_expand "<avx512>_scattersi<mode>"): Rename from
5724         "avx512f_scattersi<mode>".
5725         (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
5726         (define_expand "<avx512>_scatterdi<mode>"): Rename from
5727         "avx512f_scatterdi<mode>".
5728         (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
5729
5730 2014-09-12  Richard Sandiford  <richard.sandiford@arm.com>
5731
5732         * ira.h (ira_finish_once): Delete.
5733         * ira-int.h (target_ira_int::~target_ira_int): Declare.
5734         (target_ira_int::free_ira_costs): Likewise.
5735         (target_ira_int::free_register_move_costs): Likewise.
5736         (ira_finish_costs_once): Delete.
5737         * ira.c (free_register_move_costs): Replace with...
5738         (target_ira_int::free_register_move_costs): ...this new function.
5739         (target_ira_int::~target_ira_int): Define.
5740         (ira_init): Call free_register_move_costs as a member function rather
5741         than a global function.
5742         (ira_finish_once): Delete.
5743         * ira-costs.c (free_ira_costs): Replace with...
5744         (target_ira_int::free_ira_costs): ...this new function.
5745         (ira_init_costs): Call free_ira_costs as a member function rather
5746         than a global function.
5747         (ira_finish_costs_once): Delete.
5748         * target-globals.c (target_globals::~target_globals): Call the
5749         target_ira_int destructor.
5750         * toplev.c: Include lra.h.
5751         (finalize): Call lra_finish_once rather than ira_finish_once.
5752
5753 2014-09-11  Jan Hubicka  <hubicka@ucw.cz>
5754
5755         * common.opt (flto-odr-type-merging): New flag.
5756         * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
5757         (types_same_for_odr): Likewise.
5758         (odr_subtypes_equivalent_p): Likewise.
5759         (add_type_duplicate): Do not walk type variants.
5760         (register_odr_type): New function.
5761         * ipa-utils.h (register_odr_type): Declare.
5762         (odr_type_p): New function.
5763         * langhooks.c (lhd_set_decl_assembler_name): Do not compute
5764         TYPE_DECLs
5765         * doc/invoke.texi (-flto-odr-type-merging): Document.
5766         * tree.c (need_assembler_name_p): Compute ODR names when asked
5767         for it.
5768         * tree.h (DECL_ASSEMBLER_NAME): Update comment.
5769
5770 2014-09-11  H.J. Lu  <hongjiu.lu@intel.com>
5771
5772         PR target/63228
5773         * config/i386/i386.c (ix86_option_override_internal): Also turn
5774         off OPTION_MASK_ABI_X32 for -m16.
5775
5776 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
5777
5778         * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
5779         GPR instead of P.
5780
5781 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
5782
5783         PR target/58757
5784         * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
5785         Directly forward to __*_DENORM_MIN__.
5786
5787 2014-09-11  David Malcolm  <dmalcolm@redhat.com>
5788
5789         * rtl.h (LABEL_REF_LABEL): New macro.
5790
5791         * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
5792         of XEXP (, 0), where we know that we have a LABEL_REF.
5793         * cfgbuild.c (make_edges): Likewise.
5794         (purge_dead_tablejump_edges): Likewise.
5795         * cfgexpand.c (convert_debug_memory_address): Likewise.
5796         * cfgrtl.c (patch_jump_insn): Likewise.
5797         * combine.c (distribute_notes): Likewise.
5798         * cse.c (hash_rtx_cb): Likewise.
5799         (exp_equiv_p): Likewise.
5800         (fold_rtx): Likewise.
5801         (check_for_label_ref): Likewise.
5802         * cselib.c (rtx_equal_for_cselib_1): Likewise.
5803         (cselib_hash_rtx): Likewise.
5804         * emit-rtl.c (mark_label_nuses): Likewise.
5805         * explow.c (convert_memory_address_addr_space): Likewise.
5806         * final.c (output_asm_label): Likewise.
5807         (output_addr_const): Likewise.
5808         * gcse.c (add_label_notes): Likewise.
5809         * genconfig.c (walk_insn_part): Likewise.
5810         * genrecog.c (validate_pattern): Likewise.
5811         * ifcvt.c (cond_exec_get_condition): Likewise.
5812         (noce_emit_store_flag): Likewise.
5813         (noce_get_alt_condition): Likewise.
5814         (noce_get_condition): Likewise.
5815         * jump.c (maybe_propagate_label_ref): Likewise.
5816         (mark_jump_label_1): Likewise.
5817         (redirect_exp_1): Likewise.
5818         (rtx_renumbered_equal_p): Likewise.
5819         * lra-constraints.c (operands_match_p): Likewise.
5820         * reload.c (operands_match_p): Likewise.
5821         (find_reloads): Likewise.
5822         * reload1.c (set_label_offsets): Likewise.
5823         * reorg.c (get_branch_condition): Likewise.
5824         * rtl.c (rtx_equal_p_cb): Likewise.
5825         (rtx_equal_p): Likewise.
5826         * rtlanal.c (reg_mentioned_p): Likewise.
5827         (rtx_referenced_p): Likewise.
5828         (get_condition): Likewise.
5829         * sched-vis.c (print_value): Likewise.
5830         * varasm.c (const_hash_1): Likewise.
5831         (compare_constant): Likewise.
5832         (const_rtx_hash_1): Likewise.
5833         (output_constant_pool_1): Likewise.
5834
5835 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
5836
5837         * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
5838         tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
5839         instead of minus.
5840         * config/rs6000/vector.md (cr6_test_for_zero_reverse,
5841         cr6_test_for_lt_reverse): Ditto.
5842
5843 2014-09-11  Paolo Carlini  <paolo.carlini@oracle.com>
5844
5845         PR c++/61489
5846         * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
5847
5848 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
5849
5850         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
5851         TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
5852         aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
5853         aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
5854         Delete.
5855
5856         (aarch64_fold_builtin): Remove all reinterpret cases.
5857
5858         * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
5859
5860         * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
5861
5862         * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
5863         aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
5864         aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
5865         aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
5866         aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
5867         aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
5868         aarch64_reinterpretv2df<mode>): Delete.
5869
5870         * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
5871
5872         * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
5873         vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
5874         vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
5875         vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
5876         vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
5877         vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
5878         vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
5879         vreinterpret_u32_f64): Use cast.
5880
5881         * config/aarch64/iterators.md (VD_RE): Delete.
5882
5883 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
5884
5885         * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
5886         (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
5887         vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
5888         vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
5889         vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
5890         vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
5891         vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
5892         Replace inline assembler with __aarch64_vset_lane_any.
5893
5894 2014-09-11  James Greenhalgh  <james.greenhalgh@arm.com>
5895
5896         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
5897         types.
5898         (vmull_high_lane_s32): Likewise.
5899         (vmull_high_lane_u16): Likewise.
5900         (vmull_high_lane_u32): Likewise.
5901
5902 2014-09-11  Jason Merrill  <jason@redhat.com>
5903
5904         PR c++/58678
5905         * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
5906
5907 2014-09-11  Georg-Johann Lay  <avr@gjlay.de>
5908
5909         PR target/63223
5910         * config/avr/avr.md (*tablejump.3byte-pc): New insn.
5911         (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL.  Add void clobber.
5912         (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
5913
5914 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5915             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5916             Anna Tikhonova  <anna.tikhonova@intel.com>
5917             Ilya Tocar  <ilya.tocar@intel.com>
5918             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5919             Ilya Verbin  <ilya.verbin@intel.com>
5920             Kirill Yukhin  <kirill.yukhin@intel.com>
5921             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5922
5923         * config/i386/sse.md
5924         (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
5925         "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
5926         (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
5927         New.
5928         (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
5929         from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
5930         iterator.
5931         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
5932         New.
5933         (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
5934         "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
5935         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
5936         (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
5937         "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
5938         (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
5939         (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
5940         from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
5941         iterator.
5942         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
5943         New.
5944         (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
5945         "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
5946         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
5947
5948 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
5949
5950         * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
5951         to access removed nodes.
5952
5953 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
5954
5955         PR tree-optimization/63186
5956         * ipa-split.c (test_nonssa_use): Skip nonforced labels.
5957         (mark_nonssa_use): Likewise.
5958         (verify_non_ssa_vars): Verify all header blocks for label
5959         definitions.
5960
5961 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5962             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5963             Anna Tikhonova  <anna.tikhonova@intel.com>
5964             Ilya Tocar  <ilya.tocar@intel.com>
5965             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5966             Ilya Verbin  <ilya.verbin@intel.com>
5967             Kirill Yukhin  <kirill.yukhin@intel.com>
5968             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5969
5970         * config/i386/sse.md
5971         (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
5972         (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
5973         (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
5974         "<avx2_avx512f>_permvar<mode><mask_name>".
5975         (define_insn "<avx512>_permvar<mode><mask_name>"): New.
5976         (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
5977         Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
5978         (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
5979         Ditto.
5980         (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
5981         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
5982         (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
5983         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
5984
5985 2014-09-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
5986
5987         * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
5988         V2DF, V4SF, DF, and DI modes.
5989         (vsx_fmav2df2): Likewise.
5990         (vsx_float_fix_<mode>2): Likewise.
5991         (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
5992
5993 2014-09-10  Xinliang David Li  <davidxl@google.com>
5994
5995         PR target/63209
5996         * config/arm/arm.md (movcond_addsi): Handle case where source
5997         and target operands are the same.
5998
5999 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
6000
6001         * final.c (this_is_asm_operands): Strengthen this variable from
6002         rtx to const rtx_insn *.
6003         * output.h (this_is_asm_operands): Likewise.
6004         * rtl-error.c (location_for_asm): Strengthen param "insn" from
6005         const_rtx to const rtx_insn *.
6006         (diagnostic_for_asm): Likewise.
6007         * rtl-error.h (error_for_asm): Likewise.
6008         (warning_for_asm): Likewise.
6009
6010 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
6011
6012         * genextract.c (print_header): When writing out insn_extract to
6013         insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
6014         * recog.h (insn_extract): Strengthen the param from rtx to
6015         rtx_insn *.
6016
6017 2014-09-10  Mike Stump  <mikestump@comcast.net>
6018
6019         * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
6020         8.6.1.
6021
6022 2014-09-10  Martin Jambor  <mjambor@suse.cz>
6023
6024         * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
6025         (analyze): Do not set analyze flag if expand_thunk returns false;.
6026         (create_wrapper): Likewise.
6027         * cgraphclones.c (duplicate_thunk_for_node): Likewise.
6028
6029 2014-09-10  Martin Jambor  <mjambor@suse.cz>
6030
6031         PR ipa/61654
6032         * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
6033         new decl properly.  Analyze the new thunk if it is expanded.
6034
6035 2014-09-10  Andreas Schwab  <schwab@suse.de>
6036
6037         * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
6038         [USED_FOR_TARGET]: Define.
6039
6040 2014-09-10  Matthew Fortune  <matthew.fortune@imgtec.com>
6041
6042         * config/mips/mips.c (mips_secondary_reload_class): Handle
6043         regno < 0 case.
6044
6045 2014-09-10  Robert Suchanek   <robert.suchanek@imgtec.com>
6046
6047         * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
6048         assignment.
6049
6050 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
6051
6052         * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
6053         and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
6054         * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
6055         SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
6056         flag_delete_null_pointer_checks for them.
6057         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
6058         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
6059         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
6060         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
6061         * ubsan.c (instrument_bool_enum_load): Set *gsi back to
6062         stmt's iterator.
6063         (instrument_nonnull_arg, instrument_nonnull_return): New functions.
6064         (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
6065         or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
6066         (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
6067         * doc/invoke.texi (-fsanitize=nonnull-attribute,
6068         -fsanitize=returns-nonnull-attribute): Document.
6069
6070         * ubsan.h (struct ubsan_mismatch_data): Removed.
6071         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
6072         * ubsan.c (ubsan_source_location): For unknown locations,
6073         pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
6074         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
6075         Allow more than one location and arbitrary extra arguments passed
6076         in ... instead of through MISMATCH pointer.
6077         (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
6078         ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
6079         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
6080         callers.
6081
6082 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6083             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6084             Anna Tikhonova  <anna.tikhonova@intel.com>
6085             Ilya Tocar  <ilya.tocar@intel.com>
6086             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6087             Ilya Verbin  <ilya.verbin@intel.com>
6088             Kirill Yukhin  <kirill.yukhin@intel.com>
6089             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6090
6091         * config/i386/sse.md
6092         (define_mode_iterator VI48F): New.
6093         (define_insn "<avx512>_compress<mode>_mask"): Rename from
6094         "avx512f_compress<mode>_mask" and update mode iterator.
6095         (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
6096         "avx512f_compressstore<mode>_mask" and update mode iterator.
6097         (define_expand "<avx512>_expand<mode>_maskz"): Rename from
6098         "avx512f_expand<mode>_maskz" and update mode iterator.
6099         (define_insn "<avx512>_expand<mode>_mask"): Rename from
6100         "avx512f_expand<mode>_mask" and update mode iterator.
6101
6102 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6103             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6104             Anna Tikhonova  <anna.tikhonova@intel.com>
6105             Ilya Tocar  <ilya.tocar@intel.com>
6106             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6107             Ilya Verbin  <ilya.verbin@intel.com>
6108             Kirill Yukhin  <kirill.yukhin@intel.com>
6109             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6110
6111         * config/i386/i386.c
6112         (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
6113         avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
6114         avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
6115         avx512dq_rangepv4sf_mask.
6116         * config/i386/sse.md
6117         (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
6118         UNSPEC_RANGE.
6119         (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
6120         (define_insn "reduces<mode>"): Ditto.
6121         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
6122         Ditto.
6123         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
6124         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
6125         (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
6126
6127 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6128             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6129             Anna Tikhonova  <anna.tikhonova@intel.com>
6130             Ilya Tocar  <ilya.tocar@intel.com>
6131             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6132             Ilya Verbin  <ilya.verbin@intel.com>
6133             Kirill Yukhin  <kirill.yukhin@intel.com>
6134             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6135
6136         * config/i386/i386.c
6137         (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
6138         (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
6139         (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
6140         avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
6141         avx512vl_getmantv2df_mask.
6142         (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
6143         avx512f_vgetmantv4sf_round.
6144         * config/i386/sse.md
6145         (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
6146         Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
6147         mode iterator.
6148         (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
6149         (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
6150         (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
6151         from "avx512f_scalef<mode><mask_name><round_name>" and update mode
6152         iterator..
6153         (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
6154         Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
6155         update mode iterator.
6156         (define_expand
6157         "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
6158         "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
6159         mode iterator.
6160         (define_insn
6161         "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
6162         from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
6163         update mode iterator.
6164         (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
6165         from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
6166         iterator..
6167         (define_insn
6168         "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
6169         "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
6170         mode iterator..
6171         (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
6172         Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
6173         update mode iterator.
6174         (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
6175         "avx512f_getmant<mode><round_saeonly_name>".
6176
6177 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
6178
6179         PR ipa/63166
6180         * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
6181
6182 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6183             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6184             Anna Tikhonova  <anna.tikhonova@intel.com>
6185             Ilya Tocar  <ilya.tocar@intel.com>
6186             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6187             Ilya Verbin  <ilya.verbin@intel.com>
6188             Kirill Yukhin  <kirill.yukhin@intel.com>
6189             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6190
6191         * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
6192         (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
6193         (define_mode_iterator FMAMODE_AVX512): New.
6194         (define_mode_iterator FMAMODE): Remove conditions.
6195         (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
6196         (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
6197         from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
6198         mode iterator.
6199         (define_mode_iterator FMAMODE_NOVF512): Remove.
6200         (define_insn "*fma_fmadd_<mode>"): Rename from
6201         "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
6202         FMAMODE mode iterator.
6203         (define_mode_iterator VF_SF_AVX512VL): New.
6204         (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
6205         Use VF_SF_AVX512VL mode iterator.
6206         (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
6207         "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
6208         iterator.
6209         (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
6210         "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6211         iterator.
6212         (define_insn "*fma_fmsub_<mode>"): Rename from
6213         "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
6214         FMAMODE mode iterator.
6215         (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
6216         Use VF_SF_AVX512VL mode iterator.
6217         (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
6218         "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
6219         iterator.
6220         (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
6221         "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6222         iterator.
6223         (define_insn "*fma_fnmadd_<mode>"): Rename from
6224         "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
6225         use FMAMODE mode iterator.
6226         (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
6227         Use VF_SF_AVX512VL mode iterator.
6228         (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
6229         "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
6230         iterator.
6231         (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
6232         "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6233         iterator.
6234         (define_insn "*fma_fnmsub_<mode>"): Rename from
6235         "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
6236         FMAMODE mode iterator.
6237         (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
6238         Use VF_SF_AVX512VL mode iterator.
6239         (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
6240         "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
6241         iterator.
6242         (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
6243         "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6244         iterator.
6245         (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
6246         Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
6247         use VF_AVX512VL mode iterator.
6248         (define_insn "*fma_fmaddsub_<mode>"): Rename from
6249         "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
6250         remove subst usage.
6251         (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
6252         Use VF_SF_AVX512VL mode iterator.
6253         (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
6254         "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
6255         iterator.
6256         (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
6257         "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6258         iterator.
6259         (define_insn "*fma_fmsubadd_<mode>"): Rename from
6260         "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
6261         remove usage of subst.
6262         (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
6263         Use VF_SF_AVX512VL mode iterator.
6264         (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
6265         "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
6266         iterator.
6267         (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
6268         "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6269         iterator.
6270
6271 2014-09-10  Kugan Vivekanandarajah  <kuganv@linaro.org>
6272
6273         Revert r213751:
6274         * calls.c (precompute_arguments): Check
6275          promoted_for_signed_and_unsigned_p and set the promoted mode.
6276         (promoted_for_signed_and_unsigned_p): New function.
6277         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
6278         and set the promoted mode.
6279         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
6280         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
6281         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
6282
6283 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6284
6285         * opth-gen.awk: Generate mapping from cpp message reasons to the
6286         options that enable them.
6287         * doc/options.texi (CppReason): Document.
6288
6289 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6290
6291         * doc/invoke.texi (Wnormalized=): Update.
6292
6293 2014-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
6294
6295         PR target/63195
6296         * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
6297         operands.  Split off the constant operand alternative to ...
6298         (*bool<mode>3_imm): New.
6299
6300 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
6301
6302         * rtl.h (single_set_2): Strengthen first param from const_rtx to
6303         const rtx_insn *, and move prototype to above...
6304         (single_set): ...this.  Convert this from a macro to an inline
6305         function, enforcing the requirement that the param is a const
6306         rtx_insn *.
6307         (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
6308
6309         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
6310         Strengthen both params from rtx to rtx_insn *.
6311         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
6312         Likewise; introduce locals "producer_set", "consumer_set", using
6313         them in place of "producer" and "consumer" when dealing with SET
6314         rather than insn.
6315         * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
6316         when invoking single_set in region guarded by INSN_P.
6317         (avr_out_bitop): Likewise.
6318         (_reg_unused_after): Introduce local rtx_sequence * "seq" in
6319         region guarded by GET_CODE check, using methods to strengthen
6320         local "this_insn" from rtx to rtx_insn *, and for clarity.
6321         * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
6322         Strengthen local "insn" from rtx to rtx_insn *.
6323         (define_insn_and_split "xload<mode>_A"): Likewise.
6324         * config/bfin/bfin.c (trapping_loads_p): Likewise for param
6325         "insn".
6326         (find_load): Likewise for return type.
6327         (workaround_speculation): Likewise for both locals named
6328         "load_insn".
6329         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
6330         local "cc0_user".
6331         * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
6332         for local "prev".
6333         * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
6334         param 2.
6335         * config/h8300/h8300.c (notice_update_cc): Likewise.
6336         * config/i386/i386.c (ix86_flags_dependent): Likewise for params
6337         "insn" and "dep_insn".
6338         (exact_store_load_dependency): Likewise for both params.
6339         (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
6340         since this now clashes with inline function.  Instead, delay
6341         calling single_set until the point where its needed, and then
6342         assign the result to "compare_set" and rework the conditional that
6343         follows.
6344         * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
6345         local "last" from rtx to rtx_insn *.
6346         * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
6347         second param.
6348         (mips_store_data_bypass_p): Likewise for both params.
6349         * config/mips/mips.c (mips_load_store_insns): Likewise for second
6350         param.
6351         (mips_store_data_bypass_p): Likewise for both params.
6352         (mips_orphaned_high_part_p): Likewise for param "insn".
6353         * config/mn10300/mn10300.c (extract_bundle): Likewise.
6354         (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
6355         Introduce local rtx "insn2_pat".
6356         * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
6357         "ninsn".
6358         (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
6359         Introduce local rtx "set", using it in place of "insn" for the
6360         result of single_set.  This appears to fix a bug, since the call
6361         to find_regno_note on a SET does nothing.
6362         * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
6363         params from rtx to rtx_insn *.
6364         (set_to_load_agen): Likewise.
6365         * config/s390/s390.c (s390_label_align): Likewise for local
6366         "prev_insn".  Introduce new rtx locals "set" and "src", using
6367         them in place of "prev_insn" for the results of single_set
6368         and SET_SRC respectively.
6369         (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
6370         Introduce new rtx local "set" using in place of "jump" for the
6371         result of single_set.  Use SET_SRC (set) rather than plain
6372         XEXP (set, 1).
6373         * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
6374         rtx to rtx_insn *.
6375         (noncall_uses_reg): Likewise.
6376         (reg_unused_after): Introduce local rtx_sequence * "seq" in region
6377         guarded by GET_CODE check, using its methods for clarity, and to
6378         enable strengthening local "this_insn" from rtx to rtx_insn *.
6379         * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
6380         "insn" from rtx to rtx_insn *.
6381         (define_expand "umulhisi3"): Likewise.
6382         (define_expand "smulsi3_highpart"): Likewise.
6383         (define_expand "umulsi3_highpart"): Likewise.
6384         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
6385         local "after".  Replace GET_CODE check with a dyn_cast,
6386         introducing new local rtx_sequence * "seq", using insn method for
6387         typesafety.
6388
6389         * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
6390         from rtx to rtx_insn *.  Introduce local rtx "pat", using it in
6391         place of "insn" once we're dealing with patterns rather than the
6392         input insn.
6393         (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
6394         (scan_trace): Likewise for local "elt", updating lookups within
6395         sequence to use insn method rather than element method.
6396         * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
6397         to rtx_insn *.
6398         * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
6399         * ifcvt.c (noce_try_abs): Likewise for local "insn".
6400         * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
6401         invoking single_set.
6402         * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
6403         "insn" from rtx to rtx_insn *.
6404         (skip_usage_debug_insns): Likewise for return type, adding a
6405         checked cast.
6406         (check_secondary_memory_needed_p): Likewise for local "insn".
6407         (inherit_reload_reg): Likewise.
6408         * modulo-sched.c (sms_schedule): Likewise for local "count_init".
6409         * recog.c (peep2_attempt): Likewise for local "old_insn", adding
6410         checked casts.
6411         (store_data_bypass_p): Likewise for both params.
6412         (if_test_bypass_p): Likewise.
6413         * recog.h (store_data_bypass_p): Likewise for both params.
6414         (if_test_bypass_p): Likewise.
6415         * reload.c (find_equiv_reg): Likewise for local "where".
6416         * reorg.c (delete_jump): Likewise for param "insn".
6417         * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
6418         to const rtx_insn *.
6419         * store-motion.c (replace_store_insn): Likewise for param "del".
6420         (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
6421         and use its methods for clarity, and to strengthen local "del"
6422         from rtx to rtx_insn *.
6423         (build_store_vectors): Use insn method of "st" when calling
6424         replace_store_insn for typesafety and clarity.
6425
6426 2014-09-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6427
6428         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
6429         UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
6430         on how to make it legal in future.
6431
6432 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
6433
6434         * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
6435         to rtx_insn *.
6436         (restinsn): Likewise.
6437         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
6438         Likewise for param.
6439         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
6440         Likewise.
6441         * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
6442         first param.
6443         (arc_hazard): Likewise for both params.
6444         * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
6445         checked casts to rtx_sequence * and uses of the insn method for
6446         type-safety.
6447         (arc_hazard): Strengthen both params from rtx to rtx_insn *.
6448         (arc_adjust_insn_length): Likewise for param "insn".
6449         (struct insn_length_parameters_s): Likewise for first param of
6450         "get_variants" callback field.
6451         (arc_get_insn_variants): Likewise for first param and local
6452         "inner".  Replace a check of GET_CODE with a dyn_cast to
6453         rtx_sequence *, using methods for type-safety and clarity.
6454         * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
6455         rtx_sequence * and uses of the insn method for type-safety when
6456         invoking arc_adjust_insn_length.
6457         * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
6458         for param.
6459         (arm_address_offset_is_imm): Likewise.
6460         (struct tune_params): Likewise for params 1 and 3 of the
6461         "sched_adjust_cost" callback field.
6462         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
6463         params 1 and 3 ("insn" and "dep").
6464         (xscale_sched_adjust_cost): Likewise.
6465         (fa726te_sched_adjust_cost): Likewise.
6466         (cortexa7_older_only): Likewise for param "insn".
6467         (cortexa7_younger): Likewise.
6468         (arm_attr_length_move_neon): Likewise.
6469         (arm_address_offset_is_imm): Likewise.
6470         * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
6471         * config/avr/avr.c (avr_notice_update_cc): Likewise.
6472         * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
6473         (workaround_speculation): Likewise for local "last_condjump".
6474         * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
6475         (shadow_or_blockage_p): Likewise.
6476         (get_unit_reqs): Likewise.
6477         (get_unit_operand_masks): Likewise.
6478         (c6x_registers_update): Likewise.
6479         (returning_call_p): Likewise.
6480         (can_use_callp): Likewise.
6481         (convert_to_callp): Likewise.
6482         (find_last_same_clock): Likwise for local "t".
6483         (reorg_split_calls): Likewise for local "shadow".
6484         (hwloop_pattern_reg): Likewise for param "insn".
6485         * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
6486         * config/frv/frv.c (frv_final_prescan_insn): Likewise.
6487         (frv_extract_membar): Likewise.
6488         (frv_optimize_membar_local): Strengthen param "last_membar" from
6489         rtx * to rtx_insn **.
6490         (frv_optimize_membar_global): Strengthen param "membar" from rtx
6491         to rtx_insn *.
6492         (frv_optimize_membar): Strengthen local "last_membar" from rtx *
6493         to rtx_insn **.
6494         * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
6495         both params from rtx to rtx_insn *.
6496         (ia64_ld_address_bypass_p): Likewise.
6497         * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
6498         "insn".
6499         (ia64_safe_type): Likewise.
6500         (group_barrier_needed): Likewise.
6501         (safe_group_barrier_needed): Likewise.
6502         (ia64_single_set): Likewise.
6503         (is_load_p): Likewise.
6504         (record_memory_reference): Likewise.
6505         (get_mode_no_for_insn): Likewise.
6506         (important_for_bundling_p): Likewise.
6507         (unknown_for_bundling_p): Likewise.
6508         (ia64_st_address_bypass_p): Likewise for both params.
6509         (ia64_ld_address_bypass_p): Likewise.
6510         (expand_vselect): Introduce new local rtx_insn * "insn", using it
6511         in place of rtx "x" after the emit_insn call.
6512         * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
6513         Strengthen param from rtx to rtx_insn *.
6514         (ix86_agi_dependent): Likewise for both params.
6515         (ix86_attr_length_immediate_default): Likewise for param 1.
6516         (ix86_attr_length_address_default): Likewise for param.
6517         (ix86_attr_length_vex_default): Likewise for param 1.
6518         * config/i386/i386.c (ix86_attr_length_immediate_default):
6519         Likewise for param "insn".
6520         (ix86_attr_length_address_default): Likewise.
6521         (ix86_attr_length_vex_default): Likewise.
6522         (ix86_agi_dependent): Likewise for both params.
6523         (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
6524         (vselect_insn): Likewise for this variable.
6525         * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
6526         for param 1.
6527         (m68k_sched_attr_opy_type): Likewise.
6528         * config/m68k/m68k.c (sched_get_operand): Likewise.
6529         (sched_attr_op_type): Likewise.
6530         (m68k_sched_attr_opx_type): Likewise.
6531         (m68k_sched_attr_opy_type): Likewise.
6532         (sched_get_reg_operand): Likewise.
6533         (sched_get_mem_operand): Likewise.
6534         (m68k_sched_address_bypass_p): Likewise for both params.
6535         (sched_get_indexed_address_scale): Likewise.
6536         (m68k_sched_indexed_address_bypass_p): Likewise.
6537         * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
6538         (m68k_sched_indexed_address_bypass_p): Likewise.
6539         * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
6540         "label", "ret" from rtx to rtx_insn *, adding a checked cast and
6541         removing another.
6542         * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
6543         params from rtx to rtx_insn *.
6544         (mips_fmadd_bypass): Likewise.
6545         * config/mips/mips.c (mips_fmadd_bypass): Likewise.
6546         (mips_linked_madd_p): Likewise.
6547         (mips_macc_chains_last_hilo): Likewise for this variable.
6548         (mips_macc_chains_record): Likewise for param.
6549         (vr4130_last_insn): Likewise for this variable.
6550         (vr4130_swap_insns_p): Likewise for both params.
6551         (mips_ls2_variable_issue): Likewise for param.
6552         (mips_need_noat_wrapper_p): Likewise for param "insn".
6553         (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
6554         in place of "x" after the emit_insn.
6555         * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
6556         params from rtx to rtx_insn *.
6557         * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
6558         (pa_combine_instructions): Introduce local "par" for result of
6559         gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
6560         to make_insn_raw.
6561         (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
6562         * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
6563         (rl78_alloc_physical_registers_op1): Likewise.
6564         (rl78_alloc_physical_registers_op2): Likewise.
6565         (rl78_alloc_physical_registers_ro1): Likewise.
6566         (rl78_alloc_physical_registers_cmp): Likewise.
6567         (rl78_alloc_physical_registers_umul): Likewise.
6568         (rl78_alloc_address_registers_macax): Likewise.
6569         (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
6570         * config/s390/predicates.md (execute_operation): Likewise for
6571         local "insn".
6572         * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
6573         params.
6574         * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
6575         (addr_generation_dependency_p): Likewise for param "insn".
6576         (s390_agen_dep_p): Likewise for both params.
6577         (s390_fpload_toreg): Likewise for param "insn".
6578         * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
6579         * config/sh/sh.c (sh_loop_align): Likewise for param and local
6580         "next".
6581         * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
6582         * config/sh/sh_treg_combine.cc
6583         (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
6584         and local "i".
6585         (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
6586         * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
6587         "and_insn", "load", "shift".
6588         * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
6589         "insn".
6590         * final.c (final_scan_insn): Introduce local rtx_insn * "other"
6591         for XEXP (note, 0) of the REG_CC_SETTER note.
6592         (cleanup_subreg_operands): Strengthen param "insn" from rtx to
6593         rtx_insn *, eliminating a checked cast made redundant by this.
6594         * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
6595         to rtx_insn *.
6596         * genattr.c (main): When writing out the prototype to
6597         const_num_delay_slots, strengthen the param from rtx to
6598         rtx_insn *.
6599         * genattrtab.c (write_const_num_delay_slots): Likewise when
6600         writing out the implementation of const_num_delay_slots.
6601         * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
6602         "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
6603         * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
6604         favor of new rtx locals "src" and "set" and new local rtx_insn *
6605         "insn" and "seq".
6606         (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
6607         to rtx_insn *.
6608         (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
6609         locals "cond", "if_then_else", "set" and new rtx_insn * locals
6610         "insn" and "seq".
6611         (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
6612         "last" from rtx to rtx_insn *.  Likewise for a local "tmp",
6613         renaming to "tmp_insn".  Eliminate the other local rtx "tmp" from
6614         the top-level scope, replacing with new more tightly-scoped rtx
6615         locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
6616         "new_insn", "copy_of_insn_b", and make local rtx "set" more
6617         tightly-scoped.
6618         * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
6619         rtx_insn *.
6620         * ira.c (setup_prohibited_mode_move_regs): Likewise for local
6621         "move_insn".
6622         (ira_setup_alts): Likewise for param "insn".
6623         * lra-constraints.c (emit_inc): Likewise for local "add_insn".
6624         * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
6625         and an rtx_insn *.
6626         (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
6627         new more-tightly scoped rtx locals "add3_insn", "insn",
6628         "add2_insn" and rtx_insn * "move_insn".
6629         * postreload-gcse.c (eliminate_partially_redundant_load): Add
6630         checked cast on result of gen_move_insn when invoking
6631         extract_insn.
6632         * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
6633         rtx_insn *.
6634         (verify_changes): Add a checked cast on "object" when invoking
6635         insn_invalid_p.
6636         (extract_insn_cached): Strengthen param "insn" from rtx to
6637         rtx_insn *.
6638         (extract_constrain_insn_cached): Likewise.
6639         (extract_insn): Likewise.
6640         * recog.h (insn_invalid_p): Likewise for param 1.
6641         (recog_memoized): Likewise for param.
6642         (extract_insn): Likewise.
6643         (extract_constrain_insn_cached): Likewise.
6644         (extract_insn_cached): Likewise.
6645         * reload.c (can_reload_into): Likewise for local "test_insn".
6646         * reload.h (cleanup_subreg_operands): Likewise for param.
6647         * reload1.c (emit_insn_if_valid_for_reload): Rename param from
6648         "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
6649         result of emit_insn.  Remove a checked cast made redundant by this
6650         change.
6651         * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
6652         rtx to rtx_insn *.
6653         * sel-sched.c (get_reg_class): Likewise.
6654
6655 2014-09-09  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6656             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6657
6658         * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
6659         * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
6660         Define.
6661         (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
6662
6663 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
6664
6665         * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
6666         const rtx_insn *, and from rtx to rtx_insn * for the other
6667         overloaded variant.
6668         (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
6669         INSN_LOCATION, since we know INSN_P holds.
6670         (insn_line): Strengthen param from const_rtx to const rtx_insn *.
6671         (insn_file): Likewise.
6672         (insn_scope): Likewise.
6673         (insn_location): Likewise.
6674
6675         * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
6676         "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
6677         for the result of gen_load_const_gp.
6678         * config/rs6000/rs6000-protos.h (output_call): Strengthen first
6679         param from rtx to rtx_insn *.
6680         * config/rs6000/rs6000.c (output_call): Likewise.
6681         * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
6682         introducing a checked cast to rtx_sequence * and use of the insn
6683         method.
6684         * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
6685         from rtx to rtx_insn *.
6686         (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
6687         (insn_line): Likewise.
6688         (insn_file): Likewise.
6689         (insn_location): Likewise.
6690         * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
6691         from rtx to rtx_insn *.
6692         * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
6693         cast, using it for calls to INSN_HAS_LOCATION and insn_location.
6694         * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
6695         via a checked cast.
6696         * reorg.c (relax_delay_slots): Strengthen locals named "after"
6697         from rtx to rtx_insn *; use methods of "pat" for type-safety.
6698
6699 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
6700
6701         * combine.c (try_combine): Eliminate checked cast on result of
6702         gen_rtx_INSN.
6703         * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
6704         autogenerated one by strengthening the return type and params 2 and 3
6705         from rtx to rtx_insn *, and by naming the params.
6706         * gengenrtl.c (special_rtx): Add INSN to those that are
6707         special-cased.
6708         * rtl.h (gen_rtx_INSN): New prototype.
6709
6710 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
6711
6712         * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
6713         than NULL_RTX.
6714         (no_equiv): Likewise.
6715         (update_equiv_regs): Likewise.
6716         (setup_reg_equiv): Likewise.  Strengthen locals "elem",
6717         "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
6718         from rtx to rtx_insn *.  Use methods of "elem" for typesafety and
6719         clarity.
6720         * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
6721         from rtx to rtx_insn_list *.
6722         * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
6723         rtx_insn_list * and use methods for clarity and typesafety.
6724         * lra-constraints.c (contains_deleted_insn_p): Likewise for param
6725         "list".
6726         (init_insn_rhs_dead_pseudo_p): Likewise for local "insns".  Remove
6727         redundant check on INSN_P (insns): this cannot hold, as "insns" is
6728         an INSN_LIST, not an insn.
6729         (reverse_equiv_p): Strengthen local "insns" from rtx to
6730         rtx_insn_list * and use methods for clarity and typesafety.
6731         (contains_reloaded_insn_p): Likewise for local "list".
6732
6733 2014-09-09  Jiong Wang  <jiong.wang@arm.com>
6734
6735         * config/arm/arm.c (NEON_COPYSIGNF): New enum.
6736         (arm_init_neon_builtins): Support NEON_COPYSIGNF.
6737         (arm_builtin_vectorized_function): Likewise.
6738         * config/arm/arm_neon_builtins.def: New macro for copysignf.
6739         * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
6740
6741 2014-09-09  Richard Sandiford  <richard.sandiford@arm.com>
6742
6743         * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
6744         * builtins.h (default_target_builtins): Likewise.
6745         * gcse.h (default_target_gcse): Likewise.
6746         * target-globals.h (target_globals): Add a destructor.  Convert
6747         void-pointer fields back to their real type and change from
6748         GTY((atomic)) to GTY((skip)).
6749         (restore_target_globals): Remove casts accordingly.
6750         * target-globals.c (save_target_globals): Use XCNEW rather than
6751         ggc_internal_cleared_alloc to allocate non-GC structures.
6752         Use ggc_cleared_alloc to allocate the target_globals structure
6753         itself.
6754         (target_globals::~target_globals): Define.
6755
6756 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6757
6758         * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
6759         mnemonic instead of fldmfdd.
6760         * config/arm/arm.c (vfp_output_fstmd): Rename to...
6761         (vfp_output_vstmd): ... This.  Convert output to UAL syntax.
6762         Output vpush when address register is SP.
6763         * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
6764         (vfp_output_vstmd): ... This.
6765         * config/arm/vfp.md (push_multi_vfp): Update call to
6766         vfp_output_vstmd.
6767
6768 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6769
6770         * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
6771
6772 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6773
6774         * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
6775         (*sqrtdf2_vfp): Likewise.
6776         (*cmpsf_vfp): Likewise.
6777         (*cmpsf_trap_vfp): Likewise.
6778         (*cmpdf_vfp): Likewise.
6779         (*cmpdf_trap_vfp): Likewise.
6780
6781 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6782
6783         * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
6784         (*truncdfsf2_vfp): Likewise.
6785         (*truncsisf2_vfp): Likewise.
6786         (*truncsidf2_vfp): Likewise.
6787         (fixuns_truncsfsi2): Likewise.
6788         (fixuns_truncdfsi2): Likewise.
6789         (*floatsisf2_vfp): Likewise.
6790         (*floatsidf2_vfp): Likewise.
6791         (floatunssisf2): Likewise.
6792         (floatunssidf2): Likewise.
6793
6794 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6795
6796         * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
6797         (*muldf3_vfp): Likewise.
6798         (*mulsf3negsf_vfp): Likewise.
6799         (*muldf3negdf_vfp): Likewise.
6800         (*mulsf3addsf_vfp): Likewise.
6801         (*muldf3adddf_vfp): Likewise.
6802         (*mulsf3subsf_vfp): Likewise.
6803         (*muldf3subdf_vfp): Likewise.
6804         (*mulsf3negsfaddsf_vfp): Likewise.
6805         (*fmuldf3negdfadddf_vfp): Likewise.
6806         (*mulsf3negsfsubsf_vfp): Likewise.
6807         (*muldf3negdfsubdf_vfp): Likewise.
6808
6809 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6810
6811         * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
6812         (*absdf2_vfp): Likewise.
6813         (*negsf2_vfp): Likewise.
6814         (*negdf2_vfp): Likewise.
6815         (*addsf3_vfp): Likewise.
6816         (*adddf3_vfp): Likewise.
6817         (*subsf3_vfp): Likewise.
6818         (*subdf3_vfp): Likewise.
6819         (*divsf3_vfp): Likewise.
6820         (*divdf3_vfp): Likewise.
6821
6822 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6823
6824         * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
6825         multiple.
6826         (arm_print_operand): Don't convert real values to decimal
6827         representation in default case.
6828         (fp_immediate_constant): Delete.
6829         * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
6830         * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
6831         syntax.
6832         (*thumb2_movsi_vfp): Likewise.
6833         (*movdi_vfp): Likewise.
6834         (*movdi_vfp_cortexa8): Likewise.
6835         (*movhf_vfp_neon): Likewise.
6836         (*movhf_vfp): Likewise.
6837         (*movsf_vfp): Likewise.
6838         (*thumb2_movsf_vfp): Likewise.
6839         (*movdf_vfp): Likewise.
6840         (*thumb2_movdf_vfp): Likewise.
6841         (*movsfcc_vfp): Likewise.
6842         (*thumb2_movsfcc_vfp): Likewise.
6843         (*movdfcc_vfp): Likewise.
6844         (*thumb2_movdfcc_vfp): Likewise.
6845
6846 2014-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
6847
6848         * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
6849         (-mtune): Likewise.
6850         (-mcpu): Likewise.
6851
6852 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6853
6854         PR target/61749
6855         * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
6856         Use qualifier_immediate for last operand.  Rename to...
6857         (aarch64_types_ternop_lane_qualifiers): ... This.
6858         (TYPES_QUADOP): Rename to...
6859         (TYPES_TERNOP_LANE): ... This.
6860         (aarch64_simd_expand_args): Return const0_rtx when encountering user
6861         error.  Change return of 0 to return of NULL_RTX.
6862         (aarch64_crc32_expand_builtin): Likewise.
6863         (aarch64_expand_builtin): Return NULL_RTX instead of 0.
6864         ICE when expanding unknown builtin.
6865         * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
6866         TERNOP_LANE qualifiers.
6867         (sqdmlsl_lane): Likewise.
6868         (sqdmlal_laneq): Likewise.
6869         (sqdmlsl_laneq): Likewise.
6870         (sqdmlal2_lane): Likewise.
6871         (sqdmlsl2_lane): Likewise.
6872         (sqdmlal2_laneq): Likewise.
6873         (sqdmlsl2_laneq): Likewise.
6874
6875 2014-09-09  Nick Clifton  <nickc@redhat.com>
6876
6877         * doc/invoke.texi (Optimization Options): Add missing @gol to the
6878         end of a line.
6879         (S/390 and zSeries Options): Remove superfluous word from the
6880         description of the -mhotpatch option.
6881
6882 2014-09-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
6883
6884         * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
6885         * ira.c: #include "shrink-wrap.h"
6886         (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
6887         * ifcvt.c: #include "shrink-wrap.h"
6888         (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
6889
6890 2014-09-08  Trevor Saunders  <tsaunders@mozilla.com>
6891
6892         * common/config/picochip/picochip-common.c: Remove.
6893         * config.gcc: Remove support for picochip.
6894         * config/picochip/constraints.md: Remove.
6895         * config/picochip/dfa_space.md: Remove.
6896         * config/picochip/dfa_speed.md: Remove.
6897         * config/picochip/picochip-protos.h: Remove.
6898         * config/picochip/picochip.c: Remove.
6899         * config/picochip/picochip.h: Remove.
6900         * config/picochip/picochip.md: Remove.
6901         * config/picochip/picochip.opt: Remove.
6902         * config/picochip/predicates.md: Remove.
6903         * config/picochip/t-picochip: Remove.
6904         * doc/md.texi: Don't document picochi.
6905
6906 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
6907
6908         * basic-block.h (control_flow_insn_p): Strengthen param from
6909         const_rtx to const rtx_insn *.
6910         * cfgbuild.c (control_flow_insn_p): Likewise.
6911
6912 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
6913
6914         * gcse.c (modify_mem_list): Strengthen this variable from
6915         vec<rtx> * to vec<rtx_insn *> *.
6916         (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
6917         vec<rtx_insn *>.
6918         (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
6919         vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
6920         (record_last_mem_set_info): Strengthen param "insn" from rtx to
6921         rtx_insn *.
6922         (record_last_set_info): Likewise for local "last_set_insn".
6923
6924 2014-09-08  DJ Delorie  <dj@redhat.com>
6925
6926         * doc/invoke.texi (MSP430 Options): Add -minrt.
6927
6928 2014-09-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6929
6930         * config/rs6000/rs6000.c (special_handling_values):  Add SH_SPLAT.
6931         (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
6932         statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
6933         handling SH_SPLAT.
6934         (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
6935         of extracted lane.
6936         (adjust_splat): New function.
6937         (handle_special_swappables): Call adjust_splat for SH_SPLAT.
6938         (dump_swap_insn_table): Add case for SH_SPLAT.
6939
6940 2014-09-08  Richard Biener  <rguenther@suse.de>
6941
6942         PR ipa/63196
6943         * tree-inline.c (copy_loops): The source loop header should
6944         always be non-NULL.
6945         (tree_function_versioning): If loops need fixup after removing
6946         unreachable blocks fix them.
6947         * omp-low.c (simd_clone_adjust): Do not add incr block to
6948         loop under construction.
6949
6950 2014-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6951
6952         * config/aarch64/aarch64-builtins.c
6953         (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
6954
6955 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
6956
6957         * config/i386/cygming.h (TF_SIZE): Remove.
6958         * config/i386/darwin.h (TF_SIZE): Remove.
6959         * config/i386/dragonfly.h (TF_SIZE): Remove.
6960         * config/i386/freebsd.h (TF_SIZE): Remove.
6961         * config/i386/gnu-user-common.h (TF_SIZE): Remove.
6962         * config/i386/openbsdelf.h (TF_SIZE): Remove.
6963         * config/i386/sol2.h (TF_SIZE): Remove.
6964         * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
6965         * config/ia64/linux.h (TF_SIZE): Remove.
6966         * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
6967         * doc/tm.texi: Regenerate.
6968         * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
6969
6970 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
6971
6972         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
6973         Remove.
6974         * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
6975         Remove.
6976         * doc/tm.texi: Regenerate.
6977         * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
6978         Poison.
6979         * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
6980         * config/cris/cris.h (__make_dp): Remove.
6981
6982 2014-09-08  Richard Biener  <rguenther@suse.de>
6983
6984         PR bootstrap/63204
6985         * cfgloop.c (mark_loop_for_removal): Track former header
6986         unconditionally.
6987         * cfgloop.h (struct loop): Add former_header member unconditionally.
6988         * loop-init.c (fix_loop_structure): Enable bogus loop removal
6989         diagnostic unconditionally.
6990
6991 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
6992
6993         PR target/63190
6994         * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
6995         constraint for operand0 and remove write only modifier from operand3.
6996
6997 2014-09-07  Richard Sandiford  <richard.sandiford@arm.com>
6998
6999         PR rtl-optimization/62208
7000         * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
7001         rather than const0_rtx in eq/ne-xor simplifications.
7002
7003 2014-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
7004
7005         * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
7006         (arc_output_mi_thunk): Likewise.
7007
7008         * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
7009         arguments to silence bogus warning.
7010
7011 2014-09-06  Richard Sandiford  <richard.sandiford@arm.com>
7012
7013         PR middle-end/63171
7014         * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
7015
7016 2014-09-06  Tom de Vries  <tom@codesourcery.com>
7017
7018         * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
7019         IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
7020         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
7021
7022 2014-09-05  Dominique Dhumieres  <dominiq@lps.ens.fr>
7023
7024         PR target/63188
7025         * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
7026         * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
7027
7028 2014-09-05  Easwaran Raman  <eraman@google.com>
7029
7030         PR rtl-optimization/62146
7031         * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
7032         hoisted instruction unconditional.
7033
7034 2014-09-05  Segher Boessenkool  <segher@kernel.crashing.org>
7035
7036         PR target/63187
7037         * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
7038         Do not allow any_mask_operand for operands[2].
7039         (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
7040
7041 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7042
7043         * config/arc/arc.c (arc_print_operand): Use insn method of
7044         final_sequence for type-safety.
7045         * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
7046         "insn" from rtx to rtx_insn *.
7047         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
7048         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
7049         Likewise for locals "branch", "label".
7050         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
7051         locals "i1", "i2".  Use NULL rather than NULL_RTX in comparisons.
7052         (same_cmp_following_p): Likewise for locals "i2", "i3".
7053         * config/sh/sh_optimize_sett_clrt.cc
7054         (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
7055         param "cbranch_insn".
7056         * function.c (convert_jumps_to_returns): Likewis for local "jump".
7057         * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
7058         * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
7059         const rtx_insn *.
7060         (condjump_p): Likewise.
7061         (condjump_in_parallel_p): Likewise.
7062         (pc_set): Likewise.
7063         (any_uncondjump_p): Likewise.
7064         (any_condjump_p): Likewise.
7065         (condjump_label): Likewise.
7066         (returnjump_p): Strengthen param "insn" from rtx to
7067         const rtx_insn *.
7068         (onlyjump_p): Strengthen param "insn" from const_rtx to
7069         const rtx_insn *.
7070         (jump_to_label_p): Likewise.
7071         (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
7072         (invert_jump): Likewise.
7073         * reorg.c (simplejump_or_return_p): Add checked cast when calling
7074         simplejump_p.
7075         (get_jump_flags): Strengthen param "insn" from rtx to
7076         const rtx_insn *.
7077         (get_branch_condition): Likewise.
7078         (condition_dominates_p): Likewise.
7079         (make_return_insns): Move declaration of local "pat" earlier, to
7080         after we've handled NONJUMP_INSN_P and non-sequences, using its
7081         methods to simplify the code and for type-safety.
7082         * rtl.h (find_constant_src): Strengthen param from const_rtx to
7083         const rtx_insn *.
7084         (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
7085         (condjump_p): Strengthen param from const_rtx to
7086         const rtx_insn *.
7087         (any_condjump_p): Likewise.
7088         (any_uncondjump_p): Likewise.
7089         (pc_set): Likewise.
7090         (condjump_label): Likewise.
7091         (simplejump_p): Likewise.
7092         (returnjump_p): Likewise.
7093         (onlyjump_p): Likewise.
7094         (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
7095         (invert_jump): Likewise.
7096         (condjump_in_parallel_p): Strengthen param from const_rtx to
7097         const rtx_insn *.
7098         * rtlanal.c (find_constant_src): Strengthen param from const_rtx
7099         to const rtx_insn *.
7100         * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
7101         to const rtx_insn *.
7102         * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
7103
7104 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7105
7106         * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
7107         above the conditional, and convert the check on GET_CODE to a
7108         dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
7109         the conditional.  Simplify the conditional by using methods of
7110         "trial_seq".
7111
7112 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7113
7114         * haifa-sched.c (check_clobbered_conditions): Strengthen local
7115         "link" from rtx to rtx_insn_list *, and use its methods for
7116         clarity and type-safety.
7117         (toggle_cancelled_flags): Likewise.
7118         (restore_last_backtrack_point): Likewise.
7119         (queue_to_ready): Use insn method of "link" in one place.
7120         (schedule_block): Strengthen local "link" from rtx to
7121         rtx_insn_list *, and use its methods for clarity and type-safety.
7122
7123 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7124
7125         * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
7126         param "insn" from const_rtx to const rtx_insn *.
7127         (sched_get_reverse_condition_uncached): Likewise.
7128         (sched_get_condition_with_rev): Likewise.
7129         (sched_has_condition_p): Likewise.
7130         (sched_insns_conditions_mutex_p): Likewise for both params.
7131         (sched_insn_is_legitimate_for_speculation_p): Likewise for param
7132         "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
7133         (setup_insn_reg_uses): Move local "list" to be more tightly
7134         scoped, strengthening it from an rtx to an rtx_insn_list *.  Use
7135         its methods for clarity and type-safety.
7136         (sched_analyze_1): Strengthen local "pending" from rtx to
7137         rtx_insn_list *, and local "pending_mem" from rtx to
7138         rtx_expr_list *.  Use methods of each for clarity and type-safety.
7139         (sched_analyze_2): Likewise.
7140         (sched_analyze_insn): Likewise.
7141
7142         * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
7143         param from const_rtx to const rtx_insn *.
7144         (sched_insns_conditions_mutex_p): Likewise for both params.
7145         (sched_insn_is_legitimate_for_speculation_p): Likewise for first
7146         param.
7147
7148         * system.h (CONST_CAST_RTX_INSN): New macro.
7149
7150 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7151
7152         * recog.c (peep2_attempt): Strengthen return type from rtx to
7153         rtx_insn *.
7154         (peep2_update_life): Likewise for params "last", "prev", removing
7155         a checked cast made redundant by this.
7156         (peephole2_optimize): Likewise for local "last".
7157
7158 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7159
7160         * basic-block.h (set_block_for_insn): Eliminate this macro in
7161         favor of...
7162         * rtl.h (set_block_for_insn): New inline function, imposing the
7163         requirement that the "insn" param is an rtx_insn *.
7164
7165 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7166
7167         * caller-save.c (setup_save_areas): Strengthen local "insn" from
7168         rtx to rtx_insn *.
7169         * final.c (get_call_reg_set_usage): Likewise for first param,
7170         eliminating a checked cast.
7171         * regs.h (get_call_reg_set_usage): Likewise for first param.
7172         * resource.c (mark_set_resources): Introduce local rtx_call_insn *
7173         "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
7174         cast, replacing references to "x" with "call_insn" where
7175         appropriate.
7176         (mark_target_live_regs): Strengthen local "real_insn" from rtx to
7177         rtx_insn *, adding a checked cast.
7178
7179 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7180
7181         * output.h (final_scan_insn): Strengthen first param from rtx to
7182         rtx_insn *.
7183
7184         * final.c (final_scan_insn): Likewise, renaming it back from
7185         "uncast_insn" to "insn", eliminating the checked cast.
7186
7187         * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
7188         "vec" with an rtx_sequence * "seq", taking a copy of
7189         "final_sequence", and using methods of "seq" for clarity, and for
7190         type-safety in the calls to final_scan_insn.
7191         * config/mips/mips.c (mips_output_conditional_branch): Use methods
7192         of "final_sequence" for clarity, and for type-safety in the call to
7193         final_scan_insn.
7194         * config/sh/sh.c (print_slot): Strengthen param from rtx to
7195         rtx_sequence * and rename from "insn" to "seq".
7196
7197 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7198
7199         * jump.c (delete_related_insns): Introduce a new local "table" by
7200         replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
7201         get_labels method of "table" to simplify access to the labels in
7202         the jump table.
7203
7204 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7205
7206         * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
7207         f_minmaxs, f_minmaxd types.
7208
7209 2014-09-05  Richard Biener  <rguenther@suse.de>
7210
7211         * cfgloop.c (mark_loop_for_removal): Record former header
7212         when ENABLE_CHECKING.
7213         * cfgloop.h (strut loop): Add former_header member when
7214         ENABLE_CHECKING.
7215         * loop-init.c (fix_loop_structure): Sanity check loops
7216         marked for removal if they re-appeared.
7217
7218 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7219
7220         * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
7221         uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
7222
7223         (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
7224         vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
7225         vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
7226         vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
7227         vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
7228         vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
7229         vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
7230         vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
7231         vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
7232         vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
7233         vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
7234         vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
7235         vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
7236         vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
7237         vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
7238         vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
7239         vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
7240         vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
7241         vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
7242         vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
7243         with int{32,16,8}_t.
7244
7245 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7246
7247         * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
7248         (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
7249         vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
7250         vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
7251         Remove temporary __asm__ and reimplement.
7252
7253 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7254
7255         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
7256         handling cmge, cmgt, cmeq, cmtst.
7257
7258         * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
7259         cmlt, cmgeu, cmgtu, cmtst): Remove.
7260
7261         * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
7262         vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
7263         vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
7264         vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
7265
7266 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7267
7268         * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
7269         TYPES_TST): Define.
7270         (aarch64_fold_builtin): Update pattern for cmtst.
7271
7272         * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
7273         Declare.
7274
7275         * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
7276
7277         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
7278         Switch operands, separate out more cases, refactor.
7279
7280         (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
7281
7282         * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
7283         argument; rename old version to...
7284         (aarch64_const_vec_all_same_in_range_p): ...this.
7285         (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
7286
7287         * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
7288
7289 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7290
7291         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
7292         Remove qualifier_const_pointer, update comment.
7293
7294 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7295
7296         * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
7297
7298 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7299
7300         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
7301         varargs with pointer parameter.
7302         (aarch64_simd_expand_builtin): pass pointer into previous.
7303
7304 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7305
7306         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
7307         alus_ext.
7308
7309 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7310
7311         * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
7312         * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
7313         * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
7314         Replace temporary asm with call to builtin.
7315         (vrbit_p8, vrbitq_p8): New functions.
7316
7317 2014-09-05  Richard Biener  <rguenther@suse.de>
7318
7319         * cfgloop.c (mark_loop_for_removal): New function.
7320         * cfgloop.h (mark_loop_for_removal): Declare.
7321         * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
7322         (merge_blocks): Likewise.
7323         (duplicate_block): Likewise.
7324         * except.c (sjlj_emit_dispatch_table): Likewise.
7325         * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
7326         * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
7327         (thread_through_loop_header): Likewise.
7328
7329 2014-09-05  Richard Biener  <rguenther@suse.de>
7330
7331         PR middle-end/63148
7332         * fold-const.c (try_move_mult_to_index): Remove.
7333         (fold_binary_loc): Do not call it.
7334         * tree-data-ref.c (dr_analyze_indices): Strip conversions
7335         from the base object again.
7336
7337 2014-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
7338
7339         * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
7340         DImode.
7341
7342 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
7343
7344         PR target/55701
7345         * config/arm/arm.md (setmem): New pattern.
7346         * config/arm/arm-protos.h (struct tune_params): New fields.
7347         (arm_gen_setmem): New prototype.
7348         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
7349         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
7350         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
7351         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
7352         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
7353         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
7354         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
7355         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
7356         (arm_const_inline_cost): New function.
7357         (arm_block_set_max_insns): New function.
7358         (arm_block_set_non_vect_profit_p): New function.
7359         (arm_block_set_vect_profit_p): New function.
7360         (arm_block_set_unaligned_vect): New function.
7361         (arm_block_set_aligned_vect): New function.
7362         (arm_block_set_unaligned_non_vect): New function.
7363         (arm_block_set_aligned_non_vect): New function.
7364         (arm_block_set_vect, arm_gen_setmem): New functions.
7365
7366 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
7367
7368         * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
7369
7370 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
7371
7372         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
7373
7374 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
7375
7376         * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
7377         an rtx.
7378         * valtrack.h: Adjust.
7379
7380 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
7381
7382         * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
7383         an rtx.
7384         (emit_jump_insn_before_noloc): Likewise.
7385         (emit_call_insn_before_noloc): Likewise.
7386         (emit_label_before): Likewise.
7387         (emit_label_after): Likewise.
7388         (emit_insn_before_setloc): Likewise.
7389         (emit_jump_insn_before_setloc): Likewise.
7390         (emit_call_insn_before_setloc): Likewise.
7391         (emit_call_insn_before): Likewise.
7392         * rtl.h: Adjust.
7393
7394 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7395
7396         * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
7397         rtx_insn *, eliminating a checked cast.
7398
7399 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7400
7401         * rtl.h (modified_between_p): Strengthen params 2 and 3 from
7402         const_rtx to const rtx_insn *.
7403         * rtlanal.c (modified_between_p): Likewise, eliminating a checked
7404         cast.
7405
7406 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7407
7408         * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
7409         fixup_args_size_notes.
7410         * expr.c (fixup_args_size_notes): Strengthen first two params from
7411         rtx to rtx_insn *, eliminating a checked cast.
7412         * rtl.h (fixup_args_size_notes): Strengthen first two params from
7413         rtx to rtx_insn *.
7414
7415 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7416
7417         * haifa-sched.c (get_ready_element): Strengthen return type from
7418         rtx to rtx_insn *.
7419         * sched-int.h (get_ready_element): Likewise.
7420
7421 2014-09-04  Segher Boessenkool  <segher@kernel.crashing.org>
7422
7423         PR target/63165
7424         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
7425         indexed_or_indirect_operand instead of memory_operand.
7426         (floatsi<mode>2_lfiwzx_mem): Ditto.
7427
7428 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
7429
7430         * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
7431         config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
7432         ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
7433
7434 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
7435
7436         * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
7437         rtx.
7438         (get_last_nonnote_insn): Likewise.
7439         (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
7440         * resource.c (find_basic_block): Likewise.
7441         * rtl.h: Adjust.
7442         * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
7443         const_rtx.
7444
7445 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
7446
7447         * genattr.c (main): Within the prototype of insn_latency written
7448         out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
7449         * genautomata.c (output_internal_maximal_insn_latency_func):
7450         Within the implementation of insn_latency written out to
7451         insn-automata.c, strengthen both params from rtx to rtx_insn *,
7452         eliminating a pair of checked casts.
7453
7454 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
7455
7456         * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
7457         rtx_insn *.
7458
7459         * rtl.h (eh_returnjump_p): Likewise.
7460
7461 2014-09-04  Aldy Hernandez  <aldyh@redhat.com>
7462
7463         * Makefile.in (TAGS): Handle constructs in timevar.def.
7464
7465 2014-09-04  Guozhi Wei  <carrot@google.com>
7466
7467         PR target/62040
7468         * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
7469         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
7470         it into two patterns.
7471         (move_lo_quad_internal_be_<mode>): Likewise.
7472
7473 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7474
7475         * doc/options.texi: Document that Var and Init are required if CPP
7476         is given.
7477         * optc-gen.awk: Require Var and Init if CPP is given.
7478         * common.opt (Wpedantic): Use Init.
7479
7480 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7481
7482         * config/rs6000/rs6000.c (special_handling_values): Add
7483         SH_EXTRACT.
7484         (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
7485         wrapped in a VEC_DUPLICATE, representing an extract.  Mark these
7486         as swappable with special handling SH_EXTRACT.  Remove
7487         UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
7488         optimization.
7489         (adjust_extract): New function.
7490         (handle_special_swappables): Add default to case statement; add
7491         case for SH_EXTRACT that calls adjust_extract.
7492         (dump_swap_insn_table): Handle SH_EXTRACT.
7493
7494 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7495
7496         * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
7497         selection of 0th memory doubleword, regardless of endianness.
7498
7499 2014-09-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7500
7501         * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
7502
7503 2014-09-04  Alan Modra  <amodra@gmail.com>
7504
7505         PR debug/60655
7506         * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
7507         can't be output.
7508
7509 2014-09-03  Matthew Fortune  <matthew.fortune@imgtec.com>
7510
7511         * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
7512         * targhooks.c (default_dwarf_frame_reg_mode): New function.
7513         * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
7514         * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
7515         * doc/tm.texi: Regenerate.
7516         * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
7517         selection logic to default_dwarf_frame_reg_mode.
7518
7519 2014-09-03  Marek Polacek  <polacek@redhat.com>
7520
7521         * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
7522         by -Wall.
7523
7524 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
7525
7526         * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
7527         the automodified register.
7528
7529 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
7530
7531         * output.h (get_some_local_dynamic_name): Declare.
7532         * final.c (some_local_dynamic_name): New variable.
7533         (get_some_local_dynamic_name): New function.
7534         (final_end_function): Clear some_local_dynamic_name.
7535         * config/alpha/alpha.c (machine_function): Remove some_ld_name.
7536         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
7537         (print_operand): Report an error if '%&' is used inappropriately.
7538         * config/i386/i386.c (get_some_local_dynamic_name): Delete.
7539         (get_some_local_dynamic_name_1): Delete.
7540         * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
7541         (rs6000_get_some_local_dynamic_name): Delete.
7542         (rs6000_get_some_local_dynamic_name_1): Delete.
7543         (print_operand): Report an error if '%&' is used inappropriately.
7544         * config/s390/s390.c (machine_function): Remove some_ld_name.
7545         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
7546         (print_operand): Assert that get_some_local_dynamic_name is nonnull.
7547         * config/sparc/sparc.c: Include rtl-iter.h.
7548         (machine_function): Remove some_ld_name.
7549         (sparc_print_operand): Report an error if '%&' is used inappropriately.
7550         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
7551
7552 2014-09-03  Richard Henderson  <rth@redhat.com>
7553
7554         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
7555         (aarch64_popwb_pair_reg): Remove.
7556         (aarch64_set_frame_expr): Remove.
7557         (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
7558         the restore ops performed by the insns generated.
7559         (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
7560         insn.  Perform the calls_eh_return addition later; do not attempt to
7561         preserve the CFA in that case.  Don't use aarch64_set_frame_expr.
7562         (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
7563         special markup at all.  Load cfun->machine->frame.hard_fp_offset
7564         into a local variable.
7565         (aarch64_frame_pointer_required): Don't check calls_alloca.
7566
7567 2014-09-03  Richard Biener  <rguenther@suse.de>
7568
7569         * opts.c (default_options_optimization): Adjust
7570         max-combine-insns to 2 for -Og.
7571
7572 2014-09-03  Martin Jambor  <mjambor@suse.cz>
7573
7574         PR ipa/62015
7575         * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
7576         pass-trough jump functions correctly.
7577
7578 2014-09-03  Martin Jambor  <mjambor@suse.cz>
7579
7580         PR ipa/61986
7581         * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
7582         created replacements in ascending order of offsets.
7583         (known_aggs_to_agg_replacement_list): Likewise.
7584
7585 2014-09-03  Martin Liska  <mliska@suse.cz>
7586
7587         * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
7588         is set to set uninitialized value for vnresult.
7589
7590 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7591
7592         * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
7593         for TARGET_MUST_PASS_IN_STACK.
7594
7595 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7596
7597         * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
7598         for TARGET_ARG_PARTIAL_BYTES.
7599
7600 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7601
7602         * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
7603         instructions for varargs implementation.
7604         (nds32_expand_epilogue): Emit stack adjustment instructions for
7605         varargs implementation.
7606
7607 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7608
7609         * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
7610         optimization detection.
7611
7612 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7613
7614         * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
7615         arguments.
7616         (nds32_function_arg_advance): Deal with nameless arguments.
7617         * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
7618         (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
7619         (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
7620
7621 2014-09-03  Richard Biener  <rguenther@suse.de>
7622
7623         * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
7624         (struct bb_bitmap_sets): Remove deferred member.
7625         (BB_DEFERRED): Remove.
7626         (defer_or_phi_translate_block): Remove.
7627         (compute_antic_aux): Remove deferring of blocks, assert
7628         proper iteration order.
7629         (compute_antic): Do not set BB_DEFERRED.
7630         (eliminate): Allocate el_avail of proper size initially.
7631
7632 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7633
7634         * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
7635         according to the value of crtl->args.pretend_args_size.
7636
7637 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7638
7639         * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
7640         varargs information.
7641
7642 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7643
7644         * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
7645         implementation for TARGET_SETUP_INCOMING_VARARGS.
7646         (nds32_strict_argument_naming): Refine comment.
7647         * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
7648         Define for future implementation.
7649
7650 2014-09-03  Ilya Tocar  <ilya.tocar@intel.com>
7651
7652         * config/i386/adxintrin.h (_subborrow_u32): New.
7653         (_addcarry_u32): Ditto.
7654         (_subborrow_u64): Ditto.
7655         (_addcarry_u64): Ditto.
7656         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
7657         IX86_BUILTIN_SBB64.
7658         (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
7659         __builtin_ia32_sbb_u64
7660
7661 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7662
7663         * config/nds32/nds32.c (nds32_function_arg): Define and rename some
7664         GPR-specific stuff.
7665         (nds32_function_arg_advance): Likewise.
7666         (nds32_init_cumulative_args): Likewise.
7667         * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
7668         (NDS32_FIRST_GPR_REGNUM): Define.
7669         (NDS32_LAST_GPR_REGNUM): Define.
7670         (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
7671         (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
7672         (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
7673         (machine_function): Use GRP-specific stuff.
7674
7675 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7676
7677         * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
7678         (nds32_expand_epilogue): Likewise.
7679         (nds32_expand_prologue_v3push): Likewise.
7680         (nds32_expand_epilogue_v3pop): Likewise.
7681
7682 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7683
7684         * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
7685         v3push/v3pop for variadic function.
7686         * config/nds32/nds32.md (prologue, epilogue): Likewise.
7687
7688 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7689
7690         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
7691         Check rtx for varargs implementation.
7692         (nds32_output_stack_pop): Likewise.
7693         * config/nds32/nds32-protos.h: Have a rtx argument for
7694         nds32_output_stack_push and nds32_output_stack_pop.
7695         * config/nds32/nds32.md: Likewise.
7696
7697 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7698
7699         * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
7700         to check if FUNC is an interrupt service routine.
7701         * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
7702
7703 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7704
7705         * config/nds32/nds32.h (machine_function): Add some fields for variadic
7706         arguments implementation.
7707
7708 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7709
7710         * config/nds32/nds32-predicates.c
7711         (nds32_valid_stack_push_pop): Rename to ...
7712         (nds32_valid_stack_push_pop_p): ... this.
7713         * config/nds32/nds32-protos.h: Likewise.
7714         * config/nds32/predicates.md: Likewise.
7715
7716 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7717
7718         * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
7719         (nds32_emit_stack_v3push): ... this.
7720         (nds32_gen_stack_v3pop): Rename to ...
7721         (nds32_emit_stack_v3pop): ... this and consider CFA restore
7722         information.
7723
7724 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7725
7726         * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
7727         (nds32_emit_stack_push_multiple): ... this.
7728         (nds32_gen_stack_pop_multiple): Rename to ...
7729         (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
7730         information.
7731
7732 2014-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7733
7734         PR target/61078
7735         * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
7736         and add a second splitter to handle the remaining cases.
7737
7738 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7739
7740         * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
7741
7742 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
7743
7744         * cfgexpand.c (label_rtx_for_bb): Change type to
7745         hash_map<basic_block, rtx_code_label *> *.
7746         (expand_gimple_basic_block): Adjust.
7747         (pass_expand::execute): Likewise.
7748
7749 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
7750
7751         * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
7752         config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
7753         config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
7754         config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
7755         config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
7756         config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
7757         stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
7758         of rtx.
7759
7760 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
7761
7762         * alloc-pool.c: Include coretypes.h.
7763         * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
7764         function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
7765         hash_set instead of htab.
7766         * ggc-page.c (in_gc): New variable.
7767         (ggc_free): Do nothing if a collection is taking place.
7768         (ggc_collect): Set in_gc appropriately.
7769         * ggc.h (gt_ggc_mx(const char *)): New function.
7770         (gt_pch_nx(const char *)): Likewise.
7771         (gt_ggc_mx(int)): Likewise.
7772         (gt_pch_nx(int)): Likewise.
7773         * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
7774         (hash_map::hash_entry::pch_nx): Likewise.
7775         (hash_map::hash_entry::pch_nx_helper): Likewise.
7776 (hash_map::hash_map): Adjust.
7777 (hash_map::create_ggc): New function.
7778 (gt_ggc_mx): Likewise.
7779 (gt_pch_nx): Likewise.
7780         * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
7781 (default_hashset_traits::pch_nx): Likewise.
7782 (hash_set::hash_entry::ggc_mx): Likewise.
7783 (hash_set::hash_entry::pch_nx): Likewise.
7784 (hash_set::hash_entry::pch_nx_helper): Likewise.
7785 (hash_set::hash_set): Adjust.
7786 (hash_set::create_ggc): New function.
7787 (hash_set::elements): Likewise.
7788 (gt_ggc_mx): Likewise.
7789 (gt_pch_nx): Likewise.
7790         * hash-table.h (hash_table::hash_table): Adjust.
7791 (hash_table::m_ggc): New member.
7792         (hash_table::~hash_table): Adjust.
7793         (hash_table::expand): Likewise.
7794         (hash_table::empty): Likewise.
7795 (gt_ggc_mx): New function.
7796         (hashtab_entry_note_pointers): Likewise.
7797 (gt_pch_nx): Likewise.
7798
7799 2014-09-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7800
7801         * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE):  New
7802         built-in definition.
7803         (XVCVUXDDP_SCALE): Likewise.
7804         (XVCVDPSXDS_SCALE): Likewise.
7805         (XVCVDPUXDS_SCALE): Likewise.
7806         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):  Add
7807         entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
7808         VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
7809         VSX_BUILTIN_XVCVDPUXDS_SCALE.
7810         * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
7811         prototype.
7812         * config/rs6000/rs6000.c (real.h): New include.
7813         (rs6000_scale_v2df): New function.
7814         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
7815         (UNSPEC_VSX_XVCVUXDDP): Likewise.
7816         (UNSPEC_VSX_XVCVDPSXDS): Likewise.
7817         (UNSPEC_VSX_XVCVDPUXDS): Likewise.
7818         (vsx_xvcvsxddp_scale): New define_expand.
7819         (vsx_xvcvsxddp): New define_insn.
7820         (vsx_xvcvuxddp_scale): New define_expand.
7821         (vsx_xvcvuxddp): New define_insn.
7822         (vsx_xvcvdpsxds_scale): New define_expand.
7823         (vsx_xvcvdpsxds): New define_insn.
7824         (vsx_xvcvdpuxds_scale): New define_expand.
7825         (vsx_xvcvdpuxds): New define_insn.
7826         * doc/extend.texi (vec_ctf): Add new prototypes.
7827         (vec_cts): Likewise.
7828         (vec_ctu): Likewise.
7829         (vec_splat): Likewise.
7830         (vec_div): Likewise.
7831         (vec_mul): Likewise.
7832
7833 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7834
7835         PR target/62275
7836         * config/arm/neon.md
7837         (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
7838         <v_cmp_result>): New pattern.
7839         * config/arm/iterators.md (NEON_VCVT): New int iterator.
7840         * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
7841         vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
7842         vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
7843         * config/arm/arm.c (arm_builtin_vectorized_function): Handle
7844         BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
7845
7846 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7847
7848         PR target/62275
7849         * config/arm/iterators.md (FIXUORS): New code iterator.
7850         (VCVT): New int iterator.
7851         (su_optab): New code attribute.
7852         (su): Likewise.
7853         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
7854
7855 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7856
7857         * config/aarch64/predicates.md (aarch64_comparison_operation):
7858         New special predicate.
7859         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
7860         aarch64_comparison_operation instead of matching an operator.
7861         Update operand numbers.
7862         (csinc3<mode>_insn): Likewise.
7863         (*csinv3<mode>_insn): Likewise.
7864         (*csneg3<mode>_insn): Likewise.
7865         (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
7866         * config/aarch64/aarch64.c (aarch64_get_condition_code):
7867         Return -1 instead of aborting on invalid condition codes.
7868         (aarch64_print_operand): Update aarch64_get_condition_code callsites
7869         to assert that the returned condition code is valid.
7870         * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
7871
7872 2014-09-02  Aldy Hernandez  <aldyh@redhat.com>
7873
7874         * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
7875         tree.def, and gimple.def
7876
7877 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
7878             Balaji V. Iyer  <balaji.v.iyer@intel.com>
7879             Igor Zamyatin  <igor.zamyatin@intel.com>
7880
7881         * cilk-builtins.def (__cilkrts_cilk_for_32): New.
7882         (__cilkrts_cilk_for_64): Likewise.
7883         * cilk-common.c (declare_cilk_for_builtin): New function.
7884         (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
7885         __cilkrts_cilk_for_64 bultins.
7886         * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
7887         CILK_TI_F_LOOP_64.
7888         (cilk_for_32_fndecl): New define.
7889         (cilk_for_64_fndecl): Likewise.
7890         * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
7891         GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
7892         * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
7893         GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
7894         GF_OMP_FOR_COMBINED_INTO.
7895         * gimplify.c (gimplify_scan_omp_clauses): Added
7896         OMP_CLAUSE__CILK_FOR_COUNT_ case.
7897         (gimplify_adjust_omp_clauses): Ditto.
7898         (gimplify_omp_for): Added CILK_FOR case.
7899         (gimplify_expr): Ditto.
7900         * omp-low.c: Include cilk.h.
7901         (extract_omp_for_data): Set appropriate kind for
7902         GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
7903         (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
7904         (create_omp_child_function_name): Added second argument to handle
7905         cilk_for case.
7906         (cilk_for_check_loop_diff_type): New function.
7907         (expand_cilk_for_call): Likewise.
7908         (expand_cilk_for): Likewise.
7909         (create_omp_child_function): Set cilk_for_count; handle the cases when
7910         it is true; call create_omp_child_function_name with second argument.
7911         (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
7912         (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
7913         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
7914         * tree-nested.c (convert_nonlocal_omp_clauses): Added
7915         OMP_CLAUSE__CILK_FOR_COUNT_ case.
7916         (convert_local_omp_clauses): Ditto.
7917         * tree-pretty-print.c (dump_omp_clause): Added
7918         OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
7919         (dump_generic_node): Added CILK_FOR case.
7920         * tree.c (omp_clause_num_ops): New element
7921         OMP_CLAUSE__CILK_FOR_COUNT_ (1).
7922         (omp_clause_code_name): New element _Cilk_for_count_.
7923         (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
7924         * tree.def: Add tree code for CILK_FOR.
7925
7926 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
7927
7928         * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
7929         (ppc403-compare): Add "exts with dot" case.
7930         * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
7931         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
7932         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
7933         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
7934         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
7935         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
7936         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
7937         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
7938         cell-cmp-microcoded): Similarly.
7939         * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
7940         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
7941         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
7942         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
7943         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
7944         * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
7945         * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
7946         * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
7947         (power6-compare): Add "exts with dot" case.
7948         * config/rs6000/power7.md (power7-integer, power7-compare): As before.
7949         * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
7950         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
7951
7952         * config/rs6000/predicates.md (lwa_operand): Don't allow memory
7953         if avoiding Cell microcode.
7954         * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
7955         (is_cracked_insn): Ditto.
7956         (insn_must_be_first_in_group): Ditto.
7957         * config/rs6000/rs6000.md (dot): Adjust comment.
7958         (cell_micro): Handle exts+dot.
7959         (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
7960         *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
7961         extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
7962         (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
7963         extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
7964         *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
7965         *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
7966
7967 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
7968
7969         * config/rs6000/rs6000.md (QHSI): Delete.
7970         (EXTQI, EXTHI, EXTSI): New mode iterators.
7971         (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
7972         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
7973         *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
7974         9 anonymous instructions, and 8 splitters): Delete.
7975         (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
7976         *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
7977         *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
7978         zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
7979         *zero_extendsi<mode>2_dot2): New.
7980
7981 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
7982
7983         * config/rs6000/rs6000.md (any_extend): New code iterator.
7984         (u, su): New code attributes.
7985         (dmode, DMODE): New mode attributes.
7986         (<su>mul<mode>3_highpart): New.
7987         (*<su>mul<mode>3_highpart): New.
7988         (<su>mulsi3_highpart_le): New.
7989         (<su>muldi3_highpart_le): New.
7990         (<su>mulsi3_highpart_64): New.
7991         (<u>mul<mode><dmode>3): New.
7992         (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
7993         splitters): Delete.
7994         (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
7995         splitters): Delete.
7996
7997 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
7998
7999         * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
8000         *mulsi3_internal2, and two splitters): Delete.
8001         (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
8002         Delete.
8003         (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
8004
8005 2014-09-02  Richard Biener  <rguenther@suse.de>
8006
8007         PR tree-optimization/62695
8008         * tree-ssa-structalias.c (find_func_clobbers): Add missing
8009         vector truncate.
8010
8011 2014-09-01  Oleg Endo  <olegendo@gcc.gnu.org>
8012
8013         PR target/62312
8014         * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
8015
8016 2014-09-01  Andi Kleen  <ak@linux.intel.com>
8017
8018         * file-find.c (add_prefix_begin): Add.
8019         (do_add_prefix): Rename from add_prefix with first argument.
8020         (add_prefix): Add new wrapper.
8021         * file-find.h (add_prefix_begin): Add.
8022         * gcc-ar.c (main): Support -B option.
8023
8024 2014-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
8025
8026         * genemit.c: Include dumpfile.h.
8027         (gen_split): Print name of splitter function to dump file.
8028
8029 2014-09-01  Richard Biener  <rguenther@suse.de>
8030
8031         * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
8032         Use stack auto_vecs for constraint expressions.
8033         (find_func_aliases_for_call): Likewise.
8034         (find_func_aliases): Likewise.
8035         (find_func_clobbers): Likewise.
8036
8037 2014-09-01  Richard Biener  <rguenther@suse.de>
8038
8039         * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
8040         operands vector in most cases.  Remove redundant code.
8041
8042 2014-09-01  Olivier Hainque  <hainque@adacore.com>
8043
8044         * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
8045         $WIND_BASE instead of designating a harcoded arbitrary home dir.
8046         (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
8047
8048 2014-09-01  Richard Biener  <rguenther@suse.de>
8049
8050         * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
8051         copy_reference_ops_from_call, vn_nary_op_compute_hash,
8052         vn_reference_compute_hash, vn_reference_insert): Remove.
8053         (vn_reference_lookup_call): New function.
8054         * tree-ssa-sccvn.c (vn_reference_compute_hash,
8055         copy_reference_ops_from_ref, copy_reference_ops_from_call,
8056         vn_reference_insert, vn_nary_op_compute_hash): Make static.
8057         (create_reference_ops_from_call): Remove.
8058         (vn_reference_lookup_3): Properly update shared_lookup_references.
8059         (vn_reference_lookup_pieces): Assert that we updated
8060         shared_lookup_references properly.
8061         (vn_reference_lookup): Likewise.
8062         (vn_reference_lookup_call): New function.
8063         (visit_reference_op_call): Use it.  Avoid re-building the
8064         reference ops.
8065         (visit_reference_op_load): Remove redundant lookup.
8066         (visit_reference_op_store): Perform special tail-merging work
8067         only when possibly doing tail-merging.
8068         (visit_use): Likewise.
8069         * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
8070
8071 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
8072
8073         PR target/62025
8074         * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
8075         returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
8076         (find_inc): Revert 2014-08-13 change.
8077
8078 2014-09-01  Marek Polacek  <polacek@redhat.com>
8079
8080         PR middle-end/61903
8081         * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
8082         Change the type of V to unsigned HOST_WIDE_INT.
8083
8084 2014-09-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8085
8086         * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
8087         the size of byte markers.
8088         (do_shift_rotate): Fix confusion between host, target and marker byte
8089         size.
8090         (verify_symbolic_number_p): Likewise.
8091         (find_bswap_or_nop_1): Likewise.
8092         (find_bswap_or_nop): Likewise.
8093
8094 2014-09-01  Olivier Hainque  <hainque@adacore.com>
8095
8096         * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
8097         INSTALL_SCRIPT and INSTALL_PROGRAM as well.
8098
8099 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
8100
8101         * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
8102         * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
8103         (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
8104
8105 2014-09-01  Yury Gribov  <y.gribov@samsung.com>
8106
8107         PR sanitizer/61897
8108         PR sanitizer/62140
8109         * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
8110         (build_check_stmt): Likewise.
8111         (instrument_strlen_call): Likewise.
8112         (asan_expand_check_ifn): Likewise and fix types.
8113         (maybe_cast_to_ptrmode): New function.
8114
8115 2014-09-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8116
8117         * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
8118
8119 2014-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
8120
8121         * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
8122
8123 2014-08-30  John David Anglin  <danglin@gcc.gnu.org>
8124
8125         * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
8126         prefix to function labels when generating fast indirect calls.
8127
8128 2014-08-30  David Malcolm  <dmalcolm@redhat.com>
8129
8130         PR bootstrap/62304
8131
8132         * gcc/reorg.c (skip_consecutive_labels): Convert return type and
8133         param back from rtx_insn * to rtx.  Rename param from "label" to
8134         "label_or_return", reintroducing "label" as an rtx_insn * after
8135         we've ensured it's not a RETURN.
8136         (first_active_target_insn): Likewise for return type and param;
8137         add a checked cast to rtx_insn * once we've ensured "insn" is not
8138         a RETURN.
8139         (steal_delay_list_from_target): Convert param "pnew_thread" back
8140         from rtx_insn ** to rtx *.  Replace use of JUMP_LABEL_AS_INSN
8141         with JUMP_LABEL.
8142         (own_thread_p): Convert param "thread" back from an rtx_insn * to
8143         an rtx.  Introduce local rtx_insn * "thread_insn" with a checked
8144         cast once we've established we're not dealing with a RETURN,
8145         renaming subsequent uses of "thread" to "thread_insn".
8146         (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
8147         to JUMP_LABEL.
8148         (follow_jumps): Convert return type and param "label" from
8149         rtx_insn * back to rtx.  Move initialization of "value" to after
8150         the handling for ANY_RETURN_P, adding a checked cast there to
8151         rtx_insn *.  Convert local rtx_insn * "this_label" to an rtx and
8152         rename to "this_label_or_return", reintroducing "this_label" as
8153         an rtx_insn * once we've handled the case where it could be an
8154         ANY_RETURN_P.
8155         (fill_slots_from_thread): Rename param "thread" to
8156         "thread_or_return", converting from an rtx_insn * back to an rtx.
8157         Reintroduce name "thread" as an rtx_insn * local with a checked
8158         cast once we've handled the case of it being an ANY_RETURN_P.
8159         Convert local "new_thread" from an rtx_insn * back to an rtx.
8160         Add a checked cast when assigning to "trial" from "new_thread".
8161         Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL.  Add a
8162         checked cast to rtx_insn * from "new_thread" when invoking
8163         get_label_before.
8164         (fill_eager_delay_slots): Convert locals "target_label",
8165         "insn_at_target" from rtx_insn * back to rtx.
8166         Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
8167         (relax_delay_slots): Convert locals "trial", "target_label" from
8168         rtx_insn * back to rtx.  Convert uses of JUMP_LABEL_AS_INSN back
8169         to JUMP_LABEL.  Add a checked cast to rtx_insn * on "trial" when
8170         invoking update_block.
8171         (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
8172         JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
8173
8174         * resource.h (mark_target_live_regs): Undo erroneous conversion
8175         of second param of r214693, converting it back from rtx_insn * to
8176         rtx, since it could be a RETURN.
8177
8178         * resource.c (find_dead_or_set_registers): Similarly, convert
8179         param "jump_target" back from an rtx_insn ** to an rtx *, as we
8180         could be writing back a RETURN.  Rename local rtx_insn * "next" to
8181         "next_insn", and introduce "lab_or_return" as a local rtx,
8182         handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
8183         (mark_target_live_regs): Undo erroneous conversion
8184         of second param of r214693, converting it back from rtx_insn * to
8185         rtx, since it could be a RETURN.  Rename it from "target" to
8186         "target_maybe_return", reintroducing the name "target" as a local
8187         rtx_insn * with a checked cast, after we've handled the case of
8188         ANY_RETURN_P.
8189
8190 2014-08-29  DJ Delorie  <dj@redhat.com>
8191
8192         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
8193         pointer size up to a power of two.
8194         * defaults.h (DWARF2_ADDR_SIZE): Round up.
8195         (POINTER_SIZE_UNITS): New, rounded up value.
8196         * dwarf2asm.c (size_of_encoded_value): Use it.
8197         (dw2_output_indirect_constant_1): Likewise.
8198         * expmed.c (init_expmed_one_conv): We now know the sizes of
8199         partial int modes.
8200         * loop-iv.c (iv_number_of_iterations): Use precision, not size.
8201         * optabs.c (expand_float): Use precision, not size.
8202         (expand_fix): Likewise.
8203         * simplify-rtx (simplify_unary_operation_1): Likewise.
8204         * tree-dfa.c (get_ref_base_and_extent): Likewise.
8205         * varasm.c (assemble_addr_to_section): Round up pointer sizes.
8206         (default_assemble_integer) Likewise.
8207         (dump_tm_clone_pairs): Likewise.
8208         * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
8209         * var-tracking.c (adjust_mems): Allow partial-int modes also.
8210         (prepare_call_arguments): Likewise.
8211         * stor-layout.c (finalize_type_size): Preserve precision.
8212         (layout_type): Use precision, not size.
8213
8214         * expr.c (convert_move): If the target has an explicit converter,
8215         use it.
8216
8217 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
8218
8219         * gdbinit.in: Skip various inline functions in rtl.h when
8220         stepping.
8221
8222 2014-08-29  Richard Sandiford  <richard.sandiford@arm.com>
8223
8224         PR bootstrap/62301
8225         * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
8226
8227 2014-08-29  Richard Biener  <rguenther@suse.de>
8228
8229         PR tree-optimization/62291
8230         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
8231         exactly the vector size needed and use quick_push.
8232         (phi_translate_1): Adjust comment.
8233         (valid_in_sets): Remove block argument and remove pointless
8234         checking of NAMEs.
8235         (dependent_clean): Adjust for removal of block argument.
8236         (clean): Likewise.
8237         (compute_antic_aux): Likewise.
8238         (compute_partial_antic_aux): Likewise.
8239
8240 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8241             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8242             Anna Tikhonova  <anna.tikhonova@intel.com>
8243             Ilya Tocar  <ilya.tocar@intel.com>
8244             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8245             Ilya Verbin  <ilya.verbin@intel.com>
8246             Kirill Yukhin  <kirill.yukhin@intel.com>
8247             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8248
8249         * config/i386/sse.md
8250         (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
8251         (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
8252         (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
8253         (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
8254
8255 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8256             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8257             Anna Tikhonova  <anna.tikhonova@intel.com>
8258             Ilya Tocar  <ilya.tocar@intel.com>
8259             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8260             Ilya Verbin  <ilya.verbin@intel.com>
8261             Kirill Yukhin  <kirill.yukhin@intel.com>
8262             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8263
8264         * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
8265         * config/i386/sse.md
8266         (define_mode_iterator VI4_128_8_256): New.
8267         (define_mode_iterator VI2_128_4_256): Ditto.
8268         (define_mode_iterator PMOV_DST_MODE): Rename into
8269         (define_mode_iterator PMOV_DST_MODE_1): this.
8270         (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
8271         Use PMOV_DST_MODE_1 mode iterator.
8272         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
8273         Ditto.
8274         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
8275         Ditto.
8276         (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
8277         (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
8278         (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
8279         (define_mode_iterator PMOV_DST_MODE_2): New.
8280         (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
8281         (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
8282         (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
8283         Ditto.
8284         (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
8285         (define_mode_attr pmov_dst_3): Ditto.
8286         (define_mode_attr pmov_dst_zeroed_3): Ditto.
8287         (define_mode_attr pmov_suff_3): Ditto.
8288         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
8289         (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
8290         (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
8291         (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
8292         (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
8293         (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
8294         (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
8295         (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
8296         (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
8297         (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
8298         (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
8299         (define_mode_attr pmov_dst_4): Ditto.
8300         (define_mode_attr pmov_dst_zeroed_4): Ditto.
8301         (define_mode_attr pmov_suff_4): Ditto.
8302         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
8303         (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
8304         (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
8305         (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
8306         (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
8307         (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
8308         (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
8309         (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
8310         (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
8311         (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
8312         (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
8313
8314 2014-08-29  Richard Biener  <rguenther@suse.de>
8315
8316         * tree-cfg.c (verify_gimple_assign_unary): Do not allow
8317         NON_LVALUE_EXPR in gimple.
8318
8319 2014-08-29  Richard Biener  <rguenther@suse.de>
8320
8321         PR middle-end/62292
8322         * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
8323         from previous refactoring.
8324         (gimple_fold_builtin_strncpy): Likewise.
8325
8326 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
8327
8328         PR bootstrap/62300
8329         * function.c (assign_parm_setup_reg): Remove erroneous checked
8330         cast to rtx_insn * on result of gen_extend_insn in favor of
8331         introducing a new local rtx "pat".
8332
8333 2014-08-29  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8334
8335         * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
8336         to silence warning.
8337         * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
8338
8339 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8340
8341         * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
8342         (next_insn): Likewise.
8343         * emit-rtl.c (next_insn): Likewise.
8344         (previous_insn): Likewise.
8345         * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
8346         "insn" and "next" from rtx to rtx_insn *.
8347         * config/picochip/picochip.c (picochip_reorg): Likewise for locals
8348         "insn", "insn1", "vliw_start",  "prologue_end_note",
8349         "last_insn_in_packet".
8350
8351 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8352
8353         * shrink-wrap.h (active_insn_between): Strengthen both params from
8354         rtx to rtx_insn *.
8355         * function.c (active_insn_between): Likewise.
8356
8357 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8358
8359         * genattr.c (main): When writing out insn-attr.h, strengthen param
8360         of dfa_clear_single_insn_cache from rtx to rtx_insn *.
8361         * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
8362         writing out the definition of dfa_clear_single_insn_cache to the
8363         generated insn-automata.c
8364
8365 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8366
8367         * resource.h (clear_hashed_info_for_insn): Strengthen param from
8368         rtx to rtx_insn *.
8369         (incr_ticks_for_insn): Likewise.
8370         (init_resource_info): Likewise.
8371
8372         * resource.c (init_resource_info): Likewise.
8373         (clear_hashed_info_for_insn): Likewise.
8374         (incr_ticks_for_insn): Likewise.
8375
8376         * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
8377         rtx to rtx_insn *.
8378         (steal_delay_list_from_target): Use methods of "seq".
8379         (try_merge_delay_insns): Use methods of "merged_insns".
8380         (update_block): Strengthen param "insn" from rtx to rtx_insn *.
8381         (reorg_redirect_jump): Likewise for param "jump".
8382
8383 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8384
8385         * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
8386         rtx to rtx_insn *.
8387         * config/s390/s390.c (s390_split_branches): Eliminate top-level
8388         local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
8389         "set_insn".
8390         (s390_mainpool_finish): In three places, split out a local rtx
8391         "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
8392         "insn".  Strengthen local "pool_end" from rtx to rtx_code_label *
8393         and split another local rtx "insn" out into rtx "pat" and
8394         rtx_insn * "insn".
8395         * config/sh/sh.c (output_branchy_insn): Rather than working
8396         directly on operands[9], introduce local rtx_code_label *
8397         variables named "lab" in two places, working on them, and then
8398         assigning them to operands[9], so that the intervening operations
8399         are known by the type system to be on insns.
8400
8401 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8402
8403         * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
8404         const rtx_insn *.
8405
8406         * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
8407         in invocation of INSN_HAS_LOCATION.
8408
8409 2014-08-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8410
8411         * config/rs6000/altivec.h (vec_xl): New #define.
8412         (vec_xst): Likewise.
8413         * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
8414         (XXSPLTD_V2DI): Likewise.
8415         (DIV_V2DI): Likewise.
8416         (UDIV_V2DI): Likewise.
8417         (MUL_V2DI): Likewise.
8418         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8419         entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
8420         VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
8421         VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
8422         * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
8423         (UNSPEC_VSX_DIVSD): Likewise.
8424         (UNSPEC_VSX_DIVUD): Likewise.
8425         (UNSPEC_VSX_MULSD): Likewise.
8426         (vsx_mul_v2di): New insn-and-split.
8427         (vsx_div_v2di): Likewise.
8428         (vsx_udiv_v2di): Likewise.
8429         (vsx_xxspltd_<mode>): New insn.
8430
8431 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8432
8433         * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
8434         NEXT_INSN.
8435         (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
8436         (NEXT_INSN): Likewise.
8437         (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
8438         (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
8439         const rtx_insn *.
8440         (no_labels_between_p): Likewise for both params.
8441
8442         * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
8443         cast when using NEXT_INSN on operands[2].
8444         * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
8445         "insn" from rtx to rtx_insn *, adding a checked cast.
8446         (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
8447         rtx_insn *.
8448         * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
8449         for third param.
8450         (arc_text_label): Likewise for param "insn".
8451         * config/arc/arc.c (arc_expand_epilogue): Likewise for local
8452         "insn".
8453         (arc_ccfsm_record_condition): Likewise for param "jump".
8454         (arc_text_label): Likewise for local "label".
8455         * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
8456         Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
8457         a method for typesafety.  Add a checked cast.
8458         * config/arc/constraints.md (Clb): Add a checked cast when getting
8459         the CODE_LABEL from a LABEL_REF.
8460         * config/arm/arm.c (require_pic_register): Strengthen locals
8461         "seq", "insn" from rtx to rtx_insn *.
8462         (create_fix_barrier): Likewise for locals "selected", "next".
8463         (thumb1_reorg): Likewise for locals "prev", "insn".
8464         (arm_expand_prologue): Likewise for local "last".
8465         (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
8466         operands[0].
8467         (thumb2_output_casesi): Likewise for operands[2].
8468         * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
8469         strengthen local "insn" from rtx to rtx_insn *.
8470         * config/bfin/bfin.c (find_next_insn_start): Likewise for return
8471         type and param "insn".
8472         (find_prev_insn_start): Likewise.
8473         (hwloop_optimize): Likewise for locals "insn", "last_insn",
8474         "prev".
8475         (gen_one_bundle): Likewise for loal "t".
8476         (find_load): Likewise for param "insn".
8477         (workaround_speculation): Likewise for locals "insn", "next",
8478         "target", "next_tgt".
8479         * config/c6x/c6x.c (assign_reservations): Likewise for both params
8480         and for locals "insn", "within", "last".
8481         (count_unit_reqs): Likewise for params "head", "tail" and local
8482         "insn".
8483         (try_rename_operands): Likewise for params "head", "tail".
8484         (reshuffle_units): Likewise for locals "head", "tail", "insn".
8485         (struct c6x_sched_context): Likewise for fields
8486         "last_scheduled_insn", "last_scheduled_iter0".
8487         (init_sched_state): Replace NULL_RTX with NULL.
8488         (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
8489         to rtx_insn *.
8490         (undo_split_delayed_nonbranch): Likewise for param and for local
8491         "prev".
8492         (conditionalize_after_sched): Likewise for local "insn".
8493         (bb_earliest_end_cycle): Likewise.
8494         (filter_insns_above): Likewise for locals "insn", "next".
8495         (hwloop_optimize): Remove redundant checked cast.
8496         (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
8497         * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
8498         NULL_RTX with NULL.
8499         (cris_simple_epilogue): Likewise.
8500         (cris_expand_prologue): Likewise.
8501         (cris_expand_epilogue): Likewise.
8502         * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
8503         local "insn" from rtx to rtx_insn *.
8504         (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
8505         (struct frv_packet_group): Likewise for the elements within array
8506         fields "insns", "sorted", and for field "nop".
8507         (frv_packet): Likewise for the elements within array field
8508         "insns".
8509         (frv_add_insn_to_packet): Likewise for param "insn".
8510         (frv_insert_nop_in_packet): Likewise for param "insn" and local
8511         "last".
8512         (frv_for_each_packet): Likewise for locals "insn", "next_insn".
8513         (frv_sort_insn_group_1): Likewise for local "insn".
8514         (frv_optimize_membar_local): Likewise.
8515         (frv_align_label): Likewise for locals "x", "last", "barrier",
8516         "label".
8517         * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
8518         local.
8519         (ia64_sched_init): Likewise for local "insn".
8520         (scheduled_good_insn): Likewise for param "last".
8521         (struct _ia64_sched_context): Likewise for field
8522         "last_scheduled_insn".
8523         (ia64_init_sched_context): Replace NULL_RTX with NULL.
8524         (struct bundle_state): Likewise for field "insn".
8525         (issue_nops_and_insn): Likewise for param "insn".
8526         (get_next_important_insn): Likewise for return type and both
8527         params.
8528         (ia64_add_bundle_selector_before): Likewise for param "insn".
8529         (bundling): Likewise for params "prev_head_insn", "tail" and
8530         locals "insn", "next_insn", "b".  Eliminate top-level local rtx
8531         "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
8532         * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
8533         Strengthen final param from rtx to rtx_insn *.
8534         (iq2000_move_1word): Likewise for second param.
8535         * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
8536         param "cur_insn" and local "next_insn".
8537         (iq2000_move_1word): Likewise for param "insn".
8538         * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
8539         casts when using NEXT_INSN on operands[1].
8540         * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
8541         "insn" from rtx to rtx_insn *.
8542         * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
8543         "x", introducing local rtx_insn * "insn" for when working with the
8544         CODE_LABEL of the LABEL_REF.
8545         (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
8546         rtx_insn *.
8547         * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
8548         param.
8549         * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
8550         type.
8551         (conditionalize_block): Likewise for return type and param.
8552         (mcore_is_dead): Likewise for param "first" and local "insn".
8553         (emit_new_cond_insn): Likewise for return type.
8554         (conditionalize_block): Likewise for return type, param, and
8555         locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
8556         "newinsn".
8557         (conditionalize_optimization): Likewise for local "insn".
8558         * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
8559         using NEXT_INSN.
8560         * config/microblaze/microblaze.md: Add checked casts when using
8561         NEXT_INSN.
8562         * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
8563         rtx "insn" in favor of various more tightly-scoped rtx "insn" and
8564         and rtx_insn * "insn".
8565         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
8566         checked cast when using NEXT_INSN on operands[2].
8567         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
8568         local "insn" from rtx to rtx_insn *.
8569         * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
8570         Likewise.
8571         * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
8572         Add a checked cast when using NEXT_INSN on operands[1].
8573         * config/pa/pa-protos.h (pa_following_call): Strengthen param from
8574         rtx to rtx_insn *.
8575         (pa_output_cbranch): Likewise for final param.
8576         (pa_output_lbranch): Likewise for second param.
8577         (pa_output_bb): Likewise for third param.
8578         (pa_output_bvb): Likewise.
8579         (pa_output_dbra): Likewise for second param.
8580         (pa_output_movb): Likewise.
8581         (pa_output_parallel_movb): Likewise.
8582         (pa_output_parallel_addb): Likewise.
8583         (pa_output_millicode_call): Likewise for first param.
8584         (pa_output_mul_insn): Likewise for second param.
8585         (pa_output_div_insn): Likewise for third param.
8586         (pa_output_mod_insn): Likewise for second param.
8587         (pa_jump_in_call_delay): Likewise for param.
8588         * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
8589         (pa_output_div_insn): Likewise.
8590         (pa_output_mod_insn): Likewise.
8591         (pa_output_cbranch): Likewise.
8592         (pa_output_lbranch): Likewise.
8593         (pa_output_bb): Likewise.
8594         (pa_output_bvb): Likewise.
8595         (pa_output_dbra): Likewise.
8596         (pa_output_movb): Likewise.
8597         (pa_output_millicode_call): Likewise; use method of rtx_sequence *
8598         to simplify and for typesafety.
8599         (pa_output_call): Use method of rtx_sequence *.
8600         (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
8601         (pa_jump_in_call_delay): Likewise.
8602         (pa_output_parallel_movb): Likewise.
8603         (pa_output_parallel_addb): Likewise.
8604         (pa_following_call): Likewise.
8605         (pa_combine_instructions): Likewise for locals "anchor",
8606         "floater".
8607         (pa_can_combine_p): Likewise for params "anchor", "floater" and
8608         locals "start", "end".
8609         * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
8610         param "insn" and local "local_insn".
8611         (picochip_final_prescan_insn): Likewise for local "local_insn".
8612         * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
8613         local "insn".
8614         (uses_TOC): Likewise.
8615         * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
8616         (s390_mainpool_finish): Eliminate top-level local rtx "insn",
8617         splitting out to more tightly-scoped locals, 3 as rtx and one as
8618         rtx_insn *.
8619         (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
8620         to rtx_insn *.
8621         (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
8622         where needed.
8623         * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
8624         to rtx_insn *.
8625         (fixup_addr_diff_vecs): Likewise.
8626         (reg_unused_after): Likewise for param 2.
8627         (sh_can_redirect_branch): Likewise for both params.
8628         (check_use_sfunc_addr): Likewise for param 1.
8629         * config/sh/sh.c (fixup_mova): Likewise for local "worker".
8630         (find_barrier): Likewise for local "last_got".
8631         (gen_block_redirect): Likewise for return type, param "jump" and
8632         locals "prev", "scan", "next", "insn".
8633         (struct far_branch): Likewise for fields "near_label",
8634         "insert_place", "far_label".
8635         (gen_far_branch): Likewise for local "jump".
8636         (fixup_addr_diff_vecs): Likewise for param "first" and locals
8637         "insn", "prev".
8638         (barrier_align): Likewise for param and for locals "prev", "x".
8639         Introduce local rtx_sequence * "prev_seq" and use insn method for
8640         typesafety and clarity.
8641         (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
8642         (get_dest_uid): Likewise for local "dest".
8643         (split_branches): Likewise for locals "next", "beyond", "label",
8644         "block", "far_label".  Add checked casts when assigning to
8645         bp->far_label and "far_label".
8646         (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
8647         (sequence_insn_p): Likewise.
8648         (mark_constant_pool_use): Likewise for locals "insn", "lab".  Add a
8649         more loop-scoped rtx "insn" when walking LABEL_REFS.
8650         (sh_can_redirect_branch): Strengthen both params from rtx to
8651         rtx_insn *.
8652         (check_use_sfunc_addr): Likewise for param "insn".  Introduce a
8653         new local rtx_sequence * "seq" via a dyn_cast, and use a method
8654         for clarity and typesafety.
8655         * config/sh/sh.md (define_expand "epilogue"): Strengthen local
8656         "insn" from rtx to rtx_insn *.
8657         (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
8658         when using NEXT_INSN on the CODE_LABEL in operands[2].
8659         (define_insn "casesi_worker_2"): Likewise.
8660         (define_insn "casesi_shift_media"): Likewise.
8661         (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
8662         operands[3].
8663         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
8664         Strengthen field "insn" from rtx to rtx_insn *.
8665         (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
8666         (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
8667         param "start_insn" and local "start_insn".
8668         * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
8669         field "insn".
8670         (find_set_of_reg_bb): Likewise for param "insn".
8671         (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
8672         (trace_reg_uses): Likewise for param "start_insn".
8673         (sh_treg_combine::cbranch_trace): Likewise for field
8674         "cbranch_insn".
8675         (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
8676         param "insn".
8677         (sh_treg_combine::record_set_of_reg): Likewise for param
8678         "start_insn" and local "i".
8679         (sh_treg_combine::can_remove_cstore): Likewise for local
8680         "prev_insn".
8681         (sh_treg_combine::try_optimize_cbranch): Likewise for param
8682         "insn".
8683         (sh_treg_combine::execute): Likewise for local "i".
8684         * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
8685         param.
8686         (sparc_check_64): Likewise for second param.
8687         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
8688         locals "insn", "next".  Introduce local rtx_sequence * "seq" via a
8689         dyn_cast, using its insn method for typesafety and clarity.
8690         (empty_delay_slot): Strengthen param "insn" from rtx to
8691         rtx_insn *.
8692         (set_extends): Likewise.
8693         (sparc_check_64): Likewise.
8694         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
8695         for locals "seq", "last_insn".
8696         (combine_bnp): Likewise for param "insn".
8697         (xstormy16_reorg): Likewise for local "insn".
8698         * config/v850/v850.c (substitute_ep_register): Likewise for params
8699         "first_insn", "last_insn" and local "insn".
8700         (v850_reorg): Likewise for fields "first_insn", "last_insn" within
8701         elements of "regs" array, and local "insn".
8702         * except.c (emit_note_eh_region_end): Likewise for param "insn".
8703         * final.c (final_sequence): Strengthen this global from rtx to
8704         rtx_sequence *.
8705         (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
8706         rtx_insn *.
8707         (final_scan_insn): Update assignment to "final_sequence" to be
8708         from "seq", the cast version of "body", for type-safety.
8709         * function.c (assign_parm_setup_reg): Strengthen locals "insn",
8710         "insns" from rtx to rtx_insn *.
8711         (thread_prologue_and_epilogue_insns): Likewise for local "seq".
8712         * genattr.c (main): When writing out generated insn-attr.h,
8713         strengthen params 1 and 3 of eligible_for_delay,
8714         eligible_for_annul_true, eligible_for_annul_false from rtx to
8715         rtx_insn *.
8716         * genattrtab.c (write_eligible_delay): Likewise when writing out
8717         generated insn-attrtab.c; also local "insn" the generated
8718         functions.
8719         * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
8720         to rtx_insn *.
8721         * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
8722         "start_label" from rtx to rtx_insn *.
8723         * ira.c (decrease_live_ranges_number): Likewise for local "p".
8724         (ira_update_equiv_info_by_shuffle_insn): Likewise for param
8725         "insns" and local "insn".
8726         (validate_equiv_mem): Likewise for param "start" and local "insn".
8727         (memref_used_between_p): Likewise for params "start", "end" and
8728         local "insn".
8729         * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
8730         final param.
8731         * loop-doloop.c (doloop_optimize): Within region guarded by
8732         INSN_P (doloop_pat), introduce a new local rtx_insn *
8733         "doloop_insn" via a checked cast, and use it for typesafety,
8734         eventually writing the value back into doloop_pat.
8735         * output.h (final_sequence): Strengthen this global from rtx to
8736         rtx_sequence *.
8737         * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
8738         reintroducing "insn" as an rtx_insn * via a checked cast.
8739         Strengthen param "attempt" and local "new_insn"from rtx to
8740         rtx_insn *.
8741         (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
8742         to rtx_insn *.
8743         * ree.c (emit_note_eh_region_end): Likewise for local "insn".
8744         * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
8745         "p" in favor of more tightly-scoped replacements, sometimes rtx
8746         and sometimes rtx_insn *, as appropriate.
8747         (delete_output_reload): Eliminate top-level rtx "i1", splitting
8748         into two loop-scoped locals, one an rtx, the other an rtx_insn *.
8749         * reorg.c (delete_scheduled_jump): Add checked cast.  Strengthen
8750         local "trial" from rtx to rtx_insn *.
8751         (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
8752         rtx to rtx_insn *.  Strenghten local "pat" from rtx to
8753         rtx_sequence * and use methods for clarity and typesafety.
8754         (redirect_with_delay_list_safe_p): Strengthen param "jump" from
8755         rtx to rtx_insn *.  Strenghten local "li" from rtx to
8756         rtx_insn_list * and use its methods for clarity and typesafety.
8757         (steal_delay_list_from_target): Strengthen param "insn" from rtx
8758         to rtx_insn *.
8759         (steal_delay_list_from_fallthrough): Likewise.
8760         (try_merge_delay_insns): Likewise for param "thread" and locals
8761         "trial", "next_trial", "delay_insn".
8762         (redundant_insn): Likewise for param "target" and local "trial".
8763         (own_thread_p): Likewise for param "thread" and locals
8764         "active_insn", "insn".
8765         (get_label_before): Likewise for param "insn".
8766         (fill_simple_delay_slots): Likewise for local "new_label"; use
8767         JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
8768         (label_before_next_insn): Strengthen return type and local "insn"
8769         from rtx to rtx_insn *.
8770         (relax_delay_slots): Likewise for locals "other", "tmp".
8771         (make_return_insns): Likewise for param "first" and locals "insn",
8772         "jump_insn", "prev".  Move declaration of "pat" to its assignment
8773         and strengthen from rtx to rtx_sequence *.  Use its methods for
8774         clarity and typesafety.
8775         * rtlanal.c (no_labels_between_p): Strengthen params from
8776         const_rtx to const rtx_insn *.  Strengthen local "p" from rtx to
8777         rtx_insn *.
8778         (reg_used_between_p): Strengthen params "from_insn", "to_insn"
8779         from const_rtx to const rtx_insn *.
8780         (reg_set_between_p): Rename param "from_insn" to
8781         "uncast_from_insn", and reintroduce "from_insn" as a
8782         const rtx_insn * via a checked cast.
8783         (modified_between_p): Likewise for param "start" as "uncast_start".
8784         (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
8785         * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
8786         "tmp", head" from rtx to rtx_insn *.
8787         (recompute_rev_top_order): Likewise for local "insn".
8788         * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
8789         * store-motion.c (build_store_vectors): Likewise for local "insn".
8790         Strengthen local "st" from rtx to rtx_insn_list * and use methods
8791         for clarity and typesafety.
8792         * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
8793         rtx to rtx_insn *.
8794         (computation_cost): Likewise for local "seq".
8795         (get_address_cost): Likewise.
8796
8797 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8798
8799         * rtl.h (tablejump_p): Strengthen first param from const_rtx to
8800         const rtx_insn *.
8801         (label_is_jump_target_p): Likewise for second param.
8802
8803         * rtlanal.c (tablejump_p): Likewise for param "insn".
8804         (label_is_jump_target_p): Likewise for param "jump_insn".
8805
8806 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8807
8808         * rtl.h (find_first_parameter_load): Strengthen return type and
8809         both params from rtx to rtx_insn *.
8810         * rtlanal.c (find_first_parameter_load): Strengthen return type,
8811         both params and locals "before", "first_set" from rtx to
8812         rtx_insn *.  Remove now-redundant cast.
8813         * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
8814
8815 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8816
8817         * rtl.h (find_last_value): Delete.
8818         * rtlanal.c (find_last_value): Delete.
8819
8820 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8821
8822         * cfgexpand.c (pass_expand::execute): Strengthen local "after"
8823         from rtx to rtx_insn *.
8824         * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
8825         rtx "note" with new local rtx_insn * "new_head" when calculating
8826         head insn of new basic block.
8827         * combine.c (combine_split_insns): Strengthen return type and local
8828         "ret" from rtx to rtx_insn *.
8829         (likely_spilled_retval_p): Likewise for locals "use" and "p".
8830         (try_combine): Eliminate local "m_split", splitting into new
8831         locals "m_split_insn" and "m_split_pat".
8832         (find_split_point): Strengthen local "seq" from rtx into
8833         rtx_insn *.
8834         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
8835         locals "label", "branch".
8836         * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
8837         for local "insn".
8838         (define_expand "umulsi3_highpart"): Likewise for local "insn".
8839         * dse.c (note_add_store_info): Likewise for fields "first",
8840         "current".
8841         (note_add_store): Likewise for local "insn".
8842         (emit_inc_dec_insn_before): Likewise for locals "insn",
8843         "new_insn", "cur".
8844         (find_shift_sequence): Likewise for locals "shift_seq", "insn".
8845         (replace_read): Likewise for locals "insns", "this_insn".
8846         * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
8847         (notice_eh_throw): Likewise for param "insn".
8848         (before_next_cfi_note): Likewise for return type, param, and local
8849         "prev".
8850         (connect_traces): Likewise for local "note".
8851         * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
8852         (verify_rtl_sharing): Likewise.
8853         (unshare_all_rtl_in_chain): Likewise for param "insn".
8854         (get_first_nonnote_insn): Likewise for local "insn".
8855         (get_last_nonnote_insn): Likewise.  Introduce local rtx_sequence *
8856         "seq" and use its methods to clarify things.
8857         (next_insn): Strengthen return type from rtx to rtx_insn *.
8858         Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
8859         local rtx_insn * using a checked cast, dropping a checked cast
8860         made redundant by this change.  Use a cast to and method of
8861         rtx_sequence to clarify the code.
8862         (previous_insn): Rename param "insn" to "uncast_insn" and
8863         reintroduce "insn" as a local rtx_insn * using a checked cast,
8864         dropping a checked cast made redundant by this change.  Use a cast
8865         to and method of rtx_sequence to clarify the code.
8866         (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
8867         reintroduce "insn" as a local rtx_insn * using a checked cast,
8868         dropping a checked cast made redundant by this change.
8869         (next_nonnote_insn_bb): Likewise.
8870         (prev_nonnote_insn): Likewise.
8871         (prev_nonnote_insn_bb): Likewise.
8872         (next_nondebug_insn): Likewise.
8873         (prev_nondebug_insn): Likewise.
8874         (next_nonnote_nondebug_insn): Likewise.
8875         (prev_nonnote_nondebug_insn): Likewise.
8876         (next_real_insn): Likewise.
8877         (prev_real_insn): Likewise.
8878         (next_active_insn): Likewise.
8879         (prev_active_insn): Likewise.
8880         (next_cc0_user): Likewise.  Use rtx_sequence and a method for
8881         clarity.
8882         (prev_cc0_setter): Likewise.
8883         (try_split): Rename param "trial" to "uncast_trial" and
8884         reintroduce "insn" as a local rtx_insn * using a checked cast,
8885         dropping checked casts made redundant by this change.
8886         Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
8887         rtx to rtx_insn *.
8888         (remove_insn): Rename param "insn" to "uncast_insn" and
8889         reintroduce "insn" as a local rtx_insn * using a checked cast.
8890         (emit_pattern_after_setloc): Likewise for param "after", as
8891         "uncast_after".
8892         (emit_pattern_after): Likewise.  Strengthen local "prev" from
8893         rtx to rtx_insn *.
8894         (emit_pattern_before_setloc): Rename param "before" to
8895         "uncast_before" and reintroduce "before" as a local rtx_insn *
8896         using a checked cast.  Strengthen locals "first", "last" from
8897         rtx to rtx_insn *.
8898         (emit_pattern_before): Likewise rename/cast param "before" to
8899         "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
8900         * except.c (copy_reg_eh_region_note_forward): Strengthen param
8901         "first" and local "insn" from rtx to rtx_insn *.
8902         (copy_reg_eh_region_note_backward): Likewise for param "last"
8903         and local "insn".
8904         * expr.c (fixup_args_size_notes): Rename param "last" to
8905         "uncast_last" and reintroduce "last" as a local rtx_insn *
8906         using a checked cast.  Strengthen local "insn" from rtx to
8907         rtx_insn *.
8908         * function.c (set_insn_locations): Strengthen param "insn" from
8909         rtx to rtx_insn *.
8910         (record_insns): Likewise for param "insns" and local "tmp".
8911         (active_insn_between): Rename param "tail" to
8912         "uncast_tail" and reintroduce "tail" as a local rtx_insn *
8913         using a checked cast.
8914         (thread_prologue_and_epilogue_insns): Split out top-level local
8915         rtx "seq" into three different rtx_insn * locals.  Strengthen
8916         local "prologue_seq" from rtx to rtx_insn *.
8917         * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
8918         from rtx to rtx_insn *.
8919         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
8920         (priority): Likewise for locals "prev_first", "twin".
8921         (setup_insn_max_reg_pressure): Likewise for param "after".
8922         (sched_setup_bb_reg_pressure_info): Likewise.
8923         (no_real_insns_p): Strengthen params from const_rtx to
8924         const rtx_insn *.
8925         (schedule_block): Strengthen local "next_tail" from rtx to
8926         rtx_insn *.
8927         * ifcvt.c (find_active_insn_before): Strengthen return type and
8928         param "insn" from rtx to rtx_insn *.
8929         (find_active_insn_after): Likewise.
8930         (cond_exec_process_insns): Likewise for param "start" and local "insn".
8931         (cond_exec_process_if_block): Likewise for locals "then_start",
8932         "then_end", "else_start", "else_end", "insn", "start", "end", "from".
8933         (noce_process_if_block): Likewise for local "jump".
8934         (merge_if_block): Likewise for two locals named "end".
8935         (cond_exec_find_if_block): Likewise for local "last_insn".
8936         * jump.c (delete_related_insns): Rename param "insn" to
8937         "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
8938         checked cast.  Strengthen local "p" from rtx to rtx_insn *.
8939         * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
8940         NULL.
8941         (split_reg): Likewise.
8942         * lra.c (lra_process_new_insns): Likewise.
8943         * modulo-sched.c (permute_partial_schedule): Strengthen param
8944         "last" from rtx to rtx_insn *.
8945         * optabs.c (add_equal_note): Likewise for param "insns" and local
8946         "last_insn".
8947         (expand_binop_directly): Add checked casts to rtx_insn * within
8948         NEXT_INSN (pat) uses.
8949         (expand_unop_direct): Likewise.
8950         (maybe_emit_unop_insn): Likewise.
8951         * recog.c (peep2_attempt): Strengthen locals "last",
8952         "before_try", "x" from rtx to rtx_insn *.
8953         * reorg.c (optimize_skip): Strengthen return type and local
8954         "delay_list" from rtx to rtx_insn_list *.  Strengthen param "insn"
8955         and locals "trial", "next_trial" from rtx to rtx_insn *.
8956         * resource.c (next_insn_no_annul): Strengthen return type and
8957         param "insn" from rtx to rtx_insn *.  Use a cast to and method of
8958         rtx_sequence to clarify the code.
8959         (mark_referenced_resources): Add a checked cast to rtx_insn *
8960         within PREV_INSN (x).
8961         (find_dead_or_set_registers): Strengthen return type, param
8962         "target", locals "insn", "next", "jump_insn", "this_jump_insn"
8963         from rtx to rtx_insn *.  Strengthen param "jump_target" from rtx *
8964         to rtx_insn **.
8965         (mark_target_live_regs): Strengthen params "insns" and "target",
8966         locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
8967         to rtx_insn *.  Use cast to and method of rtx_sequence to clarify
8968         the code.
8969         * resource.h (mark_target_live_regs): Strengthen params 1 and 2
8970         from rtx to rtx_insn *.
8971         * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
8972         from rtx to rtx_insn *.
8973         (copy_reg_eh_region_note_backward): Likewise.
8974         (unshare_all_rtl_in_chain): Likewise for sole param.
8975         (dump_rtl_slim): Strengthen second and third params from const_rtx
8976         to const rtx_insn *.
8977         * sched-deps.c (sched_free_deps): Strengthen params "head" and
8978         "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
8979         * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
8980         "next_tail" from rtx to rtx_insn *.
8981         (begin_move_insn): Likewise for local "next".
8982         * sched-int.h (sched_free_deps): Likewise for first and second
8983         params.
8984         (no_real_insns_p): Strengthen both params from const_rtx to
8985         const rtx_insn *.
8986         (sched_setup_bb_reg_pressure_info): Strengthen second params from
8987         rtx to rtx_insn *.
8988         * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
8989         "next_tail".
8990         * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
8991         and locals "insn", "tail" from const_rtx to const rtx_insn *.
8992         (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
8993         rtx_insn *.
8994         (debug_rtl_slim): Strengthen params "first" and "last" from
8995         const_rtx to const rtx_insn *.
8996         * shrink-wrap.c (try_shrink_wrapping): Strengthen param
8997         "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
8998         (convert_to_simple_return): Likewise for param "returnjump".
8999         * shrink-wrap.h (try_shrink_wrapping): Likewise for param
9000         "prologue_seq".
9001         (convert_to_simple_return): Likewise for param "returnjump".
9002         * valtrack.c (propagate_for_debug): Likewise for params
9003         "insn", "last".
9004         * valtrack.h (propagate_for_debug): Likewise for second param.
9005
9006 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
9007
9008         * output.h (insn_current_reference_address): Strengthen param
9009         from rtx to rtx_insn *.
9010         * final.c (insn_current_reference_address): Likewise.
9011
9012 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
9013
9014         * basic-block.h (inside_basic_block_p): Strengthen param from
9015         const_rtx to const rtx_insn *.
9016         * cfgbuild.c (inside_basic_block_p): Likewise.
9017
9018 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
9019
9020         * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
9021         rtx_insn *.
9022         (get_trace_info): Likewise for param "insn".
9023         (save_point_p): Likewise.
9024         (maybe_record_trace_start): Likewise for both params.
9025         (maybe_record_trace_start_abnormal): Likewise.
9026         (create_trace_edges): Likewise for sole param and for three of the
9027         locals named "lab".
9028         (scan_trace): Strengthen local "prev", "insn", "control" from rtx
9029         to rtx_insn *, and update a call to pat->element to pat->insn.
9030
9031 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
9032
9033         * function.h (struct expr_status): Convert field "x_forced_labels"
9034         from rtx_expr_list * to rtx_insn_list *.
9035
9036         * cfgbuild.c (make_edges): Convert local "x" from an
9037         rtx_expr_list * to an rtx_insn_list *, replacing use of
9038         "element" method with "insn" method.
9039         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
9040         * except.c (sjlj_emit_dispatch_table): Replace use of
9041         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
9042         forced_labels.
9043         * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
9044         rtx_expr_list * to an rtx_insn_list *, replacing use of
9045         "element" method with "insn" method.
9046         * reload1.c (set_initial_label_offsets): Likewise for local "x".
9047         * stmt.c (label_rtx): Strengthen local "ref" from rtx to
9048         rtx_insn *, adding a checked cast.  Replace use of
9049         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
9050         forced_labels.
9051         (expand_label): Likewise for local "label_r".
9052
9053 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
9054
9055         * function.h (struct rtl_data): Convert field
9056         "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
9057         rtx_insn_list *.
9058         * rtl.h (remove_node_from_insn_list): New prototype.
9059
9060         * builtins.c (expand_builtin): When prepending to
9061         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
9062         gen_rtx_EXPR_LIST.
9063         * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
9064         to rtx_insn_list *, and use its "insn" method rather than
9065         "element" method.
9066         * cfgrtl.c (delete_insn): Use new function
9067         remove_node_from_insn_list rather than
9068         remove_node_from_expr_list.
9069         (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
9070         to rtx_insn_list *, and use its "insn" method rather than
9071         "element" method.
9072         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
9073         * reload1.c (set_initial_label_offsets): Likewise for local "x".
9074         * rtlanal.c (remove_node_from_insn_list): New function, adapted
9075         from remove_node_from_expr_list.
9076         * stmt.c (expand_label): When prepending to
9077         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
9078         gen_rtx_EXPR_LIST.
9079
9080 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
9081
9082         * function.h (struct rtl_data): Strengthen fields "x_return_label"
9083         and "x_naked_return_label" from rtx to rtx_code_label *.
9084
9085 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
9086
9087         * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
9088         (SET_NEXT_INSN): Likewise.
9089         (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
9090
9091         * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
9092         rtx * to rtx_insn **.  Introduce a new local rtx "seq", using it
9093         to split out the SEQUENCE from local "bundle", strengthening the
9094         latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
9095         Strengthen locals "t" and "insn" from rtx to rtx_insn *.
9096         (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
9097         and the type of the elements of the "slot" array from rtx to
9098         rtx_insn *.
9099         (reorg_split_calls): Likewise for locals "insn" and "next", and
9100         the type of the elements of the "slot" array.
9101
9102         * config/frv/frv.c (frv_nops): Likewise for the elements of this
9103         array.
9104         (frv_function_prologue): Likewise for locals "insn", "next",
9105         "last_call".
9106         (frv_register_nop): Introduce a local "nop_insn" to be the
9107         rtx_insn * containing rtx "nop".
9108
9109         * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
9110         used as an insn and sometimes as a pattern, so rename it to
9111         "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
9112         using it where dealing with the core insn.
9113
9114         * config/picochip/picochip.c (reorder_var_tracking_notes):
9115         Strengthen locals "insn", "next", "last_insn", "queue",
9116         "next_queue", "prev" from rtx to rtx_insn *.
9117
9118         * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
9119         the second param is an rtx_insn ** rather than an rtx **.
9120         (link_insn_into_chain): Strengthen locals "seq" and "sequence"
9121         from rtx to rtx_sequence *, and introduce local named "sequence",
9122         using methods of rtx_sequence to clarify the code.
9123         (remove_insn): Introduce local rtx_sequence * named "sequence" and
9124         use its methods.
9125         (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
9126         Rename param "after" to "uncast_after", reintroducing "after" as a
9127         local rtx_insn * with a checked cast.
9128         (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
9129         reintroducing "after" as a local rtx_insn * with a checked cast.
9130         Strengthen local "last" from rtx to rtx_insn * and remove the
9131         now-redundant checked casts.
9132         (copy_delay_slot_insn): Strengthen return type and param from rtx
9133         to rtx_insn *.
9134
9135         * haifa-sched.c (reemit_notes): Strengthen params "insn" and
9136         "last" from rtx to rtx_insn *.
9137
9138 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
9139
9140         * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
9141         param from rtx to rtx_insn *.
9142
9143         * emit-rtl.c (copy_delay_slot_insn): Likewise.
9144
9145         * reorg.c (skip_consecutive_labels): Strengthen return type, param
9146         and local "insn" from rtx to rtx_insn *.
9147         (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
9148         (unfilled_slots_next): Likewise.
9149         (function_return_label): Strengthen from rtx to rtx_code_label *.
9150         (function_simple_return_label): Likewise.
9151         (first_active_target_insn): Strengthen return type and param from
9152         rtx to rtx_insn *.
9153         (find_end_label): Strengthen return type from rtx to
9154         rtx_code_label *; strengthen locals as appropriate.
9155         (emit_delay_sequence): Strengthen return type, param "insn" and
9156         local "seq_insn" from rtx to rtx_insn *.  Strengthen param "list"
9157         and local "li" from rtx to rtx_insn_list *, using methods of
9158         rtx_insn_list for clarity and typesafety.
9159         (add_to_delay_list): Strengthen return type and param "insn" from
9160         rtx to rtx_insn *.  Strengthen param "delay_list" from rtx to
9161         rtx_insn_list * and use methods of rtx_insn_list.
9162         (delete_from_delay_slot): Strengthen return type, param "insn",
9163         locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
9164         Strengthen local "seq" from rtx to rtx_sequence *, and local
9165         "delay_list" from rtx to rtx_insn_list *, using methods of
9166         rtx_sequence for clarity and type-safety.
9167         (delete_scheduled_jump): Add checked cast when invoking
9168         delete_from_delay_slot.  Strengthen local "trial" from rtx to
9169         rtx_insn *.
9170         (optimize_skip): Strengthen return type and local "delay_list"
9171         from rtx to rtx_insn_list *.  Strengthen local "trial" from rtx to
9172         rtx_insn *.
9173         (steal_delay_list_from_target): Strengthen return type, param
9174         "delay_list" and local "new_delay_list" from rtx to
9175         rtx_insn_list *.  Strengthen param "seq" from rtx to
9176         rtx_sequence *.  Strengthen param "pnew_thread" from rtx * to
9177         rtx_insn **.
9178         Split out local "temp" into multiple more-tightly scoped locals:
9179         sometimes an rtx_insn_list *, and once a rtx_insn *.  Use methods
9180         of rtx_insn_list and rtx_sequence for clarity and typesafety.
9181         Strengthen locals named "trial" from rtx to rtx_insn *.
9182         (steal_delay_list_from_fallthrough): Strengthen return type and
9183         param "delay_list" from rtx to rtx_insn_list *.  Strengthen param
9184         "seq" from rtx to rtx_sequence *.  Use methods of rtx_sequence.
9185         Strengthen local "trial" from rtx to rtx_insn *.
9186         (try_merge_delay_insns): Strength local "merged_insns" from rtx
9187         to rtx_insn_list * and use its methods.  Strengthen local "pat"
9188         from rtx to rtx_sequence * and use its methods.  Strengthen locals
9189         "dtrial" and "new_rtx" from rtx to rtx_insn *.
9190         (get_label_before): Strengthen return type and local "label" from
9191         rtx to rtx_insn *.
9192         (fill_simple_delay_slots): Likewise for locals "insn", "trial",
9193         "next_trial", "next", prev".  Strengthen local "delay_list" from
9194         rtx to rtx_insn_list *  Strengthen local "tmp" from rtx * to
9195         rtx_insn **.
9196         (follow_jumps): Strengthen return type, param "label" and locals
9197         "insn", "next", "value", "this_label" from rtx to rtx_insn *.
9198         (fill_slots_from_thread): Strengthen return type, param
9199         "delay_list" from rtx to rtx_insn_list *.  Strengthen params
9200         "insn", "thread", "opposite_thread" and locals "new_thread",
9201         "trial", "temp", "ninsn" from rtx to rtx_insn *.  Introduce local
9202         "sequence" from a checked cast to rtx_sequence so that we can call
9203         steal_delay_list_from_target and steal_delay_list_from_fallthrough
9204         with an rtx_sequence *.
9205         (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
9206         "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
9207         Strengthen local "delay_list" from rtx to rtx_insn_list *.
9208         (relax_delay_slots): Strengthen param "first" and locals "insn",
9209         "next", "trial", "delay_insn", "target_label" from rtx to
9210         rtx_insn *.  Strengthen local "pat" from rtx to rtx_sequence *.
9211         Introduce a local "trial_seq" for PATTERN (trial) of type
9212         rtx_sequence *, in both cases using methods of rtx_sequence.
9213         (dbr_schedule): Strengthen param "first" and locals "insn",
9214         "next", "epilogue_insn" from rtx to rtx_insn *.
9215
9216 2014-08-28  Richard Biener  <rguenther@suse.de>
9217
9218         PR tree-optimization/62283
9219         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9220         Do not peel loops for alignment where the vector loop likely
9221         doesn't run at least VF times.
9222
9223 2014-08-28  Bin Cheng  <bin.cheng@arm.com>
9224
9225         * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
9226         important_candidates.  Consider all important candidates if
9227         IVS doesn't give any result.  Remove check on ivs->upto.
9228         (try_add_cand_for): Call iv_ca_add_use only once.
9229
9230 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9231             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9232             Anna Tikhonova  <anna.tikhonova@intel.com>
9233             Ilya Tocar  <ilya.tocar@intel.com>
9234             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9235             Ilya Verbin  <ilya.verbin@intel.com>
9236             Kirill Yukhin  <kirill.yukhin@intel.com>
9237             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9238
9239         (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
9240         (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
9241         masking.
9242         (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
9243         (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
9244         (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
9245         (define_insn "*mul<mode>3"): Add EVEX version.
9246
9247 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9248             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9249             Anna Tikhonova  <anna.tikhonova@intel.com>
9250             Ilya Tocar  <ilya.tocar@intel.com>
9251             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9252             Ilya Verbin  <ilya.verbin@intel.com>
9253             Kirill Yukhin  <kirill.yukhin@intel.com>
9254             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9255
9256         * config/i386/sse.md
9257         (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
9258         (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
9259         (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
9260         (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
9261         (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
9262         (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
9263         (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
9264         (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
9265         (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
9266         (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
9267         (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
9268         (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
9269         (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
9270         (define_insn "vec_interleave_highv16qi<mask_name>"): New.
9271         (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
9272         (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
9273
9274 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9275             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9276             Anna Tikhonova  <anna.tikhonova@intel.com>
9277             Ilya Tocar  <ilya.tocar@intel.com>
9278             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9279             Ilya Verbin  <ilya.verbin@intel.com>
9280             Kirill Yukhin  <kirill.yukhin@intel.com>
9281             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9282
9283         * config/i386/sse.md
9284         (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
9285         (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
9286         (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
9287
9288 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9289             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9290             Anna Tikhonova  <anna.tikhonova@intel.com>
9291             Ilya Tocar  <ilya.tocar@intel.com>
9292             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9293             Ilya Verbin  <ilya.verbin@intel.com>
9294             Kirill Yukhin  <kirill.yukhin@intel.com>
9295             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9296
9297         * config/i386/sse.md
9298         (define_mode_iterator VI128_256): New.
9299         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
9300
9301 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9302             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9303             Anna Tikhonova  <anna.tikhonova@intel.com>
9304             Ilya Tocar  <ilya.tocar@intel.com>
9305             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9306             Ilya Verbin  <ilya.verbin@intel.com>
9307             Kirill Yukhin  <kirill.yukhin@intel.com>
9308             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9309
9310         * config/i386/sse.md
9311         (define_mode_iterator VI8_256_512): New.
9312         (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
9313         Ditto.
9314         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
9315         (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
9316         Ditto.
9317         (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
9318
9319 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9320
9321         * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx.  Remove the
9322         pointer to the cumulative reloc value and return the value for
9323         this reloc instead.
9324         (compute_reloc_for_rtx): Take a const_rtx.  Call
9325         compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
9326         avoiding any recursion.  Use FOR_EACH_SUBRTX rather than
9327         for_each_rtx for the CONST case.
9328
9329 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9330
9331         * varasm.c (mark_constant): Replace this for_each_rtx callback with...
9332         (mark_constants_in_pattern): ...this new function to iterate over
9333         all the subrtxes.
9334         (mark_constants): Update accordingly.
9335
9336 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9337
9338         * varasm.c: Include rtl-iter.h.
9339         (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
9340         Remove the pointer to the cumulative hashval_t and just return
9341         the hash for this rtx instead.  Remove recursive CONST_VECTOR case.
9342         (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9343         Accumulate the hashval_ts here instead of const_rtx_hash_1.
9344
9345 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9346
9347         * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
9348         Give real type of data parameter.  Remove return value.
9349         (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
9350         to iterate over subrtxes.
9351
9352 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9353
9354         * var-tracking.c (use_narrower_mode_test): Turn from being a
9355         for_each_rtx callback to being a function that examines each
9356         subrtx itself.
9357         (adjust_mems): Update accordingly.
9358
9359 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9360
9361         * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
9362         callback to being a function that examines each subrtx itself.
9363         Remove handling of null rtxes.
9364         (add_uses): Update accordingly.
9365
9366 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9367
9368         * var-tracking.c: Include rtl-iter.h.
9369         (rtx_debug_expr_p): Turn from being a for_each_rtx callback
9370         to being a function that examines each subrtx itself.
9371         (use_type): Update accordingly.
9372
9373 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9374
9375         * store-motion.c: Include rtl-iter.h.
9376         (extract_mentioned_regs_1): Delete.
9377         (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
9378         for_each_rtx to iterate over subrtxes.
9379
9380 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9381
9382         * sel-sched.c: Include rtl-iter.h
9383         (count_occurrences_1): Delete.
9384         (count_occurrences_equiv): Turn rtxes into const_rtxes.
9385         Use FOR_EACH_SUBRTX rather than for_each_rtx.
9386
9387 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9388
9389         * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
9390         * rtlanal.c (tls_referenced_p_1): Delete.
9391         (tls_referenced_p): Take a const_rtx rather than an rtx.
9392         Use FOR_EACH_SUBRTX rather than for_each_rtx.
9393
9394 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9395
9396         * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
9397         (for_each_inc_dec): Take an rtx rather than an rtx *.
9398         * cselib.c (cselib_record_autoinc_cb): Update accordingly.
9399         (cselib_record_sets): Likewise.
9400         * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
9401         (check_for_inc_dec): Likewise.
9402         * rtlanal.c (for_each_inc_dec_ops): Delete.
9403         (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
9404         rather than a pointer to the memory address.  Replace
9405         for_each_inc_dec_ops argument with separate function and data
9406         arguments.  Abort on non-autoinc addresses.
9407         (for_each_inc_dec_find_mem): Delete.
9408         (for_each_inc_dec): Take an rtx rather than an rtx *.  Use
9409         FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
9410
9411 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9412
9413         * rtl.h (find_all_hard_regs): Declare.
9414         * rtlanal.c (find_all_hard_regs): New function.
9415         (record_hard_reg_uses_1): Delete.
9416         (record_hard_reg_uses): Use find_all_hard_regs.
9417
9418 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9419
9420         * rtl.h (replace_label_data): Delete.
9421         (replace_label): Take the old label, new label and update-nuses flag
9422         as direct arguments.  Return void.
9423         * cfgcleanup.c (outgoing_edges_match): Update accordingly.
9424         * rtlanal.c (replace_label): Update interface as above.  Handle
9425         JUMP_TABLE_DATA as a special case.  Handle JUMPs outside the
9426         iterator.  Use FOR_EACH_SUBRTX_PTR.
9427
9428 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9429
9430         * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
9431         with const_rtx parameters.
9432         * varasm.c (get_pool_constant): Likewise.
9433         * rtlanal.c (rtx_referenced_p_1): Delete.
9434         (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9435         Assert that the rtx we're looking for is nonnull.  Allow searches
9436         for constant pool SYMBOL_REFs.
9437
9438 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9439
9440         * reload1.c: Include rtl-iter.h.
9441         (note_reg_elim_costly): Turn from being a for_each_rtx callback
9442         to being a function that examines each subrtx itself.
9443         (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
9444
9445 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9446
9447         * regcprop.c (cprop_find_used_regs_1): Delete.
9448         (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9449
9450 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9451
9452         * regcprop.c: Include rtl-iter.h.
9453         (kill_value): Take a const_rtx.
9454         (kill_autoinc_value): Turn from being a for_each_rtx callback
9455         to being a function that examines each subrtx itself.
9456         (copyprop_hardreg_forward_1): Update accordingly.
9457
9458 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9459
9460         * reg-stack.c: Include rtl-iter.h.
9461         (subst_stack_regs_in_debug_insn): Delete.
9462         (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
9463         instead of for_each_rtx.
9464
9465 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9466
9467         * lower-subreg.c (find_decomposable_subregs): Turn from being
9468         a for_each_rtx callback to being a function that examines each
9469         subrtx itself.  Remove handling of null rtxes.
9470         (decompose_multiword_subregs): Update accordingly.
9471
9472 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9473
9474         * lower-subreg.c (adjust_decomposed_uses): Delete.
9475         (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
9476         Remove handling of null rtxes.
9477
9478 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9479
9480         * lower-subreg.c: Include rtl-iter.h.
9481         (resolve_subreg_use): Turn from being a for_each_rtx callback
9482         to being a function that examines each subrtx itself.  Remove
9483         handling of null rtxes.
9484         (resolve_reg_notes, resolve_simple_move): Update accordingly.
9485         (decompose_multiword_subregs): Likewise.
9486
9487 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9488
9489         * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
9490         to being a function that examines each subrtx itself.
9491         (simplify_using_condition, simplify_using_initial_values): Update
9492         accordingly.
9493
9494 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9495
9496         * loop-iv.c: Include rtl-iter.h.
9497         (find_single_def_src): New function.
9498         (replace_single_def_regs): Turn from being a for_each_rtx callback
9499         to being a function that examines each subrtx itself.
9500         (replace_in_expr, simplify_using_initial_values): Update accordingly.
9501
9502 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9503
9504         * jump.c (eh_returnjump_p_1): Delete.
9505         (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
9506         Remove handling of null rtxes.
9507
9508 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9509
9510         * jump.c: Include rtl-iter.h.
9511         (returnjump_p_1): Delete.
9512         (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
9513         Remove handling of null rtxes.
9514
9515 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9516
9517         * ira.c: Include rtl-iter.h.
9518         (set_paradoxical_subreg): Turn from being a for_each_rtx callback
9519         to being a function that examines each subrtx itself.  Remove
9520         handling of null rtxes.
9521         (update_equiv_regs): Update call accordingly.
9522
9523 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9524
9525         * fwprop.c: Include rtl-iter.h.
9526         (varying_mem_p): Turn from being a for_each_rtx callback to being
9527         a function that examines each subrtx itself.
9528         (propagate_rtx): Update accordingly.
9529
9530 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9531
9532         * function.c: Include rtl-iter.h
9533         (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
9534         callback to being a function that examines each subrtx itself.
9535         Return the changed flag.
9536         (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
9537         (instantiate_virtual_regs): Update calls accordingly.
9538
9539 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9540
9541         * final.c: Include rtl-iter.h.
9542         (mark_symbol_ref_as_used): Delete.
9543         (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
9544         for_each_rtx.
9545
9546 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9547
9548         * emit-rtl.c: Include rtl-iter.h.
9549         (find_auto_inc): Turn from being a for_each_rtx callback to being
9550         a function that examines each subrtx itself.  Assume the first operand
9551         to an RTX_AUTOINC is the automodified register.
9552         (try_split): Update call accordingly.
9553
9554 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9555
9556         * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
9557         Return a bool, inverting the result so that 0/false means "not ok".
9558         Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
9559         subrtxes of a CONST.
9560         (mem_loc_descriptor, add_const_value_attribute)
9561         (resolve_addr_in_expr): Update calls accordingly.
9562
9563 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9564
9565         * dwarf2out.c: Include rtl-iter.h.
9566         (const_ok_for_output_1): Take the rtx instead of a pointer to it.
9567         Remove unused data parameter.  Return a bool, inverting the result
9568         so that 0/false means "not ok".
9569         (const_ok_for_output): Update accordingly.  Use FOR_EACH_SUBRTX_VAR
9570         instead of for_each_rtx.
9571
9572 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9573
9574         * dse.c: Include rtl-iter.h.
9575         (check_mem_read_rtx): Change void * parameter to real type.
9576         Remove return value.
9577         (check_mem_read_use): Fix comment.  Use FOR_EACH_SUBRTX_PTR instead of
9578         for_each_rtx.  Don't handle null rtxes.
9579
9580 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9581
9582         * df-problems.c: Include rtl-iter.h.
9583         (find_memory): Turn from being a for_each_rtx callback to being
9584         a function that examines each subrtx itself.  Continue to look for
9585         volatile references even after a nonvolatile one has been found.
9586         (can_move_insns_across): Update calls accordingly.
9587
9588 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9589
9590         * ddg.c (walk_mems_2, walk_mems_1): Delete.
9591         (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
9592         to iterate over subrtxes.  Return a bool rather than an int.
9593
9594 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9595
9596         * ddg.c: Include rtl-iter.h.
9597         (mark_mem_use_1): Rename to...
9598         (mark_mem_use): ...deleting old mark_mem_use.  Use FOR_EACH_SUBRTX
9599         instead of for_each_rtx.
9600         (mem_read_insn_p): Update accordingly.
9601
9602 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9603
9604         * cse.c (change_cc_mode_args): Delete.
9605         (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
9606         a function that examines each subrtx itself.  Take the fields of
9607         change_cc_mode_args as argument and return void.
9608         (cse_change_cc_mode_insn): Update calls accordingly.
9609
9610 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9611
9612         * cse.c (is_dead_reg): Change argument to const_rtx.
9613         (dead_debug_insn_data): Delete.
9614         (is_dead_debug_insn): Expand commentary.  Turn from being a
9615         for_each_rtx callback to being a function that examines
9616         each subrtx itself.  Take the fields of dead_debug_insn_data
9617         as argument.
9618         (delete_trivially_dead_insns): Update call accordingly.
9619
9620 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9621
9622         * cse.c (check_for_label_ref): Move earlier in file.  Turn from
9623         being a for_each_rtx callback to being a function that examines
9624         each subrtx itself.
9625         (cse_extended_basic_block): Update call accordingly.
9626
9627 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9628
9629         * cse.c (check_dependence_data): Delete.
9630         (check_dependence): Change from being a for_each_rtx callback to being
9631         a function that examines all subrtxes itself.  Don't handle null rtxes.
9632         (invalidate): Update call accordingly.
9633
9634 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9635
9636         * cse.c: Include rtl-iter.h.
9637         (approx_reg_cost_1): Delete.
9638         (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9639         Don't handle null rtxes.
9640
9641 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9642
9643         * cfgcleanup.c: Include rtl-iter.h.
9644         (mentions_nonequal_regs): Turn from being a for_each_rtx callback
9645         to being a function that examines each subrtx itself.
9646         (thread_jump): Update accordingly.
9647
9648 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9649
9650         * combine-stack-adj.c: Include rtl-iter.h.
9651         (record_stack_refs_data): Delete.
9652         (record_stack_refs): Turn from being a for_each_rtx callback
9653         to being a function that examines each subrtx itself.
9654         Take a pointer to the reflist.  Invert sense of return value
9655         so that true means success and false means failure.  Don't
9656         handle null rtxes.
9657         (combine_stack_adjustments_for_block): Update accordingly.
9658
9659 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9660
9661         * combine.c (record_truncated_value): Turn from being a for_each_rtx
9662         callback to a function that takes an rtx and returns a bool
9663         (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
9664         for_each_rtx.
9665
9666 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9667
9668         * combine.c: Include rtl-iter.h.
9669         (unmentioned_reg_p_1): Delete.
9670         (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
9671         Don't handle null rtxes.
9672
9673 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9674
9675         * calls.c: Include rtl-iter.h.
9676         (internal_arg_pointer_based_exp_1): Delete.
9677         (internal_arg_pointer_based_exp): Take a const_rtx.
9678         Use FOR_EACH_SUBRTX to iterate over subrtxes.
9679
9680 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9681
9682         * caller-save.c: Include rtl-iter.h.
9683         (add_used_regs_1): Delete.
9684         (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
9685         to iterate over subrtxes.  Assert that any remaining pseudos
9686         have been spilled.
9687
9688 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9689
9690         * bt-load.c: Include rtl-iter.h.
9691         (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
9692         (find_btr_use): Move further up file.  Use FOR_EACH_SUBRTX_PTR
9693         to iterate over subrtxes.
9694         (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
9695         find_btr_use rather than btr_referenced_p.
9696
9697 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9698
9699         * alias.c: Include rtl-iter.h.
9700         (refs_newer_value_cb): Delete.
9701         (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9702
9703 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9704
9705         * rtl-iter.h: New file.
9706         * rtlanal.c: Include it.
9707         (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
9708         (generic_subrtx_iterator <T>::add_single_to_queue)
9709         (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
9710         (generic_subrtx_iterator <T>::free_array): New functions.
9711         (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
9712         (generic_subrtx_iterator <const_rtx_accessor>)
9713         (generic_subrtx_iterator <rtx_var_accessor>
9714         (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
9715         (setup_reg_subrtx_bounds): New function.
9716         (init_rtlanal): Call it.
9717
9718 2014-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
9719
9720         PR target/62261
9721         * config/sh/sh.md (ashlsi3): Handle negative shift count for
9722         TARGET_SHMEDIA.
9723         (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
9724
9725 2014-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
9726
9727         * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
9728
9729 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9730
9731         * rtl.h (JUMP_LABEL_AS_INSN): New.
9732
9733 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9734
9735         * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
9736         rtx_expr_list **.
9737         (alloc_EXPR_LIST): Strengthen return type from rtx to
9738         rtx_expr_list *.
9739         (remove_free_EXPR_LIST_node): Likewise for param.
9740         * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
9741         from rtx to rtx_expr_list *.
9742         * sched-int.h (struct deps_desc): Strengthen fields
9743         "pending_read_mems" and "pending_write_mems" from rtx to
9744         rtx_expr_list *.
9745
9746         * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
9747         rtx to rtx_expr_list *.
9748         * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
9749         (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
9750         rtx_expr_list **.
9751         (remove_free_EXPR_LIST_node): Likewise.  Strengthen local "node"
9752         from rtx to rtx_expr_list *.
9753         * loop-iv.c (simplify_using_initial_values): Strengthen local
9754         "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
9755         "pnote_next" from rtx * to rtx_expr_list **.
9756         * sched-deps.c (remove_from_both_dependence_lists):  Strengthen
9757         param "exprp" from rtx * to rtx_expr_list **.
9758         (add_insn_mem_dependence): Strengthen local "mem_list" from
9759         rtx * to rtx_expr_list **.  Strengthen local "mem_node" from rtx
9760         to rtx_expr_list *.
9761         * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
9762         and local "new_mems" from rtx to rtx_expr_list *.  Strengthen
9763         param "old_mems_p" from rtx * to rtx_expr_list **.
9764         * var-tracking.c (struct adjust_mem_data): Strengthen field
9765         "side_effects" from rtx to rtx_expr_list *.
9766         (adjust_insn): Replace NULL_RTX with NULL when assigning to
9767         rtx_expr_list *.
9768         (prepare_call_arguments): Likewise.
9769
9770 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9771
9772         * function.h (struct rtl_data): Strengthen field
9773         "x_stack_slot_list" from rtx to rtx_expr_list *.
9774
9775         * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
9776         when assigning to stack_slot_list.
9777
9778 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9779
9780         * function.h (struct rtl_data): Strengthen field
9781         x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
9782         * rtl.h (remove_node_from_expr_list): Strengthen second param from
9783         rtx * to rtx_expr_list **.
9784
9785         * cfgbuild.c (make_edges): In loop over
9786         nonlocal_goto_handler_labels, strengthen local "x" from rtx to
9787         rtx_expr_list *, and use methods of the latter class to clarify
9788         the code.
9789         * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
9790         rtx_expr_list *, and use methods of the latter class to clarify
9791         the code.
9792         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
9793         * reload1.c (set_initial_label_offsets): Likewise for local "x".
9794         * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
9795         from rtx * to rtx_expr_list **.  Strengthen local "temp" from rtx
9796         to rtx_expr_list *.  Use methods of the latter class to clarify
9797         the code.
9798
9799 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9800
9801         * function.h (struct expr_status): Strengthen field
9802         "x_forced_labels" from rtx to rtx_expr_list *.
9803
9804         * cfgbuild.c (make_edges): Split local "x" into two locals,
9805         strengthening one from rtx to rtx_expr_list *, and using methods
9806         of said class.
9807         * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
9808         loop over forced_labels, introduce strengthen it from rtx to
9809         rtx_expr_list *, using methods to clarify the code.
9810         * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
9811         to rtx_expr_list *, using methods of said class to clarify the
9812         code.
9813         * reload1.c (set_initial_label_offsets): Split local "x" into two
9814         per-loop variables, strengthening the first from rtx to
9815         rtx_expr_list * and using methods.
9816
9817 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9818
9819         * coretypes.h (class rtx_expr_list): Add forward declaration.
9820         * emit-rtl.c (gen_rtx_EXPR_LIST): New.
9821         * gengenrtl.c (special_rtx): Add EXPR_LIST.
9822         * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
9823         invariant: GET_CODE (X) == EXPR_LIST.
9824         (is_a_helper <rtx_expr_list *>::test): New.
9825         (rtx_expr_list::next): New.
9826         (rtx_expr_list::element): New.
9827         (gen_rtx_EXPR_LIST): New.
9828
9829 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9830
9831         * varasm.c (mark_constants): Convert a GET_CODE check into a
9832         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
9833         Use methods of rtx_sequence to clarify the code.
9834
9835 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9836
9837         * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
9838         local "seq" via a checked cast, and use methods of rtx_sequence
9839         to simplify the code.
9840
9841 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9842
9843         * resource.c (mark_referenced_resources): Strengthen local
9844         "sequence" from rtx to rtx_sequence *, adding a checked cast, and
9845         using methods of rtx_sequence to clarify the code.
9846         (find_dead_or_set_registers): Within the switch statement, convert
9847         a GET_CODE check to a dyn_cast, introducing local "seq".  Within
9848         the JUMP_P handling, introduce another local "seq", adding a
9849         checked cast to rtx_sequence *.  In both cases, use methods of
9850         rtx_sequence to clarify the code.
9851         (mark_set_resources): Within SEQUENCE case, introduce local "seq"
9852         via a checked cast, and use methods of rtx_sequence to simplify
9853         the code.
9854
9855 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9856
9857         * reorg.c (redundant_insn): In two places in the function, replace
9858         a check of GET_CODE with a dyn_cast, introducing local "seq", and
9859         usings methods of rtx_sequence to clarify the code.
9860
9861 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9862
9863         * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
9864         local "seq" with a checked cast, and use methods of rtx_sequence
9865         to clarify the code.
9866
9867 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9868
9869         * function.c (contains): Introduce local "seq" for PATTERN (insn),
9870         with a checked cast, in the region for where we know it's a
9871         SEQUENCE.  Use methods of rtx_sequence.
9872
9873 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9874
9875         * final.c (get_attr_length_1): Replace GET_CODE check with a
9876         dyn_cast, introducing local "seq" and the use of methods of
9877         rtx_sequence.
9878         (shorten_branches): Likewise, introducing local "body_seq".
9879         Strengthen local "inner_insn" from rtx to rtx_insn *.
9880         (reemit_insn_block_notes): Replace GET_CODE check with a
9881         dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
9882         Use methods of rtx_sequence.
9883         (final_scan_insn): Likewise, introducing local "seq" for when
9884         "body" is known to be a SEQUENCE, using its methods.
9885
9886 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9887
9888         * except.c (can_throw_external): Strengthen local "seq" from rtx
9889         to rtx_sequence *.  Use methods of rtx_sequence.
9890         (insn_nothrow_p): Likewise.
9891
9892 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9893
9894         * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
9895         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
9896         Use methods of rtx_sequence.
9897         (scan_trace): Likewise for local "pat".
9898
9899 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9900
9901         * coretypes.h (class rtx_sequence): Add forward declaration.
9902         * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
9903         invariant: GET_CODE (X) == SEQUENCE.
9904         (is_a_helper <rtx_sequence *>::test): New.
9905         (is_a_helper <const rtx_sequence *>::test): New.
9906         (rtx_sequence::len): New.
9907         (rtx_sequence::element): New.
9908         (rtx_sequence::insn): New.
9909
9910 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9911
9912         * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
9913         rtx_insn_list **.
9914         (alloc_INSN_LIST): Strengthen return type from rtx to
9915         rtx_insn_list *.
9916         (copy_INSN_LIST): Likewise for return type and param.
9917         (concat_INSN_LIST): Likewise for both params and return type.
9918         (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
9919         rtx_insn *.  Strengthen second param from rtx * to rtx_insn_list **.
9920         (remove_free_INSN_LIST_node): Strenghten return type from rtx to
9921         rtx_insn *.  Strengthen param from rtx * to rtx_insn_list **.
9922
9923         * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
9924         "implicit_sets", "control_uses", "clobbers" from rtx to
9925         rtx_insn_list *.
9926         (struct deps_desc): Likewise for fields "pending_read_insns",
9927         "pending_write_insns", "pending_jump_insns",
9928         "last_pending_memory_flush", "last_function_call",
9929         "last_function_call_may_noreturn", "sched_before_next_call",
9930         "sched_before_next_jump".
9931         (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
9932         (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
9933
9934         * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
9935         from rtx to rtx_insn_list *.
9936         (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
9937         rtx_insn_list *.
9938
9939         * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
9940         to rtx_insn_list **.
9941         (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
9942         rtx_insn_list *.
9943         (queue_insn): Likewise for local "link".
9944         (struct haifa_saved_data): Strengthen field "insn_queue" from
9945         rtx * to rtx_insn_list **.
9946         (save_backtrack_point): Update allocation of save->insn_queue to
9947         reflect the strengthening of elements from rtx to rtx_insn_list *.
9948         (queue_to_ready): Strengthen local "link" from rtx to
9949         rtx_insn_list *; use methods "next" and "insn" when traversing the
9950         list.
9951         (early_queue_to_ready): Likewise for locals "link", "next_link",
9952         "prev_link".
9953         (schedule_block): Update allocation of insn_queue to reflect the
9954         strengthening of elements from rtx to rtx_insn_list *.  Strengthen
9955         local "link" from rtx to rtx_insn_list *, and use methods when
9956         working it.
9957         (add_to_speculative_block): Strengthen locals "twins" and
9958         "next_node" from rtx to rtx_insn_list *, and use methods when
9959         working with them.  Strengthen local "twin" from rtx to
9960         rtx_insn *, eliminating a checked cast.
9961         (fix_recovery_deps): Strengthen locals "ready_list" and "link"
9962         from rtx to rtx_insn_list *, and use methods when working with
9963         them.
9964
9965         * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
9966         from rtx to rtx_insn_list *, adding a checked cast.
9967         (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
9968         rtx_insn_list **.
9969         (copy_INSN_LIST): Strengthen return type and locals "new_queue",
9970         "newlink" from rtx to rtx_insn_list *.  Strengthen local
9971         "pqueue" from rtx * to rtx_insn_list **.  Strengthen local "x"
9972         from rtx to rtx_insn *.
9973         (concat_INSN_LIST): Strengthen return type and local "new_rtx",
9974         from rtx to rtx_insn_list *.  Use methods of the latter class.
9975         (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
9976         rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
9977         (remove_free_INSN_LIST_node): Strengthen return type and local
9978         "elem" from rtx to rtx_insn *.  Strenghten param "listp" from
9979         rtx * to rtx_insn_list **.  Strengthen local "node" from rtx to
9980         rtx_insn_list *, using "insn" method.
9981
9982         * sched-deps.c (add_dependence_list):  Strengthen param "list"
9983         from rtx to rtx_insn_list *, and use methods when working with it.
9984         (add_dependence_list_and_free):  Strengthen param "listp" from
9985         rtx * to rtx_insn_list **.
9986         (remove_from_dependence_list): Strenghten param "listp" from rtx *
9987         to rtx_insn_list **, and use methods when working with *listp.
9988         (remove_from_both_dependence_lists): Strengthen param "listp" from
9989         rtx * to rtx_insn_list **
9990         (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
9991         to rtx_insn_list **.  Eliminate local "link", in favor of two new
9992         locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
9993         respectively.
9994         (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
9995         by introducing local "cond_deps".
9996         (remove_from_deps): Strengthen param "insn" from rtx to
9997         rtx_insn *.
9998
9999         * sched-rgn.c (concat_insn_mem_list): Strengthen param
10000         "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
10001         Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
10002         Use methods of rtx_insn_list.
10003
10004         * store-motion.c (struct st_expr): Strengthen fields
10005         "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
10006         (st_expr_entry): Replace NULL_RTX with NULL when dealing with
10007         rtx_insn_list *.
10008         (find_moveable_store): Split out "tmp" into multiple more-tightly
10009         scoped locals.  Use methods of rtx_insn_list *.
10010         (compute_store_table): Strengthen local "tmp" from rtx to
10011         rtx_insn *.  Use methods of rtx_insn_list *.
10012
10013 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
10014
10015         * coretypes.h (class rtx_insn_list): Add forward declaration.
10016         * rtl.h (class rtx_insn_list): New subclass of rtx_def
10017         (is_a_helper <rtx_insn_list *>::test): New.
10018         (rtx_insn_list::next): New.
10019         (rtx_insn_list::insn): New.
10020         (gen_rtx_INSN_LIST): Add prototype.
10021         * emit-rtl.c (gen_rtx_INSN_LIST): New.
10022         * gengenrtl.c (special_rtx): Add INSN_LIST.
10023
10024 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
10025
10026         * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
10027         "prev" from rtx to rtx_insn *.
10028
10029 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
10030
10031         * rtl.h (INSN_UID): Convert from a macro to a pair of inline
10032         functions.  Require merely an rtx for now, not an rtx_insn *.
10033         (BLOCK_FOR_INSN): Likewise.
10034         (INSN_LOCATION): Likewise.
10035         (INSN_HAS_LOCATION): Convert from a macro to an inline function.
10036
10037 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
10038
10039         * rtl.h (PATTERN): Convert this macro into a pair of inline
10040         functions, for now, requiring const_rtx and rtx.
10041
10042 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
10043
10044         * target.def (unwind_emit): Strengthen param "insn" from rtx to
10045         rtx_insn *.
10046         (final_postscan_insn): Likewise.
10047         (adjust_cost): Likewise.
10048         (adjust_priority): Likewise.
10049         (variable_issue): Likewise.
10050         (macro_fusion_pair_p): Likewise.
10051         (dfa_post_cycle_insn): Likewise.
10052         (first_cycle_multipass_dfa_lookahead_guard): Likewise.
10053         (first_cycle_multipass_issue): Likewise.
10054         (dfa_new_cycle): Likewise.
10055         (adjust_cost_2): Likewise for params "insn" and "dep_insn".
10056         (speculate_insn): Likewise for param "insn".
10057         (gen_spec_check): Likewise for params "insn" and "label".
10058         (get_insn_spec_ds): Likewise for param "insn".
10059         (get_insn_checked_ds): Likewise.
10060         (dispatch_do): Likewise.
10061         (dispatch): Likewise.
10062         (cannot_copy_insn_p): Likewise.
10063         (invalid_within_doloop): Likewise.
10064         (legitimate_combined_insn): Likewise.
10065         (needed): Likewise.
10066         (after): Likewise.
10067
10068         * doc/tm.texi: Automatically updated to reflect changes to
10069         target.def.
10070
10071         * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
10072         working with insn.
10073         (schedule_block): Likewise.
10074         (sched_init): Likewise.
10075         (sched_speculate_insn): Strengthen param "insn" from rtx to
10076         rtx_insn *.
10077         (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
10078         working with insn.
10079         * hooks.c (hook_bool_rtx_true): Rename to...
10080         hook_bool_rtx_insn_true): ...this, and strengthen first param from
10081         rtx to rtx_insn *.
10082         (hook_constcharptr_const_rtx_null): Rename to...
10083         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
10084         first param from const_rtx to const rtx_insn *.
10085         (hook_bool_rtx_int_false): Rename to...
10086         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
10087         param from rtx to rtx_insn *.
10088         (hook_void_rtx_int): Rename to...
10089         (hook_void_rtx_insn_int): ...this, and strengthen first param from
10090         rtx to rtx_insn *.
10091
10092         * hooks.h (hook_bool_rtx_true): Rename to...
10093         (hook_bool_rtx_insn_true): ...this, and strengthen first param from
10094         rtx to rtx_insn *.
10095         (hook_bool_rtx_int_false): Rename to...
10096         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
10097         param from rtx to rtx_insn *.
10098         (hook_void_rtx_int): Rename to...
10099         (hook_void_rtx_insn_int): ...this, and strengthen first param from
10100         rtx to rtx_insn *.
10101         (hook_constcharptr_const_rtx_null): Rename to...
10102         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
10103         first param from const_rtx to const rtx_insn *.
10104
10105         * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
10106         and local "prev" from rtx to rtx_insn *.
10107
10108         * sched-int.h (sched_speculate_insn): Strengthen first param from
10109         rtx to rtx_insn *.
10110
10111         * sel-sched.c (create_speculation_check): Likewise for local "label".
10112         * targhooks.c (default_invalid_within_doloop): Strengthen param
10113         "insn" from const_rtx to const rtx_insn *.
10114         * targhooks.h (default_invalid_within_doloop): Strengthen param
10115         from const_rtx to const rtx_insn *.
10116
10117         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
10118         (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
10119
10120         * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
10121         "insn".
10122         (arc_invalid_within_doloop): Likewise, with const.
10123
10124         * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
10125         (arm_cannot_copy_insn_p): Likewise for param "insn".
10126         (arm_unwind_emit): Likewise.
10127
10128         * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
10129         "dep_insn".
10130
10131         * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
10132         (c6x_variable_issue): Likewise.  Removed now-redundant checked
10133         cast.
10134         (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
10135
10136         * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
10137         Likewise for param "insn".
10138         (epiphany_mode_after): Likewise.
10139         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
10140         params "insn", "dep_insn".
10141         (epiphany_mode_needed): Likewise for param "insn".
10142         (epiphany_mode_after): Likewise.
10143
10144         * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
10145         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
10146         (ix86_avx_u128_mode_needed): Likewise.
10147         (ix86_i387_mode_needed): Likewise.
10148         (ix86_mode_needed): Likewise.
10149         (ix86_avx_u128_mode_after): Likewise.
10150         (ix86_mode_after): Likewise.
10151         (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
10152         (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
10153         (ix86_adjust_priority): Likewise for param "insn".
10154         (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
10155         (do_dispatch): Likewise.
10156         (has_dispatch): Likewise.
10157         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
10158
10159         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
10160         reflect renaming of default hook implementation from
10161         hook_constcharptr_const_rtx_null to
10162         hook_constcharptr_const_rtx_insn_null.
10163         (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
10164         rtx to rtx_insn *.
10165         (ia64_variable_issue): Likewise for param "insn".
10166         (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
10167         (ia64_dfa_new_cycle): Likewise.
10168         (ia64_get_insn_spec_ds): Likewise.
10169         (ia64_get_insn_checked_ds): Likewise.
10170         (ia64_speculate_insn): Likewise.
10171         (ia64_gen_spec_check): Likewise for params "insn", "label".
10172         (ia64_asm_unwind_emit): Likewise for param "insn".
10173
10174         * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
10175
10176         * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
10177         "insn", "def_insn".
10178         (m68k_sched_variable_issue): Likewise for param "insn".
10179
10180         * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
10181         "def_insn".
10182
10183         * config/microblaze/microblaze.c (microblaze_adjust_cost):
10184         Likewise for params "insn", "dep".
10185
10186         * config/mips/mips.c (mips_adjust_cost): Likewise.
10187         (mips_variable_issue): Likewise for param "insn".
10188         (mips_final_postscan_insn): Likewise.
10189
10190         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
10191         for params "insn", "dep".
10192
10193         * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
10194         "dep_insn".
10195         (pa_adjust_priority): Likewise for param "insn".
10196
10197         * config/picochip/picochip.c (picochip_sched_adjust_cost):
10198         Likewise for params "insn", "dep_insn".
10199
10200         * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
10201         param "insn".
10202         (rs6000_variable_issue): Likewise.
10203         (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
10204         (rs6000_debug_adjust_cost): Likewise.
10205         (rs6000_adjust_priority): Likewise for param "insn".
10206         (rs6000_use_sched_lookahead_guard): Likewise.
10207         (get_next_active_insn): Likewise for return type and both params.
10208         (redefine_groups): Likewise for params "prev_head_insn", "tail"
10209         and locals "insn", "next_insn".
10210         (pad_groups): Likewise.
10211
10212         * config/s390/s390.c (s390_adjust_priority): Likewise for param
10213         "insn".
10214         (s390_cannot_copy_insn_p): Likewise.
10215         (s390_sched_variable_issue): Likewise for third param, eliminating
10216         checked cast.
10217         (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
10218         default hook implementation from hook_constcharptr_const_rtx_null
10219         to hook_constcharptr_const_rtx_insn_null.
10220
10221         * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
10222         from rtx to rtx_insn *.
10223         (sh_adjust_cost): Likewise for params "insn", "dep_insn".
10224         (sh_variable_issue): Likewise for param "insn".
10225         (sh_dfa_new_cycle): Likewise.
10226         (sh_mode_needed): Likewise.
10227         (sh_mode_after): Likewise.
10228
10229         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
10230         params "insn", "dep_insn".
10231         (hypersparc_adjust_cost): Likewise.
10232         (sparc_adjust_cost): Likewise.
10233
10234         * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
10235         param, eliminated checked cast.
10236         (spu_sched_adjust_cost): Likewise for first and third params.
10237
10238         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
10239         params "insn" and "dep_insn" from rtx to rtx_insn *.
10240
10241         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
10242
10243 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
10244
10245         * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
10246         (set_is_load_p): ...this, updating to work on a SET pattern rather
10247         than an insn.
10248         (is_store_insn): Rename to...
10249         (set_is_store_p): ...this, updating to work on a SET pattern
10250         rather than an insn.
10251         (mn10300_adjust_sched_cost): Move call to get_attr_timings from
10252         top of function to where it is needed.  Rewrite the bogus
10253         condition that checks for "insn" and "dep" being PARALLEL to
10254         instead use single_set, introducing locals "insn_set" and
10255         "dep_set".  Given that we only ever returned "cost" for a non-pair
10256         of SETs, bail out early if we don't have a pair of SET.
10257         Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
10258         use the new locals "insn_set" and "dep_set", and update calls to
10259         is_load_insn and is_store_insn to be calls to set_is_load_p and
10260         set_is_store_p.
10261
10262 2014-08-27  Guozhi Wei  <carrot@google.com>
10263
10264         PR target/62262
10265         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
10266         amount before using it.
10267
10268 2014-08-27  Richard Biener  <rguenther@suse.de>
10269
10270         * gimple-fold.c (get_maxval_strlen): Add overload wrapping
10271         get_maxval_strlen inside a more useful API.
10272         (gimple_fold_builtin_with_strlen): Remove and fold into ...
10273         (gimple_fold_builtin): ... caller.
10274         (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
10275         gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
10276         gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
10277         gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
10278         gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
10279         gimple_fold_builtin_sprintf): Adjust to compute maxval
10280         themselves.
10281
10282 2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
10283
10284         PR other/62248
10285         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
10286
10287 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10288             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10289             Anna Tikhonova  <anna.tikhonova@intel.com>
10290             Ilya Tocar  <ilya.tocar@intel.com>
10291             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10292             Ilya Verbin  <ilya.verbin@intel.com>
10293             Kirill Yukhin  <kirill.yukhin@intel.com>
10294             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10295
10296         * config/i386/sse.md
10297         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
10298         Use `concat_tg_mode' attribute to determine asm register size.
10299
10300 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10301             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10302             Anna Tikhonova  <anna.tikhonova@intel.com>
10303             Ilya Tocar  <ilya.tocar@intel.com>
10304             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10305             Ilya Verbin  <ilya.verbin@intel.com>
10306             Kirill Yukhin  <kirill.yukhin@intel.com>
10307             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10308
10309         * config/i386/sse.md
10310         (define_mode_iterator VI48_AVX512VL): New.
10311         (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
10312         (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
10313         (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
10314         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10315         with VI1): Change mode iterator.
10316         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10317         with VI_ULOADSTORE_BW_AVX512VL): New.
10318         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10319         with VI_ULOADSTORE_F_AVX512VL): Ditto.
10320         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10321         with VI1): Change mode iterator.
10322         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10323         with VI_ULOADSTORE_BW_AVX512VL): New.
10324         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10325         with VI_ULOADSTORE_F_AVX512VL): Ditto.
10326         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
10327         with VI1): Change mode iterator.
10328         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
10329         with VI_ULOADSTORE_BW_AVX512VL): New.
10330         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
10331         with VI_ULOADSTORE_BW_AVX512VL): Ditto.
10332         (define_insn "avx512f_storedqu<mode>_mask"): Delete.
10333         (define_insn "<avx512>_storedqu<mode>_mask" with
10334         VI48_AVX512VL): New.
10335         (define_insn "<avx512>_storedqu<mode>_mask" with
10336         VI12_AVX512VL): Ditto.
10337
10338 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10339             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10340             Anna Tikhonova  <anna.tikhonova@intel.com>
10341             Ilya Tocar  <ilya.tocar@intel.com>
10342             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10343             Ilya Verbin  <ilya.verbin@intel.com>
10344             Kirill Yukhin  <kirill.yukhin@intel.com>
10345             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10346
10347         * config/i386/sse.md
10348         (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
10349         (define_mode_iterator VI48_AVX512BW): New.
10350         (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
10351         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
10352         with VI48_AVX2_48_AVX512F): New.
10353         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
10354         with VI2_AVX512VL): Ditto.
10355
10356 2014-08-27  Richard Biener  <rguenther@suse.de>
10357
10358         PR middle-end/62239
10359         * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
10360         (fold_builtin_3): Do not fold strcat_chk here.
10361         * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
10362         from builtins.c.
10363         (gimple_fold_builtin): Fold strcat_chk here.
10364
10365 2014-08-26  Aldy Hernandez  <aldyh@redhat.com>
10366
10367         * dwarf2out.h (dwarf2out_decl): Remove prototype.
10368         * dwarf2out.c (dwarf2out_decl): Make static.
10369
10370 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
10371
10372         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
10373
10374 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10375
10376         * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
10377         from rtx to rtx_insn *.
10378         (cselib_lookup_from_insn): Likewise for final param.
10379         (cselib_subst_to_values_from_insn): Likewise.
10380         (cselib_add_permanent_equiv): Likewise.
10381
10382         * cselib.c (cselib_current_insn): Likewise for this variable.
10383         (cselib_subst_to_values_from_insn): Likewise for param "insn".
10384         (cselib_lookup_from_insn): Likewise.
10385         (cselib_add_permanent_equiv): Likewise for param "insn" and local
10386         "save_cselib_current_insn".
10387         (cselib_process_insn): Replace use of NULL_RTX with NULL.
10388
10389         * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
10390         from rtx to rtx_insn *.
10391
10392 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10393
10394         * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
10395         rtx_insn *.
10396
10397 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10398
10399         * df.h (df_dump_insn_problem_function): Strengthen first param of
10400         this callback from const_rtx to const rtx_insn *.
10401         (struct df_insn_info): Strengthen field "insn" from rtx to
10402         rtx_insn *.
10403         (DF_REF_INSN): Eliminate this function, reinstating the older
10404         macro definition.
10405         (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
10406         (df_reg_defined): Likewise.
10407         (df_find_use): Likewise.
10408         (df_reg_used): Likewise.
10409         (df_dump_insn_top): Strengthen param 1 from const_rtx to
10410         const rtx_insn *.
10411         (df_dump_insn_bottom): Likewise.
10412         (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
10413         (df_insn_debug_regno): Likewise.
10414         (debug_df_insn): Likewise.
10415         (df_rd_simulate_one_insn): Likewise for param 2.
10416         (df_word_lr_simulate_defs): Likewise for param 1.
10417         (df_word_lr_simulate_uses): Likewise.
10418         (df_md_simulate_one_insn): Likewise for param 2.
10419         (df_simulate_find_noclobber_defs): Likewise for param 1.
10420         (df_simulate_find_defs): Likewise.
10421         (df_simulate_defs): Likewise.
10422         (df_simulate_uses): Likewise.
10423         (df_simulate_one_insn_backwards): Likewise for param 2.
10424         (df_simulate_one_insn_forwards): Likewise.
10425         (df_uses_create): Likewise for param 2.
10426         (df_insn_create_insn_record): Likewise for param 1.
10427         (df_insn_delete): Likewise.
10428         (df_insn_rescan): Likewise.
10429         (df_insn_rescan_debug_internal): Likewise.
10430         (df_insn_change_bb): Likewise.
10431         (df_notes_rescan): Likewise.
10432         * rtl.h (remove_death): Likewise for param 2.
10433         (print_rtl_with_bb): Strengthen param 2 from const_rtx to
10434         const rtx_insn *.
10435         * sched-int.h (reemit_notes): Strengthen param from rtx to
10436         rtx_insn *.
10437         * valtrack.h (propagate_for_debug): Likewise for param 1.
10438
10439         * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
10440         local "tmp_rtx" from const_rtx to const rtx_insn *.
10441         * combine.c (remove_death): Strengthen param "insn" from rtx to
10442         rtx_insn *.
10443         (move_deaths): Likewise for local "where_dead".
10444         * cse.c (delete_trivially_dead_insns): Introduce local
10445         "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
10446         * df-core.c (df_find_def): Strengthen param "insn" from rtx to
10447         rtx_insn *.
10448         (df_reg_defined): Likewise.
10449         (df_find_use): Likewise.
10450         (df_reg_used): Likewise.
10451         (df_dump_insn_problem_data): Strengthen param "insn" from
10452         const_rtx to const rtx_insn *.
10453         (df_dump_insn_top): Likewise.
10454         (df_dump_insn_bottom): Likewise.
10455         (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
10456         (df_insn_debug_regno): Likewise.
10457         (debug_df_insn): Likewise.
10458         (DF_REF_INSN): Delete.
10459         * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
10460         from rtx to rtx_insn *.
10461         (df_chain_insn_top_dump): Strengthen param "insn" from
10462         const_rtx to const rtx_insn *.
10463         (df_chain_insn_bottom_dump): Likewise.
10464         (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
10465         rtx_insn *.
10466         (df_word_lr_simulate_uses): Likewise.
10467         (df_print_note): Likewise.
10468         (df_remove_dead_and_unused_notes): Likewise.
10469         (df_set_unused_notes_for_mw): Likewise.
10470         (df_set_dead_notes_for_mw): Likewise.
10471         (df_create_unused_note): Likewise.
10472         (df_simulate_find_defs): Likewise.
10473         (df_simulate_find_uses): Likewise.
10474         (df_simulate_find_noclobber_defs): Likewise.
10475         (df_simulate_defs): Likewise.
10476         (df_simulate_uses): Likewise.
10477         (df_simulate_one_insn_backwards): Likewise.
10478         (df_simulate_one_insn_forwards): Likewise.
10479         (df_md_simulate_one_insn): Likewise.
10480         * df-scan.c (df_uses_create): Likewise.
10481         (df_insn_create_insn_record): Likewise.
10482         (df_insn_delete): Likewise.
10483         (df_insn_rescan): Likewise.
10484         (df_insn_rescan_debug_internal): Likewise.
10485         (df_insn_change_bb): Likewise.
10486         (df_notes_rescan): Likewise.
10487         (df_refs_add_to_chains): Likewise.
10488         (df_insn_refs_verify): Likewise.
10489         * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
10490         when invoking df_insn_delete.
10491         (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
10492         (set_unique_reg_note): Add checked cast.
10493         * final.c (cleanup_subreg_operands): Likewise.
10494         * gcse.c (update_ld_motion_stores): Likewise, strengthening local
10495         "insn" from rtx to rtx_insn *.
10496         * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
10497         "last" from rtx to rtx_insn *.
10498         * ira-emit.c (change_regs_in_insn): New function.
10499         (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
10500         Invoke change_regs_in_insn rather than change_regs.
10501         * ira.c (update_equiv_regs): Strengthen locals "insn",
10502         "init_insn", "new_insn" from rtx to rtx_insn *.  Invoke
10503         for_each_rtx_in_insn rather than for_each_rtx.
10504         * recog.c (confirm_change_group): Add checked casts.
10505         (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
10506         Add checked cast.
10507         (peep2_fill_buffer): Add checked cast.
10508         * rtlanal.c (remove_note): Likewise.
10509         * valtrack.c (propagate_for_debug): Strengthen param "insn" and
10510         locals "next" "end" from rtx to rtx_insn *.
10511
10512 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10513
10514         * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
10515         to rtx_insn *.
10516         (struct reg_use_data): Likewise for field "insn".
10517         (insn_cost): Likewise for param.
10518         (real_insn_for_shadow): Likewise for return type and param.
10519         (increase_insn_priority): Likewise for param 1.
10520         (debug_dependencies): Likewise for both params.
10521
10522         * haifa-sched.c (insn_delay): Likewise for param "insn".
10523         (real_insn_for_shadow): Likewise for return type and param "insn".
10524         (update_insn_after_change): Likewise for param "insn".
10525         (recompute_todo_spec): Likewise for param "next" and locals "pro",
10526         "other".
10527         (insn_cost): Likewise for param "insn".
10528         (increase_insn_priority): Likewise.
10529         (calculate_reg_deaths): Likewise.
10530         (setup_insn_reg_pressure_info): Likewise.
10531         (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
10532         (model_index): Strengthen param "insn" from rtx to rtx_insn *.
10533         (model_recompute): Likewise.
10534         (must_restore_pattern_p): Likewise for param "next".
10535         (model_excess_cost): Likewise for param "insn".
10536         (queue_remove): Likewise.
10537         (adjust_priority): Likewise for param "prev".
10538         (update_register_pressure): Likewise for param "insn".
10539         (setup_insn_max_reg_pressure): Likewise for local "insn".
10540         (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
10541         (model_add_to_schedule): Likewise.
10542         (model_reset_queue_indices): Likewise for local "insn".
10543         (unschedule_insns_until): Strengthen local "recompute_vec" from
10544         auto_vec<rtx> to auto_vec<rtx_insn *>.  Strengthen locals "last",
10545         "con" from rtx to rtx_insn *.
10546         (restore_last_backtrack_point): Likewise for both locals "x". Add
10547         checked casts.
10548         (estimate_insn_tick): Likewise for param "insn".
10549         (commit_schedule): Likewise for params "prev_head", "tail" and
10550         local "x".
10551         (verify_shadows): Likewise for locals "i1", "i2".
10552         (dump_insn_stream): Likewise for params "head", "tail" and locals
10553         "next_tail", "insn".
10554         (schedule_block): Likewise for locals "insn", "x".  Add a checked
10555         cast.
10556         (fix_inter_tick): Likewise for params "head", "tail".
10557         (create_check_block_twin): Likewise for local "jump".
10558         (haifa_change_pattern): Likewise for param "insn".
10559         (haifa_speculate_insn): Likewise.
10560         (dump_new_block_header): Likewise for params "head", "tail".
10561         (fix_jump_move): Likewise for param "jump".
10562         (move_block_after_check): Likewise.
10563         (sched_init_insn_luid): Likewise for param "insn".
10564         (sched_init_luids): Likewise for local "insn".
10565         (insn_luid): Likewise for param "insn".
10566         (init_h_i_d): Likewise.
10567         (haifa_init_h_i_d): Likewise for local "insn".
10568         (haifa_init_insn): Likewise for param "insn".
10569         * sched-deps.c (add_dependence): Likewise for local "real_pro",
10570         "other".
10571         (create_insn_reg_use): Likewise for param "insn".
10572         (setup_insn_reg_uses): Likewise.  Add a checked cast.
10573         * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
10574         "tail" from rtx to rtx_insn *.
10575         * sched-rgn.c (void debug_dependencies): Likewise, also for locals
10576         "insn", "next_tail".
10577
10578 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10579
10580         * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
10581         from rtx to rtx_insn *.
10582         (model_add_to_schedule): Likewise for locals "start", "end",
10583         "iter".
10584
10585 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10586
10587         * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
10588         rtx_insn *.
10589         * cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
10590         "to" and locals "insn", "next", "copy".  Remove now-redundant
10591         checked cast.
10592
10593 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10594
10595         * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
10596         rtx_insn * and param 4 from rtx * to rtx_insn **.
10597         (get_condition): Strengthen param 1 from rtx to rtx_insn * and
10598         param 2 from rtx * to rtx_insn **.
10599
10600         * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
10601         rtx_insn * and final param from rtx * to rtx_insn **.
10602
10603         * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
10604         from rtx to rtx_insn *.
10605         (try_head_merge_bb): Likewise for both locals named "move_upto".
10606         * df-problems.c (can_move_insns_across): Likewise for params
10607         "from", "to", "across_from", "across_to" and locals "insn",
10608         "next", "max_to".  Strengthen param "pmove_upto" from rtx * to
10609         rtx_insn **.
10610         * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
10611         from rtx to rtx_insn *.
10612         (noce_get_alt_condition): Strengthen param "earliest" from rtx *
10613         to rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
10614         (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
10615         rtx_insn *.
10616         (noce_try_abs): Likewise.
10617         (noce_get_condition): Likewise for param "jump".  Strengthen param
10618         "earliest" from rtx * to rtx_insn **.
10619         (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
10620         rtx_insn *.
10621         (find_cond_trap): Likewise.
10622         (dead_or_predicable): Likewise for local "earliest".
10623         * loop-iv.c (check_simple_exit): Likewise for local "at".  Add
10624         checked cast.
10625         * rtlanal.c (canonicalize_condition): Likewise for param "insn"
10626         and local "prev".  Strengthen param "earliest" from rtx * to
10627         rtx_insn **.
10628         (get_condition): Strengthen param "jump" from rtx to rtx_insn *
10629         Strengthen param "earliest" from rtx * to rtx_insn **.
10630
10631 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10632
10633         * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
10634         "to" and local "insn" from rtx to rtx_insn *.
10635
10636 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10637
10638         * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
10639         from rtx to rtx_insn *.
10640         (need_nop_to_preserve_insn_bb): Likewise for param "insn".
10641         (code_motion_path_driver): Likewise for local "last_insn".
10642         (simplify_changed_insns): Likewise for local "insn".
10643
10644 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10645
10646         * rtl.h (push_to_sequence): Strengthen param from rtx to
10647         rtx_insn *.
10648         (push_to_sequence2): Likewise for both params.
10649         (delete_insns_since): Likewise for param.
10650         (reorder_insns_nobb): Likewise for all three params.
10651         (set_new_first_and_last_insn): Likewise for both params.
10652
10653         * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
10654         rtx_insn *.  Remove now-redundant cast.
10655         (set_last_insn): Likewise.
10656
10657         * builtins.c (expand_builtin_return): Strengthen local
10658         "call_fusage" from rtx to rtx_insn *.
10659         * cfgrtl.c (create_basic_block_structure): Likewise for local
10660         "after".
10661         * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
10662         "first", "last" and local "insn".
10663         (delete_insns_since): Likewise for param "from".
10664         (reorder_insns_nobb): Likewise for params "from", "to", "after"
10665         and local "x".
10666         (push_to_sequence): Likewise for param "first" and local "last".
10667         (push_to_sequence2): Likewise for params "first" and "last".
10668         * lra.c (emit_add3_insn): Likewise for local "last".
10669         (lra_emit_add): Likewise.
10670         * lra-constraints.c (base_to_reg): Likewise for locals "insn",
10671         "last_insn".
10672         (process_address_1): Likewise for locals "insn", last".
10673         * modulo-sched.c (ps_first_note): Likewise for return type.
10674         * optabs.c (expand_binop_directly): Likewise for param "last".
10675
10676 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10677
10678         * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
10679         to rtx_insn*.
10680         * emit-rtl.c (get_last_insn_anywhere): Likewise.
10681
10682 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10683
10684         * function.h (struct sequence_stack): Strengthen fields "first"
10685         and "last" from rtx to rtx_insn *.
10686         (struct emit_status): Likewise for fields "x_first_insn" and
10687         "x_last_insn".
10688
10689         * emit-rtl.h (get_insns): Remove now-redundant checked cast.
10690         (set_first_insn): Add checked cast.
10691         (get_last_insn): Remove now-redundant checked cast.
10692         (set_last_insn): Add checked cast.
10693
10694         * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
10695         "saved_first" and "saved_last" from rtx to rtx_insn *.
10696
10697 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10698
10699         * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
10700         (unlink_insn_chain): Strengthen both params from rtx to
10701         rtx_insn *.
10702
10703         * cfgrtl.c (cfg_layout_function_header): Likewise for this
10704         variable.
10705         (unlink_insn_chain): Likewise for params "first" and "last".
10706         Remove now-redundant checked cast.
10707         (record_effective_endpoints): Replace use of NULL_RTX with NULL.
10708         (fixup_reorder_chain): Strengthen local "insn" from rtx to
10709         rtx_insn *.
10710         * emit-rtl.c (link_insn_into_chain): Likewise for all three
10711         params.
10712         (add_insn): Likewise for param "insn" and local "prev".
10713         (add_insn_after_nobb): Likewise for both params and local "next".
10714         (add_insn_before_nobb): Likewise for both params and local "prev".
10715         (add_insn_after): Rename param "after" to "uncast_after",
10716         introducing local "after" with another checked cast.
10717         (add_insn_before): Rename params "insn" and "before", giving them
10718         "uncast_" prefixes, adding the old names back using checked casts.
10719         (emit_note_after): Likewise for param "after".
10720         (emit_note_before): Likewise for param "before".
10721         (emit_label): Add a checked cast.
10722
10723 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10724
10725         * cselib.h (cselib_record_sets_hook):  Strengthen initial param
10726         "insn" from rtx to rtx_insn *.
10727
10728         * cselib.c (cselib_record_sets_hook): Likewise.
10729
10730         * var-tracking.c (add_with_sets): Likewise, renaming back from
10731         "uncast_insn" to "insn" and eliminating the checked cast from rtx
10732         to rtx_insn *.
10733
10734 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10735
10736         * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
10737         and "header_" from rtx to rtx_insn *.
10738         (struct basic_block_d): Likewise for field "head_" within "x"
10739         field of union basic_block_il_dependent.
10740         (BB_HEAD): Drop function...
10741         (SET_BB_HEAD): ...and this function in favor of...
10742         (BB_HEAD): ...reinstate macro.
10743         (BB_END): Drop function...
10744         (SET_BB_END): ...and this function in favor of...
10745         (BB_END): ...reinstate macro.
10746         (BB_HEADER): Drop function...
10747         (SET_BB_HEADER): ...and this function in favor of...
10748         (BB_HEADER): ...reinstate macro.
10749
10750         * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
10751         (fix_crossing_unconditional_branches): Likewise.
10752         * caller-save.c (save_call_clobbered_regs): Likewise.
10753         (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
10754         * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
10755         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
10756         (merge_blocks_move_successor_nojumps): Likewise.
10757         (outgoing_edges_match): Update use of for_each_rtx to
10758         for_each_rtx_in_insn.
10759         * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
10760         (expand_gimple_cond): Likewise.
10761         (expand_gimple_tailcall): Likewise.
10762         (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
10763         SET_BB_END.
10764         (construct_exit_block): Drop use of SET_BB_END.
10765         * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
10766         rtx_insn *.
10767         (delete_insn): Rename param "insn" to "uncast_insn", introducing
10768         a new local "insn" with a checked cast to rtx_insn *.  Drop use of
10769         SET_BB_HEAD and SET_BB_END.
10770         (create_basic_block_structure): Drop use of SET_BB_HEAD and
10771         SET_BB_END.
10772         (rtl_delete_block): Drop use of SET_BB_HEAD.
10773         (rtl_split_block): Drop use of SET_BB_END.
10774         (emit_nop_for_unique_locus_between): Likewise.
10775         (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
10776         (block_label): Drop use of SET_BB_HEAD.
10777         (fixup_abnormal_edges): Drop use of SET_BB_END.
10778         (record_effective_endpoints): Drop use of SET_BB_HEADER.
10779         (relink_block_chain): Likewise.
10780         (fixup_reorder_chain): Drop use of SET_BB_END.
10781         (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
10782         (cfg_layout_delete_block): Strengthen local "to" from rtx * to
10783         rtx_insn **.  Drop use of SET_BB_HEADER.
10784         (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
10785         SET_BB_HEAD.
10786         (BB_HEAD): Delete this function.
10787         (SET_BB_HEAD): Likewise.
10788         (BB_END): Likewise.
10789         (SET_BB_END): Likewise.
10790         (BB_HEADER): Likewise.
10791         (SET_BB_HEADER): Likewise.
10792         * emit-rtl.c (add_insn_after):  Rename param "insn" to
10793         "uncast_insn", adding a new local "insn" and a checked cast to
10794         rtx_insn *.  Drop use of SET_BB_END.
10795         (remove_insn): Strengthen locals "next" and "prev" from rtx to
10796         rtx_insn *.  Drop use of SET_BB_HEAD and SET_BB_END.
10797         (reorder_insns): Drop use of SET_BB_END.
10798         (emit_insn_after_1): Strengthen param "first" and locals "last",
10799         "after_after" from rtx to rtx_insn *.  Drop use of SET_BB_END.
10800         (emit_pattern_after_noloc): Add checked cast.
10801         * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
10802         (restore_other_notes): Likewise.
10803         (move_insn): Likewise.
10804         (sched_extend_bb): Likewise.
10805         (fix_jump_move): Likewise.
10806         * ifcvt.c (noce_process_if_block): Likewise.
10807         (dead_or_predicable): Likewise.
10808         * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
10809         * reg-stack.c (change_stack): Drop use of SET_BB_END.
10810         * sel-sched-ir.c (sel_move_insn): Likewise.
10811         * sel-sched.c (move_nop_to_previous_block): Likewise.
10812
10813         * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
10814         SET_BB_END.
10815         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
10816
10817 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10818
10819         * basic-block.h (create_basic_block_structure): Strengthen params
10820         1 "head" and 2 "end" from rtx to rtx_insn *.
10821         * cfgrtl.c (create_basic_block_structure): Likewise.
10822         (rtl_create_basic_block): Update casts from void * to rtx to
10823         rtx_insn *, so that we can pass them as rtx_insn * to
10824         create_basic_block_structure.
10825         * sel-sched-ir.c (sel_create_basic_block): Likewise.
10826
10827 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10828
10829         * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
10830         rtx_insn **.
10831         (check_for_inc_dec): Strengthen param "insn" from rtx to
10832         rtx_insn *.
10833
10834         * cselib.h (cselib_process_insn): Likewise.
10835
10836         * cselib.c (cselib_record_sets): Likewise.
10837         (cselib_process_insn): Likewise.
10838
10839         * dse.c (struct insn_info): Likewise for field "insn".
10840         (check_for_inc_dec_1): Likewise for local "insn".
10841         (check_for_inc_dec): Likewise for param "insn".
10842         (scan_insn): Likewise.
10843         (dse_step1): Likewise for local "insn".
10844
10845         * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
10846         rtx_insn **.  Use for_each_rtx_in_insn rather than for_each_rtx.
10847
10848 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10849
10850         * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
10851         from rtx to rtx_insn *.
10852         (DEP_PRO): Delete this function and...
10853         (SET_DEP_PRO): ...this function in favor of...
10854         (DEP_PRO): ...reinstate this macro.
10855         (DEP_CON): Delete this function and...
10856         (SET_DEP_CON): ...this function in favor of...
10857         (DEP_CON): ...reinstate this old macro.
10858         (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
10859         (init_dep): Likewise.
10860         (set_priorities): Likewise for both params.
10861         (sd_copy_back_deps): Likewise for params 1 and 2.
10862
10863         * haifa-sched.c (priority): Likewise for param "insn" and local
10864         "next".
10865         (set_priorities): Likewise for params "head" and "tail" and local
10866         "insn".
10867         (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
10868         local "consumer".
10869         (add_to_speculative_block): Add a checked cast.
10870         (create_check_block_twin): Drop use of SET_DEP_CON.
10871         (add_jump_dependencies): Strengthen params "insn" and "jump" from
10872         rtx to rtx_insn *.
10873
10874         * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
10875         Drop use of SET_DEP_PRO
10876         (init_dep): Strengthen params "pro" and "con" from rtx to
10877         rtx_insn *.
10878         (sd_copy_back_deps): Likewise for params "to" and "from".  Drop
10879         use of SET_DEP_CON.
10880         (DEP_PRO): Delete.
10881         (DEP_CON): Delete.
10882         (SET_DEP_PRO): Delete.
10883         (SET_DEP_CON): Delete.
10884
10885 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10886
10887         * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
10888         from rtx to rtx_insn *.
10889         (VINSN_INSN_RTX): Eliminate rvalue function and...
10890         (SET_VINSN_INSN): ...lvalue function in favor of...
10891         (VINSN_INSN_RTX): reinstate this old macro.
10892
10893         * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
10894         in favor of VINSN_INSN_RTX.
10895         (VINSN_INSN_RTX): Delete this function.
10896         (SET_VINSN_INSN_RTX): Likewise.
10897
10898 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10899
10900         * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
10901         (BND_TO): Delete this function and...
10902         (SET_BND_TO): ...this functions in favor of...
10903         (BND_TO): ...reinstating this macro.
10904         (struct _fence): Strengthen field "executing_insns" from
10905         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.  Strengthen fields
10906         "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
10907         (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
10908         and param "insn" from rtx to insn_t.
10909         (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
10910         rtx_insn *.
10911
10912         * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
10913         vec<rtx_insn *> .
10914         (rtx_vec_t): Likewise.
10915         (struct sched_deps_info_def): Strengthen param of "start_insn"
10916         callback from rtx to rtx_insn *.  Likewise for param "insn2" of
10917         "note_mem_dep" callback and first param of "note_dep" callback.
10918
10919         * haifa-sched.c (add_to_speculative_block): Strengthen param
10920         "insn" from rtx to rtx_insn *.
10921         (clear_priorities): Likewise.
10922         (calc_priorities): Likewise for local "insn".
10923
10924         * sched-deps.c (haifa_start_insn): Likewise for param "insn".
10925         Remove redundant checked cast.
10926         (haifa_note_mem_dep): Likewise for param "pending_insn".
10927         (haifa_note_dep): Likewise for param "elem".
10928         (note_mem_dep): Likewise for param "e".
10929         (sched_analyze_1): Add checked casts.
10930         (sched_analyze_2): Likewise.
10931
10932         * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
10933         from rtx to rtx_insn *.
10934         (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
10935         from vec<rtx> * to vec<rtx_insn *> *.
10936
10937         * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
10938         scaffolding.
10939         (flist_add): Strengthen param "executing_insns" from
10940         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
10941         (advance_deps_context): Remove now-redundant checked cast.
10942         (init_fences): Replace uses of NULL_RTX with NULL.
10943         (merge_fences): Strengthen params "last_scheduled_insn" and
10944         "sched_next" from rtx to rtx_insn * and "executing_insns" from
10945         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
10946         (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
10947         (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
10948         an instruction, rather than doing double-duty as a pattern.
10949         (return_nop_to_pool): Update for change of insn_t.
10950         (deps_init_id): Remove now-redundant checked cast.
10951         (struct sched_scan_info_def): Strengthen param of "init_insn"
10952         callback from rtx to insn_t.
10953         (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
10954         (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
10955         NULL.
10956         (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
10957         "end" from rtx to rtx_insn *.
10958         (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
10959         (rtx insn_rtx, bool force_unique_p)
10960         (BND_TO): Delete function.
10961         (SET_BND_TO): Delete function.
10962
10963         * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
10964         rtx to rtx_insn *.
10965         (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
10966         (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
10967         rtx to rtx_insn *.
10968         (undo_transformations): Likewise for param "insn".
10969         (update_liveness_on_insn): Likewise.
10970         (compute_live_below_insn): Likewise for param "insn" and local
10971         "succ".
10972         (update_data_sets): Likewise for param "insn".
10973         (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
10974         (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
10975         (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
10976         rtx_insn *.
10977         (move_cond_jump): Likewise for param "insn".
10978         (move_cond_jump): Drop use of SET_BND_TO.
10979         (compute_av_set_on_boundaries): Likewise.
10980         (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
10981         (update_and_record_unavailable_insns): Strengthen local "bb_end"
10982         from rtx to rtx_insn *.
10983         (maybe_emit_renaming_copy): Likewise for param "insn".
10984         (maybe_emit_speculative_check): Likewise.
10985         (handle_emitting_transformations): Likewise.
10986         (remove_insn_from_stream): Likewise.
10987         (code_motion_process_successors): Strengthen local "succ" from rtx
10988         to insn_t.
10989
10990 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10991
10992         * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
10993         ilist_t, not _xlist_t;
10994         (ILIST_INSN): Define in terms of new union field "insn".
10995         (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
10996         _XLIST_NEXT.
10997         (struct _list_node): Add new field "insn" to the union, of type
10998         insn_t.
10999         (ilist_add): Replace macro with an inline function, requiring an
11000         insn_t.
11001         (ilist_remove): Define this macro directly in terms of
11002         _list_remove, rather than indirectly via _xlist_remove.
11003         (ilist_clear): Likewise, in terms of _list_clear rather than
11004         _xlist_clear.
11005         (ilist_is_in_p): Replace macro with an inline function, requiring
11006         an insn_t.
11007         (_list_iter_cond_insn): New function.
11008         (ilist_iter_remove): Define this macro directly in terms of
11009         _list_iter_remove, rather than indirectly via _xlist_iter_remove.
11010         (ilist_iterator): Define directly in terms of _list_iterator
11011         rather than indirectly through _xlist_iterator.
11012         (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
11013         than in terms of _FOR_EACH_X.
11014         (FOR_EACH_INSN_1): Likewise.
11015
11016 2014-08-26  Joseph Myers  <joseph@codesourcery.com>
11017
11018         PR target/60606
11019         PR target/61330
11020         * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
11021         DECL_HARD_REGISTER and return for invalid register specifications.
11022         * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
11023         DECL_HARD_REGISTER, call expand_one_error_var.
11024         * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
11025         CC_REGNUM with non-MODE_CC modes.
11026         (arm_regno_class): Return NO_REGS for PC_REGNUM.
11027
11028 2014-08-26  Marek Polacek  <polacek@redhat.com>
11029
11030         PR c/61271
11031         * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
11032
11033 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
11034
11035         * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
11036         qi cost; add di cost.
11037         (cortexa57_addrcost_table): Likewise.
11038
11039 2014-08-26  Marek Polacek  <polacek@redhat.com>
11040
11041         PR c/61271
11042         * expr.c (is_aligning_offset): Remove logical not.
11043
11044 2014-08-26  Marek Polacek  <polacek@redhat.com>
11045
11046         PR c/61271
11047         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
11048         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
11049
11050 2014-08-26  Richard Biener  <rguenther@suse.de>
11051
11052         PR tree-optimization/62175
11053         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
11054         expand possibly trapping operations.
11055
11056 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
11057
11058         * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
11059         "insn" from rtx to rtx_insn *.
11060         (permute_load): Likewise for param "insn".
11061         (permute_store): Likewise.
11062         (handle_special_swappables): Likewise for local "insn".
11063         (replace_swap_with_copy): Likewise for locals "insn" and
11064         "new_insn".
11065         (rs6000_analyze_swaps): Likewise for local "insn".
11066
11067 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11068
11069         * regrename.h (struct du_chain): Strengthen field "insn" from rtx
11070         to rtx_insn *.
11071
11072 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11073
11074         * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
11075         "note_list" from rtx to rtx_insn *.
11076         (BB_NOTE_LIST): Replace this function and...
11077         (SET_BB_NOTE_LIST): ...this function with...
11078         (BB_NOTE_LIST): ...the former macro implementation.
11079
11080         * sched-int.h (concat_note_lists): Strengthen param "from_end" and
11081         local "from_start" from rtx to rtx_insn *.  Strengthen param
11082         "to_endp" from rtx * to rtx_insn **.
11083
11084         * haifa-sched.c (concat_note_lists): Likewise.
11085         * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
11086         BB_NOTE_LIST.
11087         (sel_restore_notes): Likewise.
11088         (move_bb_info): Likewise.
11089         (BB_NOTE_LIST): Delete this function.
11090         (SET_BB_NOTE_LIST): Delete this function.
11091         * sel-sched.c (create_block_for_bookkeeping): Eliminate
11092         SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
11093
11094 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11095
11096         * target.def (reorder): Strengthen param "ready" of this DEFHOOK
11097         from rtx * to rtx_insn **.
11098         (reorder2): Likewise.
11099         (dependencies_evaluation_hook): Strengthen params "head", "tail"
11100         from rtx to rtx_insn *.
11101
11102         * doc/tm.texi: Update mechanically for above change to target.def.
11103
11104         * sched-int.h (note_list): Strengthen this variable from rtx to
11105         rtx_insn *.
11106         (remove_notes): Likewise for both params.
11107         (restore_other_notes): Likewise for return type and first param.
11108         (struct ready_list): Strengthen field "vec" from rtx * to
11109         rtx_insn **.
11110         (struct dep_replacement): Strenghten field "insn" from rtx to
11111         rtx_insn *.
11112         (struct deps_desc): Likewise for fields "last_debug_insn",
11113         "last_args_size".
11114         (struct haifa_sched_info): Likewise for callback field
11115         "can_schedule_ready_p"'s param, for first param of "new_ready"
11116         callback field, for both params of "rank" callback field, for
11117         first field of "print_insn" callback field (with a const), for
11118         both params of "contributes_to_priority" callback, for param
11119         of "insn_finishes_block_p" callback, for fields "prev_head",
11120         "next_tail", "head", "tail", for first param of "add_remove_insn"
11121         callback, for first param of "begin_schedule_ready" callback, for
11122         both params of "begin_move_insn" callback, and for second param
11123         of "advance_target_bb" callback.
11124         (add_dependence): Likewise for params 1 and 2.
11125         (sched_analyze): Likewise for params 2 and 3.
11126         (deps_analyze_insn): Likewise for param 2.
11127         (ready_element): Likewise for return type.
11128         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
11129         (try_ready): Strenghten param from rtx to rtx_insn *.
11130         (sched_emit_insn): Likewise for return type.
11131         (record_delay_slot_pair): Likewise for params 1 and 2.
11132         (add_delay_dependencies): Likewise for param.
11133         (contributes_to_priority): Likewise for both params.
11134         (find_modifiable_mems): Likewise.
11135
11136         * config/arm/arm.c (cortexa7_sched_reorder):  Strengthen param
11137         "ready" from rtx * to rtx_insn **.  Strengthen locals "insn",
11138         "first_older_only_insn" from rtx to rtx_insn *.
11139         (arm_sched_reorder):  Strengthen param "ready"  from rtx * to
11140         rtx_insn **.
11141
11142         * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
11143         "last_scheduled_iter0" from rtx to rtx_insn *.
11144         (init_sched_state): Replace use of NULL_RTX with NULL for insn.
11145         (c6x_sched_reorder_1): Strengthen param "ready" and locals
11146         "e_ready", "insnp" from rtx * to rtx_insn **.  Strengthen local
11147         "insn" from rtx to rtx_insn *.
11148         (c6x_sched_reorder): Strengthen param "ready" from rtx * to
11149         rtx_insn **.
11150         (c6x_sched_reorder2): 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_variable_issue):  Add a checked cast when assigning from insn
11154         to ss.last_scheduled_iter0.
11155         (split_delayed_branch): Strengthen param "insn" and local "i1"
11156         from rtx to rtx_insn *.
11157         (split_delayed_nonbranch): Likewise.
11158         (undo_split_delayed_nonbranch): Likewise for local "insn".
11159         (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
11160         "entry_after", "end_packet", "head_insn", "tail_insn",
11161         "new_insns", "last_insn", "this_iter", "prev_stage_insn".
11162         Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
11163         to rtx_insn **.  Remove now-redundant checked cast on last_insn,
11164         but add a checked cast on loop->start_label.  Consolidate calls to
11165         avoid assigning result of gen_spkernel to "insn", now an
11166         rtx_insn *.
11167
11168         * config/i386/i386.c (do_reorder_for_imul): Strengthen param
11169         "ready" from rtx * to rtx_insn **.  Strengthen local "insn" from
11170         rtx to rtx_insn *.
11171         (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
11172         rtx_insn **.  Strengthen locals "top", "next" from rtx to
11173         rtx_insn *.
11174         (ix86_sched_reorder): Strengthen param "ready" from rtx * to
11175         rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
11176         (add_parameter_dependencies): Strengthen params "call", "head" and
11177         locals "insn", "last", "first_arg" from rtx to rtx_insn *.
11178         (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
11179         (add_dependee_for_func_arg): Likewise for param "arg" and local
11180         "insn".
11181         (ix86_dependencies_evaluation_hook): Likewise for params "head",
11182         "tail" and locals "insn", "first_arg".
11183
11184         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
11185         for params "head", "tail" and locals "insn", "next", "next_tail".
11186         (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
11187         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
11188         "insn", "lowest", "highest" from rtx to rtx_insn *.
11189         (ia64_sched_reorder): Strengthen param "ready" from rtx * to
11190         rtx_insn **.
11191         (ia64_sched_reorder2): Likewise.
11192
11193         * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
11194         and local "insn" from rtx to rtx_insn *.  Strengthen param "ready"
11195         from rtx * to rtx_insn **.
11196         (mep_move_ready_insn): Strengthen param "ready" from rtx * to
11197         rtx_insn **.
11198         (mep_print_sched_insn): Strengthen param "insn" from rtx to
11199         rtx_insn *.
11200         (mep_sched_reorder): Strengthen param "ready" from rtx * to
11201         rtx_insn **.  Strengthen locals "core_insn", "cop_insn" from rtx
11202         to rtx_insn *.
11203
11204         * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
11205         from rtx * to rtx_insn **.  Strengthen local "new_head" from rtx
11206         to rtx_insn *.
11207         (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
11208         rtx_insn **.  Strengthen local "temp" from rtx to rtx_insn *.
11209         (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
11210         rtx_insn **.
11211         (vr4130_reorder): Likewise.
11212         (mips_74k_agen_reorder): Likewise.  Strengthen local "insn" from
11213         rtx to rtx_insn *.
11214         (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
11215         rtx_insn **.
11216         (mips_sched_reorder): Likewise.
11217         (mips_sched_reorder2): Likewise.
11218
11219         * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
11220
11221         * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
11222         Strengthen local "tmp" from rtx to rtx_insn *.
11223         (rs6000_sched_reorder2): Likewise.
11224
11225         * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
11226         Likewise.  Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
11227         (s390_sched_reorder): Strengthen param "ready" from rtx * to
11228         rtx_insn **.  Strengthen local "tmp" from rtx to rtx_insn *.
11229
11230         * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
11231         "tmp2" from rtx to rtx_insn *.
11232         (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
11233         Strengthen local "insn" from rtx to rtx_insn *.
11234         (ready_reorder): Strengthen param "ready" from rtx * to
11235         rtx_insn **.  Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
11236         (sh_reorder):  Strengthen param "ready" from rtx * to rtx_insn **.
11237         (sh_reorder2): Likewise.
11238
11239         * config/spu/spu.c (spu_sched_reorder): Likewise.  Strengthen
11240         local "insn" from rtx to rtx_insn *.
11241
11242         * haifa-sched.c (note_list): Strengthen this variable from rtx to
11243         rtx_insn *.
11244         (scheduled_insns): Strengthen this variable from vec<rtx> to
11245         vec<rtx_insn *>.
11246         (set_modulo_params): Likewise for locals "i1", "i2".
11247         (record_delay_slot_pair): Likewise for params "i1", "i2".
11248         (add_delay_dependencies): Likewise for param "insn".
11249         (cond_clobbered_p): Likewise.
11250         (recompute_todo_spec): Likewise for local "prev".
11251         (last_scheduled_insn): Likewise for this variable.
11252         (nonscheduled_insns_begin): Likewise.
11253         (model_set_excess_costs): Strengthen param "insns" from rtx * to
11254         rtx_insn **.
11255         (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
11256         rtx_insn *.
11257         (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
11258         Strengthen local "insn" from rtx to rtx_insn *.
11259         (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
11260         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
11261         (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
11262         (ready_remove_first): Likewise for return type and local "t".
11263         (ready_element): Likewise for return type.
11264         (ready_remove): Likewise for return type and local "t".
11265         (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
11266         (check_clobbered_conditions): Strengthen local "x" from rtx to
11267         rtx_insn *, adding a checked cast.
11268         (schedule_insn): Likewise for param "insn".
11269         (remove_notes): Likewise for params "head", "tail" and locals
11270         "next_tail", "insn", "next".
11271         (struct haifa_saved_data): Likewise for fields
11272         "last_scheduled_insn", "nonscheduled_insns_begin".
11273         (save_backtrack_point): Update for change to field "vec" of
11274         struct ready_list.
11275         (toggle_cancelled_flags): Strengthen local "first" from rtx * to
11276         rtx_insn **.
11277         (restore_last_backtrack_point): Likewise.  Strengthen local "insn"
11278         from rtx to rtx_insn *
11279         (resolve_dependencies): Strengthen param "insn" from rtx to
11280         rtx_insn *
11281         (restore_other_notes): Likewise for return type, for param "head"
11282         and local "note_head".
11283         (undo_all_replacements): Likewise for local "insn".
11284         (first_nonscheduled_insn): Likewise for return type and local "insn".
11285         (queue_to_ready): Likewise for local "insn", adding checked casts.
11286         (early_queue_to_ready): Likewise for local "insn".
11287         (debug_ready_list_1): Strengthen local "p" from rtx * to
11288         rtx_insn **.
11289         (move_insn): Strengthen param "insn" and local "note" from rtx to
11290         rtx_insn *
11291         (insn_finishes_cycle_p): Likewise for param "insn".
11292         (max_issue): Likewise for local "insn".
11293         (choose_ready): Likewise.  Strengthen param "insn_ptr" from rtx *
11294         to rtx_insn **.
11295         (commit_schedule): Strengthen param "prev_head" and local "insn"
11296         from rtx to rtx_insn *
11297         (prune_ready_list): Likewise for local "insn".
11298         (schedule_block): Likewise for locals "prev_head", "head", "tail",
11299         "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
11300         (set_priorities): Likewise for local "prev_head".
11301         (try_ready): Likewise for param "next".
11302         (fix_tick_ready): Likewise.
11303         (change_queue_index): Likewise.
11304         (sched_extend_ready_list): Update for change to field "vec" of
11305         struct ready_list.
11306         (generate_recovery_code): Strengthen param "insn" from rtx to
11307         rtx_insn *.
11308         (begin_speculative_block): Likewise.
11309         (create_check_block_twin): Likewise for param "insn" and locals
11310         "label", "check", "twin".  Introduce local "check_pat" to avoid
11311         "check" being used as a plain rtx before being used as an insn.
11312         (fix_recovery_deps): Add a checked cast to rtx_insn * when
11313         extracting elements from ready_list.
11314         (sched_remove_insn): Strengthen param "insn" from rtx to
11315         rtx_insn *.
11316         (sched_emit_insn): Likewise for return type.
11317         (ready_remove_first_dispatch): Likewise for return type and local
11318         "insn".
11319
11320         * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
11321
11322         * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
11323         const rtx_insn *.
11324
11325         * sched-deps.c (add_dependence): Strengthen params "con", "pro"
11326         from rtx to rtx_insn *.
11327         (add_dependence_list): Likewise for param "insn".  Add a checked
11328         cast.
11329         (add_dependence_list_and_free): Strengthen param "insn" from rtx
11330         to rtx_insn *.  Strengthen param "list_p" from rtx * to
11331         rtx_insn **.
11332         (chain_to_prev_insn): Strengthen param "insn" and locals
11333         "prec_nonnote", "i" from rtx to rtx_insn *.
11334         (flush_pending_lists): Likewise for param "insn".
11335         (cur_insn): Likewise for this variable.
11336         (haifa_start_insn): Add a checked cast.
11337         (note_dep): Strengthen param "e" from rtx to rtx_insn *.
11338         (sched_analyze_reg): Likewise for param "insn".
11339         (sched_analyze_1): Likewise.
11340         (sched_analyze_2): Likewise.  Add checked casts.
11341         (sched_analyze_insn): Likewise.  Also for local "prev".
11342         (deps_analyze_insn): Likewise for param "insn".
11343         (sched_analyze): Likewise for params "head", "tail" and local "insn".
11344         (add_dependence_1): Likewise for params "insn", "elem".
11345         (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
11346         (parse_add_or_inc): Likewise for param "insn".
11347         (find_inc): Likewise for local "inc_cand".
11348         (find_modifiable_mems): Likewise for params "head", "tail" and
11349         locals "insn", "next_tail".
11350
11351         * sched-ebb.c (init_ready_list): Likewise for local "insn".
11352         (begin_schedule_ready): Likewise for param "insn".
11353         (begin_move_insn): Likewise for params "insn" and "last".
11354         (ebb_print_insn): Strengthen param "insn" from const_rtx to
11355         const rtx_insn *.
11356         (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
11357         (ebb_contributes_to_priority): Likewise for params "next", "insn".
11358         (ebb_add_remove_insn): Likewise for param "insn".
11359         (advance_target_bb): Likewise.
11360
11361         * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
11362         "insn".
11363         (check_live): Likewise for param "insn".
11364         (init_ready_list): Likewise for local "insn".
11365         (can_schedule_ready_p): Likewise for param "insn".
11366         (begin_schedule_ready): Likewise.
11367         (new_ready): Likewise for param "next".
11368         (rgn_print_insn): Likewise for param "insn".
11369         (rgn_rank): Likewise for params "insn1", "insn2".
11370         (contributes_to_priority): Likewise for params "next", "insn".
11371         (rgn_insn_finishes_block_p): Likewise for param "insn".
11372         (add_branch_dependences): Likewise for params "head", "tail" and
11373         locals "insn", "last".
11374         (rgn_add_remove_insn): Likewise for param "insn".
11375         (advance_target_bb): Likewise.
11376
11377         * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
11378         const_rtx to const rtx_insn *.
11379
11380         * sel-sched-dump.h (sel_print_insn): Likewise.
11381
11382         * sel-sched-ir.c (advance_deps_context): Add a checked cast.
11383         (deps_init_id): Likewise.
11384
11385         * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
11386         (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
11387         rtx_insn **.
11388
11389 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11390
11391         * output.h (final_start_function): Strengthen param 1 from rtx to
11392         rtx_insn *.
11393
11394         * final.c (final_start_function): Likewise, renaming back from
11395         "uncast_first" to "first", and dropping the checked cast from rtx
11396         to rtx_insn *.
11397
11398 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11399
11400         * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
11401         * final.c (final): Likewise.  Rename param back from
11402         "uncast_first" to "first" and eliminate the checked cast from rtx
11403         to rtx_insn *.
11404
11405 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11406
11407         * output.h (shorten_branches): Strengthen param from rtx to
11408         rtx_insn *.
11409
11410         * final.c (shorten_branches): Likewise, renaming param back from
11411         "uncast_first" to "first", and dropping the checked cast from rtx
11412         to rtx_insn *.
11413
11414         * genattr.c (gen_attr): Likewise when writing out the prototype of
11415         shorten_branches.
11416
11417 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11418
11419         * sched-int.h (struct haifa_sched_info): Strengthen fields
11420         "prev_head" and "next_tail" from rtx to rtx_insn *.
11421
11422 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11423
11424         * rtl.h (rtx_jump_table_data::get_labels): New method.
11425         * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
11426         with use of the new rtx_jump_table_data::get_labels method.
11427         (purge_dead_tablejump_edges): Strengthen param "table" from rtx
11428         to rtx_jump_table_data *.  Simplify by using get_labels method.
11429         * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
11430         a dyn_cast, introducing local "table", using it to replace
11431         label-lookup logic with a get_labels method call.
11432         (patch_jump_insn): Simplify using get_labels method.
11433         * dwarf2cfi.c (create_trace_edges): Likewise.
11434         * rtlanal.c (label_is_jump_target_p): Likewise.
11435
11436 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11437
11438         * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
11439         to rtx_insn *.
11440
11441         * emit-rtl.c (unshare_all_rtl_1): Likewise.
11442         (unshare_all_rtl_again): Likewise, also for local "p".
11443
11444 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11445
11446         * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
11447         to rtx_insn *.
11448         * cfgrtl.c (delete_insn_and_edges): Likewise.
11449
11450 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11451
11452         * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
11453         from rtx to rtx_insn *.
11454
11455         * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
11456
11457 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11458
11459         * function.c (thread_prologue_and_epilogue_insns): Likewise for
11460         locals "returnjump", "epilogue_end", "insn", "next".
11461
11462         * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
11463         "returnjump" from rtx * to rtx_insn **.
11464         * shrink-wrap.c (get_unconverted_simple_return): Likewise.
11465
11466 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11467
11468         * basic-block.h (struct edge_def). Strengthen "r" within
11469         union edge_def_insns from rtx to rtx_insn *.
11470
11471         * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
11472         from rtx to rtx_insn *.  Strengthen local "insns" from rtx to
11473         rtx_insn *.
11474         * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
11475         from rtx to rtx_insn *.
11476         * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
11477         rtx_insn *.
11478         * postreload-gcse.c (reg_killed_on_edge): Likewise.
11479         (reg_used_on_edge): Likewise.
11480         * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
11481         (gt_pch_nx): New overload for rtx_insn *&.
11482         * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
11483         from rtx to rtx_insn *.
11484
11485 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11486
11487         * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
11488         from rtx to rtx_insn *.
11489         (BB_FOOTER): Replace function with access macro.
11490         (SET_BB_FOOTER): Delete.
11491
11492         * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
11493         with BB_FOOTER.
11494         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
11495         (emit_barrier_after_bb): Likewise.
11496         (record_effective_endpoints): Likewise.
11497         (relink_block_chain): Likewise.
11498         (fixup_fallthru_exit_predecessor): Likewise.
11499         (cfg_layout_duplicate_bb): Likewise.
11500         (cfg_layout_split_block): Likewise.
11501         (cfg_layout_delete_block): Likewise.
11502         (cfg_layout_merge_blocks): Likewise.
11503         (BB_FOOTER): Delete function.
11504         (SET_BB_FOOTER): Delete function.
11505         * combine.c (update_cfg_for_uncondjump): Replace uses of
11506         SET_BB_FOOTER with BB_FOOTER.
11507
11508 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11509
11510         * except.h (struct eh_landing_pad_d): Strengthen field
11511         "landing_pad" from rtx to rtx_code_label *.
11512
11513         * except.c (sjlj_emit_dispatch_table): Likewise for param
11514         "dispatch_label"
11515         (sjlj_build_landing_pads): Likewise for local "dispatch_label".
11516
11517 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11518
11519         * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
11520         first param from rtx to rtx_insn *.
11521         * config/xtensa/xtensa.c (struct machine_function): Likewise for
11522         field "set_frame_ptr_insn".
11523         (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
11524         "csend" from rtx to rtx_code_label *.
11525         (xtensa_expand_atomic): Likewise for local "csloop".
11526         (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
11527         rtx_insn *.
11528         (xtensa_call_tls_desc): Likewise for return type and locals
11529         "call_insn", "insns".
11530         (xtensa_legitimize_tls_address): Likewise for local "insns".
11531         (xtensa_expand_prologue): Likewise for locals "insn", "first".
11532
11533 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11534
11535         * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
11536         first param from rtx to rtx_insn *.
11537         * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
11538         "insn".
11539
11540 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11541
11542         * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
11543         Strengthen param 1 from rtx to rtx_insn *.
11544         (tilepro_output_cbranch): Likewise.
11545         (tilepro_adjust_insn_length): Likewise.
11546         (tilepro_final_prescan_insn): Likewise for sole param.
11547
11548         * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
11549         Likewise for local "last".
11550         (cbranch_predicted_p): Likewise for param "insn".
11551         (tilepro_output_simple_cbranch_with_opcode): Likewise.
11552         (tilepro_output_cbranch_with_opcode): Likewise.
11553         (tilepro_output_cbranch): Likewise.
11554         (frame_emit_load): Likewise for return type and locals "seq",
11555         "insn".
11556         (emit_sp_adjust): Likewise for return type and local "insn".
11557         (tilepro_expand_epilogue): Likewise for locals "last_insn",
11558         "insn".
11559         (tilepro_adjust_insn_length): Likewise for param "insn".
11560         (next_insn_to_bundle): Likewise for return type and params
11561         "r", "end".
11562         (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
11563         (replace_pc_relative_symbol_ref): Likewise for param "insn" and
11564         local "new_insns".
11565         (match_addli_pcrel): Likewise for param "insn".
11566         (replace_addli_pcrel): Likewise.
11567         (match_auli_pcrel): Likewise.
11568         (replace_auli_pcrel): Likewise.
11569         (tilepro_fixup_pcrel_references): Likewise for locals "insn",
11570         "next_insn".
11571         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
11572         "queue", "next_queue", "prev".
11573         (tilepro_asm_output_mi_thunk): Likewise for local "insn".
11574         (tilepro_final_prescan_insn): Likewise for param "insn".
11575
11576 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11577
11578         * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
11579         Strengthen param 1 from rtx to rtx_insn *.
11580         (tilegx_output_cbranch): Likewise.
11581         (tilegx_adjust_insn_length): Likewise.
11582         (tilegx_final_prescan_insn): Likewise for sole param.
11583
11584         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
11585         or local "last".
11586         (cbranch_predicted_p): Likewise for param "insn".
11587         (tilegx_output_simple_cbranch_with_opcode): Likewise.
11588         (tilegx_output_cbranch_with_opcode): Likewise.
11589         (tilegx_output_cbranch): Likewise.
11590         (frame_emit_load): Likewise for return type.
11591         (set_frame_related_p): Likewise for locals "seq", "insn".
11592         (emit_sp_adjust): Likewise for return type, and for local "insn".
11593         Introduce local "pat" for use in place of "insn" where the latter
11594         isn't an instruction.
11595         (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
11596         from rtx to rtx_insn *.
11597         (tilegx_adjust_insn_length): Likewise for param "insn".
11598         (next_insn_to_bundle): Likewise for return type and params "r" and
11599         "end".
11600         (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
11601         "end".
11602         (replace_insns): Likewise for params "old_insn", "new_insns".
11603         (replace_mov_pcrel_step1): Likewise for param "insn" and local
11604         "new_insns".
11605         (replace_mov_pcrel_step2): Likewise.
11606         (replace_mov_pcrel_step3): Likewise.
11607         (tilegx_fixup_pcrel_references): Likewise for locals "insn",
11608         "next_insn".
11609         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
11610         "queue", "next_queue", "prev".
11611         (tilegx_output_mi_thunk): Likewise for local "insn".
11612         (tilegx_final_prescan_insn): Likewise for param "insn".
11613
11614 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11615
11616         * config/spu/spu.c (frame_emit_store): Strengthen return type from
11617         rtx to rtx_insn *.
11618         (frame_emit_load): Likewise.
11619         (frame_emit_add_imm): Likewise, also for local "insn".
11620         (spu_expand_prologue): Likewise for local "insn".
11621         (struct spu_bb_info): Likewise for field "prop_jump".
11622         (emit_nop_for_insn): Likewise for param "insn" and local
11623         "new_insn".
11624         (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
11625         "hbr_insn".
11626         (spu_emit_branch_hint): Likewise for params "before", "branch" and
11627         locals "hint", "insn".
11628         (get_branch_target): Likewise for param "branch".
11629         (insn_clobbers_hbr): Likewise for param "insn".
11630         (insert_hbrp_for_ilb_runout): Likewise for param "first" and
11631         locals "insn", "before_4", "before_16".
11632         (insert_hbrp): Likewise for local "insn".
11633         (spu_machine_dependent_reorg): Likewise for locals "branch",
11634         "insn", "next", "bbend".
11635         (uses_ls_unit): Likewise for param "insn".
11636         (get_pipe): Likewise.
11637         (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
11638         introducing a checked cast.
11639         (spu_sched_adjust_cost): Likewise for params "insn" and
11640         "dep_insn".
11641         (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
11642         (spu_sms_res_mii): Likewise.
11643
11644 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11645
11646         * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
11647         from rtx to rtx_insn *.
11648         (output_cbranch): Likewise for param 6.
11649         (output_return): Likewise for param 1.
11650         (output_sibcall): Likewise.
11651         (output_v8plus_shift): Likewise.
11652         (output_v8plus_mult): Likewise.
11653         (output_v9branch): Likewise for param 7.
11654         (output_cbcond):  Likewise for param 3.
11655
11656         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
11657         for local "insn".
11658         (sparc_legitimize_pic_address): Likewise.
11659         (sparc_emit_call_insn): Likewise.
11660         (emit_save_or_restore_regs): Likewise.
11661         (emit_window_save): Likewise for return type and local "insn".
11662         (sparc_expand_prologue): Likewise for local "insn".
11663         (sparc_flat_expand_prologue): Likewise.
11664         (output_return): Likewise for param "insn".
11665         (output_sibcall): Likewise for param "insn" and local "delay".
11666         (output_ubranch): Likewise for param "insn".
11667         (output_cbranch): Likewise.
11668         (output_cbcond): Likewise.
11669         (output_v9branch): Likewise.
11670         (output_v8plus_shift): Likewise.
11671         (sparc_output_mi_thunk): Likewise for local "insn".
11672         (get_some_local_dynamic_name): Likewise.
11673         (output_v8plus_mult): Likewise for param "insn".
11674
11675 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11676
11677         * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
11678         from rtx to rtx_insn *.
11679         (output_branchy_insn): Likewise for param 3.
11680         (output_far_jump): Likewise for param 1.
11681         (final_prescan_insn): Likewise.
11682         (sh_insn_length_adjustment): Likewise for sole param.
11683
11684         * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
11685         (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
11686         rtx_code_label *.
11687         (sh_emit_compare_and_set): Likewise for local "lab".
11688         (output_far_jump): Strengthen param "insn" and local "prev" from
11689         rtx to rtx_insn *.
11690         (output_branchy_insn): Likewise for param "insn" and local
11691         "next_insn".
11692         (output_ieee_ccmpeq): Likewise for param "insn".
11693         (struct label_ref_list_d): Strengthen field "label" from rtx to
11694         rtx_code_label *.
11695         (pool_node): Likewise.
11696         (pool_window_label): Likewise for this global.
11697         (add_constant): Likewise for return type and locals "lab", "new_rtx".
11698         (dump_table): Strengthen params "start", "barrier" and local
11699         "scan" from rtx to rtx_insn *.
11700         (broken_move): Likewise for param "insn".
11701         (untangle_mova): Likewise for params "first_mova" and "new_mova".
11702         Strengthen param "first_mova" from rtx * to rtx_insn **.
11703         (mova_p): Likewise for param "insn".
11704         (fixup_mova): Likewise for param "mova".
11705         (find_barrier): Likewise for return type, params "mova" and
11706         "from", and locals "barrier_before_mova", "found_barrier",
11707         "good_barrier", "orig", "last_symoff", "next".  Strengthen local
11708         "label" from rtx to rtx_code_label *.
11709         (sh_loop_align): Strengthen locals "first", "insn", "mova" from
11710         rtx to rtx_insn *.
11711         (sh_reorg): Likewise for locals "link", "scan", "barrier".
11712         (split_branches): Likewise for param "first" and local "insn".
11713         (final_prescan_insn): Likewise for param "insn".
11714         (sequence_insn_p): Likewise for locals "prev", "next".
11715         (sh_insn_length_adjustment): Likewise for param "insn".
11716         (sh_can_redirect_branch): Likewise for local "insn".
11717         (find_r0_life_regions): Likewise for locals "end", "insn".
11718         (sh_output_mi_thunk): Likewise for local "insns".
11719
11720 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11721
11722         * config/score/score.c (score_output_mi_thunk): Strengthen local
11723         "insn" from rtx to rtx_insn *.
11724         (score_prologue): Likewise.
11725
11726 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11727
11728         * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
11729         1 from rtx to rtx_insn *.
11730         (s390_emit_jump): Likewise for return type.
11731         (s390_emit_call): Likewise.
11732         (s390_load_got): Likewise.
11733
11734         * config/s390/s390.c (last_scheduled_insn): Likewise for this
11735         variable.
11736         (s390_match_ccmode): Likewise for param "insn".
11737         (s390_emit_jump): Likewise for return type.
11738         (s390_split_branches): Likewise for local "label".
11739         (struct constant): Strengthen field "label" from rtx to
11740         rtx_code_label *.
11741         (struct constant_pool): Likewise for field "label".  Strengthen
11742         fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
11743         rtx_insn *.
11744         (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
11745         insns.
11746         (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
11747         (s390_end_pool): Likewise.
11748         (s390_dump_pool): Likewise for local "insn".
11749         (s390_mainpool_start): Likewise.
11750         (s390_chunkify_start): Likewise.
11751         (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
11752         with insns.  Strengthen locals "label", "jump", "barrier", "next",
11753         "prev", "vec_insn", "insn" from rtx to rtx_insn *.
11754         (s390_chunkify_finish): Strengthen local "insn" from rtx to
11755         rtx_insn *.
11756         (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
11757         "jump", "label", "next_insn".
11758         (s390_regs_ever_clobbered): Likewise for local "cur_insn".
11759         (s390_optimize_nonescaping_tx): Likewise for locals "insn",
11760         "tbegin_insn".
11761         (s390_load_got): Likewise for return type and local "insns".
11762         (s390_save_gprs_to_fprs): Likewise for local "insn".
11763         (s390_restore_gprs_from_fprs): Likewise.
11764         (pass_s390_early_mach::execute): Likewise.
11765         (s390_emit_prologue): Likewise for local "insns".
11766         (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
11767         rtx_code_label *.
11768         (s390_emit_call): Strengthen return type and local "insn" from
11769         rtx to rtx_insn *.
11770         (s390_emit_tpf_eh_return): Likewise for local "insn".
11771         (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
11772         "next_insn", introducing locals "s_pat", "rpat" to allow this.
11773         (s390_fix_long_loop_prediction): Likewise for param "insn" and
11774         local "cur_insn".
11775         (s390_non_addr_reg_read_p): Likewise for param "insn".
11776         (find_cond_jump): Likewise for return type and param "insn".
11777         (s390_swap_cmp): Likewise for param "insn".
11778         (s390_z10_optimize_cmp): Likewise for param "insn" and locals
11779         "prev_insn", "next_insn".
11780         (s390_reorg): Likewise for locals "insn", "target".
11781         (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
11782         (s390_sched_variable_issue): For now, rename param "insn" to
11783         "uncast_insn", introducing a checked cast.
11784         (s390_sched_init): Replace NULL_RTX with NULL when dealing with
11785         insn.
11786         (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
11787         rtx_insn *.  Use for_each_rtx_in_insn rather than for_each_rtx.
11788
11789 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11790
11791         * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
11792         param from rtx to rtx_insn *.
11793         * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
11794
11795 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11796
11797         * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
11798         4 from rtx to rtx_insn *.
11799         (rs6000_final_prescan_insn): Likewise for first param.
11800         * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
11801         local "insn".
11802         (rs6000_get_some_local_dynamic_name): Likewise.
11803         (output_cbranch): Likewise for param "insn".
11804         (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
11805         (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
11806         (rs6000_emit_allocate_stack): Likewise for local "insn".
11807         (load_cr_save): Likewise.
11808         (restore_saved_cr): Likewise.
11809         (restore_saved_lr): Likewise.
11810         (emit_cfa_restores): Likewise.
11811         (rs6000_output_function_epilogue): Likewise for locals "insn" and
11812         "deleted_debug_label".
11813         (rs6000_output_mi_thunk): Likewise for local "insn".
11814         (rs6000_final_prescan_insn): Likewise for param "insn".
11815
11816 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11817
11818         * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
11819         Strengthen param "insn" from rtx to rtx_insn *.
11820         * config/picochip/picochip.c (picochip_current_prescan_insn):
11821         Likewise for this variable.
11822         (picochip_final_prescan_insn): Likewise for param "insn".
11823
11824 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11825
11826         * config/pa/pa-protos.h (pa_output_call): Strengthen first param
11827         from rtx to rtx_insn *.
11828         (pa_output_indirect_call): Likewise.
11829         (pa_adjust_insn_length): Likewise.
11830         (pa_attr_length_millicode_call): Likewise.
11831         (pa_attr_length_call): Likewise.
11832         (pa_attr_length_indirect_call): Likewise.
11833
11834         * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
11835         "insn".
11836         (pa_attr_length_millicode_call): Likewise.
11837         (pa_attr_length_call): Likewise.
11838         (pa_output_call): Likewise.
11839         (pa_attr_length_indirect_call): Likewise.
11840         (pa_output_indirect_call): Likewise.
11841
11842 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11843
11844         * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
11845         Strengthen first param from rtx to rtx_insn *.
11846         * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
11847         param "insn".
11848
11849 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11850
11851         * config/mips/mips-protos.h (mips_emit_move): Strengthen return
11852         type from rtx to rtx_insn *.
11853         (mips_expand_call): Likewise.
11854         (mips_adjust_insn_length): Likewise for first param.
11855         (mips_output_conditional_branch): Likewise.
11856         (mips_output_order_conditional_branch): Likewise.
11857         (mips_final_prescan_insn): Likewise.
11858
11859         * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
11860         rtx_insn * for the SEQUENCE case.
11861         (SEQ_END): Likewise.
11862         (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
11863         (mips_emit_call_insn): Likewise, also for local "insn".
11864         (mips16_gp_pseudo_reg): Likewise for local "scan".
11865         (mips16_build_call_stub): Likewise for return type and for local
11866         "insn".  Introduce a new local "pattern" so that "insn" can indeed
11867         be an insn.
11868         (mips_expand_call): Strengthen return type and local "insn" from
11869         rtx to rtx_insn *.
11870         (mips_block_move_loop): Strengthen local "label" from rtx to
11871         rtx_code_label *.
11872         (mips_expand_synci_loop): Likewise for locals "label",
11873         "end_label".
11874         (mips_set_frame_expr): Strengthen local "insn" from rtx to
11875         rtx_insn *.
11876         (mips16e_collect_argument_saves): Likewise for locals "insn",
11877         "next".
11878         (mips_find_gp_ref): Likewise for param of callback for "pred"
11879         param, and for local "insn".
11880         (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
11881         (mips_insn_has_flexible_gp_ref_p): Likewise.
11882         (mips_epilogue_emit_cfa_restores): Likewise for return type and
11883         local "insn".
11884         (mips_epilogue_set_cfa): Likewise for local "insn".
11885         (mips_expand_epilogue): Likewise.
11886         (mips_adjust_insn_length): Likewise for param "insn".
11887         (mips_output_conditional_branch): Likewise.
11888         (mips_output_order_conditional_branch): Likewise.
11889         (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
11890         "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
11891         "falu2_turn_enabled_insn".
11892         (mips_builtin_branch_and_move): Strengthen locals "true_label",
11893         "done_label" from rtx to rtx_code_label *.
11894         (struct mips16_constant): Likewise for field "label".
11895         (mips16_add_constant): Likewise for return type.
11896         (mips16_emit_constants_1): Strengthen return type and param "insn"
11897         from rtx to rtx_insn *.
11898         (mips16_emit_constants): Likewise for param "insn".
11899         (mips16_insn_length): Likewise.
11900         (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
11901         to rtx_code_label *.
11902         (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
11903         from rtx to rtx_insn *.
11904         (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
11905         "jump".  Strengthen local "label" from rtx to rtx_code_label *.
11906         (r10k_simplify_address): Strengthen param "insn" and local
11907         "def_insn" from rtx to rtx_insn *.
11908         (r10k_safe_address_p): Strengthen param "insn" from rtx to
11909         rtx_insn *.
11910         (r10k_needs_protection_p_1): Update target type of cast of data
11911         from to rtx to rtx_insn *.
11912         (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
11913         rtx * to rtx_insn **.
11914         (r10k_needs_protection_p): Strengthen param "insn" from rtx to
11915         rtx_insn *.
11916         (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
11917         (mips_call_expr_from_insn): Likewise for param "insn".
11918         (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
11919         (mips_find_pic_call_symbol): Likewise for param "insn".
11920         (mips_annotate_pic_calls): Likewise for local "insn".
11921         (mips_sim_insn): Likewise for this variable.
11922         (struct mips_sim): Likewise for field "insn" within elements of
11923         last_set array.
11924         (mips_sim_wait_reg): Likewise for param "insn".
11925         (mips_sim_wait_regs): Likewise.
11926         (mips_sim_wait_units): Likewise.
11927         (mips_sim_wait_insn): Likewise.
11928         (mips_sim_issue_insn): Likewise.
11929         (mips_sim_finish_insn): Likewise.
11930         (mips_seq_time): Likewise for param "seq" and local "insn".
11931         (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
11932         locals "first", "second".
11933         (vr4130_align_insns): Likewise for locals "insn", "subinsn",
11934         "last", "last2", "next".
11935         (mips_avoid_hazard): Likewise for params "after", "insn".
11936         (mips_reorg_process_insns): Likewise for locals "insn",
11937         "last_insn", "subinsn", "next_insn".
11938         (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
11939         (mips16_split_long_branches): Likewise for locals "insn" "jump",
11940         "jump_sequence".
11941         (mips_output_mi_thunk): Likewise for local "insn".
11942         (mips_final_prescan_insn): Likewise for param "insn".
11943
11944 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11945
11946         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
11947         Strengthen return type and local "insns" from rtx to rtx_insn *.
11948         (microblaze_legitimize_tls_address): Likewise for local "insns".
11949         (microblaze_block_move_loop): Strengthen local "label" from rtx
11950         to rtx_code_label *.
11951         (microblaze_expand_prologue): Strengthen two locals named "insn"
11952         from rtx to rtx_insn *.
11953         (microblaze_asm_output_mi_thunk): Likewise for local "insn".
11954         (microblaze_expand_divide): Likewise for locals "jump", "cjump",
11955         "insn".  Strengthen locals "div_label", "div_end_label" from rtx
11956         to rtx_code_label *.
11957
11958 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11959
11960         * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
11961         param from rtx to rtx_insn *.
11962         (mep_reuse_lo): Likewise for third param.
11963         (mep_use_post_modify_p): Likewise for first param.
11964         (mep_core_address_length): Likewise.
11965         (mep_cop_address_length): Likewise.
11966         (mep_final_prescan_insn): Likewise.
11967         (mep_store_data_bypass_p): Likewise for both params.
11968         (mep_mul_hilo_bypass_p): Likewise.
11969         (mep_ipipe_ldc_p): Likewise for param.
11970
11971         * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
11972         (mep_rewrite_mult): Likewise.
11973         (mep_rewrite_mulsi3): Likewise.
11974         (mep_rewrite_maddsi3): Likewise.
11975         (mep_reuse_lo_p_1): Likewise.
11976         (mep_reuse_lo_p): Likewise.
11977         (mep_frame_expr): Likewise.
11978         (mep_make_parallel): Likewise for both params.
11979         (mep_use_post_modify_p_1): Likewise for param "set_insn" and
11980         local "insn".
11981         (mep_use_post_modify_p): Likewise for param "insn".
11982         (mep_core_address_length): Likewise.
11983         (mep_cop_address_length): Likewise.
11984         (mep_reg_set_in_function): Likewise for local "insn".
11985         (mep_asm_without_operands_p): Likewise.
11986         (F): Likewise for return type and param "x".
11987         (add_constant): Likewise for local "insn".
11988         (maybe_dead_move): Likewise for return type and local "insn".
11989         (mep_expand_prologue): Likewise for local "insn".
11990         (mep_final_prescan_insn): Likewise for param "insn".
11991         (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
11992         "next", "follow", "x".
11993         (mep_insert_repeat_label_last): Likewise for return type, param
11994         "last_insn", and locals "next", "prev".  Strengthen param "label"
11995         from rtx to rtx_code_label *.
11996         (struct mep_doloop_begin): Strengthen field "insn" from rtx to
11997         rtx_insn *.
11998         (struct mep_doloop_end): Likewise for fields "insn" and
11999         "fallthrough".
12000         (mep_reorg_repeat): Likewise for param "insns" and local "insn".
12001         Strengthen local "repeat_label" from rtx to rtx_code_label *.
12002         (mep_invertable_branch_p): Strengthen param "insn" from rtx to
12003         rtx_insn *.
12004         (mep_invert_branch): Likewise for params "insn" and "after".
12005         (mep_reorg_erepeat): Likewise for param "insns" and locals
12006         "insn", "prev", "new_last", "barrier", "user".  Strengthen local
12007         "l" from rtx to rtx_code_label *.
12008         (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
12009         from rtx to rtx_insn *.
12010         (mep_reorg_addcombine): Likewise for param "insns" and locals
12011         "i", "n".
12012         (add_sp_insn_p): Likewise for param "insn".
12013         (mep_reorg_noframe): Likewise for param "insns" and locals
12014         "start_frame_insn", "end_frame_insn", "next".
12015         (mep_reorg): Likewise for local "insns".
12016         (mep_store_data_bypass_1): Likewise for param "prev".  Add checked
12017         cast.
12018         (mep_store_data_bypass_p): Likewise for params "prev", "insn".
12019         (mep_mul_hilo_bypass_p): Likewise.
12020         (mep_ipipe_ldc_p): Likewise for param "insn".
12021         (mep_make_bundle): Likewise for return type, param "cop" and local
12022         "insn", splitting out the latter into a new local "seq" for when it
12023         is a SEQUENCE rather than an insn.
12024         (core_insn_p): Likewise for param "insn".
12025         (mep_bundle_insns): Likewise for param "insns" and locals "insn",
12026         "last", "first", "note", "prev", "core_insn".
12027
12028 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12029
12030         * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
12031         rtx to rtx_insn *.
12032         (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
12033         (m68k_final_prescan_insn): Likewise for first param.
12034
12035         * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
12036         (m68k_set_frame_related): Likewise for param "insn".
12037         (output_btst): Likewise for param "insn".
12038         (m68k_final_prescan_insn): Likewise.
12039         (m68k_move_to_reg): Likewise for local "insn".
12040         (m68k_call_tls_get_addr): Likewise for local "insns".
12041         (m68k_call_m68k_read_tp): Likewise.
12042         (strict_low_part_peephole_ok): Likewise for param "first_insn".
12043         (m68k_output_mi_thunk): Likewise for local "insn".
12044
12045 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12046
12047         * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
12048         first param from rtx to rtx_insn *.
12049         (iq2000_adjust_insn_length): Likewise.
12050         (iq2000_output_conditional_branch): Likewise.
12051         * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
12052         "insn" and local "nop_insn".
12053         (iq2000_annotate_frame_insn): Likewise for param "insn".
12054         (iq2000_expand_prologue): Likewise for both locals "insn".
12055         (iq2000_adjust_insn_length): Likewise for param "insn".
12056         (iq2000_output_conditional_branch): Likewise.
12057
12058 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12059
12060         * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
12061         "insns" from rtx to rtx_insn *.
12062         (ia64_emit_cond_move): Likewise for locals "insn", "first".
12063         (struct spill_fill_data): Likewise for field "init_after" and for
12064         elements of array field "prev_insn".
12065         (spill_restore_mem): Likewise for locals "insn", "first".
12066         (do_spill): Likewise for local "insn".
12067         (do_restore): Likewise.
12068         (ia64_expand_prologue): Likewise.
12069         (ia64_expand_epilogue): Likewise.
12070         (emit_insn_group_barriers): Likewise for locals "insn",
12071         "last_label".
12072         (emit_all_insn_group_barriers): Likewise for locals "insn",
12073         "last".
12074         (dfa_stop_insn): Likewise for this global.
12075         (dfa_pre_cycle_insn): Likewise.
12076         (ia64_nop): Likewise.
12077         (final_emit_insn_group_barriers): Likewise for locals "insn",
12078         "last".
12079         (emit_predicate_relation_info): Likewise for locals "head", "n",
12080         "insn", "b", "a".
12081         (ia64_reorg): Likewise for local "insn".
12082         (ia64_output_mi_thunk): Likewise.
12083         (expand_vec_perm_interleave_2): Likewise for local "seq".
12084
12085 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12086
12087         * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
12088         param 1 "insn" from rtx to rtx_insn *.
12089         (ix86_use_lea_for_mov): Likewise.
12090         (ix86_avoid_lea_for_addr): Likewise.
12091         (ix86_split_lea_for_addr): Likewise.
12092         (ix86_lea_for_add_ok): Likewise.
12093         (ix86_output_call_insn): Likewise.
12094
12095         * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
12096         (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
12097         (ix86_output_function_epilogue): Likewise for locals "insn",
12098         "deleted_debug_label".
12099         (legitimize_tls_address): Likewise for local "insn".
12100         (get_some_local_dynamic_name): Likewise.
12101         (increase_distance): Likewise for params "prev", "next".
12102         (distance_non_agu_define_in_bb): Likewise for params "insn",
12103         "start" and locals "prev", "next".
12104         (distance_non_agu_define): Likewise for param "insn".
12105         (distance_agu_use_in_bb): Likewise for params "insn", "start" and
12106         locals "next", "prev".
12107         (distance_agu_use): Likewise for param "insn".
12108         (ix86_lea_outperforms): Likewise.
12109         (ix86_ok_to_clobber_flags): Likewise.
12110         (ix86_avoid_lea_for_add): Likewise.
12111         (ix86_use_lea_for_mov): Likewise.
12112         (ix86_avoid_lea_for_addr): Likewise.
12113         (find_nearest_reg_def): Likewise, also for locals "prev", "start".
12114         (ix86_split_lea_for_addr): Likewise for param "insn".
12115         (ix86_lea_for_add_ok): Likewise for param "insn".
12116         (ix86_expand_carry_flag_compare): Likewise for local
12117         "compare_seq".
12118         (ix86_expand_int_movcc): Likewise.
12119         (ix86_output_call_insn): Likewise for param "insn".
12120         (ix86_output_call_insn): Likewise for local "i".
12121         (x86_output_mi_thunk): Introduce local "insn", using it in place
12122         of "tmp" when dealing with insns.
12123         (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
12124         "start".
12125         (ix86_pad_returns): Likewise for locals "ret", "prev".
12126         (ix86_count_insn_bb): Likewise for local "insn".
12127         (ix86_pad_short_function): Likewise for locals "ret", "insn".
12128         (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
12129         (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
12130         (expand_vec_perm_interleave2): Likewise for local "seq".
12131         (expand_vec_perm_vperm2f128_vblend): Likewise.
12132         (ix86_loop_unroll_adjust): Likewise for local "insn".  Convert
12133         call to for_each_rtx with for_each_rtx_in_insn.
12134
12135 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12136
12137         * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
12138         "label" from rtx to rtx_code_label *.
12139         (ix86_expand_prologue): Likewise.
12140         (ix86_expand_split_stack_prologue): Likewise for locals "label",
12141         "varargs_label".
12142         (ix86_split_idivmod): Likewise for locals "end_label" and
12143         "qimode_label".
12144         (ix86_expand_branch): Likewise for local "label2".
12145         (ix86_expand_aligntest): Likewise for return type and local "label".
12146         (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
12147         "top_label".
12148         (expand_movmem_epilogue): Likewise for the various locals named
12149         "label".
12150         (expand_setmem_epilogue): Likewise.
12151         (expand_small_movmem_or_setmem): Likewise for local "label".
12152         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
12153         Strengthen param "done_label" from rtx * to rtx_code_label **.
12154         Strengthen locals "loop_label" and "label" from rtx to
12155         rtx_code_label *.
12156         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
12157         Likewise for locals "loop_label", "label".
12158         (ix86_expand_set_or_movmem): Likewise for locals "label",
12159         "jump_around_label", "hot_label".
12160         (ix86_expand_strlensi_unroll_1): Likewise for locals
12161         "align_2_label", align_3_label", "align_4_label", "end_0_label",
12162         "end_2_label".
12163         (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
12164         (void ix86_emit_i387_log1p): Likewise for locals "label1",
12165         "label2", "jump_label".
12166         (ix86_expand_sse_compare_and_jump): Likewise for return type and
12167         local "label".
12168         (ix86_expand_lfloorceil): Likewise for local "label".
12169         (ix86_expand_rint): Likewise.
12170         (ix86_expand_floorceildf_32): Likewise.
12171         (ix86_expand_floorceil): Likewise.
12172         (ix86_expand_rounddf_32): Likewise.
12173         (ix86_expand_trunc): Likewise.
12174         (ix86_expand_truncdf_32): Likewise.
12175         (ix86_expand_round): Likewise.
12176
12177 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12178
12179         * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
12180         first param from rtx to rtx_insn *.
12181         (h8300_insn_length_from_table): Likewise.
12182         * config/h8300/h8300.c (F): Likewise for return type and param
12183         "x".
12184         (Fpa): Add a checked cast to rtx_insn *.
12185         (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
12186         rtx_insn *.
12187         (final_prescan_insn): Likewise for param "insn".
12188         (h8300_binary_length): Likewise.
12189         (h8300_insn_length_from_table): Likewise.
12190
12191 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12192
12193         * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
12194         Strengthen first param "insn" from rtx to rtx_insn *.
12195
12196         * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
12197         Likewise.
12198         (frame_insn): Likewise for return type.  Introduce local "insn"
12199         for use in place of local "x" for use as an rtx_insn *.
12200         (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
12201         (epiphany_expand_prologue): Likewise for local "insn".
12202         * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
12203         * config/epiphany/resolve-sw-modes.c
12204         (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
12205         "seq".
12206
12207 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12208
12209         * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
12210         param from rtx to rtx_insn *.
12211         (c6x_final_prescan_insn): Likewise for first param.
12212
12213         * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
12214         (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
12215         (c6x_expand_compare): Strengthen local "insns" from rtx to
12216         rtx_insn *.
12217         (c6x_get_unit_specifier): Likewise for param "insn".
12218         (c6x_print_unit_specifier_field): Likewise.
12219         (c6x_final_prescan_insn): Likewise.
12220         (emit_add_sp_const): Likewise for local "insn".
12221         (c6x_expand_prologue): Likewise.
12222
12223 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12224
12225         * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
12226         param 1 from rtx to rtx_insn *.
12227         * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
12228         the various locals named "insn".
12229         (expand_epilogue_reg_restore): Likewise.
12230         (frame_related_constant_load): Likewise.
12231         (add_to_reg): Likewise.
12232         (emit_link_insn): Likewise.
12233         (do_link): Likewise.
12234         (expand_interrupt_handler_prologue): Likewise.
12235         (branch_dest): Likewise for param "branch".
12236         (asm_conditional_branch): Likewise for param "insn".
12237         (gen_one_bundle): Likewise for elements of param "slot" and local
12238         "t".
12239         (bfin_gen_bundles): Likewise for locals "insn", "next" and
12240         elements of local "slot".
12241         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
12242         "queue", "next_queue", "prev".
12243         (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
12244         (add_sched_insns_for_speculation): Likewise for local "insn".
12245
12246 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12247
12248         * config/avr/avr-protos.h (output_movqi): Strengthen first param
12249         from rtx to rtx_insn *.
12250         (output_movhi): Likewise.
12251         (output_movsisf): Likewise.
12252         (avr_out_tstsi): Likewise.
12253         (avr_out_tsthi): Likewise.
12254         (avr_out_tstpsi): Likewise.
12255         (avr_out_compare): Likewise.
12256         (avr_out_compare64): Likewise.
12257         (avr_out_movpsi): Likewise.
12258         (ashlqi3_out): Likewise.
12259         (ashlhi3_out): Likewise.
12260         (ashlsi3_out): Likewise.
12261         (ashrqi3_out): Likewise.
12262         (ashrhi3_out): Likewise.
12263         (ashrsi3_out): Likewise.
12264         (lshrqi3_out): Likewise.
12265         (lshrhi3_out): Likewise.
12266         (lshrsi3_out): Likewise.
12267         (avr_out_ashlpsi3): Likewise.
12268         (avr_out_ashrpsi3): Likewise.
12269         (avr_out_lshrpsi3): Likewise.
12270         (avr_out_fract): Likewise.
12271         (avr_out_sbxx_branch): Likewise.
12272         (avr_out_round): Likewise.
12273         (avr_out_xload): Likewise.
12274         (avr_out_movmem): Likewise.
12275         (adjust_insn_length): Likewise.
12276         (avr_out_lpm): Likewise.
12277         (reg_unused_after): Likewise.
12278         (_reg_unused_after): Likewise.
12279         (avr_jump_mode): Likewise for second param.
12280         (jump_over_one_insn): Likewise for first param.
12281         (avr_final_prescan_insn): Likewise.
12282         (out_shift_with_cnt): Likewise for second param.
12283
12284         * config/avr/avr.c (get_sequence_length): Likewise for param
12285         "insns" and local "insn".
12286         (emit_push_byte): Likewise for local "insn".
12287         (emit_push_sfr): Likewise.
12288         (avr_prologue_setup_frame): Likewise for locals "insn",
12289         "fp_plus_insns", "sp_plus_insns".
12290         (avr_expand_epilogue): Likewise for local "fp_plus_insns",
12291         "sp_plus_insns".
12292         (avr_jump_mode): Likewise for param "insn".
12293         (avr_final_prescan_insn): Likewise.
12294         (avr_find_unused_d_reg): Likewise.
12295         (avr_out_lpm_no_lpmx): Likewise.
12296         (avr_out_lpm): Likewise.
12297         (avr_out_xload): Likewise.
12298         (output_movqi): Likewise.
12299         (output_movhi): Likewise.
12300         (out_movqi_r_mr): Likewise.
12301         (out_movhi_r_mr): Likewise.
12302         (out_movsi_r_mr): Likewise.
12303         (out_movsi_mr_r): Likewise.
12304         (output_movsisf): Likewise.
12305         (avr_out_load_psi): Likewise.
12306         (avr_out_store_psi): Likewise.
12307         (avr_out_movpsi): Likewise.
12308         (out_movqi_mr_r): Likewise.
12309         (avr_out_movhi_mr_r_xmega): Likewise.
12310         (out_movhi_mr_r): Likewise.
12311         (compare_condition): Likewise for param "insn" and local "next".
12312         (compare_sign_p): Likewise for param "insn".
12313         (compare_diff_p): Likewise.
12314         (compare_eq_p): Likewise.
12315         (avr_out_compare): Likewise.
12316         (avr_out_compare64): Likewise.
12317         (avr_out_tsthi): Likewise.
12318         (avr_out_tstpsi): Likewise.
12319         (avr_out_tstsi): Likewise.
12320         (out_shift_with_cnt): Likewise.
12321         (ashlqi3_out): Likewise.
12322         (ashlhi3_out): Likewise.
12323         (avr_out_ashlpsi3): Likewise.
12324         (ashlsi3_out): Likewise.
12325         (ashrqi3_out): Likewise.
12326         (ashrhi3_out): Likewise.
12327         (avr_out_ashrpsi3): Likewise.
12328         (ashrsi3_out): Likewise.
12329         (lshrqi3_out): Likewise.
12330         (lshrhi3_out): Likewise.
12331         (avr_out_lshrpsi3): Likewise.
12332         (lshrsi3_out): Likewise.
12333         (avr_out_fract): Likewise.
12334         (avr_out_round): Likewise.
12335         (avr_adjust_insn_length): Likewise.
12336         (reg_unused_after): Likewise.
12337         (_reg_unused_after): Likewise.
12338         (avr_compare_pattern): Likewise.
12339         (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
12340         and locals "branch1", "branch2", "insn2", "jump".
12341         (avr_reorg): Likewise for local "insn".
12342         (avr_2word_insn_p): Likewise for param "insn".
12343         (jump_over_one_insn_p): Likewise.
12344         (avr_out_sbxx_branch): Likewise.
12345         (avr_out_movmem): Likewise.
12346
12347 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12348
12349         * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
12350         param from rtx to rtx_insn *.
12351         (thumb1_final_prescan_insn): Likewise.
12352         (thumb2_final_prescan_insn): Likewise.
12353
12354         * config/arm/arm.c (emit_set_insn): Strengthen return type from
12355         rtx to rtx_insn *.
12356         (struct minipool_node): Likewise for field "insn".
12357         (dump_minipool): Likewise for param "scan".
12358         (create_fix_barrier): Likewise for local "from".  Strengthen local
12359         "label" from rtx to rtx_code_label *.
12360         (push_minipool_barrier): Strengthen param "insn" from rtx to
12361         rtx_insn *.
12362         (push_minipool_fix): Likewise.
12363         (note_invalid_constants): Likewise.
12364         (thumb2_reorg): Likewise for local "insn".
12365         (arm_reorg): Likewise.
12366         (thumb2_final_prescan_insn): Likewise for param
12367         "insn" and local "first_insn".
12368         (arm_final_prescan_insn): Likewise for param "insn" and locals
12369         "start_insn", "this_insn".
12370         (arm_debugger_arg_offset): Likewise for param "insn".
12371         (thumb1_emit_multi_reg_push): Likewise for return type and local
12372         "insn".
12373         (thumb1_final_prescan_insn): Likewise for param "insn".
12374         (thumb_far_jump_used_p): Likewise for local "insn".
12375         (thumb1_expand_prologue): Likewise.
12376         (arm_expand_epilogue_apcs_frame): Likewise.
12377         (arm_expand_epilogue): Likewise for locals "insn", "tmp".
12378         (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
12379         from rtx to rtx_code_label *.
12380         (arm_split_atomic_op): Likewise for local "label".
12381         (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
12382
12383 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12384
12385         * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
12386         first param from rtx to rtx_insn *.
12387         (arc_verify_short): Likewise.
12388         (arc_short_long): Likewise.
12389         (arc_need_delay): Likewise.
12390
12391         * config/arc/arc.c (struct arc_ccfsm): Likewise for field
12392         "target_insn".
12393         (arc_ccfsm_advance): Likewise for param "insn" and locals
12394         "start_insn", "this_insn".
12395         (arc_ccfsm_record_condition): Likewise for local "seq_insn".
12396         (arc_ccfsm_post_advance): Likewise for param "insn".
12397         (arc_next_active_insn): Likewise for return type and param "insn".
12398         Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
12399         (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
12400         (output_short_suffix): Likewise for local "insn".
12401         (arc_final_prescan_insn): Likewise for param "insn".  Remove
12402         now-redundant checked cast.
12403         (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
12404         "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
12405         rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
12406         for use where lc_set became an insn.
12407         (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
12408         rtx to rtx_insn *.
12409         (arc_get_insn_variants): Likewise for local "prev".
12410         (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
12411         "next".
12412         (arc_predicate_delay_insns): Likewise for local "insn".
12413         (arc_pad_return): Likewise for local "prev".  For now, add a
12414         checked cast when extracting the insn from "final_sequence".
12415         (arc_short_long): Likewise for param "insn".
12416         (arc_need_delay): Likewise for param "insn" and local "next".
12417         (arc_label_align): Likewise for locals "prev", "next".
12418
12419 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12420
12421         * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
12422         "insn" from rtx to rtx_insn *.
12423         (alpha_gp_save_rtx): Likewise for local "seq".
12424         (alpha_instantiate_decls): Likewise for local "top".
12425         (get_some_local_dynamic_name): Likewise for local "insn".
12426         (alpha_does_function_need_gp): Likewise.
12427         (set_frame_related_p): Likewise for return type and for locals
12428         "seq" and "insn".
12429         (emit_frame_store_1): Likewise for local "insn".
12430         (alpha_expand_prologue): Likewise for locals "insn", "seq".
12431         (alpha_end_function): Likewise for local "insn".
12432         (alpha_output_mi_thunk_osf): Likewise.
12433         (alphaev4_insn_pipe): Likewise for param "insn".
12434         (alphaev5_insn_pipe): Likewise.
12435         (alphaev4_next_group): Likewise for return type and param 1
12436         "insn".
12437         (alphaev5_next_group): Likewise.
12438         (alpha_align_insns_1): Likewise for return type and param 1 of
12439         callback param "next_group", and for locals "i", "next", "prev",
12440         "where", "where2", "insn".
12441
12442 2014-08-25  Bernd Schmidt  <bernds@codesourcery.com>
12443
12444         * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
12445         rather than modifying the stmt.
12446
12447 2014-08-25  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12448
12449         * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
12450         cgraph_state conversion.
12451
12452 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12453
12454         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
12455         Strengthen local "insns" from rtx to rtx_insn *.
12456         (aarch64_set_frame_expr): Likewise for local "insn".
12457         (aarch64_save_or_restore_fprs): Likewise.
12458         (aarch64_save_or_restore_callee_save_registers): Likewise.
12459         (aarch64_expand_prologue): Likewise.
12460         (aarch64_expand_epilogue): Likewise.
12461         (aarch64_output_mi_thunk): Likewise.
12462         (aarch64_split_compare_and_swap): Strengthen locals "label1" and
12463         "label2" from rtx to rtx_code_label *.
12464         (aarch64_split_atomic_op): Likewise for local "label".
12465
12466 2014-08-25  Martin Liska  <mliska@suse.cz>
12467
12468         * cgraph.h (symtab_node):
12469         (bool needed_p (void)): created from decide_is_symbol_needed
12470         (bool referred_to_p (void)): created from referred_to_p
12471         (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
12472         * cgraph.h (cgraph_node):
12473         (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
12474         (void expand (void)): created from expand_function
12475         (static void finalize_function (tree, bool)): created from cgraph_finalize_function
12476         (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
12477         (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
12478         (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
12479         * cgraph.h (varpool_node):
12480         (static void add (tree decl): created from varpool_add_new_variable
12481         * cgraph.h (cgraph_edge):
12482         void remove (void);
12483         (void remove_caller (void)): created from cgraph_edge_remove_caller
12484         (void remove_callee (void)): created from cgraph_edge_remove_callee
12485         (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
12486           created from cgraph_set_call_stmt
12487         (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
12488         (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
12489         (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
12490           gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
12491         (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
12492           created from cgraph_speculative_call_info
12493         (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
12494           int freq_scale, bool update_original)): created from cgraph_clone_edge
12495         (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
12496         (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
12497         (bool recursive_p (void)): created from cgraph_edge_recursive_p
12498         (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
12499         (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
12500         (static void rebuild_references (void)): created from cgraph_rebuild_references
12501         * cgraph.h (symbol_table):
12502         (create_reference): renamed from add_reference
12503         (maybe_create_reference): renamed from maybe_add_reference
12504         (void register_symbol (symtab_node *node)): new function
12505         (void clear_asm_symbols (void)): new function
12506         (void unregister (symtab_node *node)): new function
12507         (void release_symbol (cgraph_node *node, int uid)): new function
12508         (cgraph_node * allocate_cgraph_symbol (void)): new function
12509         (void initialize (void)): created from cgraph_init
12510         (symtab_node *first_symbol (void)):new function
12511         (asm_node *first_asm_symbol (void)):new function
12512         (symtab_node *first_defined_symbol (void)):new function
12513         (varpool_node *first_variable (void)):new function
12514         (varpool_node *next_variable (varpool_node *node)):new function
12515         (varpool_node *first_static_initializer (void)):new function
12516         (varpool_node *next_static_initializer (varpool_node *node)):new function
12517         (varpool_node *first_defined_variable (void)):new function
12518         (varpool_node *next_defined_variable (varpool_node *node)):new function
12519         (cgraph_node *first_defined_function (void)):new function
12520         (cgraph_node *next_defined_function (cgraph_node *node)):new function
12521         (cgraph_node *first_function (void)):new function
12522         (cgraph_node *next_function (cgraph_node *node)):new function
12523         (cgraph_node *first_function_with_gimple_body (void)):new function
12524         (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
12525         (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
12526           created from symtab_remove_unreachable_nodes
12527         (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
12528         (void process_new_functions (void)): created from cgraph_process_new_functions
12529         (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
12530         (bool output_variables (void)): created from varpool_node::output_variables
12531         (void output_asm_statements (void)): created from output_asm_statements
12532         (void finalize_compilation_unit (void)): created from finalize_compilation_unit
12533         (void compile (void)): created from compile
12534         (void output_weakrefs (void)): created from output_weakrefs
12535         (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
12536         (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
12537           gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
12538         (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
12539         (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
12540           created from cgraph_next_function_with_gimple_body
12541         (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
12542           created from cgraph_remove_edge_removal_hook
12543         (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
12544           created from cgraph_add_node_removal_hook
12545         (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
12546           created from cgraph_remove_node_removal_hook
12547         (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
12548           created from varpool_add_node_removal_hook
12549         (void remove_varpool_removal_hook (varpool_node_hook_list *)):
12550           created from varpool_remove_node_removal_hook
12551         (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
12552           created from cgraph_add_function_insertion_hook
12553         (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
12554           created from cgraph_remove_function_insertion_hook
12555         (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
12556           created from varpool_add_variable_insertion_hook
12557         (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
12558           created from varpool_remove_variable_insertion_hook
12559         (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
12560           created from cgraph_add_edge_duplication_hook
12561         (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
12562           created from cgraph_remove_edge_duplication_hook
12563         (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
12564           created from cgraph_add_node_duplication_hook
12565         (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
12566           created from cgraph_remove_node_duplication_hook
12567         (void call_edge_removal_hooks (cgraph_edge *e)):
12568           created from cgraph_call_edge_removal_hooks
12569         (void call_cgraph_insertion_hooks (cgraph_node *node)):
12570           created from call_function_insertion_hooks
12571         (void call_cgraph_removal_hooks (cgraph_node *node)):
12572           created from cgraph_call_node_removal_hooks
12573         (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
12574           created from cgraph_node::call_duplication_hooks
12575         (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
12576           created from cgraph_call_edge_duplication_hooks
12577         (void call_varpool_removal_hooks (varpool_node *node)):
12578           created from varpool_call_node_removal_hooks
12579         (void call_varpool_insertion_hooks (varpool_node *node)):
12580           created from varpool_call_variable_insertion_hooks
12581         (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
12582           created from insert_to_assembler_name_hash
12583         (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
12584           created from unlink_from_assembler_name_hash
12585         (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
12586           created from symtab_prevail_in_asm_name_hash
12587         (void symtab_initialize_asm_name_hash (void)):
12588           created from symtab_initialize_asm_name_hash
12589         (void change_decl_assembler_name (tree decl, tree name)):
12590           created from change_decl_assembler_name
12591         (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
12592         (static hashval_t decl_assembler_name_hash (const_tree asmname)):
12593           created from decl_assembler_name_hash
12594         (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
12595           created from decl_assembler_name_equal
12596         (static hashval_t hash_node_by_assembler_name (const void *p)):
12597           created from hash_node_by_assembler_name
12598         (static int eq_assembler_name (const void *p1, const void *p2)):
12599           created from eq_assembler_name
12600
12601 2014-08-25  Marek Polacek  <polacek@redhat.com>
12602
12603         * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
12604
12605 2014-08-25  Petr Murzin  <petr.murzin@intel.com>
12606
12607         * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
12608         (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
12609         SWI1248_AVX512BW mode iterator.
12610
12611 2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
12612
12613         PR target/62111
12614         * config/sh/predicates.md (general_extend_operand): Disable
12615         TRUNCATE before reload completes.
12616
12617 2014-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
12618
12619         * doc/invoke.texi (Optimize Options): Fix markup in two cases.
12620
12621 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
12622
12623         PR target/61996
12624         * config/sh/sh.opt (musermode): Allow negative form.
12625         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
12626         targets that don't support it.
12627         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
12628         Document -mno-usermode option.
12629
12630 2014-08-24  Kito Cheng  <kito@0xlab.org>
12631
12632         * system.h (CALLER_SAVE_PROFITABLE): Poison.
12633         * regs.h (CALLER_SAVE_PROFITABLE): Remove.
12634         * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
12635         * doc/tm.texi: Regenerate.
12636
12637 2014-08-24  Kito Cheng  <kito@0xlab.org>
12638
12639         * ira.c: Fix typo in comment.
12640
12641 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
12642
12643         * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
12644         Deprecate c++1y. Change language to reflect greater confidence in C++14.
12645
12646 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
12647
12648         PR target/62038
12649         * config/pa/pa.c (pa_output_function_epilogue): Don't set
12650         last_address when the current function is a thunk.
12651         (pa_asm_output_mi_thunk): When we don't have named sections or they
12652         are not being used, check that thunk can reach the stub table with a
12653         short branch.
12654
12655 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
12656
12657         * web.c (union_match_dups): Strengthen param "insn" from rtx to
12658         rtx_insn *.
12659         (pass_web::execute): Likewise for local "insn".
12660
12661 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
12662
12663         * var-tracking.c (struct micro_operation_def): Strengthen field
12664         "insn" from rtx to rtx_insn *.
12665         (struct emit_note_data_def): Likewise.
12666         (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
12667         (vt_stack_adjustments): Likewise for local "insn".
12668         (adjust_insn): Likewise for param "insn".
12669         (val_store): Likewise.
12670         (val_resolve): Likewise.
12671         (struct count_use_info): Likewise for field "insn".
12672         (log_op_type): Likewise for param "insn".
12673         (reverse_op): Likewise.
12674         (prepare_call_arguments): Likewise.
12675         (add_with_sets):  The initial param takes an insn, but we can't
12676         yet strengthen it from rtx to rtx_insn * since it's used as a
12677         cselib_record_sets_hook callback.  For now rename initial param
12678         from "insn" to "uncast_insn", and introduce a local "insn" of
12679         the stronger rtx_insn * type, with a checked cast.
12680         (compute_bb_dataflow): Strengthen local "insn" from rtx to
12681         rtx_insn *.
12682         (emit_note_insn_var_location): Likewise.
12683         (emit_notes_for_changes): Likewise.
12684         (emit_notes_for_differences): Likewise.
12685         (next_non_note_insn_var_location): Likewise for return type and
12686         for param "insn".
12687         (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
12688         (vt_initialize): Likewise for local "insn".
12689         (delete_debug_insns): Likewise for locals "insn" and "next".
12690
12691 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
12692
12693         * varasm.c (mark_constants): Strengthen param "insn" from rtx to
12694         rtx_insn *.
12695         (mark_constant_pool): Likewise for local "insn".
12696
12697 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
12698
12699         * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
12700         rtx to rtx_insn *.
12701         (dead_debug_promote_uses): Likewise.
12702         (dead_debug_insert_temp): Likewise.
12703
12704 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
12705
12706         * store-motion.c (store_killed_in_insn): Strengthen param "insn"
12707         from const_rtx to const rtx_insn *.
12708         (store_killed_after): Likewise.  Strengthen locals "last", "act"
12709         from rtx to rtx_insn *.
12710         (store_killed_before): Strengthen param "insn" from const_rtx to
12711         const rtx_insn *.  Strengthen local "first" from rtx to rtx_insn *.
12712         (find_moveable_store): Strengthen param "insn" from rtx to
12713         rtx_insn *.
12714         (compute_store_table): Likewise for local "insn".
12715         (insert_insn_start_basic_block): Likewise for param "insn" and
12716         locals "prev", "before", "insn".
12717         (insert_store): For now, add a checked cast to rtx_insn * on the
12718         result of gen_move_insn.
12719         (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
12720         to rtx_insn *.
12721         (replace_store_insn): Likewise.  For now, add a checked cast to
12722         rtx_insn * on the result of gen_move_insn.
12723
12724 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12725
12726         * stmt.c (expand_case): Strengthen local "before_case" from rtx to
12727         rtx_insn *.
12728         (expand_sjlj_dispatch_table): Likewise.
12729
12730 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12731
12732         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
12733         "insn" from rtx to rtx_insn *.
12734
12735 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12736
12737         * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
12738         "insn" from rtx to rtx_insn *.
12739         (dup_block_and_redirect): Likewise for param 3 "before".
12740
12741         * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
12742         from rtx to rtx_insn *.
12743         (move_insn_for_shrink_wrap): Likewise.
12744         (prepare_shrink_wrap): Likewise for locals "insn", "curr".
12745         (dup_block_and_redirect): Likewise for param "before" and local
12746         "insn".
12747         (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
12748         "end".
12749         (convert_to_simple_return): Likewise for local "start".
12750
12751         * config/i386/i386.c (ix86_finalize_stack_realign_flags):
12752         Strengthen local "insn" from rtx to rtx_insn *, for use when
12753         invoking requires_stack_frame_p.
12754
12755 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12756
12757         * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
12758         rtx_insn *.
12759         (speculate_expr): Likewise for locals "orig_insn_rtx",
12760         "spec_insn_rtx".
12761         (eq_transformed_insns): Likewise for locals "i1", "i2".
12762         (check_for_new_jump): Likewise for return type and local "end".
12763         (find_new_jump): Likewise for return type and local "jump".
12764         (sel_split_edge): Likewise for local "jump".
12765         (sel_create_recovery_block): Likewise.
12766         (sel_redirect_edge_and_branch_force): Likewise.
12767         (sel_redirect_edge_and_branch): Likewise.
12768
12769 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12770
12771         * sel-sched.c (substitute_reg_in_expr): Strengthen local
12772         "new_insn" from rtx to rtx_insn *.
12773         (create_insn_rtx_with_rhs): Likewise for return type and for local
12774         "insn_rtx".
12775         (create_insn_rtx_with_lhs): Likewise.
12776         (create_speculation_check): Likewise for local "insn_rtx".
12777         (implicit_clobber_conflict_p): Likewise for local "insn".
12778         (get_expr_cost): Likewise.
12779         (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
12780         (move_cond_jump): Likewise for locals "next", "prev", "link",
12781         "head", "from", "to".
12782
12783 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12784
12785         * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
12786         "next" from rtx to rtx_insn *.
12787         (find_conditional_protection): Likewise for local "next".
12788         (is_conditionally_protected): Likewise for local "insn1".
12789         (is_pfree): Likewise for locals "insn1", "insn2".
12790
12791 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12792
12793         * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
12794         from rtx to rtx_insn *.
12795
12796         * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
12797         locals "insn1", "insn2" from rtx to rtx_insn *.
12798         (add_deps_for_risky_insns): Likewise for params "head", "tail" and
12799         locals "insn", "prev", "last_jump", "next_tail".
12800         (schedule_ebb): Likewise for params "head", "tail".
12801         (schedule_ebbs): Likewise for locals "tail", "head".
12802
12803         * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
12804         to rtx_insn on "last_insn" in one of the invocations of
12805         schedule_ebb.
12806
12807 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12808
12809         * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
12810         "elem", "insn" from rtx to rtx_insn *.
12811         (change_spec_dep_to_hard): Likewise.
12812         (get_back_and_forw_lists): Likewise for local "con".
12813         (sd_add_dep): Likewise for locals "elem", "insn".
12814         (sd_resolve_dep): Likewise for locals "pro", "con".
12815         (sd_unresolve_dep): Likewise.
12816         (sd_delete_dep): Likewise.
12817         (chain_to_prev_insn): Likewise for local "pro".
12818         (find_inc): Likewise for locals "pro", "con".
12819
12820 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12821
12822         * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
12823         to rtx_insn *.
12824         (reg_set_between_p): Strengthen local "insn" from const_rtx to
12825         const rtx_insn *.
12826         (modified_between_p): Strengthen local "insn" from rtx to
12827         rtx_insn *.
12828         (remove_reg_equal_equiv_notes_for_regno): Likewise.
12829         (keep_with_call_p): Strengthen local "i2" from const_rtx to
12830         const rtx_insn *.
12831
12832 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12833
12834         * resource.c (next_insn_no_annul): Strengthen local "next" from
12835         rtx to rtx_insn *.
12836         (mark_referenced_resources): Likewise for local "insn".
12837
12838 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12839
12840         * reload.h (struct insn_chain): Strengthen field "insn" from rtx
12841         to rtx_insn *.
12842         (find_reloads): Likewise for param 1.
12843         (subst_reloads): Likewise for sole param.
12844         (find_equiv_reg): Likwise for param 2.
12845         (regno_clobbered_p): Likwise for param 2.
12846         (reload): Likewise for param 1.
12847
12848         * caller-save.c (save_call_clobbered_regs): Strengthen local
12849         "insn" from rtx to rtx_insn *.
12850         (insert_one_insn): Likewise for local "insn".
12851
12852         * reload.c (this_insn): Likewise for this global.
12853         (find_reloads): Likewise for param "insn".
12854         (find_reloads_toplev): Likewise.
12855         (find_reloads_address): Likewise.
12856         (subst_reg_equivs): Likewise.
12857         (update_auto_inc_notes): Likewise.
12858         (find_reloads_address_1): Likewise.
12859         (find_reloads_subreg_address): Likewise.
12860         (subst_reloads): Likewise.
12861         (find_equiv_reg): Likewise, also for local "p".
12862         (regno_clobbered_p): Likewise for param "insn".
12863
12864         * reload1.c (reg_reloaded_insn): Likewise for the elements of this
12865         array.
12866         (spill_reg_store): Likewise for the elements of this array.
12867         (remove_init_insns): Likewise for local "equiv_insn".
12868         (will_delete_init_insn_p): Likewise for param "insn".
12869         (reload): Likewise for param ""first" and local "insn".
12870         (calculate_needs_all_insns): Strengthen local "insn" from rtx to
12871         rtx_insn *.
12872         (calculate_elim_costs_all_insns): Likewise.
12873         (delete_caller_save_insns): Likewise.
12874         (spill_failure): Likewise for param "insn".
12875         (delete_dead_insn): Likewise.
12876         (set_label_offsets): Likewise.
12877         (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
12878         "prev_insn".
12879         (elimination_costs_in_insn): Likewise for param "insn".
12880         (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
12881         when referring to an insn.
12882         (set_initial_label_offsets): Likewise.
12883         (set_offsets_for_label): Strengthen param "insn" from rtx to
12884         rtx_insn *.
12885         (init_eliminable_invariants): Likewise for param "first" and local
12886         "insn".
12887         (fixup_eh_region_note): Likewise for param "insn".
12888         (reload_as_needed): Likewise for locals "prev", "insn",
12889         "old_next", "old_prev", "next".
12890         (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
12891         "last".
12892         (reload_inheritance_insn): Strengthen elements of this array from
12893         rtx to rtx_insn *.
12894         (failed_reload): Likewise for param "insn".
12895         (choose_reload_regs): Likewise for local "insn".  Replace use of
12896         NULL_RTX with NULL when referring to an insn.
12897         (input_reload_insns): Strengthen elements of this array from rtx
12898         to rtx_insn *.
12899         (other_input_address_reload_insns): Likewise for this global.
12900         (other_input_reload_insns): Likewise for this global.
12901         (input_address_reload_insns): Likwise for the elements of this
12902         array.
12903         (inpaddr_address_reload_insns): Likwise for the elements of this
12904         array.
12905         (output_reload_insns): Likewise for the elements of this array.
12906         (output_address_reload_insns): Likewise for the elements of this
12907         array.
12908         (outaddr_address_reload_insns): Likewise for the elements of this
12909         array.
12910         (operand_reload_insns): Likewise for this global.
12911         (other_operand_reload_insns): Likewise for this global.
12912         (other_output_reload_insns): Likewise for the elements of this
12913         array.
12914         (new_spill_reg_store): Likewise for the elements of this
12915         array.
12916         (emit_input_reload_insns): Likewise for locals "insn", "temp".
12917         Strengthen local "where" from rtx * to rtx_insn **.
12918         (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
12919         from rtx to rtx_insn *.
12920         (do_input_reload): Likewise for local "insn".
12921         (do_output_reload): Likewise for local "insn".
12922         (emit_reload_insns): Likewise for locals "insn" and "store_insn".
12923         (emit_insn_if_valid_for_reload): Likewise for return type and local
12924         "last".  Add checked cast to rtx_insn when returning "insn" since
12925         this has been through emit_insn.
12926         (gen_reload): Strengthen return type and locals "last", "insn", "set"
12927         from rtx to rtx_insn *.  Add checked cast to rtx_insn when
12928         returning "insn" since it's been through
12929         emit_insn_if_valid_for_reload at this point.
12930         (delete_output_reload): Strengthen param "insn" and locals
12931         "output_reload_insn", "i2" from rtx to rtx_insn *.
12932         (delete_address_reloads): Likewise for params "dead_insn",
12933         "current_insn" and locals "prev", "next".
12934         (delete_address_reloads_1): Likewise for params "dead_insn",
12935         "current_insn" and locals "prev", "i2".
12936         (inc_for_reload): Likewise for locals "last", "add_insn".
12937         (add_auto_inc_notes): Strengthen param "insn" from rtx to
12938         rtx_insn *.
12939
12940         * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
12941         param of this duplicate of the prototype from reload.h
12942
12943 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12944
12945         * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
12946         rtx to rtx_insn *.
12947         (regstat_bb_compute_calls_crossed): Likewise.
12948
12949 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12950
12951         * regrename.c (create_new_chain): Strengthen param "insn" from rtx
12952         to rtx_insn *.
12953         (init_rename_info): Replace use of NULL_RTX with NULL when dealing
12954         with an insn.
12955         (regrename_analyze): Strengthen local "insn" from rtx to
12956         rtx_insn *.
12957         (scan_rtx_reg): Likewise for param "insn".
12958         (scan_rtx_address): Likewise.
12959         (scan_rtx): Likewise.
12960         (restore_operands): Likewise.
12961         (record_out_operands): Likewise.
12962         (build_def_use): Likewise for local "insn".  Replace use of
12963         NULL_RTX with NULL when dealing with an insn.
12964
12965 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12966
12967         * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
12968         * reginfo.c (reg_scan): Likewise, also for local "insn".
12969         (reg_scan_mark_refs): Likewise for param "insn".
12970         (init_subregs_of_mode): Likewise for local "insn".
12971
12972 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12973
12974         * regcprop.c (struct queued_debug_insn_change): Strengthen field
12975         "insn" from rtx to rtx_insn *.
12976         (replace_oldest_value_reg): Likewise for param "insn".
12977         (replace_oldest_value_addr): Likewise.
12978         (replace_oldest_value_mem): Likewise.
12979         (apply_debug_insn_changes): Likewise for local "last_insn".
12980         (copyprop_hardreg_forward_1): Likewise for local "insn".
12981
12982 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12983
12984         * reg-stack.c (next_flags_user): Strengthen return type and param
12985         "insn" from rtx to rtx_insn *.
12986         (straighten_stack): Likewise for param "insn".
12987         (check_asm_stack_operands): Likewise.
12988         (remove_regno_note): Likewise.
12989         (emit_pop_insn): Likewise for return type, param "insn", local
12990         "pop_insn".
12991         (emit_swap_insn):  Strengthen param "insn" and locals "i1", "tmp",
12992         "limit" from rtx to rtx_insn *.
12993         (swap_to_top): Likewise for param "insn".
12994         (move_for_stack_reg): Likewise.
12995         (move_nan_for_stack_reg): Likewise.
12996         (swap_rtx_condition): Likewise.
12997         (compare_for_stack_reg): Likewise.
12998         (subst_all_stack_regs_in_debug_insn): Likewise.
12999         (subst_stack_regs_pat): Likewise, and local "insn2".
13000         (subst_asm_stack_regs): Strengthen param "insn" from rtx to
13001         rtx_insn *.
13002         (subst_stack_regs): Likewise.
13003         (change_stack): Likewise.
13004         (convert_regs_1): Likewise for locals "insn", "next".
13005
13006 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13007
13008         * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
13009         rtx_insn *.
13010         (combine_set_extension): Likewise for param "curr_insn".
13011         (transform_ifelse): Likewise for param "def_insn".
13012         (get_defs): Likewise for param "def_insn".  Strengthen param "dest"
13013         from vec<rtx> * to vec<rtx_insn *> *.
13014         (is_cond_copy_insn): Likewise for param "insn".
13015         (struct ext_state): Strengthen the four vec fields from vec<rtx>
13016         to vec<rtx_insn *>.
13017         (make_defs_and_copies_lists): Strengthen param "extend_insn" and
13018         local "def_insn" from rtx to rtx_insn *.
13019         (get_sub_rtx): Likewise for param "def_insn".
13020         (merge_def_and_ext): Likewise.
13021         (combine_reaching_defs): Likewise.
13022         (add_removable_extension): Likewise for param "insn".
13023         (find_removable_extensions): Likewise for local "insn".
13024         (find_and_remove_re): Likewise for locals "curr_insn" and
13025         "def_insn".  Strengthen locals "reinsn_del_list" and
13026         "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
13027
13028 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13029
13030         * recog.c (split_insn): Strengthen param "insn" and locals
13031         "first", "last" from rtx to rtx_insn *.
13032         (split_all_insns): Likewise for locals "insn", "next".
13033         (split_all_insns_noflow): Likewise.
13034
13035 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13036
13037         * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
13038         const rtx_insn *.
13039         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
13040         (debug_rtx_find): Likewise for param 1 "x".
13041
13042         * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
13043         const_rtx to const rtx_insn *.  Likewise for local "insn".
13044         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
13045         (debug_rtx_find): Likewise for param 1 "x".
13046         (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
13047         from const_rtx to const rtx_insn * within the appropriate cases of
13048         the switch statement.
13049
13050         * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
13051         Strengthen local "insns" from rtx to rtx_insn * since this is
13052         passed to a call to debug_rtx_list.
13053
13054 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13055
13056         * predict.h (predict_insn_def): Strengthen param "insn" from rtx
13057         to rtx_insn *.
13058
13059         * function.c (stack_protect_epilogue): Add checked cast to
13060         rtx_insn for now when invoking predict_insn_def.
13061
13062         * predict.c (predict_insn): Strengthen param "insn" from rtx to
13063         rtx_insn *.
13064         (predict_insn_def): Likewise.
13065         (rtl_predict_edge): Likewise for local "last_insn".
13066         (can_predict_insn_p): Strengthen param "insn" from const_rtx to
13067         const rtx_insn *.
13068         (combine_predictions_for_insn): Strengthen param "insn" from rtx
13069         to rtx_insn *.
13070         (bb_estimate_probability_locally): Likewise for local "last_insn".
13071         (expensive_function_p): Likewise for local "insn".
13072
13073         * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
13074         local "jmp", since this is used when invoking predict_insn_def.
13075
13076 2014-08-22  Marek Polacek  <polacek@redhat.com>
13077
13078         PR c++/62199
13079         * doc/invoke.texi: Update -Wlogical-not-parentheses description.
13080
13081 2014-08-22  Marek Polacek  <polacek@redhat.com>
13082
13083         PR c/61271
13084         * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
13085         a comparison in parens.
13086         * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
13087         in parens.
13088
13089 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13090
13091         * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
13092         rtx_insn *.
13093
13094         * cprop.c (fis_get_condition): Likewise.
13095
13096         * postreload.c (reload_cse_regs): Likewise for param "first".
13097         (reload_cse_simplify): Likewise for param "insn".
13098         (reload_cse_regs_1): Likewise for local "insn".
13099         (reload_cse_simplify_set): Likewise for param "insn".
13100         (reload_cse_simplify_operands): Likewise.
13101         (struct reg_use): Likewise for field "insn".
13102         (reload_combine_purge_insn_uses): Likewise for param "insn".
13103         (fixup_debug_insns): Likewise for params "from", "to" and local
13104         "insn".
13105         (try_replace_in_use): Likewise for local "use_insn".
13106         (reload_combine_recognize_const_pattern): Likewise for param
13107         "insn" and locals "add_moved_after_insn", "use_insn".
13108         (reload_combine_recognize_pattern): Likewise for param "insn" and
13109         local "prev".
13110         (reload_combine): Likewise for locals "insn", "prev".
13111         (reload_combine_note_use): Likewise for param "insn".
13112         (move2add_use_add2_insn): Likewise.
13113         (move2add_use_add3_insn): Likewise.
13114         (reload_cse_move2add): Likewise, also for local "next".
13115         (move2add_note_store): Likewise for local "insn".
13116
13117 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13118
13119         * postreload-gcse.c (struct occr): Strengthen field "insn" from
13120         rtx to rtx_insn *.
13121         (struct unoccr): Likewise.
13122         (struct modifies_mem): Likewise.
13123         (alloc_mem): Likewise for local "insn".
13124         (insert_expr_in_table): Likewise for param "insn".
13125         (dump_expr_hash_table_entry): Likewise for local "insn".
13126         (oprs_unchanged_p): Likewise for param "insn".
13127         (load_killed_in_block_p): Likewise for local "setter".
13128         (record_last_reg_set_info): Likewise for param "insn".
13129         (record_last_reg_set_info_regno): Likewise.
13130         (record_last_mem_set_info): Likewise.
13131         (record_last_set_info): Likewise for local "last_set_insn".
13132         (record_opr_changes): Likewise for param "insn".
13133         (hash_scan_set): Likewise.
13134         (compute_hash_table): Likewise for local "insn".
13135         (get_avail_load_store_reg): Likewise for param "insn".
13136         (eliminate_partially_redundant_load): Likewise, also for locals
13137         "avail_insn", "next_pred_bb_end".  Replace use of NULL_RTX with
13138         RTX for insns.
13139         (eliminate_partially_redundant_loads): Likewise for local "insn".
13140
13141 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13142
13143         * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
13144         rtx to rtx_insn *.
13145         (expand_binop): Likewise for locals "entry_last", "last", "insns"
13146         (expand_twoval_unop): Likewise for locals entry_last", "last".
13147         (expand_twoval_binop): Likewise.
13148         (expand_twoval_binop_libfunc): Likewise for local "insns".
13149         (widen_leading): Likewise for local "last".
13150         (expand_doubleword_clz): Likewise for local "seq".  Strengthen
13151         locals "hi0_label", "after_label" from rtx to rtx_code_label *.
13152         (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
13153         (expand_parity): Likewise for locals "last" and "seq".
13154         (expand_ffs): Likewise for local "seq".  Strengthen local
13155         "nonzero_label" from rtx to rtx_code_label *.
13156         (expand_absneg_bit): Strengthen local "insns" from rtx to
13157         rtx_insn *.
13158         (expand_unop_direct): Likewise for local "last".
13159         (expand_unop): Likewise for locals "last", "insns".
13160         (expand_abs_nojump): Likewise for local "last".
13161         (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
13162         (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
13163         rtx_insn *.
13164         (expand_copysign_absneg): Strengthen local "label" from rtx to
13165         rtx_code_label *.
13166         (expand_copysign_bit): Strengthen local "insns" from rtx to
13167         rtx_insn *.
13168         (struct no_conflict_data): Likewise for fields "first", "insn".
13169         (emit_libcall_block_1): Likewise for param "insns" and locals
13170         "next", "last", "insn".
13171         (emit_libcall_block): For now, add a checked cast to rtx_insn *
13172         on "insns" when invoking emit_libcall_block_1.  Ultimately we
13173         want to strengthen insns itself.
13174         (prepare_cmp_insn): Strengthen local "last" from rtx to
13175         rtx_insn *.
13176         (emit_cmp_and_jump_insn_1): Likewise for local "insn".
13177         (prepare_float_lib_cmp): Likewise for local "insns".
13178         (emit_conditional_move): Likewise for local "last".
13179         (emit_conditional_add): Likewise.
13180         (have_sub2_insn): Likewise for local "seq".
13181         (expand_float): Likewise for local "insns".  Strengthen locals
13182         "label", "neglabel" from rtx to rtx_code_label *.
13183         (expand_fix): Likewise for locals "last", "insn", "insns" (to
13184         rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
13185         (expand_fixed_convert): Likewise for local "insns" (to
13186         rtx_insn *).
13187         (expand_sfix_optab): Likewise for local "last".
13188         (expand_compare_and_swap_loop): Strengthen local "label" from rtx
13189         to rtx_code_label *.
13190         (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
13191         from rtx to rtx_insn *.
13192         (expand_atomic_fetch_op): Likewise for local "insn".
13193         (maybe_legitimize_operand_same_code): Likewise for local "last".
13194         (maybe_legitimize_operands): Likewise.
13195
13196 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13197
13198         * modulo-sched.c (struct ps_reg_move_info): Strengthen field
13199         "insn" from rtx to rtx_insn *.
13200         (ps_rtl_insn): Likewise for return type.
13201         (doloop_register_get): Likewise for params "head", "tail" and
13202         locals "insn", "first_insn_not_to_check".
13203         (schedule_reg_move): Likewise for local "this_insn".
13204         (schedule_reg_moves): Add a checked cast to rtx_insn * to result
13205         of gen_move_insn for now.
13206         (reset_sched_times): Strengthen local "insn" from rtx to
13207         rtx_insn *.
13208         (permute_partial_schedule): Likewise.
13209         (duplicate_insns_of_cycles): Likewise for local "u_insn".
13210         (dump_insn_location): Likewise for param "insn".
13211         (loop_canon_p): Likewise for local "insn".
13212         (sms_schedule): Likewise.
13213         (print_partial_schedule): Likewise.
13214         (ps_has_conflicts): Likewise.
13215
13216 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13217
13218         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
13219         "tailp" from rtx * to rtx_insn **.
13220
13221         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
13222         from rtx to rtx_insn *.
13223         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
13224         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
13225         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
13226         rtx to rtx_insn *.
13227         * modulo-sched.c (const_iteration_count): Strengthen return type
13228         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
13229         use of NULL_RTX with NULL when working with insns.
13230         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
13231         to rtx_insn *.
13232         (sms_schedule): Likewise.
13233         * sched-rgn.c (init_ready_list): Likewise, also for locals
13234         "src_head" and "src_next_tail".
13235         (compute_block_dependences): Likewise.
13236         (free_block_dependencies): Likewise.
13237         (debug_rgn_dependencies): Likewise.
13238         (free_rgn_deps): Likewise.
13239         (compute_priorities): Likewise.
13240         (schedule_region): Likewise.
13241         * sel-sched.c (find_ebb_boundaries): Likewise.
13242
13243         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
13244         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
13245
13246 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13247
13248         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
13249         from rtx to rtx_insn *.
13250         (new_seginfo): Likewise for param "insn".
13251         (create_pre_exit): Likewise for locals "last_insn",
13252         "before_return_copy", "return_copy".
13253         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
13254         "mode_set".
13255
13256 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13257
13258         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
13259         from rtx to rtx_insn *.
13260         (lra_push_insn): Likewise for 1st param.
13261         (lra_push_insn_and_update_insn_regno_info): Likewise.
13262         (lra_pop_insn): Likewise for return type.
13263         (lra_invalidate_insn_data): Likewise for 1st param.
13264         (lra_set_insn_deleted): Likewise.
13265         (lra_delete_dead_insn): Likewise.
13266         (lra_process_new_insns): Likewise for first 3 params.
13267         (lra_set_insn_recog_data): Likewise for 1st param.
13268         (lra_update_insn_recog_data): Likewise.
13269         (lra_set_used_insn_alternative): Likewise.
13270         (lra_invalidate_insn_regno_info): Likewise.
13271         (lra_update_insn_regno_info): Likewise.
13272         (lra_former_scratch_operand_p): Likewise.
13273         (lra_eliminate_regs_1): Likewise.
13274         (lra_get_insn_recog_data): Likewise.
13275
13276         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
13277         rtx to rtx_insn *.
13278
13279         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
13280         "mv1" and "mv2".
13281         (substitute_within_insn): New.
13282         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
13283         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
13284         Replace call to "substitute" with call to substitute_within_insn.
13285
13286         * lra-constraints.c (curr_insn): Strengthen from rtx to
13287         rtx_insn *.
13288         (get_equiv_with_elimination): Likewise for param "insn".
13289         (match_reload): Strengthen params "before" and "after" from rtx *
13290         to rtx_insn **.
13291         (emit_spill_move): Likewise for return type.  Add a checked cast
13292         to rtx_insn * on result of gen_move_insn for now.
13293         (check_and_process_move): Likewise for local "before".  Replace
13294         NULL_RTX with NULL when referring to insns.
13295         (process_addr_reg): Strengthen params "before" and "after" from
13296         rtx * to rtx_insn **.
13297         (insert_move_for_subreg): Likewise.
13298         (simplify_operand_subreg): Strengthen locals "before" and "after"
13299         from rtx to rtx_insn *.
13300         (process_address_1): Strengthen params "before" and "after" from
13301         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
13302         rtx to rtx_insn *.
13303         (process_address): Strengthen params "before" and "after" from
13304         rtx * to rtx_insn **.
13305         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
13306         (curr_insn_transform): Strengthen locals "before" and "after"
13307         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
13308         to insns.
13309         (loc_equivalence_callback): Update cast of "data", changing
13310         resulting type from rtx to rtx_insn *.
13311         (substitute_pseudo_within_insn): New.
13312         (inherit_reload_reg): Strengthen param "insn" from rtx to
13313         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
13314         NULL when referring to insns.  Add a checked cast to rtx_insn *
13315         when using usage_insn to invoke lra_update_insn_regno_info.
13316         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
13317         likewise for locals "restore", "save".  Add checked casts to
13318         rtx_insn * when using usage_insn to invoke
13319         lra_update_insn_regno_info and lra_process_new_insns.  Replace
13320         NULL_RTX with NULL when referring to insns.
13321         (split_if_necessary): Strengthen param "insn" from rtx to
13322         rtx_insn *.
13323         (update_ebb_live_info): Likewise for params "head", "tail" and local
13324         "prev_insn".
13325         (get_last_insertion_point): Likewise for return type and local "insn".
13326         (get_live_on_other_edges): Likewise for local "last".
13327         (inherit_in_ebb): Likewise for params "head", "tail" and locals
13328         "prev_insn", "next_insn", "restore".
13329         (remove_inheritance_pseudos): Likewise for local "prev_insn".
13330         (undo_optional_reloads): Likewise for local "insn".
13331
13332         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
13333         "insn".
13334         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
13335         insns.
13336         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
13337         rtx_insn *.
13338         (spill_pseudos): Likewise for local "insn".
13339         (init_elimination): Likewise.
13340         (process_insn_for_elimination): Likewise for param "insn".
13341
13342         * lra-lives.c (curr_insn): Likewise.;
13343
13344         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
13345         (remove_pseudos): Likewise for param "insn".
13346         (spill_pseudos): Likewise for local "insn".
13347         (lra_final_code_change): Likewise for locals "insn", "curr".
13348
13349         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
13350         (lra_set_insn_deleted): Likewise.
13351         (lra_delete_dead_insn): Likewise, and for local "prev".
13352         (new_insn_reg): Likewise for param "insn".
13353         (lra_set_insn_recog_data): Likewise.
13354         (lra_update_insn_recog_data): Likewise.
13355         (lra_set_used_insn_alternative): Likewise.
13356         (get_insn_freq): Likewise.
13357         (invalidate_insn_data_regno_info): Likewise.
13358         (lra_invalidate_insn_regno_info): Likewise.
13359         (lra_update_insn_regno_info): Likewise.
13360         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
13361         vec<rtx_insn *>.
13362         (lra_push_insn_1): Strengthen param "insn" from rtx to
13363         rtx_insn *.
13364         (lra_push_insn): Likewise.
13365         (lra_push_insn_and_update_insn_regno_info): Likewise.
13366         (lra_pop_insn): Likewise for return type and local "insn".
13367         (push_insns): Likewise for params "from", "to", and local "insn".
13368         (setup_sp_offset): Likewise for params "from", "last" and locals
13369         "before", "insn".
13370         (lra_process_new_insns): Likewise for params "insn", "before",
13371         "after" and local "last".
13372         (struct sloc): Likewise for field "insn".
13373         (lra_former_scratch_operand_p): Likewise for param "insn".
13374         (remove_scratches): Likewise for locals "insn", "last".
13375         (check_rtl): Likewise for local "insn".
13376         (add_auto_inc_notes): Likewise for param "insn".
13377         (update_inc_notes): Likewise for local "insn".
13378         (lra): Replace NULL_RTX with NULL when referring to insn.
13379
13380 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13381
13382         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
13383         to rtx_insn *.
13384         (resolve_reg_notes): Likewise.
13385         (resolve_simple_move): Likewise for return type, param "insn", and
13386         locals "insns", "minsn".
13387         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
13388         (resolve_use): Likewise.
13389         (resolve_debug): Likewise.
13390         (find_decomposable_shift_zext): Likewise.
13391         (resolve_shift_zext): Likewise for return type, param "insn", and
13392         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
13393         (decompose_multiword_subregs): Likewise for local "insn",
13394         "orig_insn", "decomposed_shift", "end".
13395
13396 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13397
13398         * basic-block.h (basic_block split_edge_and_insert): Strengthen
13399         param "insns" from rtx to rtx_insn *.
13400
13401         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
13402         rtx to rtx_insn *.
13403         (struct iv_to_split): Likewise.
13404         (loop_exit_at_end_p): Likewise for local "insn".
13405         (split_edge_and_insert): Likewise for param "insns".
13406         (compare_and_jump_seq): Likewise for return type, param "cinsn",
13407         and locals "seq", "jump".
13408         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
13409         "branch_code"; update invocations of compare_and_jump_seq to
13410         eliminate NULL_RTX in favor of NULL.
13411         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
13412         rtx to rtx_insn *.
13413         (reset_debug_uses_in_loop): Likewise.
13414         (analyze_insn_to_expand_var): Likewise for param "insn".
13415         (analyze_iv_to_split_insn): Likewise.
13416         (analyze_insns_in_loop): Likewise for local "insn".
13417         (insert_base_initialization): Likewise for param
13418         "insn" and local "seq".
13419         (split_iv): Likewise for param "insn" and local "seq".
13420         (expand_var_during_unrolling): Likewise for param "insn".
13421         (insert_var_expansion_initialization): Likewise for local "seq".
13422         (combine_var_copies_in_loop_exit): Likewise.
13423         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
13424         "insn".
13425         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
13426         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
13427         "next".
13428
13429 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13430
13431         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
13432         rtx_insn *.
13433         (iv_analyze_result): Likewise.
13434         (iv_analyze_expr): Likewise.
13435         (biv_p): Likewise.
13436
13437         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
13438         local "def_insn" from rtx to rtx_insn *.
13439         (get_biv_step_1): Likewise for local "insn".
13440         (iv_analyze_expr): Likewise for param "insn".
13441         (iv_analyze_def): Likewise for local "insn".
13442         (iv_analyze_op): Likewise for param "insn".
13443         (iv_analyze): Likewise.
13444         (iv_analyze_result): Likewise.
13445         (biv_p): Likewise.
13446         (suitable_set_for_replacement): Likewise.
13447         (simplify_using_initial_values): Likewise for local "insn".
13448         (iv_number_of_iterations): Likewise for param "insn".
13449         (check_simple_exit): Add checked cast to rtx_insn when invoking
13450         iv_number_of_iterations for now (until get_condition is
13451         strengthened).
13452
13453         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
13454         "insn" from rtx to rtx_insn *.
13455         (analyze_insns_in_loop): Likewise for local "insn".
13456
13457 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13458
13459         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
13460         to rtx_insn *.
13461         (struct invariant): Likewise.
13462         (hash_invariant_expr_1): Likewise for param "insn".
13463         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
13464         (find_exits): Likewise for local "insn".
13465         (create_new_invariant): Likewise for param "insn".
13466         (check_dependencies): Likewise.
13467         (find_invariant_insn): Likewise.
13468         (record_uses): Likewise.
13469         (find_invariants_insn): Likewise.
13470         (find_invariants_bb): Likewise for local "insn".
13471         (get_pressure_class_and_nregs): Likewise for param "insn".
13472         (calculate_loop_reg_pressure): Likewise for local "insn".
13473
13474 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13475
13476         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
13477         to rtx_insn *.
13478         (add_test): Likewise for locals "seq", "jump".
13479         (doloop_modify): Likewise for locals "sequence", "jump_insn".
13480
13481 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13482
13483         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
13484         rtx_insn *.
13485         (rebuild_jump_labels_chain): Likewise for param "chain".
13486
13487         * cfgexpand.c (pass_expand::execute): Add checked cast to
13488         rtx_insn * when calling rebuild_jump_labels_chain in region where
13489         we know e->insns.r is non-NULL.
13490
13491         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
13492         rtx_insn *.
13493         (rebuild_jump_labels): Likewise.
13494         (rebuild_jump_labels_chain): Likewise for param "chain".
13495         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
13496         (init_label_info): Likewise for param "f".
13497         (maybe_propagate_label_ref): Likewise for params "jump_insn",
13498         "prev_nonjump_insn".
13499         (mark_all_labels): Likewise for param "f" and locals "insn",
13500         "prev_nonjump_insn".
13501
13502 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13503
13504         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
13505         from rtx to rtx_insn *insn.
13506         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
13507         (ira_add_allocno_copy): Likewise.
13508         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
13509         rtx to rtx_insn *.
13510         (ira_create_copy): Likewise.
13511         (ira_add_allocno_copy): Likewise.
13512         (create_bb_allocnos): Likewise for local "insn".
13513         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
13514         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
13515         process_regs_for_copy for rtx_insn * param.
13516         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
13517         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
13518         process_regs_for_copy for rtx_insn * param.
13519         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
13520         * ira-costs.c (record_reg_classes): Likewise for param "insn".
13521         (record_operand_costs): Likewise.
13522         (scan_one_insn): Likewise for return type, and for param "insn".
13523         (process_bb_for_costs): Likewise for local "insn".
13524         (process_bb_node_for_hard_reg_moves): Likewise.
13525         * ira-emit.c (struct move): Likewise for field "insn".
13526         (create_move): Eliminate use of NULL_RTX when dealing with an
13527         rtx_insn *.
13528         (emit_move_list): Strengthen return type and locals "result",
13529         "insn" from rtx to rtx_insn *insn.
13530         (emit_moves): Likewise for locals "insns", "tmp".
13531         (ira_emit): Likewise for local "insn".
13532         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
13533         "insn".
13534         (find_call_crossed_cheap_reg): Likewise.
13535         (process_bb_node_lives): Likewise for local "insn".
13536         * ira.c (decrease_live_ranges_number): Likewise.
13537         (compute_regs_asm_clobbered): Likewise.
13538         (build_insn_chain): Likewise.
13539         (find_moveable_pseudos): Likewise, also locals "def_insn",
13540         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
13541         to rtx_insn **.  Add a checked cast when assigning from
13542         "closest_use" into closest_uses array in a region where we know
13543         it's a non-NULL insn.
13544         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
13545         to rtx_insn *.
13546         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
13547         "last_interesting_insn", "uin".
13548         (move_unallocated_pseudos): Likewise for locals "def_insn",
13549         "move_insn", "newinsn".
13550
13551 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13552
13553         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
13554         Strengthen locals "done_label", "do_error" from rtx to
13555         rtx_code_label *.
13556         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
13557         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
13558         rtx_code_label *.
13559         (ubsan_expand_si_overflow_neg_check): Likewise for locals
13560         "done_label", "do_error" to rtx_code_label * and local  "last" to
13561         rtx_insn *.
13562         (ubsan_expand_si_overflow_mul_check): Likewise for locals
13563         "done_label", "do_error", "large_op0", "small_op0_large_op1",
13564         "one_small_one_large", "both_ops_large", "after_hipart_neg",
13565         "after_lopart_neg", "do_overflow", "hipart_different"  to
13566         rtx_code_label * and local  "last" to rtx_insn *.
13567
13568 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13569
13570         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
13571         "insn" and "move_insn" from rtx to rtx_insn *.
13572
13573 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13574
13575         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
13576         rtx_insn *.
13577         (cheap_bb_rtx_cost_p): Likewise.
13578         (first_active_insn): Likewise for return type and local "insn".
13579         (last_active_insn):  Likewise for return type and locals "insn",
13580         "head".
13581         (struct noce_if_info): Likewise for fields "jump", "insn_a",
13582         "insn_b".
13583         (end_ifcvt_sequence): Likewise for return type and locals "insn",
13584         "seq".
13585         (noce_try_move): Likewise for local "seq".
13586         (noce_try_store_flag): Likewise.
13587         (noce_try_store_flag_constants): Likewise.
13588         (noce_try_addcc): Likewise.
13589         (noce_try_store_flag_mask): Likewise.
13590         (noce_try_cmove): Likewise.
13591         (noce_try_minmax): Likewise.
13592         (noce_try_abs): Likewise.
13593         (noce_try_sign_mask): Likewise.
13594         (noce_try_bitop): Likewise.
13595         (noce_can_store_speculate_p): Likewise for local "insn".
13596         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
13597         seq".
13598         (check_cond_move_block): Likewise for local "insn".
13599         (cond_move_convert_if_block): Likewise.
13600         (cond_move_process_if_block): Likewise for locals "seq",
13601         "loc_insn".
13602         (noce_find_if_block): Likewise for local "jump".
13603         (merge_if_block): Likewise for local "last".
13604         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
13605         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
13606         (block_has_only_trap): Likewise for return type and local "trap".
13607         (find_if_case_1): Likewise for local "jump".
13608         (dead_or_predicable): Likewise for locals "head", "end", "jump",
13609         "insn".
13610
13611 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13612
13613         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
13614         "last_insn", "loop_end" from rtx to rtx_insn *.
13615
13616         * hw-doloop.c (scan_loop): Likewise for local "insn".
13617         (discover_loop): Likewise for param "tail_insn".
13618         (discover_loops): Likewise for local "tail".
13619
13620         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
13621         cast to rtx_insn * when assigning from an rtx local to a
13622         hwloop_info's "last_insn" field.
13623
13624 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13625
13626         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
13627         (add_delay_dependencies): Strengthen local "pro" from rtx to
13628         rtx_insn *.
13629         (recompute_todo_spec): Likewise.
13630         (dep_cost_1): Likewise for locals "insn", "used".
13631         (schedule_insn): Likewise for local "dbg".
13632         (schedule_insn): Likewise for locals "pro", "next".
13633         (unschedule_insns_until): Likewise for local "con".
13634         (restore_pattern): Likewise for local "next".
13635         (estimate_insn_tick): Likewise for local "pro".
13636         (resolve_dependencies): Likewise for local "next".
13637         (fix_inter_tick): Likewise.
13638         (fix_tick_ready): Likewise for local "pro".
13639         (add_to_speculative_block): Likewise for locals "check", "twin",
13640         "pro".
13641         (sched_extend_bb): Likewise for locals "end", "insn".
13642         (init_before_recovery): Likewise for local "x".
13643         (sched_create_recovery_block): Likewise for local "barrier".
13644         (create_check_block_twin): Likewise for local "pro".
13645         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
13646         "consumer".
13647         (unlink_bb_notes): Update for change to type of bb_header.
13648         Strengthen locals "prev", "label", "note", "next" from rtx to
13649         rtx_insn *.
13650         (clear_priorities): Likewise for local "pro".
13651
13652 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13653
13654         * gcse.c (struct occr): Strengthen field "insn" from rtx to
13655         rtx_insn *.
13656         (test_insn): Likewise for this global.
13657         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
13658         const rtx_insn *.
13659         (oprs_anticipatable_p): Likewise.
13660         (oprs_available_p): Likewise.
13661         (insert_expr_in_table): Strengthen param "insn" from  rtx to
13662         rtx_insn *.
13663         (hash_scan_set): Likewise.
13664         (hash_scan_clobber): Likewise.
13665         (hash_scan_call): Likewise.
13666         (hash_scan_insn): Likewise.
13667         (compute_hash_table_work): Likewise for local "insn".
13668         (process_insert_insn): Likewise for return type and local "pat".
13669         (insert_insn_end_basic_block): Likewise for locals "new_insn",
13670         "pat", "pat_end", "maybe_cc0_setter".
13671         (pre_edge_insert): Likewise for local "insn".
13672         (pre_insert_copy_insn): Likewise for param "insn".
13673         (pre_insert_copies): Likewise for local "insn".
13674         (struct set_data): Likewise for field "insn".
13675         (single_set_gcse): Likewise for param "insn".
13676         (gcse_emit_move_after): Likewise.
13677         (pre_delete): Likewise for local "insn".
13678         (update_bb_reg_pressure): Likewise for param "from" and local
13679         "insn".
13680         (should_hoist_expr_to_dom): Likewise for param "from".
13681         (hoist_code): Likewise for local "insn".
13682         (get_pressure_class_and_nregs): Likewise for param "insn".
13683         (calculate_bb_reg_pressure): Likewise for local "insn".
13684         (compute_ld_motion_mems): Likewise.
13685
13686 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13687
13688         * genpeep.c (main): Rename param back from "uncast_ins1" to
13689         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
13690         checked cast.
13691
13692         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
13693
13694 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
13695
13696         PR target/62195
13697         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
13698         documentation to state it is only for VSX operations.
13699
13700         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
13701         constraint only active if VSX.
13702
13703         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
13704         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
13705         (lfiwzx): Likewise.
13706
13707 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13708
13709         * fwprop.c (single_def_use_dom_walker::before_dom_children):
13710         Strengthen local "insn" from rtx to rtx_insn *.
13711         (use_killed_between): Likewise for param "target_insn".
13712         (all_uses_available_at): Likewise for param "target_insn" and
13713         local "next".
13714         (update_df_init): Likewise for params "def_insn", "insn".
13715         (update_df): Likewise for param "insn".
13716         (try_fwprop_subst): Likewise for param "def_insn" and local
13717         "insn".
13718         (free_load_extend): Likewise for param "insn".
13719         (forward_propagate_subreg): Likewise for param "def_insn" and
13720         local "use_insn".
13721         (forward_propagate_asm): Likewise for param "def_insn" and local
13722         "use_insn".
13723         (forward_propagate_and_simplify): Likewise for param "def_insn"
13724         and local "use_insn".
13725         (forward_propagate_into): Likewise for locals "def_insn" and
13726         "use_insn".
13727
13728 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13729
13730         * function.c (emit_initial_value_sets): Strengthen local "seq"
13731         from rtx to rtx_insn *.
13732         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
13733         local "seq".
13734         (instantiate_virtual_regs): Likewise for local "insn".
13735         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
13736         (reorder_blocks_1): Likewise for param "insns" and local "insn".
13737         (expand_function_end): Likewise for locals "insn" and "seq".
13738         (epilogue_done): Likewise for local "insn".
13739         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
13740         "last", "trial".
13741         (reposition_prologue_and_epilogue_notes): Likewise for locals
13742         "insn", "last", "note", "first".
13743         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
13744         (pass_match_asm_constraints::execute): Likewise for local "insn".
13745
13746 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13747
13748         * output.h (final_scan_insn): Strengthen return type from rtx to
13749         rtx_insn *.
13750         (final_forward_branch_p): Likewise for param.
13751         (current_output_insn): Likewise for this global.
13752
13753         * final.c (rtx debug_insn): Likewise for this variable.
13754         (current_output_insn): Likewise.
13755         (get_attr_length_1): Rename param "insn" to "uncast_insn",
13756         adding "insn" back in as an rtx_insn * with a checked cast, so
13757         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
13758         first param.
13759         (compute_alignments): Strengthen local "label" from rtx to
13760         rtx_insn *.
13761         (shorten_branches): Rename param from "first" to "uncast_first",
13762         introducing a new local rtx_insn * "first" using a checked cast to
13763         effectively strengthen "first" from rtx to rtx_insn * without
13764         affecting the type signature.  Strengthen locals "insn", "seq",
13765         "next", "label" from rtx to rtx_insn *.
13766         (change_scope): Strengthen param "orig_insn" and local "insn" from
13767         rtx to rtx_insn *.
13768         (final_start_function): Rename param from "first" to "uncast_first",
13769         introducing a new local rtx_insn * "first" using a checked cast to
13770         effectively strengthen "first" from rtx to rtx_insn * without
13771         affecting the type signature.  Strengthen local "insn" from rtx to
13772         rtx_insn *.
13773         (dump_basic_block_info): Strengthen param "insn" from rtx to
13774         rtx_insn *.
13775         (final): Rename param from "first" to "uncast_first",
13776         introducing a new local rtx_insn * "first" using a checked cast to
13777         effectively strengthen "first" from rtx to rtx_insn * without
13778         affecting the type signature.  Strengthen locals "insn", "next"
13779         from rtx to rtx_insn *.
13780         (output_alternate_entry_point): Strengthen param "insn" from rtx to
13781         rtx_insn *.
13782         (call_from_call_insn): Strengthen param "insn" from rtx to
13783         rtx_call_insn *.
13784         (final_scan_insn): Rename param from "insn" to "uncast_insn",
13785         introducing a new local rtx_insn * "insn" using a checked cast to
13786         effectively strengthen "insn" from rtx to rtx_insn * without
13787         affecting the type signature.  Strengthen return type and locals
13788         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
13789         now-redundant checked cast to rtx_insn * from both invocations of
13790         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
13791         introducing a local "call_insn" for use when invoking
13792         call_from_call_insn.
13793         (notice_source_line): Strengthen param "insn" from rtx to
13794         rtx_insn *.
13795         (leaf_function_p): Likewise for local "insn".
13796         (final_forward_branch_p): Likewise.
13797         (leaf_renumber_regs): Likewise for param "first".
13798         (rest_of_clean_state): Likewise for locals "insn" and "next".
13799         (self_recursive_call_p): Likewise for param "insn".
13800         (collect_fn_hard_reg_usage): Likewise for local "insn".
13801         (get_call_fndecl): Likewise for param "insn".
13802         (get_call_cgraph_rtl_info): Likewise.
13803         (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
13804         introducing a new local rtx_insn * "insn" using a checked cast to
13805         effectively strengthen "insn" from rtx to rtx_insn * without
13806         affecting the type signature.
13807
13808         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
13809         cast when assigning from param "insn" to current_output_insn.
13810         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
13811         so that we can assign it back to current_output_insn.
13812
13813 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13814
13815         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
13816         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
13817         atmxt540s and atmxt540sreva devices.
13818         * config/avr/avr-tables.opt: Regenerate.
13819         * config/avr/t-multilib: Regenerate.
13820         * doc/avr-mmcu.texi: Regenerate.
13821
13822 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13823
13824         * expr.c (convert_move): Strengthen local "insns" from rtx to
13825         rtx_insn *.
13826         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
13827         "top_label" from rtx to rtx_code_label *.
13828         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
13829         rtx_insn *.
13830         (emit_single_push_insn): Likewise for locals "prev", "last".
13831         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
13832         to rtx_code_label *.
13833         (store_constructor): Likewise for locals "loop_start", "loop_end".
13834         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
13835         rtx_insn *.
13836         (expand_expr_real_2): Likewise.
13837         (expand_expr_real_1): Strengthen local "label" from rtx to
13838         rtx_code_label *.
13839
13840 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13841
13842         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
13843         from rtx to rtx_insn *.
13844         (store_bit_field_1): Likewise.
13845         (extract_bit_field_1): Likewise.
13846         (expand_mult_const): Likewise for local "insns".
13847         (expmed_mult_highpart): Strengthen local "label" from rtx to
13848         rtx_code_label *.
13849         (expand_smod_pow2): Likewise.
13850         (expand_sdiv_pow2): Likewise.
13851         (expand_divmod): Strengthen locals "last", "insn" from rtx to
13852         rtx_insn *.  Strengthen locals "label", "label1", "label2",
13853         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
13854         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
13855         (emit_store_flag): Likewise.
13856         (emit_store_flag_force): Strengthen local "label" from rtx to
13857         rtx_code_label *.
13858         (do_cmp_and_jump): Likewise for param "label".
13859
13860 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13861
13862         * explow.c (force_reg): Strengthen local "insn" from rtx to
13863         rtx_insn *.
13864         (adjust_stack_1): Likewise.
13865         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
13866         "final_label", "available_label", "space_available" from rtx to
13867         rtx_code_label *.
13868         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
13869         (anti_adjust_stack_and_probe): Likewise.
13870
13871 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13872
13873         * except.h (sjlj_emit_function_exit_after): Strengthen param
13874         "after" from rtx to rtx_insn *.  This is only called with
13875         result of get_last_insn (in function.c) so type-change should be
13876         self-contained.
13877
13878         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
13879         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
13880         to rtx_insn *.  These fields are only used from except.c so this
13881         type-change should be self-contained to this patch.
13882
13883         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
13884         local "last" from rtx to rtx_insn *.
13885         (dw2_build_landing_pads): Likewise for local "seq".
13886         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
13887         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
13888         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
13889         rtx to rtx_insn *.
13890         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
13891         to rtx_insn *.
13892         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
13893         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
13894         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
13895         referring to an insn.  Strengthen local "dispatch_label" from
13896         rtx to rtx_code_label *.
13897         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
13898         rtx_insn *.
13899         (expand_eh_return): Strengthen local "around_label" from
13900         rtx to rtx_code_label *.
13901         (convert_to_eh_region_ranges): Strengthen locals "iter",
13902         "last_action_insn", "first_no_action_insn",
13903         "first_no_action_insn_before_switch",
13904         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
13905
13906 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13907
13908         * dwarf2out.c (last_var_location_insn): Strengthen this variable
13909         from rtx to rtx_insn *.
13910         (cached_next_real_insn): Likewise.
13911         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
13912         working with insns.
13913         (dwarf2out_var_location): Strengthen locals "next_real",
13914         "next_note", "expected_next_loc_note", "last_start", "insn" from
13915         rtx to rtx_insn *.
13916
13917 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13918
13919         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
13920         from rtx to rtx_insn *.
13921         (create_pseudo_cfg): Likewise for local "insn".
13922
13923 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13924
13925         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
13926         from rtx to rtx_insn *.
13927         (df_bb_regno_last_def_find): Likewise.
13928
13929         * df-problems.c (df_rd_bb_local_compute): Likewise.
13930         (df_lr_bb_local_compute): Likewise.
13931         (df_live_bb_local_compute): Likewise.
13932         (df_chain_remove_problem): Likewise.
13933         (df_chain_create_bb): Likewise.
13934         (df_word_lr_bb_local_compute): Likewise.
13935         (df_remove_dead_eq_notes): Likewise for param "insn".
13936         (df_note_bb_compute): Likewise for local "insn".
13937         (simulate_backwards_to_point): Likewise.
13938         (df_md_bb_local_compute): Likewise.
13939
13940         * df-scan.c (df_scan_free_bb_info): Likewise.
13941         (df_scan_start_dump): Likewise.
13942         (df_scan_start_block): Likewise.
13943         (df_install_ref_incremental): Likewise for local "insn".
13944         (df_insn_rescan_all): Likewise.
13945         (df_reorganize_refs_by_reg_by_insn): Likewise.
13946         (df_reorganize_refs_by_insn_bb): Likewise.
13947         (df_recompute_luids): Likewise.
13948         (df_bb_refs_record): Likewise.
13949         (df_update_entry_exit_and_calls): Likewise.
13950         (df_bb_verify): Likewise.
13951
13952 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13953
13954         * ddg.h (struct ddg_node): Strengthen fields "insn" and
13955         "first_note" from rtx to rtx_insn *.
13956         (get_node_of_insn): Likewise for param 2 "insn".
13957         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
13958
13959         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
13960         rtx_insn *.
13961         (mem_write_insn_p): Likewise.
13962         (mem_access_insn_p): Likewise.
13963         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
13964         (def_has_ccmode_p): Likewise for param "insn".
13965         (add_cross_iteration_register_deps): Likewise for locals
13966         "def_insn" and "use_insn".
13967         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
13968         (build_intra_loop_deps): Likewise for local "src_insn".
13969         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
13970         to rtx_insn *.
13971         (get_node_of_insn): Likewise for param "insn".
13972
13973 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13974
13975         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
13976         (deletable_insn_p): Strengthen param "insn" from rtx to
13977         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
13978         find_call_stack_args, since this is guarded by CALL_P (insn).
13979         (marked_insn_p): Strengthen param "insn" from rtx to
13980         rtx_insn *.
13981         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
13982         invoking find_call_stack_args, since this is guarded by
13983         CALL_P (insn).
13984         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
13985         rtx_insn *; we know this is an insn since this was called by
13986         mark_nonreg_stores.
13987         (mark_nonreg_stores_2): Likewise.
13988         (mark_nonreg_stores): Strengthen param "insn" from rtx to
13989         rtx_insn *.
13990         (find_call_stack_args): Strengthen param "call_insn" from rtx to
13991         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
13992         to rtx_insn *.
13993         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
13994         from rtx to rtx_insn *.
13995         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
13996         "next", "ref_insn".
13997         (delete_unmarked_insns): Likewise for locals "insn", "next".
13998         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
13999         (mark_reg_dependencies): Likewise for param "insn".
14000         (rest_of_handle_ud_dce): Likewise for local "insn".
14001         (word_dce_process_block): Likewise.
14002         (dce_process_block): Likewise.
14003
14004 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14005
14006         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
14007         from rtx to rtx_insn *.
14008         (struct change_cc_mode_args): Likewise for field "insn".
14009         (this_insn): Strengthen from rtx to rtx_insn *.
14010         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
14011         with insn.
14012         (validate_canon_reg): Strengthen param "insn" from rtx to
14013         rtx_insn *.
14014         (canon_reg): Likewise.
14015         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
14016         dealing with insn.
14017         (record_jump_equiv): Strengthen param "insn" from rtx to
14018         rtx_insn *.
14019         (try_back_substitute_reg): Likewise, also for locals "prev",
14020         "bb_head".
14021         (find_sets_in_insn): Likewise for param "insn".
14022         (canonicalize_insn): Likewise.
14023         (cse_insn): Likewise.  Add a checked cast.
14024         (invalidate_from_clobbers): Likewise for param "insn".
14025         (invalidate_from_sets_and_clobbers): Likewise.
14026         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
14027         dealing with insn.
14028         (cse_prescan_path): Strengthen local "insn" from rtx to
14029         rtx_insn *.
14030         (cse_extended_basic_block): Likewise for locals "insn" and
14031         "prev_insn".
14032         (cse_main): Likewise for param "f".
14033         (check_for_label_ref): Likewise for local "insn".
14034         (set_live_p): Likewise for second param ("insn").
14035         (insn_live_p): Likewise for first param ("insn") and for local
14036         "next".
14037         (cse_change_cc_mode_insn): Likewise for first param "insn".
14038         (cse_change_cc_mode_insns): Likewise for first and second params
14039         "start" and "end".
14040         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
14041         and "end".
14042         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
14043         "cc_src_insn".
14044
14045 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14046             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14047             Anna Tikhonova  <anna.tikhonova@intel.com>
14048             Ilya Tocar  <ilya.tocar@intel.com>
14049             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14050             Ilya Verbin  <ilya.verbin@intel.com>
14051             Kirill Yukhin  <kirill.yukhin@intel.com>
14052             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14053
14054         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
14055         New.
14056         * config/i386/sse.md
14057         (define_mode_iterator VI248_AVX2): Delete.
14058         (define_mode_iterator VI2_AVX2_AVX512BW): New.
14059         (define_mode_iterator VI48_AVX2): Ditto.
14060         (define_insn <shift_insn><mode>3): Delete.
14061         (define_insn "<shift_insn><mode>3<mask_name>" with
14062         VI2_AVX2_AVX512BW): New.
14063         (define_insn "<shift_insn><mode>3<mask_name>" with
14064         VI48_AVX2): Ditto.
14065
14066 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14067             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14068             Anna Tikhonova  <anna.tikhonova@intel.com>
14069             Ilya Tocar  <ilya.tocar@intel.com>
14070             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14071             Ilya Verbin  <ilya.verbin@intel.com>
14072             Kirill Yukhin  <kirill.yukhin@intel.com>
14073             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14074
14075         * config/i386/sse.md
14076         (define_mode_iterator VI4F_BRCST32x2): New.
14077         (define_mode_attr 64x2_mode): Ditto.
14078         (define_mode_attr 32x2mode): Ditto.
14079         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
14080         with VI4F_BRCST32x2): Ditto.
14081         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
14082         with V16FI mode iterator): Ditto.
14083         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
14084         with V16FI): Ditto.
14085         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
14086         with VI8F_BRCST64x2): Ditto.
14087
14088 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14089             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14090             Anna Tikhonova  <anna.tikhonova@intel.com>
14091             Ilya Tocar  <ilya.tocar@intel.com>
14092             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14093             Ilya Verbin  <ilya.verbin@intel.com>
14094             Kirill Yukhin  <kirill.yukhin@intel.com>
14095             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14096
14097         * config/i386/sse.md
14098         (define_mode_iterator VI8_AVX512VL): New.
14099         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
14100
14101 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
14102
14103         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
14104         (define_mode_iterator V48_AVX512VL): New.
14105         (define_mode_iterator V12_AVX512VL): Ditto.
14106         (define_insn <avx512>_load<mode>_mask): Split into two similar
14107         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
14108         Refactor output template.
14109         (define_insn "<avx512>_store<mode>_mask"): Ditto.
14110
14111 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14112
14113         * cprop.c (struct occr): Strengthen field "insn" from rtx to
14114         rtx_insn *.
14115         (reg_available_p): Likewise for param "insn".
14116         (insert_set_in_table): Likewise.
14117         (hash_scan_set): Likewise.
14118         (hash_scan_insn): Likewise.
14119         (make_set_regs_unavailable): Likewise.
14120         (compute_hash_table_work): Likewise for local "insn".
14121         (reg_not_set_p): Strengthen param "insn" from const_rtx to
14122         const rtx_insn *.
14123         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
14124         (try_replace_reg): Likewise.
14125         (find_avail_set): Likewise.
14126         (cprop_jump): Likewise for params "setcc", "jump".
14127         (constprop_register): Likewise for param "insn".
14128         (cprop_insn): Likewise.
14129         (do_local_cprop): Likewise.
14130         (local_cprop_pass): Likewise for local "insn".
14131         (bypass_block): Likewise for params "setcc" and "jump".
14132         (bypass_conditional_jumps): Likewise for locals "setcc" and
14133         "insn".
14134         (one_cprop_pass): Likewise for local "insn".
14135
14136 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14137
14138         * compare-elim.c (struct comparison_use): Strengthen field "insn"
14139         from rtx to rtx_insn *.
14140         (struct comparison): Likewise, also for field "prev_clobber".
14141         (conforming_compare): Likewise for param "insn".
14142         (arithmetic_flags_clobber_p): Likewise.
14143         (find_flags_uses_in_insn): Likewise.
14144         (find_comparison_dom_walker::before_dom_children): Likewise for
14145         locals "insn", "next", "last_clobber".
14146         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
14147
14148 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14149
14150         * combine-stack-adj.c (struct csa_reflist): Strengthen field
14151         "insn" from rtx to rtx_insn *.
14152         (single_set_for_csa): Likewise for param "insn".
14153         (record_one_stack_ref): Likewise.
14154         (try_apply_stack_adjustment): Likewise.
14155         (struct record_stack_refs_data): Likewise for field "insn".
14156         (maybe_move_args_size_note): Likewise for params "last" and "insn".
14157         (prev_active_insn_bb): Likewise for return type and param "insn".
14158         (next_active_insn_bb): Likewise.
14159         (force_move_args_size_note): Likewise for params "prev" and "last"
14160         and locals "test", "next_candidate", "prev_candidate".
14161         (combine_stack_adjustments_for_block): Strengthen locals
14162         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
14163         rtx_insn *.
14164
14165 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14166
14167         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
14168         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
14169         (subst_insn): Likewise for this variable.
14170         (added_links_insn): Likewise.
14171         (struct insn_link): Likewise for field "insn".
14172         (alloc_insn_link): Likewise for param "insn".
14173         (struct undobuf): Likewise for field "other_insn".
14174         (find_single_use): Likewise for param "insn" and local "next".
14175         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
14176         (delete_noop_moves): Likewise for locals "insn", "next".
14177         (create_log_links): Likewise for locals "insn", "use_insn".
14178         Strengthen local "next_use" from rtx * to rtx_insn **.
14179         (insn_a_feeds_b): Likewise for params "a", "b".
14180         (combine_instructions): Likewise for param "f" and locals "insn",
14181         "next", "prev", "first", "last_combined_insn", "link", "link1",
14182         "temp".  Replace use of NULL_RTX with NULL when referring to
14183         insns.
14184         (setup_incoming_promotions): Likewise for param "first"
14185         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
14186         (can_combine_p): Likewise for params "insn", "i3", "pred",
14187         "pred2", "succ", "succ2" and for local "p".
14188         (combinable_i3pat): Likewise for param "i3".
14189         (cant_combine_insn_p): Likewise for param "insn".
14190         (likely_spilled_retval_p): Likewise.
14191         (adjust_for_new_dest): Likewise.
14192         (update_cfg_for_uncondjump): Likewise, also for local "insn".
14193         (try_combine): Likewise for return type and for params "i3", "i2",
14194         "i1", "i0", "last_combined_insn", and for locals "insn",
14195         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
14196         "i0_insn".  Eliminate local "tem" in favor of new locals
14197         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
14198         checked cast for now to rtx_insn * on the return type of
14199         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
14200         insns.
14201         (find_split_point): Strengthen param "insn" from rtx to
14202         rtx_insn *.
14203         (simplify_set): Likewise for local "other_insn".
14204         (recog_for_combine): Likewise for param "insn".
14205         (record_value_for_reg): Likewise.
14206         (record_dead_and_set_regs_1): Likewise for local
14207         "record_dead_insn".
14208         (record_dead_and_set_regs): Likewise for param "insn".
14209         (record_promoted_value): Likewise.
14210         (check_promoted_subreg): Likewise.
14211         (get_last_value_validate): Likewise.
14212         (reg_dead_at_p): Likewise.
14213         (move_deaths): Likewise for param "to_insn".
14214         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
14215         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
14216         in favor of new locals "tem_note" and "tem_insn", the latter being
14217         an rtx_insn *.
14218         (distribute_links): Strengthen locals "place", "insn" from rtx to
14219         rtx_insn *.
14220
14221 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14222
14223         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
14224         than a const_rtx.
14225         (can_delete_label_p): Require a const rtx_code_label * rather than
14226         a const_rtx.
14227         (delete_insn): Add checked cast to rtx_code_label * when we know
14228         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
14229         rtx to rtx_insn *.
14230         (delete_insn_chain): Strengthen locals "prev" and "current" from
14231         rtx to rtx_insn *.  Add a checked cast when assigning from
14232         "finish" (strengthening the params will come later).  Add a
14233         checked cast to rtx_note * in region where we know
14234         NOTE_P (current).
14235         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
14236         rtx_insn *.
14237         (compute_bb_for_insn): Likewise.
14238         (free_bb_for_insn): Likewise for local "insn".
14239         (compute_bb_for_insn): Likewise.
14240         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
14241         local "insn" from rtx to rtx_insn *
14242         (flow_active_insn_p): Require a const rtx_insn * rather than a
14243         const_rtx.
14244         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
14245         rtx_insn *.
14246         (can_fallthru): Likewise for locals "insn" and "insn2".
14247         (bb_note): Likewise for local "note".
14248         (first_insn_after_basic_block_note): Likewise for local "note" and
14249         for return type.
14250         (rtl_split_block): Likewise for locals "insn" and "next".
14251         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
14252         "end".
14253         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
14254         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
14255         "prev", "tmp".
14256         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
14257         them), "kill_from", "barrier", "new_insn".
14258         (patch_jump_insn): Likewise for params "insn", "old_label".
14259         (redirect_branch_edge): Likewise for locals "old_label", "insn".
14260         (force_nonfallthru_and_redirect): Likewise for locals "insn",
14261         "old_label", "new_label".
14262         (rtl_tidy_fallthru_edge): Likewise for local "q".
14263         (rtl_split_edge): Likewise for locals "before", "last".
14264         (commit_one_edge_insertion): Likewise for locals "before",
14265         "after", "insns", "tmp", "last", adding a checked cast where
14266         currently necessary.
14267         (commit_edge_insertions): Likewise.
14268         (rtl_dump_bb): Likewise for locals "insn", "last".
14269         (print_rtl_with_bb): Likewise for local "x".
14270         (rtl_verify_bb_insns): Likewise for local "x".
14271         (rtl_verify_bb_pointers): Likewise for local "insn".
14272         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
14273         "head", "end".
14274         (rtl_verify_fallthru): Likewise for local "insn".
14275         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
14276         (purge_dead_edges): Likewise for local "insn".
14277         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
14278         (skip_insns_after_block): Likewise for return type and for locals
14279         "insn", "last_insn", "next_head", "prev".
14280         (record_effective_endpoints): Likewise for locals "next_insn",
14281         "insn", "end".
14282         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
14283         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
14284         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
14285         (duplicate_insn_chain): For now, add checked cast from rtx to
14286         rtx_insn * when returning insn.
14287         (cfg_layout_duplicate_bb): Likewise for local "insn".
14288         (cfg_layout_delete_block): Likewise for locals "insn", "next",
14289         "prev", "remaints".
14290         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
14291         (rtl_block_empty_p): Likewise.
14292         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
14293         "split_point", "last".
14294         (rtl_block_ends_with_call_p): Likewise for local "insn".
14295         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
14296         const rtx_insn *.
14297         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
14298         "split_at_insn" from rtx to rtx_insn *.
14299         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
14300         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
14301         to const rtx_insn *.
14302         (rtl_account_profile_record): Likewise.
14303
14304 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14305
14306         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
14307         rtx to rtx_insn *.
14308         (average_num_loop_insns): Likewise.
14309         (init_set_costs): Likewise for local "seq".
14310         (seq_cost): Likewise for param "seq", from const_rtx to const
14311         rtx_insn *.
14312
14313 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14314
14315         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
14316         rtx to rtx_insn *.
14317
14318 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14319
14320         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
14321         "f1" and "f2" from rtx * to rtx_insn **.
14322         (flow_find_head_matching_sequence): Likewise.
14323
14324         * cfgcleanup.c (try_simplify_condjump): Strengthen local
14325         "cbranch_insn" from rtx to rtx_insn *.
14326         (thread_jump): Likewise for local "insn".
14327         (try_forward_edges): Likewise for local "last".
14328         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
14329         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
14330         "real_b_end".
14331         (can_replace_by): Likewise for params "i1", "i2".
14332         (old_insns_match_p): Likewise.
14333         (merge_notes): Likewise.
14334         (walk_to_nondebug_insn): Likewise for param "i1".
14335         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
14336         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
14337         "afterlast1", "afterlast2" from rtx to rtx_insn *.
14338         (flow_find_head_matching_sequence): Strengthen params "f1" and
14339         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
14340         "last1", "last2", "beforelast1", "beforelast2" from rtx to
14341         rtx_insn *.
14342         (outgoing_edges_match): Likewise for locals "last1", "last2".
14343         (try_crossjump_to_edge): Likewise for local "insn".
14344         Replace call to for_each_rtx with for_each_rtx_in_insn.
14345
14346         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
14347         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
14348         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
14349         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
14350         (try_optimize_cfg): Strengthen local "last" from rtx to
14351         rtx_insn *.
14352         (delete_dead_jumptables): Likewise for locals "insn", "next",
14353         "label".
14354
14355         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
14356         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
14357         "rtx else_first_tail", to reflect the basic-block.h changes above.
14358
14359 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14360
14361         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
14362         rtx_insn *.
14363         (purge_dead_tablejump_edges): Likewise.
14364         (find_bb_boundaries): Likewise for locals "insn", "end",
14365         "flow_transfer_insn".
14366
14367 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14368
14369         * caller-save.c (save_call_clobbered_regs): Strengthen locals
14370         "ins" and "prev" from rtx to rtx_insn *.
14371
14372 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14373
14374         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
14375         rtx_insn *.
14376         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
14377         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
14378         "scan_start".
14379         (load_register_parameters): Likewise for local "before_arg".
14380         (check_sibcall_argument_overlap): Likewise for param "insn".
14381         (expand_call): Likewise for locals "normal_call_insns",
14382         "tail_call_insns", "insns", "before_call", "after_args",
14383         "before_arg", "last", "prev".  Strengthen one of the "last" from
14384         rtx to rtx_call_insn *.
14385         (fixup_tail_calls): Strengthen local "insn" from rtx to
14386         rtx_insn *.
14387         (emit_library_call_value_1): Likewise for locals "before_call" and
14388         "last".
14389
14390 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14391
14392         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
14393         and "last" from rtx to rtx_insn *.
14394         (expand_builtin_nonlocal_goto): Likewise for local "insn".
14395         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
14396         rtx_call_insn *.
14397         (expand_errno_check): Strengthen local "lab" from rtx to
14398         rtx_code_label *.
14399         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
14400         rtx_insn *.
14401         (expand_builtin_mathfn_2): Likewise.
14402         (expand_builtin_mathfn_ternary): Likewise.
14403         (expand_builtin_mathfn_3): Likewise.
14404         (expand_builtin_interclass_mathfn): Likewise for local "last".
14405         (expand_builtin_int_roundingfn): Likewise for local "insns".
14406         (expand_builtin_int_roundingfn_2): Likewise.
14407         (expand_builtin_strlen): Likewise for local "before_strlen".
14408         (expand_builtin_strncmp): Likewise for local "seq".
14409         (expand_builtin_signbit): Likewise for local "last".
14410         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
14411         from rtx to rtx_code_label *.
14412         (expand_stack_restore):  Strengthen local "prev" from rtx to
14413         rtx_insn *.
14414
14415 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14416
14417         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
14418         to rtx_insn *.
14419         (struct btr_def_s): Likewise.
14420         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
14421         const rtx_insn *.
14422         (add_btr_def): Likewise.
14423         (new_btr_user): Likewise.
14424         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
14425         rtx to rtx_insn *.
14426         (link_btr_uses): Likewise.
14427         (move_btr_def): Likewise for locals "insp", "old_insn",
14428         "new_insn".  Add checked cast to rtx_insn * for now on result of
14429         gen_move_insn.
14430         (can_move_up): Strengthen param "insn" from const_rtx to
14431         const rtx_insn *.
14432
14433 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14434
14435         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
14436         rtx_insn *.
14437         (get_uncond_jump_length): Likewise for locals "label", "jump".
14438         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
14439         "jump", "insn".
14440         (add_labels_and_missing_jumps): Likewise for local "new_jump".
14441         (fix_up_fall_thru_edges): Likewise for local "old_jump".
14442         (find_jump_block): Likewise for local "insn".
14443         (fix_crossing_conditional_branches): Likewise for locals
14444         "old_jump", "new_jump".
14445         (fix_crossing_unconditional_branches): Likewise for locals
14446         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
14447         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
14448
14449 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14450
14451         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
14452         rtx to rtx_insn *.
14453         (struct mem_insn): Likewise for field "insn".
14454         (reg_next_use): Strengthen from rtx * to rtx_insn **.
14455         (reg_next_inc_use): Likewise.
14456         (reg_next_def): Likewise.
14457         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
14458         from rtx to rtx_insn *.
14459         (move_insn_before): Likewise for param "next_insn" and local "insns".
14460         (attempt_change): Likewise for local "mov_insn".
14461         (try_merge): Likewise for param "last_insn".
14462         (get_next_ref): Likewise for return type and local "insn".
14463         Strengthen param "next_array" from rtx * to rtx_insn **.
14464         (parse_add_or_inc): Strengthen param "insn" from rtx to
14465         rtx_insn *.
14466         (find_inc): Likewise for locals "insn" and "other_insn" (three of
14467         the latter).
14468         (merge_in_block): Likewise for locals "insn", "curr",
14469         "other_insn".
14470         (pass_inc_dec::execute): Update allocations of the arrays to
14471         reflect the stronger types.
14472
14473 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14474
14475         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
14476         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
14477         from rtx to rtx_code_label *.
14478
14479 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14480
14481         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
14482         to rtx_insn *.
14483
14484 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
14485
14486         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
14487         generated a warning and prevented bootstrapping the compiler.
14488
14489 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14490
14491         * rtl.h (delete_related_insns): Strengthen return type from rtx to
14492         rtx_insn *.
14493
14494         * jump.c (delete_related_insns): Likewise, also for locals "next"
14495         and "prev".
14496
14497 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14498
14499         * genautomata.c (output_internal_insn_latency_func): When writing
14500         the function "internal_insn_latency" to insn-automata.c,
14501         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
14502         allowing the optional guard function of (define_bypass) clauses to
14503         expect a pair of rtx_insn *, rather than a pair of rtx.
14504         (output_insn_latency_func): When writing the function
14505         "insn_latency", add an "uncast_" prefix to params "insn" and
14506         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
14507         using checked casts from the params, thus enabling the above
14508         change to the generated "internal_insn_latency" function.
14509
14510 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
14511
14512         PR tree-optimization/62091
14513         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
14514         handle correctly arrays.
14515         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
14516         inheritance binfos.
14517         (record_known_type): Walk into inner type.
14518         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
14519         condition on no type changes.
14520
14521 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14522
14523         * genattrtab.c (write_attr_get): Within the generated get_attr_
14524         functions, rename param "insn" to "uncast_insn" and reintroduce
14525         "insn" as an local rtx_insn * using a checked cast, so that "insn"
14526         is an rtx_insn * within insn-attrtab.c
14527
14528 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14529
14530         * output.h (peephole): Strengthen return type from rtx to
14531         rtx_insn *.
14532         * rtl.h (delete_for_peephole): Likewise for both params.
14533         * genpeep.c (main): In generated "peephole" function, strengthen
14534         return type and local "insn" from rtx to rtx_insn *.  For now,
14535         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
14536         rtx_insn *, with a checked cast.
14537         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
14538         locals "insn", "next", "prev" from rtx to rtx_insn *.
14539
14540 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
14541
14542         PR tree-optimization/62112
14543         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
14544         * gimple-iterator.h (gsi_replace): Return bool.
14545         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
14546         moved from ref_may_alias_global_p.
14547         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
14548         New overloads.
14549         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
14550         (stmt_kills_ref_p_1): Rename...
14551         (stmt_kills_ref_p): ... to this.
14552         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
14553         stmt_kills_ref_p): Declare.
14554         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
14555         Move the self-assignment case...
14556         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
14557
14558 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14559
14560         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
14561
14562         * emit-rtl.c (try_split): Likewise, also for locals "before" and
14563         "after".  For now, don't strengthen param "trial", which requires
14564         adding checked casts when returning it.
14565
14566 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14567
14568         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
14569         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
14570         "var_location" hook from rtx to rtx_insn *.
14571         (debug_nothing_rtx): Delete in favor of...
14572         (debug_nothing_rtx_code_label): New prototype.
14573         (debug_nothing_rtx_rtx): Delete unused prototype.
14574         (debug_nothing_rtx_insn): New prototype.
14575
14576         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
14577         invoking debug_hooks->var_location (in two places, one in a NOTE
14578         case of a switch statement, the other guarded by a CALL_P
14579         conditional.  Add checked cast to rtx_code_label * when invoking
14580         debug_hooks->label (within CODE_LABEL case of switch statement).
14581
14582         * dbxout.c (dbx_debug_hooks): Update "label" hook from
14583         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
14584         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
14585         (xcoff_debug_hooks): Likewise.
14586         * debug.c (do_nothing_debug_hooks): Likewise.
14587         (debug_nothing_rtx): Delete in favor of...
14588         (debug_nothing_rtx_insn): New function.
14589         (debug_nothing_rtx_rtx): Delete unused function.
14590         (debug_nothing_rtx_code_label): New function.
14591         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
14592         debug_nothing_rtx to debug_nothing_rtx_code_label.
14593         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
14594         to rtx_insn *.
14595         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
14596         debug_nothing_rtx to debug_nothing_rtx_insn.
14597         (sdbout_label): Strengthen param "insn" from rtx to
14598         rtx_code_label *.
14599         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
14600         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
14601         "var_location" hook from debug_nothing_rtx to
14602         debug_nothing_rtx_insn.
14603
14604 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14605
14606         * recog.h (insn_output_fn): Update this function typedef to match
14607         the changes below to the generated output functions, strengthening
14608         the 2nd param from rtx to rtx_insn *.
14609
14610         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
14611         insn when invoking an output function, to match the new signature
14612         of insn_output_fn with a stronger second param.
14613
14614         * genconditions.c (write_header): In the generated code for
14615         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
14616         to match the other changes in this patch.
14617
14618         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
14619         the generated "gen_" functions from rtx to rtx_insn * within their
14620         implementations.
14621
14622         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
14623         the subfunctions within the generated "recog_", "split", "peephole2"
14624         function trees from rtx to rtx_insn *.  For now, the top-level
14625         generated functions ("recog", "split", "peephole2") continue to
14626         take a plain rtx for "insn", to avoid introducing dependencies on
14627         other patches.  Rename this 2nd param from "insn" to
14628         "uncast_insn", and reintroduce "insn" as a local variable of type
14629         rtx_insn *, initialized at the top of the generated function with
14630         a checked cast on "uncast_insn".
14631         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
14632         the generated "gen_" functions from rtx to rtx_insn * within their
14633         prototypes.
14634
14635         * genoutput.c (process_template): Strengthen the 2nd param within
14636         the generated "output_" functions "insn" from rtx to rtx_insn *.
14637
14638 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
14639
14640         * tree-profile.c (tree_profiling): Skip external functions
14641         when doing coverage instrumentation.
14642         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
14643
14644 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14645
14646         * config/rs6000/altivec.h (vec_cpsgn): New #define.
14647         (vec_mergee): Likewise.
14648         (vec_mergeo): Likewise.
14649         (vec_cntlz): Likewise.
14650         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
14651         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
14652         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
14653         VMRGEW, and VMRGOW.
14654         * doc/extend.texi: Document various forms of vec_cpsgn,
14655         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
14656         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
14657         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
14658         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
14659         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
14660
14661 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14662
14663         * config/rs6000/rs6000.c (context.h): New include.
14664         (tree-pass.h): Likewise.
14665         (make_pass_analyze_swaps): New decl.
14666         (rs6000_option_override): Register pass_analyze_swaps.
14667         (swap_web_entry): New subsclass of web_entry_base (df.h).
14668         (special_handling_values): New enum.
14669         (union_defs): New function.
14670         (union_uses): Likewise.
14671         (insn_is_load_p): Likewise.
14672         (insn_is_store_p): Likewise.
14673         (insn_is_swap_p): Likewise.
14674         (rtx_is_swappable_p): Likewise.
14675         (insn_is_swappable_p): Likewise.
14676         (chain_purpose): New enum.
14677         (chain_contains_only_swaps): New function.
14678         (mark_swaps_for_removal): Likewise.
14679         (swap_const_vector_halves): Likewise.
14680         (adjust_subreg_index): Likewise.
14681         (permute_load): Likewise.
14682         (permute_store): Likewise.
14683         (handle_special_swappables): Likewise.
14684         (replace_swap_with_copy): Likewise.
14685         (dump_swap_insn_table): Likewise.
14686         (rs6000_analyze_swaps): Likewise.
14687         (pass_data_analyze_swaps): New pass_data.
14688         (pass_analyze_swaps): New rtl_opt_pass.
14689         (make_pass_analyze_swaps): New function.
14690         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
14691
14692 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14693
14694         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
14695         type from rtx to rtx_insn *.
14696         (create_copy_of_insn_rtx): Likewise.
14697         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
14698         (create_copy_of_insn_rtx): Likewise, also for local "res".
14699
14700 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14701
14702         * rtl.h (find_first_parameter_load): Strengthen return type from
14703         rtx to rtx_insn *.
14704         * rtlanal.c (find_first_parameter_load): Strengthen return type
14705         from rtx to rtx_insn *.  Add checked cast for now, to postpone
14706         strengthening the params.
14707
14708 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14709
14710         PR fortran/44054
14711         * diagnostic.c: Set default caret.
14712         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
14713         line is needed.
14714         * diagnostic.h (struct diagnostic_context):
14715
14716 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14717
14718         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
14719         (sel_bb_head): Strengthen return type insn_t (currently just an
14720         rtx) to rtx_insn *.
14721         (sel_bb_end): Likewise.
14722
14723         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
14724         (sel_bb_head): Strengthen return type and local "head" from
14725         insn_t (currently just an rtx) to rtx_insn *.
14726         (sel_bb_end): Likewise for return type.
14727         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
14728         working with insn.
14729
14730 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14731
14732         * basic-block.h (get_last_bb_insn): Strengthen return type from
14733         rtx to rtx_insn *.
14734         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
14735         end".
14736
14737 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14738
14739         PR fortran/44054
14740         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
14741         to here ...
14742         (diagnostic_report_diagnostic): ... from here.
14743         * toplev.c (general_init): Move code to c-family.
14744
14745 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14746
14747         * df.h (web_entry_base): Replace existing struct web_entry with a
14748         new class web_entry_base with only the predecessor member.
14749         (unionfind_root): Remove declaration and move to class member.
14750         (unionfind_union): Remove declaration and move to friend
14751         function.
14752         (union_defs): Remove declaration.
14753         * web.c (web_entry_base::unionfind_root): Modify to be member
14754         function and adjust accessors.
14755         (unionfind_union): Modify to be friend function and adjust
14756         accessors.
14757         (web_entry): New subclass of web_entry_base containing the reg
14758         member.
14759         (union_match_dups): Modify for struct -> class changes.
14760         (union_defs): Likewise.
14761         (entry_register): Likewise.
14762         (pass_web::execute): Likewise.
14763
14764 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
14765
14766         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
14767         builtin define __VEC_ELEMENT_REG_ORDER__.
14768
14769 2014-08-20  Martin Jambor  <mjambor@suse.cz>
14770             Wei Mi  <wmi@google.com>
14771
14772         PR ipa/60449
14773         PR middle-end/61776
14774         * tree-ssa-operands.c (update_stmt_operands): Remove
14775         MODIFIED_NORETURN_CALLS.
14776         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
14777         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
14778         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
14779         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
14780         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
14781         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
14782         (gimple_call_set_ctrl_altering): New func.
14783         (gimple_call_ctrl_altering_p): Ditto.
14784         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
14785         (make_blocks): Use gimple_call_initialize_ctrl_altering.
14786         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
14787         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
14788         remove MODIFIED_NORETURN_CALLS.
14789
14790 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
14791
14792         * coverage.c (coverage_compute_profile_id): Return non-0;
14793         also handle symbols with unique name.
14794         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
14795
14796 2014-08-20  Steve Ellcey  <sellcey@mips.com>
14797
14798         PR middle-end/49191
14799         * doc/sourcebuild.texi (non_strict_align): New.
14800
14801 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
14802
14803         * cgraphunit.c (ipa_passes, compile): Reshedule
14804         symtab_remove_unreachable_nodes passes; update comments.
14805         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
14806         TODO_remove_functions before the pass; the functions ought to be
14807         already removed.
14808         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
14809         TODO_remove_functions.
14810         * passes.c (pass_data_early_local_passes): Do not schedule function
14811         removal.
14812         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
14813
14814 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14815
14816         PR c/59304
14817         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
14818         before setting the option.
14819         * diagnostic.c (diagnostic_classify_diagnostic): Record
14820         command-line status.
14821
14822 2014-08-20  Richard Biener  <rguenther@suse.de>
14823
14824         PR lto/62190
14825         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
14826         to build uint{16,32,64}_type_node.
14827
14828 2014-08-20  Terry Guo  <terry.guo@arm.com>
14829
14830         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
14831         with immediate_operand.
14832
14833 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
14834
14835         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
14836         "insn" from an as_a to a safe_as_a, for the case when "insn" is
14837         NULL.
14838
14839 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14840
14841         PR preprocessor/51303
14842         * incpath.c (remove_duplicates): Use cpp_warning.
14843
14844 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14845
14846         PR c/60975
14847         PR c/53063
14848         * doc/options.texi (CPP): Document it.
14849         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
14850         * optc-gen.awk: Handle CPP.
14851         * opth-gen.awk: Likewise.
14852
14853 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14854
14855         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
14856         rtx_insn *.
14857         (duplicate_insn_chain): Likewise.
14858         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
14859         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
14860         checked cast for now (until we can strengthen the params in the
14861         same way).
14862         (duplicate_insn_chain): Likewise.
14863
14864 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14865
14866         * rtl.h (next_cc0_user): Strengthen return type from rtx to
14867         rtx_insn *.
14868         (prev_cc0_setter): Likewise.
14869
14870         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
14871         rtx_insn *, adding checked casts for now as necessary.
14872         (prev_cc0_setter): Likewise.
14873
14874 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14875
14876         * expr.h (emit_move_insn): Strengthen return type from rtx to
14877         rtx_insn *.
14878         (emit_move_insn_1): Likewise.
14879         (emit_move_complex_push): Likewise.
14880         (emit_move_complex_parts): Likewise.
14881
14882         * expr.c (emit_move_via_integer): Strengthen return type from rtx
14883         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
14884         with insns.
14885         (emit_move_complex_push): Strengthen return type from rtx to
14886         rtx_insn *.
14887         (emit_move_complex): Likewise, also for local "ret".
14888         (emit_move_ccmode): Likewise.
14889         (emit_move_multi_word): Likewise for return type and locals
14890         "last_insn", "seq".
14891         (emit_move_insn_1): Likewise for return type and locals "result",
14892         "ret".
14893         (emit_move_insn): Likewise for return type and local "last_insn".
14894         (compress_float_constant): Likewise.
14895
14896 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14897
14898         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
14899         from rtx to rtx_insn *.
14900
14901         * rtl.h (emit_insn_before): Likewise.
14902         (emit_insn_before_noloc): Likewise.
14903         (emit_insn_before_setloc): Likewise.
14904         (emit_jump_insn_before): Likewise.
14905         (emit_jump_insn_before_noloc): Likewise.
14906         (emit_jump_insn_before_setloc): Likewise.
14907         (emit_call_insn_before): Likewise.
14908         (emit_call_insn_before_noloc): Likewise.
14909         (emit_call_insn_before_setloc): Likewise.
14910         (emit_debug_insn_before): Likewise.
14911         (emit_debug_insn_before_noloc): Likewise.
14912         (emit_debug_insn_before_setloc): Likewise.
14913         (emit_label_before): Likewise.
14914         (emit_insn_after): Likewise.
14915         (emit_insn_after_noloc): Likewise.
14916         (emit_insn_after_setloc): Likewise.
14917         (emit_jump_insn_after): Likewise.
14918         (emit_jump_insn_after_noloc): Likewise.
14919         (emit_jump_insn_after_setloc): Likewise.
14920         (emit_call_insn_after): Likewise.
14921         (emit_call_insn_after_noloc): Likewise.
14922         (emit_call_insn_after_setloc): Likewise.
14923         (emit_debug_insn_after): Likewise.
14924         (emit_debug_insn_after_noloc): Likewise.
14925         (emit_debug_insn_after_setloc): Likewise.
14926         (emit_label_after): Likewise.
14927         (emit_insn): Likewise.
14928         (emit_debug_insn): Likewise.
14929         (emit_jump_insn): Likewise.
14930         (emit_call_insn): Likewise.
14931         (emit_label): Likewise.
14932         (gen_clobber): Likewise.
14933         (emit_clobber): Likewise.
14934         (gen_use): Likewise.
14935         (emit_use): Likewise.
14936         (emit): Likewise.
14937
14938         (emit_barrier_before): Strengthen return type from rtx to
14939         rtx_barrier *.
14940         (emit_barrier_after): Likewise.
14941         (emit_barrier): Likewise.
14942
14943         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
14944         from rtx to rtx_insn *.  Add checked casts for now when converting
14945         "last" from rtx to rtx_insn *.
14946         (emit_insn_before_noloc): Likewise for return type.
14947         (emit_jump_insn_before_noloc): Likewise.
14948         (emit_call_insn_before_noloc): Likewise.
14949         (emit_debug_insn_before_noloc): Likewise.
14950         (emit_barrier_before): Strengthen return type and local "insn"
14951         from rtx to rtx_barrier *.
14952         (emit_label_before): Strengthen return type from rtx to
14953         rtx_insn *.  Add checked cast for now when returning param
14954         (emit_pattern_after_noloc): Strengthen return type from rtx to
14955         rtx_insn *.  Add checked casts for now when converting "last" from
14956         rtx to rtx_insn *.
14957         (emit_insn_after_noloc): Strengthen return type from rtx to
14958         rtx_insn *.
14959         (emit_jump_insn_after_noloc): Likewise.
14960         (emit_call_insn_after_noloc): Likewise.
14961         (emit_debug_insn_after_noloc): Likewise.
14962         (emit_barrier_after): Strengthen return type from rtx to
14963         rtx_barrier *.
14964         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
14965         Add checked cast for now when converting "label" from rtx to
14966         rtx_insn *.
14967         (emit_pattern_after_setloc): Strengthen return type from rtx to
14968         rtx_insn *.  Add checked casts for now when converting "last" from
14969         rtx to rtx_insn *.
14970         (emit_pattern_after): Strengthen return type from rtx to
14971         rtx_insn *.
14972         (emit_insn_after_setloc): Likewise.
14973         (emit_insn_after): Likewise.
14974         (emit_jump_insn_after_setloc): Likewise.
14975         (emit_jump_insn_after): Likewise.
14976         (emit_call_insn_after_setloc): Likewise.
14977         (emit_call_insn_after): Likewise.
14978         (emit_debug_insn_after_setloc): Likewise.
14979         (emit_debug_insn_after): Likewise.
14980         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
14981         when converting "last" from rtx to rtx_insn *.
14982         (emit_pattern_before): Strengthen return type from rtx to
14983         rtx_insn *.
14984         (emit_insn_before_setloc): Likewise.
14985         (emit_insn_before): Likewise.
14986         (emit_jump_insn_before_setloc): Likewise.
14987         (emit_jump_insn_before): Likewise.
14988         (emit_call_insn_before_setloc): Likewise.
14989         (emit_call_insn_before): Likewise.
14990         (emit_debug_insn_before_setloc): Likewise.
14991         (emit_debug_insn_before): Likewise.
14992         (emit_insn): Strengthen return type and locals "last", "insn",
14993         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
14994         within cases where we know we have an insn.
14995         (emit_debug_insn): Likewise.
14996         (emit_jump_insn): Likewise.
14997         (emit_call_insn): Strengthen return type and local "insn" from rtx
14998         to rtx_insn *.
14999         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
15000         a checked cast to rtx_insn * for now on "label".
15001         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
15002         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
15003         (emit_use): Likewise.
15004         (gen_use): Likewise, also for local "seq".
15005         (emit): Likewise for return type and local "insn".
15006         (rtx_insn): Likewise for return type and local "new_rtx".
15007
15008         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
15009         from rtx to rtx_barrier *.
15010
15011         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
15012         changed return type from rtx to rtx_insn *, we must update
15013         "emit_fn" type, and this in turn means updating...
15014         (frame_insn): ...this.  Strengthen return type from rtx to
15015         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
15016
15017 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15018
15019         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
15020         rtx to rtx_jump_table_data *.  Also for local.
15021         * rtl.h (emit_jump_table_data): Likewise.
15022
15023 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15024
15025         * basic-block.h (create_basic_block_structure): Strengthen third
15026         param "bb_note" from rtx to rtx_note *.
15027         * rtl.h (emit_note_before): Strengthen return type from rtx to
15028         rtx_note *.
15029         (emit_note_after): Likewise.
15030         (emit_note): Likewise.
15031         (emit_note_copy): Likewise.  Also, strengthen param similarly.
15032         * function.h (struct rtl_data): Strengthen field
15033         "x_stack_check_probe_note" from rtx to rtx_note *.
15034
15035         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
15036         from rtx to rtx_note *.
15037         * cfgrtl.c (create_basic_block_structure): Strengthen third param
15038         "bb_note" from rtx to rtx_note *.
15039         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
15040         when calling emit_note_copy.
15041         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
15042         rtx_note *.
15043         (emit_note_after): Likewise.
15044         (emit_note_before): Likewise.
15045         (emit_note_copy): Likewise.  Also, strengthen param similarly.
15046         (emit_note): Likewise.
15047         * except.c (emit_note_eh_region_end): Likewise for return type.
15048         Strengthen local "next" from rtx to rtx_insn *.
15049         (convert_to_eh_region_ranges): Strengthen local "note"
15050         from rtx to rtx_note *.
15051         * final.c (change_scope): Likewise.
15052         (reemit_insn_block_notes): Likewise, for both locals named "note".
15053         Also, strengthen local "insn" from rtx to rtx_insn *.
15054         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
15055         rtx to rtx_note *.
15056         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
15057         strengthen local "seq" from rtx to rtx_insn *.
15058         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
15059         to rtx_note *.
15060         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
15061         vec<rtx_note *>.
15062         (get_bb_note_from_pool): Strengthen return type from rtx to
15063         rtx_note *.
15064         (sel_create_basic_block): Strengthen local "new_bb_note" from
15065         insn_t to rtx_note *.
15066         * var-tracking.c (emit_note_insn_var_location): Strengthen local
15067         "note" from rtx to rtx_note *.
15068         (emit_notes_in_bb): Likewise.
15069
15070 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15071
15072         * function.h (struct rtl_data): Strengthen field
15073         "x_parm_birth_insn" from rtx to rtx_insn *.
15074         * function.c (struct assign_parm_data_all): Strengthen fields
15075         "first_conversion_insn" and "last_conversion_insn" from rtx to
15076         rtx_insn *.
15077
15078 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15079
15080         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
15081         to rtx_insn *; also for local "var_end_seq".
15082         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
15083         (maybe_cleanup_end_of_block): Likewise for param "last" and local
15084         "insn".
15085         (expand_gimple_cond): Likewise for locals "last2" and "last".
15086         (mark_transaction_restart_calls): Likewise for local "insn".
15087         (expand_gimple_stmt): Likewise for return type and locals "last"
15088         and "insn".
15089         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
15090         (avoid_complex_debug_insns): Likewise for param "insn".
15091         (expand_debug_locations): Likewise for locals "insn", "last",
15092         "prev_insn" and "insn2".
15093         (expand_gimple_basic_block): Likewise for local "last".
15094         (construct_exit_block): Likewise for locals "head", "end",
15095         "orig_end".
15096         (pass_expand::execute): Likewise for locals "var_seq",
15097         "var_ret_seq", "next".
15098
15099 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15100
15101         * asan.h (asan_emit_stack_protection): Strengthen return type from
15102         rtx to rtx_insn *.
15103         * asan.c (asan_emit_stack_protection): Likewise.  Add local
15104         "insns" to hold the return value.
15105
15106 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15107
15108         * basic-block.h (bb_note): Strengthen return type from rtx to
15109         rtx_note *.
15110         * sched-int.h (bb_note): Likewise.
15111         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
15112
15113 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15114
15115         * rtl.h (make_insn_raw): Strengthen return type from rtx to
15116         rtx_insn *.
15117
15118         * emit-rtl.c (make_insn_raw): Strengthen return type and local
15119         "insn" from rtx to rtx_insn *.
15120         (make_debug_insn_raw): Strengthen return type from rtx to
15121         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
15122         (make_jump_insn_raw):  Strengthen return type from rtx to
15123         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
15124         (make_call_insn_raw):  Strengthen return type from rtx to
15125         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
15126         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
15127         callback from rtx to rtx_insn *; likewise for local "insn" and
15128         "next", adding a checked cast to rtx_insn in the relevant cases of
15129         the switch statement.
15130         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
15131         callback from rtx to rtx_insn *.
15132         (emit_pattern_after_setloc): Likewise.
15133         (emit_pattern_after): Likewise.
15134         (emit_pattern_before_setloc): Likewise.
15135         (emit_pattern_before): Likewise.
15136
15137 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15138
15139         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
15140         rtx_call_insn *.
15141         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
15142         accepting an rtx_insn *.
15143         (last_call_insn): Strengthen return type from rtx to
15144         rtx_call_insn *.
15145
15146 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15147
15148         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
15149         "insns" from rtx to rtx_insn *.
15150         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
15151         locals "insn" and "prev".
15152
15153 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15154
15155         * rtl.h (tablejump_p): Strengthen third param from rtx * to
15156         rtx_jump_table_data **.
15157
15158         * cfgbuild.c (make_edges): Introduce local "table", using it in
15159         place of "tmp" for jump table data.
15160         (find_bb_boundaries): Strengthen local "table" from rtx to
15161         rtx_jump_table_data *.
15162         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
15163         (outgoing_edges_match): Likewise for locals "table1" and "table2".
15164         (try_crossjump_to_edge): Likewise.
15165         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
15166         "table".
15167         (patch_jump_insn): Introduce local "table", using it in place of
15168         "tmp" for jump table data.
15169         (force_nonfallthru_and_redirect): Introduce local "table", so that
15170         call to tablejump_p can receive an rtx_jump_table_data **.  Update
15171         logic around the call to overwrite "note" appropriately if
15172         tablejump_p returns non-zero.
15173         (get_last_bb_insn): Introduce local "table", using it in place of
15174         "tmp" for jump table data.
15175         * dwarf2cfi.c (create_trace_edges): Likewise.
15176
15177         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
15178         from rtx to rtx_jump_table_data *.
15179         (create_fix_barrier): Strengthen local "tmp" from rtx to
15180         rtx_jump_table_data *.
15181         (arm_reorg): Likewise for local "table".
15182
15183         * config/s390/s390.c (s390_chunkify_start): Likewise.
15184
15185         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
15186
15187         * jump.c (delete_related_insns): Strengthen local "lab_next" from
15188         rtx to rtx_jump_table_data *.
15189
15190         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
15191         rtx_jump_table_data **.  Add a checked cast when writing through
15192         the pointer: we know there that local "table" is non-NULL and that
15193         JUMP_TABLE_DATA_P (table) holds.
15194         (label_is_jump_target_p): Introduce local "table", using it in
15195         place of "tmp" for jump table data.
15196
15197 2014-08-19  Marek Polacek  <polacek@redhat.com>
15198
15199         PR c++/62153
15200         * doc/invoke.texi: Document -Wbool-compare.
15201
15202 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15203
15204         * rtl.h (entry_of_function): Strengthen return type from rtx to
15205         rtx_insn *.
15206         * cfgrtl.c (entry_of_function): Likewise.
15207
15208 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15209
15210         * emit-rtl.h (get_insns): Strengthen return type from rtx to
15211         rtx_insn *, adding a checked cast for now.
15212         (get_last_insn): Likewise.
15213
15214 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15215
15216         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
15217         rtx_code_label *.
15218
15219         * emit-rtl.c (gen_label_rtx): Likewise.
15220
15221 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15222
15223         * rtl.h (previous_insn): Strengthen return type from rtx to
15224         rtx_insn *.
15225         (next_insn): Likewise.
15226         (prev_nonnote_insn): Likewise.
15227         (prev_nonnote_insn_bb): Likewise.
15228         (next_nonnote_insn): Likewise.
15229         (next_nonnote_insn_bb): Likewise.
15230         (prev_nondebug_insn): Likewise.
15231         (next_nondebug_insn): Likewise.
15232         (prev_nonnote_nondebug_insn): Likewise.
15233         (next_nonnote_nondebug_insn): Likewise.
15234         (prev_real_insn): Likewise.
15235         (next_real_insn): Likewise.
15236         (prev_active_insn): Likewise.
15237         (next_active_insn): Likewise.
15238
15239         * emit-rtl.c (next_insn): Strengthen return type from rtx to
15240         rtx_insn *, adding a checked cast.
15241         (previous_insn): Likewise.
15242         (next_nonnote_insn): Likewise.
15243         (next_nonnote_insn_bb): Likewise.
15244         (prev_nonnote_insn): Likewise.
15245         (prev_nonnote_insn_bb): Likewise.
15246         (next_nondebug_insn): Likewise.
15247         (prev_nondebug_insn): Likewise.
15248         (next_nonnote_nondebug_insn): Likewise.
15249         (prev_nonnote_nondebug_insn): Likewise.
15250         (next_real_insn): Likewise.
15251         (prev_real_insn): Likewise.
15252         (next_active_insn): Likewise.
15253         (prev_active_insn): Likewise.
15254
15255         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
15256         param "stepfunc" so that it returns an rtx_insn * rather than an
15257         rtx, to track the change to prev_nonnote_insn_bb, which is the
15258         only function this is called with.
15259         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
15260
15261 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
15262
15263         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
15264         assert.
15265
15266 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15267
15268         * coretypes.h (class rtx_debug_insn): Add forward declaration.
15269         (class rtx_nonjump_insn): Likewise.
15270         (class rtx_jump_insn): Likewise.
15271         (class rtx_call_insn): Likewise.
15272         (class rtx_jump_table_data): Likewise.
15273         (class rtx_barrier): Likewise.
15274         (class rtx_code_label): Likewise.
15275         (class rtx_note): Likewise.
15276
15277         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
15278         adding the invariant DEBUG_INSN_P (X).
15279         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
15280         the invariant NONJUMP_INSN_P (X).
15281         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
15282         the invariant JUMP_P (X).
15283         (class rtx_call_insn): New, a subclass of rtx_insn, adding
15284         the invariant CALL_P (X).
15285         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
15286         invariant JUMP_TABLE_DATA_P (X).
15287         (class rtx_barrier): New, a subclass of rtx_insn, adding the
15288         invariant BARRIER_P (X).
15289         (class rtx_code_label): New, a subclass of rtx_insn, adding
15290         the invariant LABEL_P (X).
15291         (class rtx_note): New, a subclass of rtx_insn, adding
15292         the invariant NOTE_P(X).
15293         (is_a_helper <rtx_debug_insn *>::test): New.
15294         (is_a_helper <rtx_nonjump_insn *>::test): New.
15295         (is_a_helper <rtx_jump_insn *>::test): New.
15296         (is_a_helper <rtx_call_insn *>::test): New.
15297         (is_a_helper <rtx_jump_table_data *>::test): New functions,
15298         overloaded for both rtx and rtx_insn *.
15299         (is_a_helper <rtx_barrier *>::test): New.
15300         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
15301         for both rtx and rtx_insn *.
15302         (is_a_helper <rtx_note *>::test): New.
15303
15304 2014-08-19  Marek Polacek  <polacek@redhat.com>
15305
15306         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
15307         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
15308         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
15309         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
15310
15311 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15312
15313         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
15314         rtx_insn *.  To help with transition, for now, convert from an
15315         access macro into a pair of functions: BND_TO, returning an
15316         rtx_insn *, and...
15317         (SET_BND_TO): New function, for use where BND_TO is used as an
15318         lvalue.
15319
15320         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
15321         SET_BND_TO.
15322         (BND_TO): New function, adding a checked cast.
15323         (SET_BND_TO): New function.
15324
15325         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
15326         SET_BND_TO.
15327         (compute_av_set_on_boundaries): Likewise.
15328
15329 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
15330
15331         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
15332         destination if it is used in source.
15333         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
15334         (*popcount<mode>2_falsedep_1): Likewise.
15335
15336 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
15337
15338         PR other/62168
15339         * configure.ac: Set install_gold_as_default to no first.
15340         * configure: Regenerated.
15341
15342 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15343
15344         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
15345         "note_list" field will eventually be an rtx_insn *.  To help with
15346         transition, for now, convert from an access macro into a pair of
15347         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
15348         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
15349         used as an lvalue.
15350
15351         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
15352         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
15353
15354         * sel-sched-ir.c (init_bb): Likewise.
15355         (sel_restore_notes): Likewise.
15356         (move_bb_info): Likewise.
15357         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
15358         (SET_BB_NOTE_LIST): New function.
15359
15360 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15361
15362         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
15363         field will eventually be an rtx_insn *.  To help with transition,
15364         for now, convert from an access macro into a pair of functions:
15365         VINSN_INSN_RTX, returning an rtx_insn *, and...
15366         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
15367         is used as an lvalue.
15368
15369         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
15370         SET_VINSN_INSN_RTX where it's used as an lvalue.
15371         (VINSN_INSN_RTX): New function.
15372         (SET_VINSN_INSN_RTX): New function.
15373
15374 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15375
15376         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
15377         eventually be rtx_insn *, but to help with transition, for now,
15378         convert from an access macro into a pair of functions: DEP_PRO
15379         returning an rtx_insn * and...
15380         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
15381         lvalue, returning an rtx&.
15382         (DEP_CON): Analogous changes to DEP_PRO above.
15383         (SET_DEP_CON): Likewise.
15384
15385         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
15386         an lvalue to SET_DEP_CON.
15387         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
15388         (sd_copy_back_deps): Likewise for DEP_CON.
15389         (DEP_PRO): New function, adding a checked cast for now.
15390         (DEP_CON): Likewise.
15391         (SET_DEP_PRO): New function.
15392         (SET_DEP_CON): Likewise.
15393
15394 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
15395
15396         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
15397         (extra_options): Add i386/cygwin.opt.
15398         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
15399         (CPP_SPEC): Accept -pthread.
15400         (LINK_SPEC): Ditto.
15401         (GOMP_SELF_SPECS): Update comment.
15402         * config/i386/cygwin.opt: New file for -pthread flag.
15403
15404 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15405
15406         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
15407         * df.h (DF_REF_INSN): Convert from a macro to a function, so
15408         that we can return an rtx_insn *.
15409
15410 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
15411
15412         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
15413         when building executables, not DLLs.  Add --large-address-aware
15414         under the same conditions.
15415         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
15416         when building executables, not DLLs.  Add --large-address-aware
15417         under the same conditions when using -m32.
15418
15419         * config/i386/cygwin-stdint.h: Throughout, make type
15420         definitions dependent on target architecture, not host.
15421
15422 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15423
15424         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
15425         the return type from rtx to rtx_insn *,  which will enable various
15426         conversions in followup patches.  For now this is is done by a
15427         checked cast.
15428         (NEXT_INSN): Likewise.
15429         (SET_PREV_INSN): Convert to an inline function.  This is intended
15430         for use as an lvalue, and so returns an rtx& to allow in-place
15431         modification.
15432         (SET_NEXT_INSN): Likewise.
15433
15434 2014-07-08  Mark Wielaard  <mjw@redhat.com>
15435
15436         PR debug/59051
15437         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
15438
15439 2014-08-19  Marek Polacek  <polacek@redhat.com>
15440
15441         PR c/61271
15442         * cgraphunit.c (handle_alias_pairs): Fix condition.
15443
15444 2014-08-19  Richard Biener  <rguenther@suse.de>
15445
15446         * gimple-fold.c (fold_gimple_assign): Properly build a
15447         null-pointer constant when devirtualizing addresses.
15448
15449 2014-07-07  Mark Wielaard  <mjw@redhat.com>
15450
15451         * dwarf2out.c (decl_quals): New function.
15452         (modified_type_die): Take one cv_quals argument instead of two,
15453         one for const and one for volatile.
15454         (add_type_attribute): Likewise.
15455         (generic_parameter_die): Call add_type_attribute with one modifier
15456         argument.
15457         (base_type_for_mode): Likewise.
15458         (add_bounds_info): Likewise.
15459         (add_subscript_info): Likewise.
15460         (gen_array_type_die): Likewise.
15461         (gen_descr_array_type_die): Likewise.
15462         (gen_entry_point_die): Likewise.
15463         (gen_enumeration_type_die): Likewise.
15464         (gen_formal_parameter_die): Likewise.
15465         (gen_subprogram_die): Likewise.
15466         (gen_variable_die): Likewise.
15467         (gen_const_die): Likewise.
15468         (gen_field_die): Likewise.
15469         (gen_pointer_type_die): Likewise.
15470         (gen_reference_type_die): Likewise.
15471         (gen_ptr_to_mbr_type_die): Likewise.
15472         (gen_inheritance_die): Likewise.
15473         (gen_subroutine_type_die): Likewise.
15474         (gen_typedef_die): Likewise.
15475         (force_type_die): Likewise.
15476
15477 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15478
15479         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
15480         if unset.
15481         * configure: Regenerate.
15482
15483 2014-08-19  Richard Biener  <rguenther@suse.de>
15484
15485         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
15486         DECL_EXTERNALs in BLOCKs as non-references.
15487         * tree-streamer-out.c (streamer_write_chain): Likewise.
15488
15489 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15490             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15491             Anna Tikhonova  <anna.tikhonova@intel.com>
15492             Ilya Tocar  <ilya.tocar@intel.com>
15493             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15494             Ilya Verbin  <ilya.verbin@intel.com>
15495             Kirill Yukhin  <kirill.yukhin@intel.com>
15496             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15497
15498         * config/i386/sse.md
15499         (define_mode_iterator VI48_AVX512F): Delete.
15500         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
15501         (define_mode_iterator VI2_AVX512VL): Ditto.
15502         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
15503         Delete.
15504         (define_insn
15505         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
15506         New.
15507         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
15508         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
15509         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
15510         with VI48_AVX512F_AVX512VL): New.
15511         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
15512         with VI2_AVX512VL): Ditto.
15513
15514 2014-08-19  Marek Polacek  <polacek@redhat.com>
15515
15516         * doc/invoke.texi: Document -Wc99-c11-compat.
15517
15518 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15519
15520         * rtl.h (PREV_INSN): Split macro in two: the existing one,
15521         for rvalues, and...
15522         (SET_PREV_INSN): New macro, for use as an lvalue.
15523         (NEXT_INSN, SET_NEXT_INSN): Likewise.
15524
15525         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
15526         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
15527         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
15528         (fixup_abnormal_edges): Likewise.
15529         (unlink_insn_chain): Likewise.
15530         (fixup_reorder_chain): Likewise.
15531         (cfg_layout_delete_block): Likewise.
15532         (cfg_layout_merge_blocks): Likewise.
15533         * combine.c (update_cfg_for_uncondjump): Likewise.
15534         * emit-rtl.c (link_insn_into_chain): Likewise.
15535         (remove_insn): Likewise.
15536         (delete_insns_since): Likewise.
15537         (reorder_insns_nobb): Likewise.
15538         (emit_insn_after_1): Likewise.
15539         * final.c (rest_of_clean_state): Likewise.
15540         (final_scan_insn): Likewise.
15541         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
15542         * haifa-sched.c (concat_note_lists): Likewise.
15543         (remove_notes): Likewise.
15544         (restore_other_notes): Likewise.
15545         (move_insn): Likewise.
15546         (unlink_bb_notes): Likewise.
15547         (restore_bb_notes): Likewise.
15548         * jump.c (delete_for_peephole): Likewise.
15549         * optabs.c (emit_libcall_block_1): Likewise.
15550         * reorg.c (emit_delay_sequence): Likewise.
15551         (fill_simple_delay_slots): Likewise.
15552         * sel-sched-ir.c (sel_move_insn): Likewise.
15553         (sel_remove_insn): Likewise.
15554         (get_bb_note_from_pool): Likewise.
15555         * sel-sched.c (move_nop_to_previous_block): Likewise.
15556
15557         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
15558         * config/c6x/c6x.c (gen_one_bundle): Likewise.
15559         (c6x_gen_bundles): Likewise.
15560         (hwloop_optimize): Likewise.
15561         * config/frv/frv.c (frv_function_prologue): Likewise.
15562         (frv_register_nop): Likewise.
15563         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
15564         (ia64_reorg): Likewise.
15565         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
15566         (mep_make_bundle): Likewise.
15567         (mep_bundle_insns): Likewise.
15568         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
15569         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
15570         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
15571
15572 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15573
15574         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
15575         return type from rtx to rtx_insn *.
15576         (BB_END): Likewise.
15577         (BB_HEADER): Likewise.
15578         (BB_FOOTER): Likewise.
15579         (SET_BB_HEAD): Convert to a function.
15580         (SET_BB_END): Likewise.
15581         (SET_BB_HEADER): Likewise.
15582         (SET_BB_FOOTER): Likewise.
15583
15584         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
15585         Strengthen the return type from rtx to rtx_insn *.  For now, this
15586         is done by adding a checked cast, but this will eventually
15587         become a field lookup.
15588         (BB_END): Likewise.
15589         (BB_HEADER): Likewise.
15590         (BB_FOOTER): Likewise.
15591         (SET_BB_HEAD): New function, from macro of same name.  This is
15592         intended for use as an lvalue, and so returns an rtx& to allow
15593         in-place modification.
15594         (SET_BB_END): Likewise.
15595         (SET_BB_HEADER): Likewise.
15596         (SET_BB_FOOTER): Likewise.
15597
15598 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
15599
15600         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
15601         for rvalues, and...
15602         (SET_BB_HEAD): New macro, for use as a lvalue.
15603         (BB_END, SET_BB_END): Likewise.
15604         (BB_HEADER, SET_BB_HEADER): Likewise.
15605         (BB_FOOTER, SET_BB_FOOTER): Likewise.
15606
15607         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
15608         of BB_* macros into SET_BB_* macros.
15609         (fix_crossing_unconditional_branches): Likewise.
15610         * caller-save.c (save_call_clobbered_regs): Likewise.
15611         (insert_one_insn): Likewise.
15612         * cfgbuild.c (find_bb_boundaries): Likewise.
15613         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
15614         (outgoing_edges_match): Likewise.
15615         (try_optimize_cfg): Likewise.
15616         * cfgexpand.c (expand_gimple_cond): Likewise.
15617         (expand_gimple_tailcall): Likewise.
15618         (expand_gimple_basic_block): Likewise.
15619         (construct_exit_block): Likewise.
15620         * cfgrtl.c (delete_insn): Likewise.
15621         (create_basic_block_structure): Likewise.
15622         (rtl_delete_block): Likewise.
15623         (rtl_split_block): Likewise.
15624         (emit_nop_for_unique_locus_between): Likewise.
15625         (rtl_merge_blocks): Likewise.
15626         (block_label): Likewise.
15627         (try_redirect_by_replacing_jump): Likewise.
15628         (emit_barrier_after_bb): Likewise.
15629         (fixup_abnormal_edges): Likewise.
15630         (record_effective_endpoints): Likewise.
15631         (relink_block_chain): Likewise.
15632         (fixup_reorder_chain): Likewise.
15633         (fixup_fallthru_exit_predecessor): Likewise.
15634         (cfg_layout_duplicate_bb): Likewise.
15635         (cfg_layout_split_block): Likewise.
15636         (cfg_layout_delete_block): Likewise.
15637         (cfg_layout_merge_blocks): Likewise.
15638         * combine.c (update_cfg_for_uncondjump): Likewise.
15639         * emit-rtl.c (add_insn_after): Likewise.
15640         (remove_insn): Likewise.
15641         (reorder_insns): Likewise.
15642         (emit_insn_after_1): Likewise.
15643         * haifa-sched.c (get_ebb_head_tail): Likewise.
15644         (restore_other_notes): Likewise.
15645         (move_insn): Likewise.
15646         (sched_extend_bb): Likewise.
15647         (fix_jump_move): Likewise.
15648         * ifcvt.c (noce_process_if_block): Likewise.
15649         (dead_or_predicable): Likewise.
15650         * ira.c (update_equiv_regs): Likewise.
15651         * reg-stack.c (change_stack): Likewise.
15652         * sel-sched-ir.c (sel_move_insn): Likewise.
15653         * sel-sched.c (move_nop_to_previous_block): Likewise.
15654
15655         * config/c6x/c6x.c (hwloop_optimize): Likewise.
15656         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
15657
15658 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
15659
15660         * rtl.h (for_each_rtx_in_insn): New function.
15661         * rtlanal.c (for_each_rtx_in_insn): Likewise.
15662
15663 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
15664
15665         * coretypes.h (class rtx_insn): Add forward declaration.
15666
15667         * rtl.h: Include is-a.h.
15668         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
15669         workaround to ensure gengtype knows inheritance is occurring,
15670         whilst continuing to use the pre-existing special-casing for
15671         rtx_def.
15672         (class rtx_insn): New subclass of rtx_def, adding the
15673         invariant that we're dealing with something we can sanely use
15674         INSN_UID, NEXT_INSN, PREV_INSN on.
15675         (is_a_helper <rtx_insn *>::test): New.
15676         (is_a_helper <const rtx_insn *>::test): New.
15677
15678 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
15679
15680         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
15681
15682 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
15683
15684         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
15685         comdats as extern.
15686
15687 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
15688
15689         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
15690         to BUILT_IN_UNREACHABLE.
15691
15692 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
15693
15694         PR target/62011
15695         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
15696         New tune flag.
15697         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
15698         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
15699         (ffs<mode>2): Do not expand with tzcnt for
15700         TARGET_AVOID_FALSE_DEP_FOR_BMI.
15701         (ffssi2_no_cmove): Ditto.
15702         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
15703         (ctz<mode>2): New expander.
15704         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
15705         (*ctz<mode>2_falsedep): New insn.
15706         (*ctz<mode>2): Rename from ctz<mode>2.
15707         (clz<mode>2_lzcnt): New expander.
15708         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
15709         (*clz<mode>2_lzcnt_falsedep): New insn.
15710         (*clz<mode>2): Rename from ctz<mode>2.
15711         (popcount<mode>2): New expander.
15712         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
15713         (*popcount<mode>2_falsedep): New insn.
15714         (*popcount<mode>2): Rename from ctz<mode>2.
15715         (*popcount<mode>2_cmp): Remove.
15716         (*popcountsi2_cmp_zext): Ditto.
15717
15718 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
15719
15720         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
15721         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
15722         * config/microblaze/microblaze.h
15723         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
15724
15725 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
15726
15727         PR other/62168
15728         * configure.ac: Set install_gold_as_default to no for
15729         --enable-gold=no.
15730         * configure: Regenerated.
15731
15732 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
15733
15734         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
15735         * config.in: Add undef of HAVE_isl.
15736         * configure: Regenerate.
15737         * configure.ac: Add definition of HAVE_isl.
15738         * graphite-blocking.c: Add checking of HAVE_isl.
15739         * graphite-dependences.c: Likewise.
15740         * graphite-interchange.c: Likewise.
15741         * graphite-isl-ast-to-gimple.c: Likewise.
15742         * graphite-optimize-isl.c: Likewise.
15743         * graphite-poly.c: Likewise.
15744         * graphite-scop-detection.c: Likewise.
15745         * graphite-sese-to-poly.c: Likewise.
15746         * graphite.c: Likewise.
15747         * toplev.c: Replace the checking of HAVE_cloog with the checking
15748         of HAVE_isl.
15749
15750 2014-08-18  Richard Biener  <rguenther@suse.de>
15751
15752         PR tree-optimization/62090
15753         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
15754         (fold_builtin_3): Do not fold snprintf.
15755         (fold_builtin_4): Likewise.
15756         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
15757         moved from builtins.c.
15758         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
15759         (gimple_fold_builtin): Do not fold sprintf here.
15760
15761 2014-08-18  Richard Biener  <rguenther@suse.de>
15762
15763         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
15764         code to ...
15765         (maybe_canonicalize_mem_ref_addr): ... this function.
15766         (fold_stmt_1): Apply it here before all simplification.
15767
15768 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
15769
15770         PR ipa/61800
15771         * cgraph.h (cgraph_node::create_indirect_edge): Add
15772         compute_indirect_info param.
15773         * cgraph.c (cgraph_node::create_indirect_edge): Compute
15774         indirect_info only when it is required.
15775         * cgraphclones.c (cgraph_clone_edge): Do not recompute
15776         indirect_info fore cloned indirect edge.
15777
15778 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15779             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15780             Anna Tikhonova  <anna.tikhonova@intel.com>
15781             Ilya Tocar  <ilya.tocar@intel.com>
15782             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15783             Ilya Verbin  <ilya.verbin@intel.com>
15784             Kirill Yukhin  <kirill.yukhin@intel.com>
15785             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15786
15787         * config/i386/sse.md
15788         (define_mode_iterator VI8_AVX2_AVX512BW): New.
15789         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
15790
15791 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15792             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15793             Anna Tikhonova  <anna.tikhonova@intel.com>
15794             Ilya Tocar  <ilya.tocar@intel.com>
15795             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15796             Ilya Verbin  <ilya.verbin@intel.com>
15797             Kirill Yukhin  <kirill.yukhin@intel.com>
15798             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15799
15800         * config/i386/sse.md
15801         (define_mode_iterator VF1_AVX512VL): New.
15802         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
15803         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
15804         New.
15805
15806 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15807             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15808             Anna Tikhonova  <anna.tikhonova@intel.com>
15809             Ilya Tocar  <ilya.tocar@intel.com>
15810             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15811             Ilya Verbin  <ilya.verbin@intel.com>
15812             Kirill Yukhin  <kirill.yukhin@intel.com>
15813             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15814
15815         * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
15816         * config/i386/i386.md
15817         (define_code_iterator any_float): New.
15818         (define_code_attr floatsuffix): New.
15819         * config/i386/sse.md
15820         (define_mode_iterator VF1_128_256VL): New.
15821         (define_mode_iterator VF2_512_256VL): New.
15822         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
15823         TARGET check.
15824         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
15825         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
15826         New.
15827         (define_mode_attr qq2pssuff): New.
15828         (define_mode_attr sselongvecmode): New.
15829         (define_mode_attr sselongvecmodelower): New.
15830         (define_mode_attr sseintvecmode3): New.
15831         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
15832         New.
15833         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
15834         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
15835         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
15836         (define_insn "ufloatv2siv2df2<mask_name>"): New.
15837
15838 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15839             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15840             Anna Tikhonova  <anna.tikhonova@intel.com>
15841             Ilya Tocar  <ilya.tocar@intel.com>
15842             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15843             Ilya Verbin  <ilya.verbin@intel.com>
15844             Kirill Yukhin  <kirill.yukhin@intel.com>
15845             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15846
15847         * config/i386/sse.md
15848         (define_mode_iterator VF2_AVX512VL): New.
15849         (define_mode_attr sseintvecmode2): New.
15850         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
15851         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
15852         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
15853         (define_insn
15854         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
15855         Ditto.
15856         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
15857         Ditto.
15858         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
15859         Ditto.
15860
15861 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15862             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15863             Anna Tikhonova  <anna.tikhonova@intel.com>
15864             Ilya Tocar  <ilya.tocar@intel.com>
15865             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15866             Ilya Verbin  <ilya.verbin@intel.com>
15867             Kirill Yukhin  <kirill.yukhin@intel.com>
15868             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15869
15870         * config/i386/i386.md
15871         (define_insn "*movoi_internal_avx"): Add evex version.
15872         (define_insn "*movti_internal"): Ditto.
15873
15874 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15875             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15876             Anna Tikhonova  <anna.tikhonova@intel.com>
15877             Ilya Tocar  <ilya.tocar@intel.com>
15878             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15879             Ilya Verbin  <ilya.verbin@intel.com>
15880             Kirill Yukhin  <kirill.yukhin@intel.com>
15881             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15882
15883         * config/i386/i386.md
15884         (define_attr "isa"): Add avx512dq, noavx512dq.
15885         (define_attr "enabled"): Ditto.
15886         * config/i386/sse.md
15887         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
15888
15889 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15890             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15891             Anna Tikhonova  <anna.tikhonova@intel.com>
15892             Ilya Tocar  <ilya.tocar@intel.com>
15893             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15894             Ilya Verbin  <ilya.verbin@intel.com>
15895             Kirill Yukhin  <kirill.yukhin@intel.com>
15896             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15897
15898         * config/i386/i386.c
15899         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
15900         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
15901         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
15902         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
15903         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
15904         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
15905         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
15906         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
15907         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
15908         * config/i386/sse.md
15909         (define_mode_iterator VMOVE): Allow V4TI mode.
15910         (define_mode_iterator V_AVX512VL): New.
15911         (define_mode_iterator V): New handling for AVX512VL.
15912         (define_insn "avx512f_load<mode>_mask"): Delete.
15913         (define_insn "<avx512>_load<mode>_mask"): New.
15914         (define_insn "avx512f_store<mode>_mask"): Delete.
15915         (define_insn "<avx512>_store<mode>_mask"): New.
15916
15917
15918 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
15919
15920         PR sanitizer/62089
15921         * asan.c (instrument_derefs): Fix bitfield check.
15922
15923 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
15924
15925         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
15926         * config/rs6000/htm.md (ttest): Remove clobber.
15927         * config/rs6000/predicates.md (any_mask_operand): New predicate.
15928         (and_operand): Reformat.
15929         (and_2rld_operand): New predicate.
15930         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
15931         parameter.
15932         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
15933         parameter.  Handle AND directly.
15934         (rs6000_split_logical_di): Remove last parameter.
15935         (rs6000_split_logical): Remove last parameter.  Remove obsolete
15936         comment.
15937         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
15938         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
15939         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
15940         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
15941         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
15942         and 5 anonymous splitters):  Delete.
15943         (and<mode>3): New expander.
15944         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
15945         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
15946         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
15947         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
15948         (floatdisf2_internal1): Remove clobbers.
15949         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
15950         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
15951         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
15952         (and<mode>3 for BOOL_128): Remove clobber.
15953         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
15954         rs6000_split_logical.
15955         (*bool<mode>3_internal for BOOL_128): Adjust call of
15956         rs6000_split_logical.
15957         (*boolc<mode>3_internal1 for BOOL_128,
15958         *boolc<mode>3_internal2 for BOOL_128,
15959         *boolcc<mode>3_internal1 for BOOL_128,
15960         *boolcc<mode>3_internal2 for BOOL_128,
15961         *eqv<mode>3_internal1 for BOOL_128,
15962         *eqv<mode>3_internal2 for BOOL_128,
15963         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
15964         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
15965         clobber.
15966         (*vec_reload_and_reg_<mptrsize>): Delete.
15967
15968 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
15969
15970         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
15971         and split, *boolccsi3_internal3 and split): Delete.
15972         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
15973         *boolccdi3_internal3 and split): Delete.
15974         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
15975         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
15976
15977 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
15978
15979         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
15980         and split, *boolcsi3_internal3 and split): Delete.
15981         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
15982         *boolcdi3_internal3 and split): Delete.
15983         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
15984
15985 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
15986
15987         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
15988         <'u'>: Also support printing the low-order 16 bits.
15989         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
15990         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
15991         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
15992         *booldi3_internal3 and split): Delete.
15993         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
15994         *bool<mode>3_dot2): New.
15995         (two anonymous define_splits for non_logical_cint_operand): Merge.
15996
15997 2014-08-17  Marek Polacek  <polacek@redhat.com>
15998             Manuel López-Ibáñez  <manu@gcc.gnu.org>
15999
16000         PR c/62059
16001         * diagnostic.c (adjust_line): Add gcc_checking_assert.
16002         (diagnostic_show_locus): Don't print caret diagnostic
16003         if a column is larger than the line_width.
16004
16005 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
16006
16007         * common.opt: Make the ISL AST generator to be the main code generator
16008         of Graphite.
16009
16010 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
16011
16012         * wide-int.h (generic_wide_int): Declare as class instead of struct.
16013
16014 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
16015
16016         PR target/61641
16017         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
16018         Declare.
16019         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
16020         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
16021         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
16022         Define.
16023         * config/pa/pa.md (begin_brtab): Delete insn.
16024         (end_brtab): Likewise.
16025
16026 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16027
16028         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
16029
16030 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
16031
16032         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
16033         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
16034         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
16035         (get_dynamic_type): Remove.
16036         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
16037         (clear_speculation): Bring to ipa-deivrt.h
16038         (get_class_context): Rename to ...
16039         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
16040         (contains_type_p): Update.
16041         (get_dynamic_type): Rename to ...
16042         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
16043         (possible_polymorphic_call_targets): UPdate.
16044         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
16045         * ipa-prop.c (ipa_analyze_call_uses): Update.
16046
16047 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
16048
16049         * doc/invoke.texi (SH options): Document missing processor variant
16050         options.  Remove references to Hitachi.  Undocument deprecated mspace
16051         option.
16052
16053 2014-08-15  Jason Merrill  <jason@redhat.com>
16054
16055         * tree.c (type_hash_canon): Uncomment assert.
16056
16057 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16058
16059         * input.h (in_system_header_at): Add comment.
16060
16061 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16062
16063         PR fortran/44054
16064         * diagnostic.c (build_message_string): Make it extern.
16065         * diagnostic.h (build_message_string): Make it extern.
16066
16067 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
16068
16069         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
16070         load/store from/to non-floating class pseudo.
16071
16072 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16073
16074         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
16075
16076 2014-08-15  Richard Biener  <rguenther@suse.de>
16077
16078         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
16079         (get_constraint_for_ssa_var): Remove dead code.
16080         (get_constraint_for_1): Adjust.
16081         (find_what_var_points_to): Likewise.
16082         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
16083
16084 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
16085
16086         PR target/61878
16087         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
16088         (_mm512_mask_cmpge_epu32_mask): Ditto.
16089         (_mm512_cmpge_epu32_mask): Ditto.
16090         (_mm512_mask_cmpge_epi64_mask): Ditto.
16091         (_mm512_cmpge_epi64_mask): Ditto.
16092         (_mm512_mask_cmpge_epu64_mask): Ditto.
16093         (_mm512_cmpge_epu64_mask): Ditto.
16094         (_mm512_mask_cmple_epi32_mask): Ditto.
16095         (_mm512_cmple_epi32_mask): Ditto.
16096         (_mm512_mask_cmple_epu32_mask): Ditto.
16097         (_mm512_cmple_epu32_mask): Ditto.
16098         (_mm512_mask_cmple_epi64_mask): Ditto.
16099         (_mm512_cmple_epi64_mask): Ditto.
16100         (_mm512_mask_cmple_epu64_mask): Ditto.
16101         (_mm512_cmple_epu64_mask): Ditto.
16102         (_mm512_mask_cmplt_epi32_mask): Ditto.
16103         (_mm512_cmplt_epi32_mask): Ditto.
16104         (_mm512_mask_cmplt_epu32_mask): Ditto.
16105         (_mm512_cmplt_epu32_mask): Ditto.
16106         (_mm512_mask_cmplt_epi64_mask): Ditto.
16107         (_mm512_cmplt_epi64_mask): Ditto.
16108         (_mm512_mask_cmplt_epu64_mask): Ditto.
16109         (_mm512_cmplt_epu64_mask): Ditto.
16110         (_mm512_mask_cmpneq_epi32_mask): Ditto.
16111         (_mm512_mask_cmpneq_epu32_mask): Ditto.
16112         (_mm512_cmpneq_epu32_mask): Ditto.
16113         (_mm512_mask_cmpneq_epi64_mask): Ditto.
16114         (_mm512_cmpneq_epi64_mask): Ditto.
16115         (_mm512_mask_cmpneq_epu64_mask): Ditto.
16116         (_mm512_cmpneq_epu64_mask): Ditto.
16117         (_mm512_castpd_ps): Ditto.
16118         (_mm512_castpd_si512): Ditto.
16119         (_mm512_castps_pd): Ditto.
16120         (_mm512_castps_si512): Ditto.
16121         (_mm512_castsi512_ps): Ditto.
16122         (_mm512_castsi512_pd): Ditto.
16123         (_mm512_castpd512_pd128): Ditto.
16124         (_mm512_castps512_ps128): Ditto.
16125         (_mm512_castsi512_si128): Ditto.
16126         (_mm512_castpd512_pd256): Ditto.
16127         (_mm512_castps512_ps256): Ditto.
16128         (_mm512_castsi512_si256): Ditto.
16129         (_mm512_castpd128_pd512): Ditto.
16130         (_mm512_castps128_ps512): Ditto.
16131         (_mm512_castsi128_si512): Ditto.
16132         (_mm512_castpd256_pd512): Ditto.
16133         (_mm512_castps256_ps512): Ditto.
16134         (_mm512_castsi256_si512): Ditto.
16135         (_mm512_cmpeq_epu32_mask): Ditto.
16136         (_mm512_mask_cmpeq_epu32_mask): Ditto.
16137         (_mm512_mask_cmpeq_epu64_mask): Ditto.
16138         (_mm512_cmpeq_epu64_mask): Ditto.
16139         (_mm512_cmpgt_epu32_mask): Ditto.
16140         (_mm512_mask_cmpgt_epu32_mask): Ditto.
16141         (_mm512_mask_cmpgt_epu64_mask): Ditto.
16142         (_mm512_cmpgt_epu64_mask): Ditto.
16143         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
16144         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
16145         * config/i386/i386.c (enum ix86_builtins): Add
16146         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
16147         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
16148         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
16149         (bdesc_args): Add __builtin_ia32_si512_256si,
16150         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
16151         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
16152         __builtin_ia32_pd512_pd.
16153         (ix86_expand_args_builtin): Handle new FTYPEs.
16154         * config/i386/sse.md (castmode): Add 512-bit modes.
16155         (AVX512MODE2P): New.
16156         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
16157         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
16158
16159 2014-08-15  Richard Biener  <rguenther@suse.de>
16160
16161         * fold-const.c (tree_swap_operands_p): Put all constants
16162         last, also strip sign-changing NOPs when considering further
16163         canonicalization.  Canonicalize also when optimizing for size.
16164
16165 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16166
16167         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
16168         one_match > zero_match case to just before simple_sequence.
16169
16170 2014-08-15  Richard Biener  <rguenther@suse.de>
16171
16172         * data-streamer.h (streamer_string_index, string_for_index):
16173         Remove.
16174         * data-streamer-out.c (streamer_string_index): Make static.
16175         * data-streamer-in.c (string_for_index): Likewise.
16176         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
16177         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
16178
16179 2014-08-15  Richard Biener  <rguenther@suse.de>
16180
16181         PR tree-optimization/62031
16182         * tree-data-ref.c (dr_analyze_indices): Do not set
16183         DR_UNCONSTRAINED_BASE.
16184         (dr_may_alias_p): All indirect accesses have to go the
16185         formerly DR_UNCONSTRAINED_BASE path.
16186         * tree-data-ref.h (struct indices): Remove
16187         unconstrained_base member.
16188         (DR_UNCONSTRAINED_BASE): Remove.
16189
16190 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
16191
16192         PR middle-end/62092
16193         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
16194         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
16195         in OMP_CLAUSE_MAP in some outer target region.
16196
16197 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
16198
16199         * tree-ssa-loop-ivopts.c (ivopts_data): New field
16200         name_expansion_cache.
16201         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
16202         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
16203         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
16204         (difference_cannot_overflow_p): New parameter.  Use affine
16205         expansion for equality check.
16206         (iv_elimination_compare_lt): Pass new argument.
16207
16208 2014-08-14  DJ Delorie  <dj@redhat.com>
16209
16210         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
16211         variables to the accumulator.
16212
16213         * config/rl78/predicates.md (rl78_near_mem_operand): New.
16214         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
16215         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
16216         with far-far moves.
16217
16218         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
16219         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
16220         (umulqihi3_virt): Likewise.
16221         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
16222         (umulqihi3_real): Likewise.
16223
16224         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
16225
16226 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
16227
16228         PR tree-optimization/62091
16229         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
16230         function_entry_reached.
16231         (walk_aliased_vdefs): Clear it here.
16232         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
16233
16234 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
16235
16236         * ipa-utils.h (compare_virtual_tables): Declare.
16237         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
16238
16239 2014-08-14  Marek Polacek  <polacek@redhat.com>
16240
16241         DR 458
16242         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
16243         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
16244
16245 2014-08-14  Tom de Vries  <tom@codesourcery.com>
16246
16247         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
16248
16249 2014-08-14  Tom de Vries  <tom@codesourcery.com>
16250
16251         PR rtl-optimization/62004
16252         PR rtl-optimization/62030
16253         * ifcvt.c (rtx_interchangeable_p): New function.
16254         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
16255         * emit-rtl.h (mem_attrs_eq_p): Declare.
16256
16257 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
16258
16259         * graphite-scop-detection.c:
16260         Add inclusion of cp-tree.h.
16261         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
16262         in case they are pointers to object types
16263
16264 2014-08-14  Richard Biener  <rguenther@suse.de>
16265
16266         * BASE-VER: Change to 5.0.0
16267
16268 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16269             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16270             Anna Tikhonova  <anna.tikhonova@intel.com>
16271             Ilya Tocar  <ilya.tocar@intel.com>
16272             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16273             Ilya Verbin  <ilya.verbin@intel.com>
16274             Kirill Yukhin  <kirill.yukhin@intel.com>
16275             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16276
16277         * config/i386/sse.md (define_mode_attr avx512): New.
16278         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
16279         V4DI modes.
16280         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
16281         (define_mode_attr ssse3_avx2): Ditto.
16282         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
16283         (define_mode_attr avx2_avx512bw): New.
16284         (define_mode_attr ssedoublemodelower): New.
16285         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
16286         V32HI, V64QI modes.
16287         (define_mode_attr ssebytemode): Allow V8DI modes.
16288         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
16289         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
16290         (define_mode_attr ssePSmode2): New.
16291         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
16292         V16HI, V32HI modes.
16293         (define_mode_attr dbpsadbwmode): New.
16294         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
16295         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
16296         (vi8_sse4_1_avx2_avx512): New.
16297         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
16298         mode attribute.
16299         (define_mode_attr blendbits): Move before its immediate use.
16300
16301 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16302             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16303             Anna Tikhonova  <anna.tikhonova@intel.com>
16304             Ilya Tocar  <ilya.tocar@intel.com>
16305             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16306             Ilya Verbin  <ilya.verbin@intel.com>
16307             Kirill Yukhin  <kirill.yukhin@intel.com>
16308             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16309
16310         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
16311         * config/i386/subst.md
16312         (define_mode_iterator SUBST_V): Update.
16313         (define_mode_iterator SUBST_A): Ditto.
16314         (define_subst_attr "mask_operand7"): New.
16315         (define_subst_attr "mask_operand10"): New.
16316         (define_subst_attr "mask_operand_arg34") : New.
16317         (define_subst_attr "mask_expand_op3"): New.
16318         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
16319         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
16320         (define_subst_attr "mask_avx512vl_condition"): New.
16321         (define_subst_attr "round_mask_operand4"): Ditto.
16322         (define_subst_attr "round_mask_scalar_op3"): Delete.
16323         (define_subst_attr "round_mask_op4"): New.
16324         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
16325         V16SImode.
16326         (define_subst_attr "round_modev8sf_condition"): New.
16327         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
16328         <MODE>mode.
16329         (define_subst_attr "round_saeonly_mask_operand4"): New.
16330         (define_subst_attr "round_saeonly_mask_op4"): New.
16331         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
16332         V8DImode, V16SImode.
16333         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
16334         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
16335         (define_subst_attr "mask_expand4_args"): New.
16336         (define_subst "mask_expand4"): New.
16337
16338 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16339             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16340             Anna Tikhonova  <anna.tikhonova@intel.com>
16341             Ilya Tocar  <ilya.tocar@intel.com>
16342             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16343             Ilya Verbin  <ilya.verbin@intel.com>
16344             Kirill Yukhin  <kirill.yukhin@intel.com>
16345             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16346
16347         * config/i386/i386.md
16348         (define_attr "isa"): Add avx512bw,noavx512bw.
16349         (define_attr "enabled"): Ditto.
16350         (define_split): Add 32/64-bit mask logic.
16351         (define_insn "*k<logic>qi"): New.
16352         (define_insn "*k<logic>hi"): New.
16353         (define_insn "*anddi_1"): Add mask version.
16354         (define_insn "*andsi_1"): Ditto.
16355         (define_insn "*<code><mode>_1"): Ditto.
16356         (define_insn "*<code>hi_1"): Ditto.
16357         (define_insn "kxnor<mode>"): New.
16358         (define_insn "kunpcksi"): New.
16359         (define_insn "kunpckdi"): New.
16360         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
16361         (define_insn "*one_cmplhi2_1"): Ditto.
16362
16363 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16364             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16365             Anna Tikhonova  <anna.tikhonova@intel.com>
16366             Ilya Tocar  <ilya.tocar@intel.com>
16367             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16368             Ilya Verbin  <ilya.verbin@intel.com>
16369             Kirill Yukhin  <kirill.yukhin@intel.com>
16370             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16371
16372         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
16373         V32HImode.
16374
16375 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16376             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16377             Anna Tikhonova  <anna.tikhonova@intel.com>
16378             Ilya Tocar  <ilya.tocar@intel.com>
16379             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16380             Ilya Verbin  <ilya.verbin@intel.com>
16381             Kirill Yukhin  <kirill.yukhin@intel.com>
16382             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16383
16384         * config/i386/i386.c (print_reg): Ð¡orrectly print 64-bit mask
16385         registers.
16386         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
16387         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
16388         xmm/ymm16+ when availble.
16389         * config/i386/i386.h
16390         (HARD_REGNO_NREGS): Add mask regs.
16391         (VALID_AVX512F_REG_MODE): Ditto.
16392         (VALID_AVX512F_REG_MODE) : Define.
16393         (VALID_MASK_AVX512BW_MODE): Ditto.
16394         (reg_class) (MASK_REG_P(X)): Define.
16395         * config/i386/i386.md: Do not split long moves with mask register,
16396         use kmovb if avx512bw is availible.
16397         (movdi_internal): Handle mask registers.
16398
16399 2014-08-14  Richard Biener  <rguenther@suse.de>
16400
16401         PR tree-optimization/62081
16402         * tree-ssa-loop.c (pass_fix_loops): New pass.
16403         (pass_tree_loop::gate):  Do not fixup loops here.
16404         * tree-pass.h (make_pass_fix_loops): Declare.
16405         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
16406
16407 2014-08-14  Richard Biener  <rguenther@suse.de>
16408
16409         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
16410         (type_hash_canon): ... this and avoid 2nd lookup for the add.
16411
16412 2014-08-14  Richard Biener  <rguenther@suse.de>
16413
16414         PR tree-optimization/62090
16415         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
16416         (fold_builtin_2): Do not fold sprintf.
16417         (fold_builtin_3): Likewise.
16418         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
16419         moved from builtins.c.
16420         (gimple_fold_builtin): Fold sprintf.
16421
16422 2014-08-14  Richard Biener  <rguenther@suse.de>
16423
16424         PR rtl-optimization/62079
16425         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
16426         run cleanup_cfg.
16427
16428 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
16429
16430         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
16431         current_function_decl.
16432
16433 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
16434
16435         * cgraph.c (cgraph_node::function_symbol): Fix wrong
16436         cgraph_function_node to cgraph_node::function_symbol
16437         refactoring.
16438
16439 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
16440
16441         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
16442         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
16443
16444 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
16445
16446         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
16447         warning.
16448
16449 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
16450
16451         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
16452         generator.
16453
16454 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
16455
16456         PR target/62025
16457         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
16458         any registers that are used in mem_insn.
16459
16460 2014-08-12  Steve Ellcey  <sellcey@mips.com>
16461
16462         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
16463
16464 2014-08-12  Steve Ellcey  <sellcey@mips.com>
16465
16466         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
16467         (MULTILIB_DIRNAMES): Ditto.
16468         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
16469         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
16470         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
16471         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
16472         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
16473         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
16474
16475 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16476
16477         PR target/61413
16478         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
16479         of __ARM_SIZEOF_WCHAR_T.
16480
16481 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16482
16483         PR target/62098
16484         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
16485         Remove unnecessary attributes.
16486
16487 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
16488
16489         * internal-fn.c (init_internal_fns): Fix off-by-one.
16490
16491 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16492             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16493             Anna Tikhonova  <anna.tikhonova@intel.com>
16494             Ilya Tocar  <ilya.tocar@intel.com>
16495             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16496             Ilya Verbin  <ilya.verbin@intel.com>
16497             Kirill Yukhin  <kirill.yukhin@intel.com>
16498             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16499
16500         * config/i386/i386.c (standard_sse_constant_opcode): Use
16501         vpxord/vpternlog if avx512 is availible.
16502
16503 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16504
16505         PR middle-end/62103
16506         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
16507         bitfields, that is when size doesn't match the size of type or the
16508         size of the constructor.
16509
16510 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
16511
16512         * config/rs6000/constraints.md (wh constraint): New constraint,
16513         for FP registers if direct move is available.
16514         (wi constraint): New constraint, for VSX/FP registers that can
16515         handle 64-bit integers.
16516         (wj constraint): New constraint for VSX/FP registers that can
16517         handle 64-bit integers for direct moves.
16518         (wk constraint): New constraint for VSX/FP registers that can
16519         handle 64-bit doubles for direct moves.
16520         (wy constraint): Make documentation match implementation.
16521
16522         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
16523         scalar_in_vmx_p field to simplify tests of whether SFmode or
16524         DFmode can go in the Altivec registers.
16525         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
16526         (rs6000_setup_reg_addr_masks): Likewise.
16527         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
16528         field, and wh/wi/wj/wk constraints.
16529         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
16530         the wh/wi/wj/wk constraints.
16531         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
16532         upper registers, prefer VSX registers unless the operation is a
16533         memory operation with REG+OFFSET addressing.
16534
16535         * config/rs6000/vsx.md (VSr mode attribute): Add support for
16536         DImode.  Change SFmode to use ww constraint instead of d to allow
16537         SF registers in the upper registers.
16538         (VSr2): Likewise.
16539         (VSr3): Likewise.
16540         (VSr5): Fix thinko in comment.
16541         (VSa): New mode attribute that is an alternative to wa, that
16542         returns the VSX register class that a mode can go in, but may not
16543         be the preferred register class.
16544         (VS_64dm): New mode attribute for appropriate register classes for
16545         referencing 64-bit elements of vectors for direct moves and normal
16546         moves.
16547         (VS_64reg): Likewise.
16548         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
16549         register allocator to only registers the data type can handle.
16550         (vsx_le_perm_load_<mode>): Likewise.
16551         (vsx_le_perm_store_<mode>): Likewise.
16552         (vsx_xxpermdi2_le_<mode>): Likewise.
16553         (vsx_xxpermdi4_le_<mode>): Likewise.
16554         (vsx_lxvd2x2_le_<mode>): Likewise.
16555         (vsx_lxvd2x4_le_<mode>): Likewise.
16556         (vsx_stxvd2x2_le_<mode>): Likewise.
16557         (vsx_add<mode>3): Likewise.
16558         (vsx_sub<mode>3): Likewise.
16559         (vsx_mul<mode>3): Likewise.
16560         (vsx_div<mode>3): Likewise.
16561         (vsx_tdiv<mode>3_internal): Likewise.
16562         (vsx_fre<mode>2): Likewise.
16563         (vsx_neg<mode>2): Likewise.
16564         (vsx_abs<mode>2): Likewise.
16565         (vsx_nabs<mode>2): Likewise.
16566         (vsx_smax<mode>3): Likewise.
16567         (vsx_smin<mode>3): Likewise.
16568         (vsx_sqrt<mode>2): Likewise.
16569         (vsx_rsqrte<mode>2): Likewise.
16570         (vsx_tsqrt<mode>2_internal): Likewise.
16571         (vsx_fms<mode>4): Likewise.
16572         (vsx_nfma<mode>4): Likewise.
16573         (vsx_eq<mode>): Likewise.
16574         (vsx_gt<mode>): Likewise.
16575         (vsx_ge<mode>): Likewise.
16576         (vsx_eq<mode>_p): Likewise.
16577         (vsx_gt<mode>_p): Likewise.
16578         (vsx_ge<mode>_p): Likewise.
16579         (vsx_xxsel<mode>): Likewise.
16580         (vsx_xxsel<mode>_uns): Likewise.
16581         (vsx_copysign<mode>3): Likewise.
16582         (vsx_float<VSi><mode>2): Likewise.
16583         (vsx_floatuns<VSi><mode>2): Likewise.
16584         (vsx_fix_trunc<mode><VSi>2): Likewise.
16585         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
16586         (vsx_x<VSv>r<VSs>i): Likewise.
16587         (vsx_x<VSv>r<VSs>ic): Likewise.
16588         (vsx_btrunc<mode>2): Likewise.
16589         (vsx_b2trunc<mode>2): Likewise.
16590         (vsx_floor<mode>2): Likewise.
16591         (vsx_ceil<mode>2): Likewise.
16592         (vsx_<VS_spdp_insn>): Likewise.
16593         (vsx_xscvspdp): Likewise.
16594         (vsx_xvcvspuxds): Likewise.
16595         (vsx_float_fix_<mode>2): Likewise.
16596         (vsx_set_<mode>): Likewise.
16597         (vsx_extract_<mode>_internal1): Likewise.
16598         (vsx_extract_<mode>_internal2): Likewise.
16599         (vsx_extract_<mode>_load): Likewise.
16600         (vsx_extract_<mode>_store): Likewise.
16601         (vsx_splat_<mode>): Likewise.
16602         (vsx_xxspltw_<mode>): Likewise.
16603         (vsx_xxspltw_<mode>_direct): Likewise.
16604         (vsx_xxmrghw_<mode>): Likewise.
16605         (vsx_xxmrglw_<mode>): Likewise.
16606         (vsx_xxsldwi_<mode>): Likewise.
16607         (vsx_xscvdpspn): Tighten constraints to only use register classes
16608         the types use.
16609         (vsx_xscvspdpn): Likewise.
16610         (vsx_xscvdpspn_scalar): Likewise.
16611
16612         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
16613         wj, and wk constraints.
16614         (GPR_REG_CLASS_P): New helper macro for register classes targeting
16615         general purpose registers.
16616
16617         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
16618         direct moves.
16619         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
16620         DImode instead of wm.  Use wk constraint for direct move of DFmode
16621         instead of wm.
16622         (extendsidi2_lfiwax): Likewise.
16623         (lfiwax): Likewise.
16624         (lfiwzx): Likewise.
16625         (movdi_internal64): Likewise.
16626
16627         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
16628         wk constraints. Make the wy constraint documentation match them
16629         implementation.
16630
16631 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
16632
16633         Replacement of isl_int by isl_val
16634         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
16635         (compute_bounds_for_param): use isl_val instead of isl_int
16636         (compute_bounds_for_loop): likewise
16637         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
16638         (build_linearized_memory_access): use isl_val instead of isl_int
16639         (pdr_stride_in_loop): likewise
16640         * graphite-optimize-isl.c:
16641         (getPrevectorMap): use isl_val instead of isl_int
16642         * graphite-poly.c:
16643         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
16644         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
16645         (extern the_isl_ctx): declare
16646         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
16647         (extract_affine_gmp): likewise
16648         (wrap): likewise
16649         (build_loop_iteration_domains): likewise
16650         (add_param_constraints): likewise
16651
16652 2014-08-11  Richard Biener  <rguenther@suse.de>
16653
16654         PR tree-optimization/62075
16655         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
16656         handle uses in patterns.
16657
16658 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16659             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16660             Anna Tikhonova  <anna.tikhonova@intel.com>
16661             Ilya Tocar  <ilya.tocar@intel.com>
16662             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16663             Ilya Verbin  <ilya.verbin@intel.com>
16664             Kirill Yukhin  <kirill.yukhin@intel.com>
16665             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16666
16667         * common/config/i386/i386-common.c
16668         (OPTION_MASK_ISA_AVX512VL_SET): Define.
16669         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
16670         (ix86_handle_option): Handle OPT_mavx512vl.
16671         * config/i386/cpuid.h (bit_AVX512VL): Define.
16672         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
16673         set -mavx512vl accordingly.
16674         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16675         OPTION_MASK_ISA_AVX512VL.
16676         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
16677         (ix86_option_override_internal): Define PTA_AVX512VL, handle
16678         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
16679         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
16680         * config/i386/i386.h (TARGET_AVX512VL): Define.
16681         (TARGET_AVX512VL_P(x)): Ditto.
16682         * config/i386/i386.opt: Add mavx512vl.
16683
16684 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
16685
16686         PR tree-optimization/62073
16687         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
16688         a basic block.
16689
16690 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16691             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16692             Anna Tikhonova  <anna.tikhonova@intel.com>
16693             Ilya Tocar  <ilya.tocar@intel.com>
16694             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16695             Ilya Verbin  <ilya.verbin@intel.com>
16696             Kirill Yukhin  <kirill.yukhin@intel.com>
16697             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16698
16699         * common/config/i386/i386-common.c
16700         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
16701         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
16702         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
16703         (ix86_handle_option): Handle OPT_mavx512bw.
16704         * config/i386/cpuid.h (bit_AVX512BW): Define.
16705         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
16706         set -mavx512bw accordingly.
16707         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16708         OPTION_MASK_ISA_AVX512BW.
16709         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
16710         (ix86_option_override_internal): Define PTA_AVX512BW, handle
16711         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
16712         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
16713         * config/i386/i386.h (TARGET_AVX512BW): Define.
16714         (TARGET_AVX512BW_P(x)): Ditto.
16715         * config/i386/i386.opt: Add mavx512bw.
16716
16717 2014-08-11  Richard Biener  <rguenther@suse.de>
16718
16719         PR tree-optimization/62070
16720         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
16721         Remove SSA checking.
16722
16723 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
16724
16725         * asan.c (asan_check_flags): New enum.
16726         (build_check_stmt_with_calls): Removed function.
16727         (build_check_stmt): Split inlining logic to
16728         asan_expand_check_ifn.
16729         (instrument_derefs): Rename parameter.
16730         (instrument_mem_region_access): Rename parameter.
16731         (instrument_strlen_call): Likewise.
16732         (asan_expand_check_ifn): New function.
16733         (asan_instrument): Remove old code.
16734         (pass_sanopt::execute): Change handling of
16735         asan-instrumentation-with-call-threshold.
16736         (asan_clear_shadow): Fix formatting.
16737         (asan_function_start): Likewise.
16738         (asan_emit_stack_protection): Likewise.
16739         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
16740         Update description.
16741         * internal-fn.c (expand_ASAN_CHECK): New function.
16742         * internal-fn.def (ASAN_CHECK): New internal function.
16743         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
16744         Update description.
16745         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
16746         * tree.c: Small comment fix.
16747
16748 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
16749
16750         * gimple.c (gimple_call_fnspec): Support internal functions.
16751         (gimple_call_return_flags): Use const.
16752         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
16753         * internal-fn.def: Add fnspec information.
16754         * internal-fn.h (internal_fn_fnspec): New function.
16755         (init_internal_fns): Declare new function.
16756         * internal-fn.c (internal_fn_fnspec_array): New global variable.
16757         (init_internal_fns): New function.
16758         * tree-core.h: Update macro call.
16759         * tree.c (build_common_builtin_nodes): Initialize internal fns.
16760
16761 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
16762
16763         * lto-streamer.h (struct output_block::symbol): Change from
16764         struct symtab_node to plain symtab_node.
16765         (referenced_from_this_partition_p): Change first parameter
16766         from struct symtab_node to plain symtab_node.
16767
16768 2014-08-10  Marek Polacek  <polacek@redhat.com>
16769
16770         PR c/51849
16771         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
16772
16773 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
16774
16775         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
16776         DECL correctly; do not give up on types in static storage.
16777
16778 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
16779
16780         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
16781
16782 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
16783
16784         * graphite-isl-ast-to-gimple.c:
16785         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
16786
16787         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
16788
16789 2014-08-08  Guozhi Wei  <carrot@google.com>
16790
16791         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
16792
16793 2014-08-08  Cary Coutant  <ccoutant@google.com>
16794
16795         * dwarf2out.c (get_skeleton_type_unit): Remove.
16796         (output_skeleton_debug_sections): Remove skeleton type units.
16797         (output_comdat_type_unit): Likewise.
16798         (dwarf2out_finish): Likewise.
16799
16800 2014-08-07  Yi Yang  <ahyangyi@google.com>
16801
16802         * predict.c (expr_expected_value_1): Remove the redundant assignment.
16803
16804 2014-08-08  Richard Biener  <rguenther@suse.de>
16805
16806         * lto-streamer.h (struct lto_input_block): Make it a class
16807         with a constructor.
16808         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
16809         (struct lto_function_header, struct lto_simple_header,
16810         struct lto_simple_header_with_strings,
16811         struct lto_decl_header, struct lto_function_header): Make
16812         a simple inheritance hieararchy.  Remove unused fields.
16813         (struct lto_asm_header): Remove.
16814         * lto-streamer-out.c (produce_asm): Adjust.
16815         (lto_output_toplevel_asms): Likewise.
16816         (produce_asm_for_decls): Likewise.
16817         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
16818         * data-streamer-in.c (string_for_index): Likewise.
16819         * ipa-inline-analysis.c (inline_read_section): Likewise.
16820         * ipa-prop.c (ipa_prop_read_section): Likewise.
16821         (read_replacements_section): Likewise.
16822         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
16823         * lto-section-in.c (lto_create_simple_input_block): Likewise.
16824         (lto_destroy_simple_input_block): Likewise.
16825         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
16826         (lto_input_toplevel_asms): Likewise.
16827
16828 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16829             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16830             Anna Tikhonova  <anna.tikhonova@intel.com>
16831             Ilya Tocar  <ilya.tocar@intel.com>
16832             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16833             Ilya Verbin  <ilya.verbin@intel.com>
16834             Kirill Yukhin  <kirill.yukhin@intel.com>
16835             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16836
16837         * common/config/i386/i386-common.c
16838         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
16839         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
16840         (ix86_handle_option): Handle OPT_mavx512dq.
16841         * config/i386/cpuid.h (bit_AVX512DQ): Define.
16842         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
16843         set -mavx512dq accordingly.
16844         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16845         OPTION_MASK_ISA_AVX512DQ.
16846         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
16847         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
16848         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
16849         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
16850         * config/i386/i386.h (TARGET_AVX512DQ): Define.
16851         (TARGET_AVX512DQ_P(x)): Ditto.
16852         * config/i386/i386.opt: Add mavx512dq.
16853
16854 2014-08-08  Richard Biener  <rguenther@suse.de>
16855
16856         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
16857         target_percent, target_percent_s): Export.
16858         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
16859         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
16860         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
16861         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
16862         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
16863         Move to gimple-fold.c.
16864         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
16865         strcat and strcpy.
16866         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
16867         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
16868         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
16869         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
16870         (rewrite_call_expr_array): Remove.
16871         (fold_builtin_sprintf_chk): Likewise.
16872         (fold_builtin_snprintf_chk): Likewise.
16873         (fold_builtin_varargs): Remove handling of sprintf_chk,
16874         vsprintf_chk, snprintf_chk and vsnprintf_chk.
16875         (gimple_fold_builtin_sprintf_chk): Remove.
16876         (gimple_fold_builtin_snprintf_chk): Likewise.
16877         (gimple_fold_builtin_varargs): Likewise.
16878         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
16879         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
16880         * gimple.c (gimple_seq_add_seq_without_update): New function.
16881         * gimple.h (gimple_seq_add_seq_without_update): Declare.
16882         * gimple-fold.c: Include output.h.
16883         (gsi_replace_with_seq_vops): New function, split out from ...
16884         (gimplify_and_update_call_from_tree): ... here.
16885         (replace_call_with_value): New function.
16886         (replace_call_with_call_and_fold): Likewise.
16887         (var_decl_component_p): Moved from builtins.c.
16888         (gimple_fold_builtin_memory_op): Moved from builtins.c
16889         fold_builtin_memory_op and rewritten to GIMPLE.
16890         (gimple_fold_builtin_memset): Likewise.
16891         (gimple_fold_builtin_strcpy): Likewise.
16892         (gimple_fold_builtin_strncpy): Likewise.
16893         (gimple_fold_builtin_strcat): Likewise.
16894         (gimple_fold_builtin_fputs): Likewise.
16895         (gimple_fold_builtin_memory_chk): Likewise.
16896         (gimple_fold_builtin_stxcpy_chk): Likewise.
16897         (gimple_fold_builtin_stxncpy_chk): Likewise.
16898         (gimple_fold_builtin_snprintf_chk): Likewise.
16899         (gimple_fold_builtin_sprintf_chk): Likewise.
16900         (gimple_fold_builtin_strlen): New function.
16901         (gimple_fold_builtin_with_strlen): New function split out from
16902         gimple_fold_builtin.
16903         (gimple_fold_builtin): Change signature and handle
16904         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
16905         here.  Call gimple_fold_builtin_with_strlen.
16906         (gimple_fold_call): Adjust.
16907
16908 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
16909
16910         * calls.c (precompute_arguments): Check
16911         promoted_for_signed_and_unsigned_p and set the promoted mode.
16912         (promoted_for_signed_and_unsigned_p): New function.
16913         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
16914         and set the promoted mode.
16915         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
16916         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
16917         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
16918
16919
16920 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
16921
16922         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
16923         instead of SUBREG_PROMOTED_UNSIGNED_SET.
16924         (expand_call): Likewise.
16925         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
16926         to get promoted mode.
16927         * combine.c (record_promoted_value): Skip > 0 comparison with
16928         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
16929         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
16930         of SUBREG_PROMOTED_UNSIGNED_P.
16931         (convert_modes): Likewise.
16932         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
16933         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
16934         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
16935         SUBREG_PROMOTED_UNSIGNED_SET.
16936         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
16937         instead of SUBREG_PROMOTED_UNSIGNED_SET.
16938         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
16939         SUBREG_PROMOTED_SET.
16940         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
16941         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
16942         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
16943         of SUBREG_PROMOTED_UNSIGNED_P.
16944         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
16945         (SUBREG_PROMOTED_SET): New define.
16946         (SUBREG_PROMOTED_GET): Likewise.
16947         (SUBREG_PROMOTED_SIGN): Likewise.
16948         (SUBREG_PROMOTED_SIGNED_P): Likewise.
16949         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
16950         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
16951         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
16952         instead of SUBREG_PROMOTED_UNSIGNED_GET.
16953         (nonzero_bits1): Skip > 0 comparison with the results as
16954         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
16955         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
16956         of !SUBREG_PROMOTED_UNSIGNED_P.
16957         * simplify-rtx.c (simplify_unary_operation_1): Use new
16958         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
16959         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
16960         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
16961         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
16962
16963 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
16964
16965         * ipa-devirt.c: Include gimple-pretty-print.h
16966         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
16967         further tests.
16968         (decl_maybe_in_construction_p): Fix conditional on cdtor check
16969         (get_polymorphic_call_info): Fix return value
16970         (type_change_info): New sturcture based on ipa-prop
16971         variant.
16972         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
16973         based on ipa-prop variant.
16974         (extr_type_from_vtbl_ptr_store): New function
16975         based on ipa-prop variant.
16976         (record_known_type): New function.
16977         (check_stmt_for_type_change): New function.
16978         (get_dynamic_type): New function.
16979         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
16980         * tree-ssa-pre.c: ipa-utils.h
16981         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
16982         machinery; sanity check with ipa-prop devirtualization.
16983         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
16984         polymorphic flag.
16985
16986 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
16987
16988         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
16989         * alias.c, cfgexpand.c, cgraphbuild.c,
16990         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
16991         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
16992         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
16993         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
16994         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
16995         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
16996         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
16997         dse.c, except.c, gengtype.c, gimple-expr.c,
16998         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
16999         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
17000         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
17001         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
17002         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
17003         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
17004         pointer-set.h.
17005         * pointer-set.c: Remove file.
17006         * pointer-set.h: Remove file.
17007
17008 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17009
17010         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
17011         * config/arm/types.md (f_sels, f_seld): Delete.
17012
17013 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17014
17015         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
17016         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
17017         (aarch64_movdi_<mode>high): Likewise.
17018         (aarch64_mov<mode>high_di): Likewise.
17019         (aarch64_movdi_<mode>low): Likewise.
17020         (aarch64_mov<mode>low_di): Likewise.
17021         (aarch64_movtilow_tilow): Likewise.
17022         Add comment explaining usage of fp,simd attributes and of
17023         TARGET_FLOAT and TARGET_SIMD.
17024
17025 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
17026             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17027
17028         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
17029         Use MOVN when one of the half-words is 0xffff.
17030
17031 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
17032
17033         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
17034
17035 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
17036
17037         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
17038         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
17039         (rfs_str): String corresponding to RFS_* constants.
17040         (rank_for_schedule_stats_t): New typedef.
17041         (rank_for_schedule_stats): New static variable.
17042         (rfs_result): New static function.
17043         (rank_for_schedule): Track statistics for deciding heuristics.
17044         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
17045         static functions.
17046         (ready_sort): Use them for debug printouts.
17047         (schedule_block): Init statistics state.  Print statistics on
17048         rank_for_schedule decisions.
17049
17050 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
17051
17052         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
17053
17054 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
17055
17056         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
17057         constraint.
17058
17059 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
17060
17061         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
17062         function to not conflict.
17063         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
17064         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
17065         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
17066         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
17067         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
17068         of pointer_map.
17069
17070 2014-08-07  Marek Polacek  <polacek@redhat.com>
17071
17072         * fold-const.c (fold_binary_loc): Add folding of
17073         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
17074
17075 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
17076
17077         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
17078         instead of type size.
17079         (ASM_FINISH_DECLARE_OBJECT): Likewise.
17080
17081 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
17082
17083         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
17084         (*thumb1_movqi_insn): Likewise.
17085         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
17086
17087 2014-08-07  Tom de Vries  <tom@codesourcery.com>
17088
17089         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
17090         (glibc_2_11_or_earlier): Remove effective-target keywords.
17091
17092 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
17093
17094         * config/arm/arm.c (bdesc_2arg): Fix typo.
17095         (arm_atomic_assign_expand_fenv): Remove The default implementation.
17096
17097 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
17098
17099         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
17100
17101 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
17102
17103         PR debug/61923
17104         * haifa-sched.c (advance_one_cycle): Fix dump.
17105         (schedule_block): Don't advance cycle if we are already at the
17106         beginning of the cycle.
17107
17108 2014-08-06  Martin Jambor  <mjambor@suse.cz>
17109
17110         PR ipa/61393
17111         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
17112
17113 2014-08-06  Richard Biener  <rguenther@suse.de>
17114
17115         PR lto/62034
17116         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
17117         SCCs here.
17118         (lto_input_tree): Pop SCCs here.
17119
17120 2014-08-06  Richard Biener  <rguenther@suse.de>
17121
17122         PR tree-optimization/61320
17123         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
17124         handle misaligned loads.
17125
17126 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
17127
17128         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
17129         (aarch64_expand_vec_perm_const): Check for dup before zip.
17130
17131 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17132
17133         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
17134         CONST_INT_P instead of GET_CODE and compare.
17135         (aarch64_select_cc_mode): Likewise.
17136         (aarch64_print_operand): Likewise.
17137         (aarch64_rtx_costs): Likewise.
17138         (aarch64_simd_valid_immediate): Likewise.
17139         (aarch64_simd_check_vect_par_cnst_half): Likewise.
17140         (aarch64_simd_emit_pair_result_insn): Likewise.
17141
17142 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
17143
17144         * gdbhooks.py (find_gcc_source_dir): New helper function.
17145         (class PassNames): New class, locating and parsing passes.def.
17146         (class BreakOnPass): New command "break-on-pass".
17147
17148 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
17149
17150         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
17151         getting olde.
17152
17153 2014-08-05  Richard Biener  <rguenther@suse.de>
17154
17155         PR rtl-optimization/61672
17156         * emit-rtl.h (mem_attrs_eq_p): Declare.
17157         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
17158         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
17159         * cfgcleanup.c (merge_memattrs): Likewise.
17160         Include emit-rtl.h.
17161
17162 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17163
17164         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
17165         rather than singleton vectors.
17166         (vqdmlsls_lane_s32): Likewise.
17167
17168 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17169
17170         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
17171         Use VSDQ_HSI mode iterator.
17172         (aarch64_sqrdmulh_laneq<mode>): Likewise.
17173         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
17174         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
17175         Use BUILTIN_VDQHS macro.
17176         (sqrdmulh_laneq): Likewise.
17177         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
17178         (vqdmlals_laneq_s32): Likewise.
17179         (vqdmlslh_laneq_s16): Likewise.
17180         (vqdmlsls_laneq_s32): Likewise.
17181         (vqdmulhh_laneq_s16): Likewise.
17182         (vqdmulhs_laneq_s32): Likewise.
17183         (vqrdmulhh_laneq_s16): Likewise.
17184         (vqrdmulhs_laneq_s32): Likewise.
17185
17186 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17187
17188         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
17189         (vmuld_laneq_f64): Likewise.
17190         (vmuls_laneq_f32): Likewise.
17191         (vmul_n_f64): Likewise.
17192         (vmuld_lane_f64): Reimplement in C.
17193         (vmuls_lane_f32): Likewise.
17194
17195 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17196
17197         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
17198         to reservation.
17199         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
17200
17201 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17202
17203         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
17204         (rbitsi2): Likewise.
17205         (*arm_rev): Set predicable and predicable_short_it attributes.
17206
17207 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17208
17209         * convert.c (convert_to_integer): Guard transformation to lrint by
17210         -fno-math-errno.
17211
17212 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
17213
17214         * config/aarch64/aarch64-builtins.c
17215         (aarch64_simd_builtin_type_mode): Delete.
17216         (v8qi_UP): Remap to V8QImode.
17217         (v4hi_UP): Remap to V4HImode.
17218         (v2si_UP): Remap to V2SImode.
17219         (v2sf_UP): Remap to V2SFmode.
17220         (v1df_UP): Remap to V1DFmode.
17221         (di_UP): Remap to DImode.
17222         (df_UP): Remap to DFmode.
17223         (v16qi_UP):V16QImode.
17224         (v8hi_UP): Remap to V8HImode.
17225         (v4si_UP): Remap to V4SImode.
17226         (v4sf_UP): Remap to V4SFmode.
17227         (v2di_UP): Remap to V2DImode.
17228         (v2df_UP): Remap to V2DFmode.
17229         (ti_UP): Remap to TImode.
17230         (ei_UP): Remap to EImode.
17231         (oi_UP): Remap to OImode.
17232         (ci_UP): Map to CImode.
17233         (xi_UP): Remap to XImode.
17234         (si_UP): Remap to SImode.
17235         (sf_UP): Remap to SFmode.
17236         (hi_UP): Remap to HImode.
17237         (qi_UP): Remap to QImode.
17238         (aarch64_simd_builtin_datum): Make mode a machine_mode.
17239         (VAR1): Build builtin name.
17240         (aarch64_init_simd_builtins): Remove dead code.
17241
17242 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
17243
17244         * graphite-isl-ast-to-gimple.c:
17245         (set_options): New function.
17246         (scop_to_isl_ast): Add calling of set_options.
17247
17248 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
17249
17250         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
17251         (analyze_iv_to_split_insn): Don't initialize them.
17252         (get_ivts_expr): Removed.
17253         (allocate_basic_variable, insert_base_initialization): Use
17254         SET_SRC instead of *get_ivts_expr.
17255         (split_iv): Use &SET_SRC instead of get_ivts_expr.
17256
17257 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
17258
17259         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
17260         (translate_isl_ast_for_loop): Add checking of the
17261         flag_loop_parallelize_all.
17262         (ast_build_before_for): New function.
17263         (scop_to_isl_ast): Add checking of the
17264         flag_loop_parallelize_all.
17265         * graphite-dependences.c: Move the defenition of the
17266         scop_get_dependences from graphite-optimize-isl.c to this file.
17267         (apply_schedule_on_deps): Add checking of the ux's emptiness.
17268         (carries_deps): Add checking of the x's value.
17269         * graphite-optimize-isl.c: Move the defenition of the
17270         scop_get_dependences to graphite-dependences.c.
17271         * graphite-poly.h: Add declarations of scop_get_dependences
17272         and carries_deps.
17273
17274 2014-08-04  Rohit  <rohitarulraj@freescale.com>
17275
17276         PR target/60102
17277         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
17278         names.
17279         (alt_reg_names): Likewise.
17280         (rs6000_dwarf_register_span): For SPE high registers, replace
17281         dwarf register numbers with GCC hard register numbers.
17282         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
17283         (rs6000_dbx_register_number): For SPE high registers, return dwarf
17284         register number for the corresponding GCC hard register number.
17285         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
17286         newly added GCC hard register numbers for SPE high registers.
17287         (DWARF_FRAME_REGISTERS):  Likewise.
17288         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
17289         (DWARF_FRAME_REGNUM): Likewise.
17290         (FIXED_REGISTERS): Likewise.
17291         (CALL_USED_REGISTERS): Likewise.
17292         (CALL_REALLY_USED_REGISTERS): Likewise.
17293         (REG_ALLOC_ORDER): Likewise.
17294         (enum reg_class): Likewise.
17295         (REG_CLASS_NAMES): Likewise.
17296         (REG_CLASS_CONTENTS): Likewise.
17297         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
17298
17299 2014-08-04  Richard Biener  <rguenther@suse.de>
17300
17301         * gimple-fold.h (gimple_fold_builtin): Remove.
17302         * gimple-fold.c (gimple_fold_builtin): Make static.
17303         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
17304         fold_stmt, not gimple_fold_builtin.
17305
17306 2014-08-04  Martin Liska <mliska@suse.cz>
17307
17308         * cgraph.h (csi_end_p): Removed.
17309         (csi_next): Likewise.
17310         (csi_node): Likewise.
17311         (csi_start): Likewise.
17312         (cgraph_node_in_set_p): Likewise.
17313         (cgraph_node_set_size): Likewise.
17314         (vsi_end_p): Likewise.
17315         (vsi_next): Likewise.
17316         (vsi_node): Likewise.
17317         (vsi_start): Likewise.
17318         (varpool_node_set_size): Likewise.
17319         (cgraph_node_set_nonempty_p): Likewise.
17320         (varpool_node_set_nonempty_p): Likewise.
17321         * cgraphunit.c (cgraph_process_new_functions): vec replaces
17322         cgraph_node_set.
17323         * ipa-inline-transform.c: Likewise.
17324         * ipa-utils.c (cgraph_node_set_new): Removed.
17325         (cgraph_node_set_add): Likewise.
17326         (cgraph_node_set_remove): Likewise.
17327         (cgraph_node_set_find): Likewise.
17328         (dump_cgraph_node_set): Likewise.
17329         (debug_cgraph_node_set): Likewise.
17330         (free_cgraph_node_set): Likewise.
17331         (varpool_node_set_new): Likewise.
17332         (varpool_node_set_add): Likewise.
17333         (varpool_node_set_remove): Likewise.
17334         (varpool_node_set_find): Likewise.
17335         (dump_varpool_node_set): Likewise.
17336         (free_varpool_node_set): Likewise.
17337         (debug_varpool_node_set): Likewise.
17338         * tree-emutls.c (struct tls_var_data):
17339         (emutls_index): Removed.
17340         (emutls_decl): Likewise.
17341         (gen_emutls_addr): Function implementation uses newly added
17342         hash_map<varpool_node *, tls_var_data>.
17343         (clear_access_vars): Likewise.
17344         (create_emultls_var): Likewise.
17345         (ipa_lower_emutls): Likewise.
17346         (reset_access): New function.
17347
17348 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
17349
17350         * config/i386/i386.c (ix86_option_override_internal): Add
17351         PTA_RDRND and PTA_MOVBE for bdver4.
17352
17353 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17354             James Greenhalgh  <james.greenhalgh@arm.com>
17355
17356         * doc/md.texi (clrsb): Document.
17357         (clz): Change reference to x into operand 1.
17358         (ctz): Likewise.
17359         (popcount): Likewise.
17360
17361 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17362
17363         PR target/61713
17364         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
17365         move to subtarget in serial version if result is ignored.
17366
17367 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17368             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17369
17370         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
17371         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
17372         (sched_analyze_insn): Update use of try_group_insn to
17373         sched_macro_fuse_insns.
17374         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
17375         arguments that are not conditional jumps.
17376
17377 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
17378
17379         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
17380         family information. Handle BTVER2 cpu with cpuid family value.
17381
17382 2014-08-04  Tom de Vries  <tom@codesourcery.com>
17383
17384         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
17385         (glibc_2_11_or_earlier): Document effective-target keywords.
17386
17387 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
17388
17389         * ipa-devirt.c (odr_type_warn_count): Add type.
17390         (possible_polymorphic_call_targets): Set it.
17391         (ipa_devirt): Use it.
17392
17393 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
17394
17395         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
17396         Document.
17397         * ipa-devirt.c: Include hash-map.h
17398         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
17399         (clear_speculation): Break out of ...
17400         (get_class_context): ... here; speed up handling obviously useless
17401         speculations.
17402         (odr_type_warn_count, decl_warn_count): New structures.
17403         (final_warning_record): New structure.
17404         (final_warning_records): New static variable.
17405         (possible_polymorphic_call_targets): Cleanup handling of
17406         speculative info; do not build speculation when user do not care;
17407         record info about warnings when asked for.
17408         (add_decl_warning): New function.
17409         (type_warning_cmp): New function.
17410         (decl_warning_cmp): New function.
17411         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
17412         (gate): Enable pass when warnings are requested.
17413         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
17414         options.
17415
17416 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
17417
17418         * hash-map.h (default_hashmap_traits::mark_key_deleted):
17419         Fix cast.
17420         (hash_map::remove): New method.
17421         (hash_map::traverse): New method.
17422         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
17423         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
17424         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
17425         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
17426         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
17427         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
17428         pointer_map.
17429
17430 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
17431
17432         * hash-set.h: new File.
17433         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
17434         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
17435         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
17436         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
17437         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
17438         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
17439         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
17440         varpool.c: Use hash_set instead of pointer_set.
17441
17442 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
17443
17444         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
17445
17446 2014-08-01  Jiong Wang <jiong.wang@arm.com>
17447
17448         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
17449         for frame access when strict_p is false.
17450
17451 2014-08-01  Renlin Li <renlin.li@arm.com>
17452 2014-08-01  Jiong Wang <jiong.wang@arm.com>
17453
17454         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
17455         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
17456         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
17457         Declaration.
17458         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
17459         predicate.
17460         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
17461         aarch64_mem_pair_offset.
17462
17463 2014-08-01  Jiong Wang <jiong.wang@arm.com>
17464
17465         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
17466         offset.
17467         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
17468         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
17469
17470 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
17471
17472         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
17473
17474 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
17475
17476         PR regression/61510
17477         * cgraphunit.c (analyze_functions): Use get_create rather than get
17478         for decls which are clones of abstract functions.
17479
17480 2014-08-01  Martin Liska  <mliska@suse.cz>
17481
17482         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
17483         * ipa-prop.h (count_formal_params): Global function created from static.
17484         * ipa-prop.c (count_formal_params): Likewise.
17485         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
17486         profiles for semantically equivalent functions.
17487         * passes.c (do_per_function): If we load body of a function
17488         during WPA, this condition should behave same.
17489         * varpool.c (ctor_for_folding): More tolerant assert for variable
17490         aliases created during WPA.
17491
17492 2014-08-01  Martin Liska  <mliska@suse.cz>
17493
17494         * doc/invoke.texi (Options That Control Optimization): Documentation
17495         for -foptimize-strlen introduced. Optimization levels default options
17496         fixed.
17497
17498 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
17499
17500         * opts.c (common_handle_option): Handle -fsanitize=alignment.
17501         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
17502         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
17503         type to bool.
17504         * stor-layout.h (min_align_of_type): New prototype.
17505         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
17506         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
17507         check.
17508         * ubsan.c: Include builtins.h.
17509         (ubsan_expand_bounds_ifn): Change return type to bool,
17510         always return true.
17511         (ubsan_expand_null_ifn): Change return type to bool, change
17512         argument to gimple_stmt_iterator *.  Handle both null and alignment
17513         sanitization, take type from ckind argument's type rather than
17514         first argument.
17515         (instrument_member_call): Removed.
17516         (instrument_mem_ref): Remove t argument, add mem and base arguments.
17517         Handle both null and alignment sanitization, don't say whole
17518         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
17519         call instead of 2 argument.
17520         (instrument_null): Adjust instrument_mem_ref caller.  Don't
17521         instrument calls here.
17522         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
17523         like SANITIZE_NULL.
17524         * stor-layout.c (min_align_of_type): New function.
17525         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
17526         Or it into SANITIZE_UNDEFINED.
17527         * doc/invoke.texi (-fsanitize=alignment): Document.
17528
17529 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17530
17531         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
17532
17533 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17534
17535         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
17536         inchash.
17537         (vn_reference_compute_hash): Dito.
17538         (vn_nary_op_compute_hash): Dito.
17539         (vn_phi_compute_hash): Dito.
17540         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
17541
17542 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17543
17544         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
17545         Rename to inchash:add_expr_commutative. Convert to inchash.
17546         (iterative_hash_hashable_expr): Rename to
17547         inchash:add_hashable_expr. Convert to inchash.
17548         (avail_expr_hash): Dito.
17549
17550 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17551
17552         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
17553         Convert to inchash.
17554
17555 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17556
17557         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
17558
17559 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17560
17561         * Makefile.in (OBJS): Add rtlhash.o
17562         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
17563         (loc_checksum): Dito.
17564         (loc_checksum_ordered): Dito.
17565         (hash_loc_operands): Dito.
17566         (hash_locs): Dito.
17567         (hash_loc_list): Dito.
17568         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
17569         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
17570         * rtlhash.c: New file.
17571         * rtlhash.h: New file.
17572
17573 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17574
17575         * inchash.h (inchash): Change inchash class to namespace.
17576         (class hash): ... Rename from inchash.
17577         (add_object): Move from macro to class template.
17578         * lto-streamer-out.c (hash_tree): Change inchash
17579         to inchash::hash.
17580         * tree.c (build_type_attribute_qual_variant): Dito.
17581         (type_hash_list): Dito.
17582         (attribute_hash_list): Dito.
17583         (iterative_hstate_expr): Rename to inchash::add_expr
17584         (build_range_type_1): Change inchash to inchash::hash
17585         and use hash::add_expr.
17586         (build_array_type_1): Dito.
17587         (build_function_type): Dito
17588         (build_method_type_directly): Dito.
17589         (build_offset_type): Dito.
17590         (build_complex_type): Dito.
17591         (make_vector_type): Dito.
17592         * tree.h (iterative_hash_expr): Dito.
17593
17594 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
17595
17596         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
17597
17598 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
17599
17600         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
17601         correct alphabetical position.
17602         (vpaddd_f64): Rewrite using builtins.
17603         (vpaddd_s64): Move to correct alphabetical position.
17604         (vpaddd_u64): New.
17605
17606 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
17607
17608         PR target/61844
17609         * config/sh/sh.c (sh_legitimate_address_p,
17610         sh_legitimize_reload_address): Handle reg+reg address modes when
17611         ALLOW_INDEXED_ADDRESS is false.
17612         * config/sh/predicates.md (general_movsrc_operand,
17613         general_movdst_operand): Likewise.
17614
17615 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
17616
17617         * config/aarch64/aarch64-builtins.c
17618         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
17619         BYTES_BIG_ENDIAN.
17620
17621 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
17622
17623         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
17624         the generated mask based on BYTES_BIG_ENDIAN.
17625         (aarch64_simd_check_vect_par_cnst_half): New.
17626         * config/aarch64/aarch64-protos.h
17627         (aarch64_simd_check_vect_par_cnst_half): New.
17628         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
17629         the check out to aarch64_simd_check_vect_par_cnst_half.
17630         (vect_par_cnst_lo_half): Likewise.
17631         * config/aarch64/aarch64-simd.md
17632         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
17633         (move_hi_quad_<mode>): Always generate a low mask.
17634
17635 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
17636
17637         * doc/invoke.texi (AVR Options): Add documentation about
17638         __AVR_DEVICE_NAME__ built-in macro.
17639
17640 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
17641
17642         PR target/61948
17643         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
17644         constraints are satisfied.
17645         (<shift>di3_neon): Likewise.
17646
17647 2014-07-31  Richard Biener  <rguenther@suse.de>
17648
17649         PR tree-optimization/61964
17650         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
17651         by structural equality.
17652
17653 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
17654
17655         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
17656         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
17657         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
17658         New enums.
17659         * gcc.c (sanitize_spec_function): Support new option.
17660         (SANITIZER_SPEC): Remove now redundant check.
17661         * opts.c (common_handle_option): Support new option.
17662         (finish_options): Check for incompatibilities.
17663         * toplev.c (process_options): Split userspace-specific checks.
17664
17665 2014-07-31  Richard Biener  <rguenther@suse.de>
17666
17667         * lto-streamer.h (struct output_block): Remove global.
17668         (struct data_in): Remove labels, num_named_labels and
17669         num_unnamed_labels.
17670         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
17671         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
17672
17673 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
17674
17675         PR c++/60517
17676         * common.opt (-Wreturn-local-addr): Moved from c.opt.
17677         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
17678         (isolate_path): New argument to avoid inserting a trap.
17679         (find_implicit_erroneous_behaviour): Handle returning the address
17680         of a local variable.
17681         (find_explicit_erroneous_behaviour): Likewise.
17682
17683 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
17684
17685         PR lto/61868
17686         * toplev.c (init_random_seed): Move piece of code never called to
17687         set_random_seed.
17688         (set_random_seed): see above.
17689
17690 2014-07-31  Tom de Vries  <tom@codesourcery.com>
17691
17692         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
17693
17694 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
17695
17696         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
17697         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
17698
17699 2014-07-31  Richard Biener  <rguenther@suse.de>
17700
17701         * data-streamer.h (streamer_write_data_stream): Declare here,
17702         renamed from ...
17703         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
17704         * lto-cgraph.c (lto_output_node): Adjust.
17705         (lto_output_varpool_node): Likewise.
17706         * data-streamer-out.c (streamer_string_index): Likewise.
17707         (streamer_write_data_stream, lto_append_block): Move from ...
17708         * lto-section-out.c (lto_output_data_stream,
17709         lto_append_block): ... here.
17710
17711 2014-07-30  Mike Stump  <mikestump@comcast.net>
17712
17713         * configure.ac: Also check for popen.
17714         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
17715         * configure: Regenerate.
17716         * config.in:  Regenerate.
17717
17718 2014-07-30  Martin Jambor  <mjambor@suse.cz>
17719
17720         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
17721         parameter to gimple.
17722
17723 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17724
17725         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
17726         address as second parameter to __tpf_eh_return routine.
17727
17728 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
17729
17730         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
17731         Thumb2.
17732
17733 2014-07-30  Tom Tromey  <tromey@redhat.com>
17734
17735         PR c/59855
17736         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
17737         * doc/extend.texi (Type Attributes): Document designated_init
17738         attribute.
17739
17740 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
17741
17742         * graphite-isl-ast-to-gimple.c:
17743         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
17744         (gcc_expression_from_isl_expression): Pass type to
17745         gcc_expression_from_isl_ast_expr_id.
17746
17747 2014-07-30  Richard Biener  <rguenther@suse.de>
17748
17749         * lto-streamer.h (lto_write_data): New function.
17750         * langhooks.c (lhd_append_data): Do not free block.
17751         * lto-section-out.c (lto_write_data): New function writing
17752         raw data to the current section.
17753         (lto_write_stream): Adjust for langhook semantic change.
17754         (lto_destroy_simple_output_block): Write header directly.
17755         * lto-opts.c (lto_write_options): Write options directly.
17756         * lto-streamer-out.c (produce_asm): Write heaeder directly.
17757         (lto_output_toplevel_asms): Likewise.
17758         (copy_function_or_variable): Copy data directly.
17759         (write_global_references): Output index table directly.
17760         (lto_output_decl_state_refs): Likewise.
17761         (write_symbol): Write data directly.
17762         (produce_symtab): Adjust.
17763         (produce_asm_for_decls): Output header and refs directly.
17764
17765 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
17766
17767         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
17768         to speculative_targets
17769         (get_class_context): Fix handling of contextes without outer type;
17770         avoid matching non-polymorphic types in LTO.
17771         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
17772         parameter to speculative_targetsp; handle speculation.
17773         (dump_possible_polymorphic_call_targets): Update dumping.
17774
17775 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
17776
17777         * common.opt (Wodr): Enable by default.
17778
17779 2014-07-29  Olivier Hainque  <hainque@adacore.com>
17780
17781         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
17782
17783 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
17784
17785         PR bootstrap/61914
17786         * gengtype.c (strtoken): New function.
17787         (create_user_defined_type): Replace strtok with strtoken.
17788
17789 2014-07-29  Nathan Sidwell  <nathan@acm.org>
17790
17791         * gcov-io.c (gcov_var): Make hidden.
17792         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
17793         (gcov_do_dump): Declare.
17794         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
17795
17796 2014-07-29  Martin Jambor  <mjambor@suse.cz>
17797
17798         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
17799         parameter to gimple.
17800         (sra_modify_assign): Likewise.
17801
17802 2014-07-29  Richard Biener  <rguenther@suse.de>
17803
17804         PR middle-end/52478
17805         * expr.c (expand_expr_real_2): Revert last change.
17806
17807 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
17808
17809         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
17810         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
17811         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
17812         call.
17813         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
17814         (contains_type_p): Forward declare.
17815         (polymorphic_call_target_hasher::hash): Hash speculative info.
17816         (polymorphic_call_target_hasher::equal): Compare speculative info.
17817         (get_class_context): Handle speuclation.
17818         (contains_type_p): Update.
17819         (get_polymorphic_call_info_for_decl): Update.
17820         (walk_ssa_copies): Break out from ...
17821         (get_polymorphic_call_info): ... here; set speculative context
17822         before giving up.
17823         * ipa-prop.c (ipa_write_indirect_edge_info,
17824         ipa_read_indirect_edge_info): Stream speculative context.
17825         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
17826         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
17827         SPECULATIVE_MAYBE_DERIVED_TYPE).
17828         (possible_polymorphic_call_targets overriders): Update.
17829         (dump_possible_polymorphic_call_targets overriders): Update.
17830         (dump_possible_polymorphic_call_target_p overriders): Update.
17831
17832 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
17833
17834         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
17835         ipa-devirt path; fix thinko there.
17836
17837 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
17838
17839         * config/i386/i386.c (ix86_return_in_memory): Replace one
17840         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
17841
17842 2014-07-28  Marek Polacek  <polacek@redhat.com>
17843
17844         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
17845
17846 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
17847
17848         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
17849         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
17850         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
17851         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
17852         (USE_LD_AS_NEEDED): Likewise.
17853         (ASM_APP_ON): Likewise.
17854         (ASM_APP_OFF): Likewise.
17855         (TARGET_POSIX_IO): Likewise.
17856         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
17857         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
17858         (USE_LD_AS_NEEDED): Likewise.
17859         (ASM_APP_ON): Likewise.
17860         (ASM_APP_OFF): Likewise.
17861         (TARGET_POSIX_IO): Likewise.
17862
17863 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
17864
17865         PR middle-end/61734
17866         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
17867         operators other than the equality operators.
17868
17869 2014-07-28  Richard Biener  <rguenther@suse.de>
17870
17871         PR middle-end/52478
17872         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
17873         sure to register SImode ones, not only >= word_mode ones.
17874         * expr.c (expand_expr_real_2): When expanding -ftrapv
17875         binops do not use OPTAB_LIB_WIDEN.
17876
17877 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
17878
17879         PR middle-end/61919
17880         * tree-outof-ssa.c (insert_partition_copy_on_edge)
17881         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
17882         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
17883         inserting them in the insn stream.
17884
17885 2014-07-28  Marek Polacek  <polacek@redhat.com>
17886
17887         PR middle-end/61913
17888         * common.opt (Wodr): Add Var.
17889
17890 2014-07-28  Richard Biener  <rguenther@suse.de>
17891
17892         PR tree-optimization/61921
17893         * tree-ssa-structalias.c (create_variable_info_for_1): Check
17894         if there is a varpool node before dereferencing it.
17895
17896 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
17897
17898         * graphite-sese-to-poly.c:
17899         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
17900         id of the pbb), which contains pointer to the pbb1.
17901
17902         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
17903
17904 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
17905
17906         * graphite-isl-ast-to-gimple.c:
17907         (graphite_create_new_guard): New function.
17908         (translate_isl_ast_node_if): New function.
17909         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
17910
17911         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
17912
17913 2014-07-27  Anthony Green  <green@moxielogic.com>
17914
17915         * config.gcc: Add moxie-*-moxiebox* configuration.
17916         * config/moxie/moxiebox.h: New file.
17917
17918 2014-07-26  Andrew Pinski  <apinski@cavium.com>
17919
17920         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
17921         from the read only register.
17922
17923 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
17924
17925         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
17926         as the allocation class if it isn't likely to be spilled.
17927
17928 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
17929
17930         * rtl.h (tls_referenced_p): Declare.
17931         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
17932         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
17933         (mips_cannot_force_const_mem): Use tls_referenced_p.
17934         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
17935         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
17936         instead of pa_tls_referenced_p.
17937         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
17938         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
17939         (pa_legitimate_constant_p): Likewise.
17940         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
17941         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
17942         (rs6000_cannot_force_const_mem, rs6000_emit_move)
17943         (rs6000_address_for_altivec): Use tls_referenced_p instead of
17944         rs6000_tls_referenced_p.
17945         (rs6000_tls_symbol_ref_1): Delete.
17946
17947 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
17948
17949         PR target/44551
17950         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
17951         Optimize inverse of a VEC_CONCAT.
17952
17953 2014-07-25  Xinliang David Li  <davidxl@google.com>
17954
17955         * params.def: New parameter.
17956         * coverage.c (get_coverage_counts): Check new flag.
17957         (coverage_compute_profile_id): Check new flag.
17958         (coverage_begin_function): Check new flag.
17959         (coverage_end_function): Check new flag.
17960         * value-prof.c (coverage_node_map_initialized_p): New function.
17961         (init_node_map): Populate map with all functions.
17962         * doc/invoke.texi: Document new parameter.
17963
17964 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
17965             Richard Biener <rguenther@suse.de>
17966
17967         * lto-streamer-out.c (struct sccs): Turn to ...
17968         (class DFS): ... this one; refactor the DFS walk so it can
17969         be re-done on per-SCC basis.
17970         (DFS::DFS): New constructor.
17971         (DFS::~DFS): New destructor.
17972         (hash_tree): Add new MAP argument holding in-SCC hash values;
17973         remove POINTER_TYPE hashing hack.
17974         (scc_entry_compare): Rename to ...
17975         (DFS::scc_entry_compare): ... this one.
17976         (hash_scc): Rename to ...
17977         (DFS::hash_scc): ... this one; pass output_block instead
17978         of streamer_cache; work harder to get unique and stable SCC
17979         hashes.
17980         (DFS_write_tree): Rename to ...
17981         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
17982         (lto_output_tree): Update.
17983
17984 2014-07-25  Andi Kleen  <ak@linux.intel.com>
17985
17986         * lto-streamer-out.c (hash_tree): Convert to inchash.
17987
17988 2014-07-25  Andi Kleen  <ak@linux.intel.com>
17989
17990         * tree.c (build_type_attribute_qual_variant): Use inchash.
17991         (type_hash_list): Dito.
17992         (attribute_hash_list): Dito
17993         (iterative_hstate_expr): Dito.
17994         (iterative_hash_expr): Dito.
17995         (build_range_type_1): Dito.
17996         (build_array_type_1): Dito.
17997         (build_function_type): Dito.
17998         (build_method_type_directly): Dito.
17999         (build_offset_type): Dito.
18000         (build_complex_type): Dito.
18001         (make_vector_type): Dito.
18002         * tree.h (iterative_hash_expr): Add compat wrapper.
18003         (iterative_hstate_expr): Add.
18004
18005 2014-07-25  Andi Kleen  <ak@linux.intel.com>
18006
18007         * Makefile.in (OBJS): Add inchash.o.
18008         (PLUGIN_HEADERS): Add inchash.h.
18009         * ipa-devirt.c: Include inchash.h.
18010         * lto-streamer-out.c: Dito.
18011         * tree-ssa-dom.c: Dito.
18012         * tree-ssa-pre.c: Dito.
18013         * tree-ssa-sccvn.c: Dito.
18014         * tree-ssa-tail-merge.c: Dito.
18015         * asan.c: Dito.
18016         * tree.c (iterative_hash_hashval_t): Move to ...
18017         (iterative_hash_host_wide_int): Move to ...
18018         * inchash.c: Here. New file.
18019         * tree.h (iterative_hash_hashval_t): Move to ...
18020         (iterative_hash_host_wide_int): Move to ...
18021         * inchash.h: Here. New file.
18022
18023 2014-07-25  Richard Biener  <rguenther@suse.de>
18024
18025         PR middle-end/61762
18026         PR middle-end/61894
18027         * fold-const.c (native_encode_int): Add and handle offset
18028         parameter to do partial encodings of expr.
18029         (native_encode_fixed): Likewise.
18030         (native_encode_real): Likewise.
18031         (native_encode_complex): Likewise.
18032         (native_encode_vector): Likewise.
18033         (native_encode_string): Likewise.
18034         (native_encode_expr): Likewise.
18035         * fold-const.c (native_encode_expr): Add offset parameter
18036         defaulting to -1.
18037         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
18038         (fold_ctor_reference): Handle all reads from tcc_constant
18039         ctors.
18040
18041 2014-07-25  Richard Biener  <rguenther@suse.de>
18042
18043         * tree-inline.c (estimate_move_cost): Mark speed_p argument
18044         as possibly unused.
18045
18046 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
18047
18048         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
18049
18050 2014-07-24  Kyle McMartin  <kyle@redhat.com>
18051
18052         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
18053
18054 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18055
18056         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
18057         Add prototype.
18058         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
18059         function.
18060         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
18061         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
18062         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
18063
18064 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18065
18066         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
18067         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
18068         aggregate types.  Instead, *all* aggregate types, except for single-
18069         element or homogeneous float/vector aggregates, are quadword-aligned
18070         if required by their type alignment.  Issue -Wpsabi note when a type
18071         is now treated differently than before.
18072
18073 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18074
18075         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
18076         does not fit fully into floating-point registers, and there is still
18077         space in the register parameter area, use GPRs to pass those parts
18078         of the argument.  Issue -Wpsabi note if any parameter is now treated
18079         differently than before.
18080         (rs6000_arg_partial_bytes): Update.
18081
18082 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
18083
18084         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
18085
18086 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
18087
18088         * rtl.h (target_rtl): Remove lang_dependent_initialized.
18089         * toplev.c (initialize_rtl): Don't use it.  Move previously
18090         "language-dependent" calls to...
18091         (backend_init): ...here.
18092         (lang_dependent_init_target): Don't set lang_dependent_initialized.
18093         Assert that RTL initialization hasn't happend yet.
18094
18095 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
18096
18097         PR rtl-optimization/61629
18098         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
18099         they have already been initialized.
18100
18101 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
18102
18103         PR middle-end/61268
18104         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
18105         DECL_INCOMING_RTL and entry_parm.
18106         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
18107         * calls.c (load_register_parameters): Likewise argument values.
18108         (emit_library_call_value_1, store_one_arg): Likewise argument
18109         save areas.
18110         * config/i386/i386.c (assign_386_stack_local): Likewise the local
18111         stack slot.
18112         * explow.c (validize_mem): Modify the argument in-place.
18113
18114 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
18115
18116         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
18117         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
18118
18119 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
18120
18121         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
18122         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
18123
18124 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
18125
18126         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
18127         (aarch64_save_callee_saves): New parameter "skip_wb".
18128         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
18129
18130 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
18131
18132         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
18133         "wb_candidate2".
18134         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
18135
18136 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
18137
18138         * graphite-isl-ast-to-gimple.c:
18139         (graphite_create_new_loop): Add calling of isl_id_free to properly
18140         decrement reference counts.
18141
18142         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
18143
18144 2014-07-24  Martin Liska  <mliska@suse.cz>
18145         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
18146         function used.
18147         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
18148         (rs6000_code_end): Likewise.
18149
18150 2014-07-24  Martin Liska  <mliska@suse.cz>
18151
18152         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
18153         symtab_node funtion used.
18154         (rs6000_xcoff_declare_object_name): Likewise.
18155
18156 2014-07-24  Martin Liska  <mliska@suse.cz>
18157
18158         * cgraphunit.c (compile): Correct function used.
18159
18160 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
18161
18162         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
18163         as non-indexable.
18164
18165 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
18166
18167         PR lto/61802
18168         * varasm.c (bss_initializer_p): Handle offlined ctors.
18169         (align_variable, get_variable_align): Likewise.
18170         (make_decl_one_only): Likewise.
18171         (default_binds_local_p_1): Likewise.
18172         (decl_binds_to_current_def_p): Likewise.
18173         (get_variable_section): Get constructor if it is offlined.
18174         (assemble_variable_contents): Sanity check that the caller
18175         streamed in the ctor in LTO.
18176
18177 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
18178
18179         * graphite-isl-ast-to-gimple.c:
18180         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
18181         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
18182         isl_ast_op_pdiv_r to the different case.
18183
18184         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
18185
18186 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18187
18188         PR middle-end/61876
18189         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
18190         when flag_errno_math is on.
18191
18192 2014-07-24  Martin Liska  <mliska@suse.cz>
18193
18194         * cgraph.h (varpool_node):
18195         (availability get_availability (void)):
18196         created from cgraph_variable_initializer_availability
18197         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
18198         created from: cgraph_variable_initializer_availability
18199         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
18200         (void finalize_named_section_flags (void)):
18201         created from varpool_finalize_named_section_flags
18202         (bool assemble_decl (void)): created from varpool_assemble_decl
18203         (void analyze (void)): created from varpool_analyze_node
18204         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
18205         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
18206         (void remove_initializer (void)): created from varpool_remove_initializer
18207         (tree get_constructor (void)): created from varpool_get_constructor
18208         (bool externally_visible_p (void)): created from varpool_externally_visible_p
18209         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
18210         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
18211         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
18212         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
18213         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
18214         (static bool output_variables (void)): created from varpool_output_variables
18215         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
18216         created from varpool_extra_name_alias
18217         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
18218         (static void dump_varpool (FILE *f)): created from dump_varpool
18219         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
18220         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
18221         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
18222         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
18223         (void assemble_aliases (void)): created from assemble_aliases
18224
18225 2014-07-24  Martin Liska  <mliska@suse.cz>
18226
18227         * cgraph.h (symtab_node):
18228         (void register_symbol (void)): created from symtab_register_node
18229         (void remove (void)): created from symtab_remove_node
18230         (void dump (FILE *f)): created from dump_symtab_node
18231         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
18232         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
18233         (struct ipa_ref *add_reference (symtab_node *referred_node,
18234         enum ipa_ref_use use_type)): created from add_reference
18235         (struct ipa_ref *add_reference (symtab_node *referred_node,
18236         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
18237         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
18238         gimple stmt)): created from maybe_add_reference
18239         (bool semantically_equivalent_p (symtab_node *target)): created from
18240         symtab_semantically_equivalent_p
18241         (void remove_from_same_comdat_group (void)): created from
18242         remove_from_same_comdat_group
18243         (void add_to_same_comdat_group (symtab_node *old_node)): created from
18244         symtab_add_to_same_comdat_group
18245         (void dissolve_same_comdat_group_list (void)): created from
18246         symtab_dissolve_same_comdat_group_list
18247         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
18248         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
18249         created from symtab_alias_ultimate_target
18250         (inline symtab_node *next_defined_symbol (void)): created from
18251         symtab_next_defined_symbol
18252         (bool resolve_alias (symtab_node *target)): created from
18253         symtab_resolve_alias
18254         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
18255         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
18256         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
18257         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
18258         (void set_section (const char *section)): created from set_section_1
18259         (enum availability get_availability (void)): created from symtab_node_availability
18260         (void make_decl_local (void)): created from symtab_make_decl_local
18261         (bool real_symbol_p (void)): created from symtab_read_node
18262         (can_be_discarded_p (void)): created from symtab_can_be_discarded
18263         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
18264         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
18265         symtab_in_same_comdat_p;
18266         (bool address_taken_from_non_vtable_p (void)): created from
18267         address_taken_from_non_vtable_p
18268         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
18269         (static void dump_table (FILE *)): created from dump_symtab
18270         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
18271         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
18272         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
18273         symtab_used_from_object_file_p
18274         (void dump_base (FILE *)): created from dump_symtab_base
18275         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
18276         (void unregister (void)): created from symtab_unregister_node
18277         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
18278         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
18279         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
18280         symtab_nonoverwritable_alias_1
18281         * cgraph.h (cgraph_node):
18282         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
18283         created from cgraph_remove_node_and_inline_clones
18284         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
18285         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
18286         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
18287         (cgraph_node *function_symbol (enum availability *avail = NULL)):
18288         created from cgraph_function_node
18289         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
18290         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
18291         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
18292         created from cgraph_create_clone
18293         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
18294         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
18295         created from cgraph_create_virtual_clone
18296         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
18297         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
18298         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
18299         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
18300         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
18301         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
18302         created from cgraph_function_version_info
18303         (struct cgraph_function_version_info *insert_new_function_version (void)):
18304         created from insert_new_cgraph_node_version
18305         (struct cgraph_function_version_info *function_version (void)): created from
18306         get_cgraph_node_version
18307         (void analyze (void)): created from analyze_function
18308         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
18309         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
18310         tree real_alias) cgraph_add_thunk
18311         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
18312         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
18313         created from cgraph_function_or_thunk_node
18314         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
18315         created from expand_thunk
18316         (void reset (void)): created from cgraph_reset_node
18317         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
18318         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
18319         (void remove (void)): created from cgraph_remove_node
18320         (void dump (FILE *f)): created from dump_cgraph_node
18321         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
18322         (bool get_body (void)): created from cgraph_get_body
18323         (void release_body (void)): created from cgraph_release_function_body
18324         (void unnest (void)): created from cgraph_unnest_node
18325         (void make_local (void)): created from cgraph_make_node_local
18326         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
18327         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
18328         gcov_type count, int freq)): created from cgraph_create_edge
18329         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
18330         gcov_type count, int freq)): created from cgraph_create_indirect_edge
18331         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
18332         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
18333         created from cgraph_create_edge_including_clones
18334         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
18335         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
18336         (void remove_callers (void)): created from cgraph_node_remove_callers
18337         (void remove_callees (void)): created from cgraph_node_remove_callees
18338         (enum availability get_availability (void)): created from cgraph_function_body_availability
18339         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
18340         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
18341         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
18342         (void call_duplication_hooks (cgraph_node *node2)): created from
18343         cgraph_call_node_duplication_hooks
18344         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
18345         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
18346         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
18347         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
18348         (void call_function_insertion_hooks (void)):
18349         created from cgraph_call_function_insertion_hooks
18350         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
18351         (bool local_p (void)): created from cgraph_local_node
18352         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
18353         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
18354         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
18355         (inline bool only_called_directly_or_aliased_p (void)):
18356         created from cgraph_only_called_directly_or_aliased_p
18357         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
18358         created from cgraph_will_be_removed_from_program_if_no_direct_calls
18359         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
18360         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
18361         (bool can_remove_if_no_direct_calls_p (void)):
18362         created from cgraph_can_remove_if_no_direct_calls_p
18363         (inline bool has_gimple_body_p (void)):
18364         created from cgraph_function_with_gimple_body_p
18365         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
18366         (static void dump_cgraph (FILE *f)): created from dump_cgraph
18367         (static inline void debug_cgraph (void)): created from debug_cgraph
18368         (static void record_function_versions (tree decl1, tree decl2)):
18369         created from record_function_versions
18370         (static void delete_function_version (tree decl)):
18371         created from delete_function_version
18372         (static void add_new_function (tree fndecl, bool lowered)):
18373         created from cgraph_add_new_function
18374         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
18375         (static cgraph_node * create (tree decl)): created from cgraph_create_node
18376         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
18377         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
18378         (static cgraph_node *get_for_asmname (tree asmname)):
18379         created from cgraph_node_for_asm
18380         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
18381         created from cgraph_same_body_alias
18382         (static bool used_from_object_file_p_worker (cgraph_node *node,
18383         void *): new function
18384         (static bool non_local_p (cgraph_node *node, void *)):
18385         created from cgraph_non_local_node_p_1
18386         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
18387         created from verify_cgraph
18388         (static bool make_local (cgraph_node *node, void *)):
18389         created from cgraph_make_node_local
18390         (static cgraph_node *create_alias (tree alias, tree target)):
18391         created from cgraph_create_function_alias
18392         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
18393         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
18394         created from cgraph_create_edge_1
18395         * cgraph.h (varpool_node):
18396         (void remove (void)): created from varpool_remove_node
18397         (void dump (FILE *f)): created from dump_varpool_node
18398
18399 2014-07-24  Richard Biener  <rguenther@suse.de>
18400
18401         PR ipa/61823
18402         * tree-ssa-structalias.c (create_variable_info_for_1):
18403         Use varpool_get_constructor.
18404         (create_variable_info_for): Likewise.
18405
18406 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
18407
18408         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
18409         subtract outgoing area size when restoring stack_pointer_rtx.
18410
18411 2014-07-24  Nick Clifton  <nickc@redhat.com>
18412
18413         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
18414         that operations are taking place in parallel.
18415         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
18416
18417 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
18418
18419         * omp-low.c (extract_omp_for_data): Add missing break statement.
18420
18421 2014-07-24  Richard Biener  <rguenther@suse.de>
18422
18423         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
18424         * tree-inline.c (estimate_move_cost): Add speed_p parameter
18425         and adjust MOVE_RATIO query accordingly.
18426         (estimate_num_insns): Adjust callers.
18427         * ipa-prop.c (ipa_populate_param_decls): Likewise.
18428         * ipa-cp.c (gather_context_independent_values,
18429         estimate_local_effects): Likewise.
18430         * ipa-split.c (consider_split): Likewise.
18431
18432 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
18433
18434         * config/i386/driver-i386.c: Remove names of unused arguments and
18435         unnecessary unused attributes.
18436         * config/i386/host-mingw32.c: Likewise.
18437         * config/i386/i386.c: Likewise.
18438         * config/i386/winnt-stubs.c: Likewise.
18439         * config/i386/winnt.c: Likewise.
18440
18441 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18442
18443         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
18444         (aarch64_gen_loadwb_pair): New helper function.
18445         (aarch64_expand_epilogue): Simplify code using new helper functions.
18446         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
18447
18448 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18449
18450         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
18451         (aarch64_gen_storewb_pair): New helper function.
18452         (aarch64_expand_prologue): Simplify code using new helper functions.
18453         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
18454
18455 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18456
18457         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
18458         Rename to aarch64_save_callee_saves, remove restore code.
18459         (aarch64_restore_callee_saves): New function.
18460
18461 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18462
18463         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
18464         (aarch64_save_callee_saves): New function to handle reg save
18465         for both core and vectore regs.
18466
18467 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18468
18469         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
18470         (aarch64_gen_store_pair): New helper function.
18471         (aarch64_save_or_restore_callee_save_registers)
18472         (aarch64_save_or_restore_fprs): Use new helper functions.
18473
18474 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18475
18476         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
18477         (aarch64_save_or_restore_callee_save_registers)
18478         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
18479
18480 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18481
18482         * config/aarch64/aarch64.c
18483         (aarch64_save_or_restore_callee_save_registers)
18484         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
18485
18486 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18487
18488         * config/aarch64/aarch64.c
18489         (aarch64_save_or_restore_callee_save_registers)
18490         (aarch64_save_or_restore_fprs): Remove 'increment'.
18491
18492 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18493
18494         * config/aarch64/aarch64.c
18495         (aarch64_save_or_restore_callee_save_registers)
18496         (aarch64_save_or_restore_fprs): Use register offset in
18497         cfun->machine->frame.reg_offset.
18498
18499 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18500
18501         * config/aarch64/aarch64.c
18502         (aarch64_save_or_restore_callee_save_registers)
18503         (aarch64_save_or_restore_fprs): Remove base_rtx.
18504
18505 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18506
18507         * config/aarch64/aarch64.c
18508         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
18509         to 'start_offset'.  Remove local variable 'start_offset'.
18510
18511 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18512
18513         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
18514         type to HOST_WIDE_INT.
18515
18516 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18517
18518         * config/aarch64/aarch64.c (aarch64_expand_prologue)
18519         (aarch64_save_or_restore_fprs)
18520         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
18521
18522 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18523
18524         * config/arm/t-rtems-eabi: Add
18525         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
18526         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
18527         mbig-endian/mthumb/march=armv7-r, and
18528         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
18529         multilibs.
18530
18531 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18532             Chris Johns <chrisj@rtems.org>
18533             Joel Sherrill <joel.sherrill@oarcorp.com>
18534
18535         * config.gcc: Add nios2-*-rtems*.
18536         * config/nios2/rtems.h: New file.
18537         * gcc/config/nios2/t-rtems: New file.
18538
18539 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
18540
18541         PR target/61396
18542         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
18543         constant numbers, not general constants.
18544         (rs6000_expand_vector_init): Ditto.
18545
18546 2014-07-23  Nathan Sidwell  <nathan@acm.org>
18547
18548         * gcov-tool.c (gcov_list): Declare here.
18549         (set_gcov_list): Remove.
18550         (gcov_output_files): Set gcov_list directly.
18551
18552 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
18553
18554         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
18555
18556 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18557
18558         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
18559         callee-saved registers are available for padding purpose
18560         and r3 is not mandatory, then prefer use those callee-saved
18561         instead of r3.
18562
18563 2014-07-23  Richard Biener  <rguenther@suse.de>
18564
18565         * params.def (PARAM_MAX_COMBINE_INSNS): New.
18566         * combine.c: Include statistics.h and params.h.
18567         (combine_instructions): Guard three and four insn combines
18568         with max-combine-insns value.  Record statistics for combines
18569         performed.
18570         * doc/invoke.texi (max-combine-insns): Document new param.
18571
18572 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
18573
18574         * graphite-isl-ast-to-gimple.c:
18575         (translate_isl_ast_node_block): New function.
18576         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
18577
18578         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
18579         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
18580
18581 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
18582
18583         * graphite-isl-ast-to-gimple.c:
18584         (get_max_schedule_dimensions): New function.
18585         (extend_schedule): Likewise.
18586         (generate_isl_schedule): Add calling of extend_schedule and
18587         get_max_schedule_dimensions.
18588
18589 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18590
18591         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
18592         (case UNSPEC): Handle UNSPEC_RBIT.
18593
18594 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18595
18596         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
18597         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
18598
18599 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18600
18601         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
18602
18603 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
18604
18605         * graphite-isl-ast-to-gimple.c:
18606         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
18607         (ivs_params_clear):
18608         (build_iv_mapping): New function.
18609         (translate_isl_ast_node_user): Likewise.
18610         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
18611
18612         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
18613         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
18614         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
18615
18616 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
18617
18618         PR target/55701
18619         * config/arm/arm.md (setmem): New pattern.
18620         * config/arm/arm-protos.h (struct tune_params): New fields.
18621         (arm_gen_setmem): New prototype.
18622         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
18623         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
18624         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
18625         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
18626         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
18627         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
18628         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
18629         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
18630         (arm_const_inline_cost): New function.
18631         (arm_block_set_max_insns): New function.
18632         (arm_block_set_non_vect_profit_p): New function.
18633         (arm_block_set_vect_profit_p): New function.
18634         (arm_block_set_unaligned_vect): New function.
18635         (arm_block_set_aligned_vect): New function.
18636         (arm_block_set_unaligned_non_vect): New function.
18637         (arm_block_set_aligned_non_vect): New function.
18638         (arm_block_set_vect, arm_gen_setmem): New functions.
18639
18640 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
18641
18642         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
18643
18644 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
18645
18646         PR target/61855
18647         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
18648         out of #ifdef __OPTIMIZE__.
18649
18650 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
18651
18652         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
18653         different trapping status if -fnon-call-exceptions is enabled.
18654
18655 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
18656
18657         * expr.c (store_field): Handle VOIDmode for calls that return values
18658         in multiple locations.
18659
18660 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18661
18662         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
18663         (altivec_vsldoi_<mode>): Likewise.
18664
18665 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
18666
18667         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
18668         to the number of characters in the line.
18669
18670 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
18671
18672         * graphite-isl-ast-to-gimple.c: Add using of
18673         build_nonstandard_integer_type instead of int128_integer_type_node.
18674
18675 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
18676
18677         * toplev.c (output_stack_usage): Adjust the location of the warning.
18678
18679 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
18680
18681         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
18682         (*membar_storeload): Disable for LEON3.
18683
18684 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18685
18686         PR rtl-optimization/61461
18687         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
18688
18689 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
18690
18691         PR target/61794
18692         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
18693         Fix instruction constraint.
18694         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
18695
18696 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
18697
18698         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
18699
18700 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
18701
18702         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
18703         GNU coding standards.
18704         (nds32_register_move_cost): Likewise.
18705         (nds32_memory_move_cost): Likewise.
18706         (nds32_address_cost): Likewise.
18707
18708 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
18709
18710         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
18711
18712 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
18713
18714         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
18715         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
18716         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
18717         (HAVE_sync_compare_and_swapqi): Define.
18718         (HAVE_sync_compare_and_swaphi): Likewise.
18719         (HAVE_sync_compare_and_swapsi): Likewise.
18720
18721 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
18722
18723         * config/mips/p5600.md: Add missing cpu tests.
18724
18725 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18726
18727         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
18728         (vmla_f64): Likewise.
18729         (vfms_f64): Likewise.
18730         (vmls_f64): Likewise.
18731
18732 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18733
18734         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
18735         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
18736
18737 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18738
18739         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
18740         (vmlal_high_lane_s32): Likewise.
18741         (vmlal_high_lane_u16): Likewise.
18742         (vmlal_high_lane_u32): Likewise.
18743         (vmlsl_high_lane_s16): Likewise.
18744         (vmlsl_high_lane_s32): Likewise.
18745         (vmlsl_high_lane_u16): Likewise.
18746         (vmlsl_high_lane_u32): Likewise.
18747
18748 2014-07-17  Terry Guo  <terry.guo@arm.com>
18749
18750         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
18751         (alus_reg): Renamed to alus_sreg.
18752         * config/arm/arm-fixed.md: Change type of non-dsp instructions
18753         from alu_reg to alu_sreg.  Change type of dsp instructions from
18754         alu_reg to alu_dsp_reg.
18755         * config/arm/thumb1.md: Likewise.
18756         * config/arm/thumb2.md: Likewise.
18757         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
18758         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
18759         with alu_sreg and alus_sreg.
18760         * config/arm/arm1026ejs.md (alu_op): Likewise.
18761         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
18762         * config/arm/arm926ejs.md (9_alu_op): Likewise.
18763         * config/arm/fa526.md (526_alu_op): Likewise.
18764         * config/arm/fa606te.md (606te_alu_op): Likewise.
18765         * config/arm/fa626te.md (626te_alu_op): Likewise.
18766         * config/arm/fa726te.md (726te_alu_op): Likewise.
18767         * config/arm/fmp626.md (mp626_alu_op): Likewise.
18768         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
18769         alu_sreg, alu_dsp_reg and alus_sreg.
18770         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
18771         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
18772         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
18773         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
18774         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
18775         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
18776         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
18777         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
18778         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
18779         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
18780         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
18781         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
18782         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
18783         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
18784         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
18785         alus_reg to alus_sreg.
18786
18787 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
18788
18789         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
18790         infinity format.
18791
18792 2014-07-17  Richard Biener  <rguenther@suse.de>
18793
18794         PR rtl-optimization/61801
18795         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
18796         don't set reg_pending_barrier if it appears in a debug-insn.
18797
18798 2014-07-16  DJ Delorie  <dj@redhat.com>
18799
18800         * config/rx/rx.c (rx_option_override): Fix alignment values.
18801         (rx_align_for_label): Likewise.
18802
18803 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
18804
18805         PR target/61737.
18806         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
18807         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
18808         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
18809         functions.
18810         (cris_print_index, cris_print_operand, cris_constant_index_p)
18811         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
18812         (cris_address_cost): Ditto last CONSTANT_P.
18813         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
18814         callers changed.  Yield cris_offsettable_symbol for non-PIC
18815         constant symbolic expressions including labels.  Yield cris_unspec
18816         for all unspecs.
18817         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
18818         target to pic_offset_table_rtx for calls that will likely go
18819         through PLT, const0_rtx when they can't.  All callers changed.
18820         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
18821         symbolic expressions to be PICified.  Remove second, redundant,
18822         assert on can_create_pseudo_p returning non-zero.  Use
18823         replace_equiv_address_nv, not replace_equiv_address, for final
18824         operand update.
18825         * config/cris/cris.md ("movsi"): Move variable t to pattern
18826         toplevel. Adjust assert for new cris_symbol_type member.  Use
18827         CONSTANT_P instead of CONSTANT_ADDRESS_P.
18828         ("*movsi_internal") <case 9>: Make check for valid unspec operands
18829         for lapc stricter.
18830         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
18831         ("call", "call_value"): Use second incoming operand as a marker
18832         for pic-offset-table-register being used.
18833         ("*expanded_call_non_v32", "*expanded_call_v32")
18834         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
18835         second incoming operand to CALL, match cris_call_type_marker.
18836         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
18837         ("*expanded_call_side"): Ditto.  Fix typo in comment.
18838         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
18839         CONSTANT_P.
18840         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
18841         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
18842         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
18843         users changed.  Add members cris_offsettable_symbol and cris_unspec.
18844         (cris_symbol_type): Rename from cris_pic_symbol_type.
18845         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
18846         just CONSTANT_P.
18847         * config/cris/cris-protos.h (cris_symbol_type_of,
18848         cris_expand_pic_call_address): Adjust prototypes.
18849         (cris_legitimate_constant_p): New prototype.
18850
18851         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
18852         an existing tmake_file.  Don't add t-slibgcc and t-linux.
18853
18854 2014-07-17  Jason Merrill  <jason@redhat.com>
18855
18856         PR c++/61623
18857         * symtab.c (symtab_remove_from_same_comdat_group): Also
18858         set_comdat_group to NULL_TREE.
18859         (verify_symtab): Fix diagnostic.
18860
18861 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
18862
18863         PR target/61662
18864         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
18865
18866 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
18867
18868         Support location tracking for built-in macro tokens
18869         * input.h (is_location_from_builtin_token): New function declaration.
18870         * input.c (is_location_from_builtin_token): New function definition.
18871         * toplev.c (general_init): Tell libcpp what the pre-defined
18872         spelling location for built-in tokens is.
18873
18874 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
18875
18876         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
18877         on the FUNCTION_DECL.
18878
18879 2014-07-16  Richard Biener  <rguenther@suse.de>
18880
18881         PR other/61782
18882         * doc/extend.texi (always_inline): Clarify.
18883
18884 2014-07-15  Eric Christopher  <echristo@gmail.com>
18885
18886         * doc/invoke.texi (Link Options): Document -z option.
18887
18888 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
18889
18890         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
18891         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
18892
18893 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
18894
18895         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
18896
18897 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
18898
18899         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
18900         varpool_assemble_decl.
18901         * varpool.c (varpool_assemble_decl): Assert that node->definition is
18902         true.
18903
18904 2014-07-15  Michael Matz  <matz@suse.de>
18905
18906         PR rtl-optimization/61772
18907         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
18908
18909 2014-07-15  Richard Biener  <rguenther@suse.de>
18910
18911         * opts.c (default_options_table): Disable bit-ccp at -Og.
18912
18913 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
18914
18915         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
18916
18917 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
18918
18919         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
18920         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
18921         call langhook for unknown declaration.
18922         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
18923         * tree.h (DECL_ARGUMENTS): Update.
18924         * print-tree.c (print_node): Update.
18925         * tree-core.h (tree_decl_non_common): Remove arguments.
18926         (tree_function_decl): Add arguments.
18927
18928 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
18929
18930         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
18931
18932 2014-07-14  Richard Biener  <rguenther@suse.de>
18933
18934         PR tree-optimization/61779
18935         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
18936         simplifying a condition.
18937
18938 2014-07-14  Richard Biener  <rguenther@suse.de>
18939
18940         * builtins.c (c_strlen): Make only_value == 2 really only
18941         affect warning generation.
18942
18943 2014-07-14  Richard Biener  <rguenther@suse.de>
18944
18945         PR tree-optimization/61757
18946         PR tree-optimization/61783
18947         PR tree-optimization/61787
18948         * tree-ssa-dom.c (record_equality): Revert canonicalization
18949         change and add comment.
18950         (propagate_rhs_into_lhs): Revert previous fix, removing
18951         loop depth restriction again.
18952
18953 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18954
18955         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
18956         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
18957         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
18958         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
18959         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
18960         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
18961         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
18962
18963 2014-07-14  Richard Biener  <rguenther@suse.de>
18964
18965         * cgraph.h (decl_in_symtab_p): Make inline.
18966
18967 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
18968
18969         PR middle-end/61294
18970         * doc/invoke.texi (-Wmemset-transposed-args): Document.
18971
18972         PR target/61656
18973         * config/i386/i386.c (classify_argument): Don't merge classes above
18974         number of words.
18975
18976 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
18977
18978         * cgraph.h (symtab_node): Add nonzero_address.
18979         (decl_in_symtab_p): Break out from ...
18980         (symtab_get_node): ... here.
18981         * fold-const.c: Include cgraph.h
18982         (tree_single_nonzero_warnv_p): Use symtab to determine
18983         if symbol is non-zero.
18984         * symtab.c (symtab_node::nonzero_address): New method.
18985
18986 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
18987
18988         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
18989         forgotten in previous commit.
18990
18991 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
18992
18993         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
18994         on builtin types.
18995         * ipa-devirt.c: Include stor-layout.h and intl.h
18996         (odr_subtypes_equivalent_p): New function.
18997         (warn_odr): New function.
18998         (warn_type_mismatch): New function.
18999         (odr_types_equivalent_p): New function.
19000         (add_type_duplicate): Use it.
19001         * common.opt (Wodr): New flag.
19002         * doc/invoke.texi (Wodr): Document new warning.
19003
19004 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
19005
19006         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
19007         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
19008         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
19009         (varpool_get_constructor): Push CTORS_IN timevar.
19010         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
19011
19012 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
19013
19014         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
19015         Remove VOID_FTYPE_PUSHORT.
19016         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
19017         Change code to USHORT_FTYPE_VOID.
19018         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
19019         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
19020         (ix86_atomic_assign_expand_fenv): Update for
19021         __builtin_ia32_fnstsw changes.
19022         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
19023         (fnstsw): Change operand 0 to nonimmediate operand.
19024
19025 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
19026
19027         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
19028         (varpool_get_constructor): New function.
19029         (varpool_ctor_useable_for_folding_p): Break out from ...
19030         (ctor_for_folding): ... here; use varpool_get_constructor.
19031         (varpool_assemble_decl): Likewise.
19032         * lto-streamer.h (struct output_block): Turn cgraph_node
19033         to symbol filed.
19034         (lto_input_variable_constructor): Declare.
19035         * ipa-visibility.c (function_and_variable_visibility): Use
19036         varpool_get_constructor.
19037         * cgraph.h (varpool_get_constructor): Declare.
19038         (varpool_ctor_useable_for_folding_p): New function.
19039         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
19040         parameter; return error_mark_node for non-trivial constructors.
19041         (lto_write_tree_1, DFS_write_tree): Update use of
19042         get_symbol_initial_value.
19043         (output_function): Update initialization of symbol.
19044         (output_constructor): New function.
19045         (copy_function): Rename to ..
19046         (copy_function_or_variable): ... this one; handle vars too.
19047         (lto_output): Output variable sections.
19048         * lto-streamer-in.c (input_constructor): New function.
19049         (lto_read_body): Rename from ...
19050         (lto_read_body_or_constructor): ... this one; handle vars too.
19051         (lto_input_variable_constructor): New function.
19052         * ipa-prop.c (ipa_prop_write_jump_functions,
19053         ipa_prop_write_all_agg_replacement): Update.
19054         * lto-cgraph.c (compute_ltrans_boundary): Use it.
19055         (output_cgraph_opt_summary): Set symbol to NULL.
19056
19057 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
19058
19059         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
19060         non-polymorphic types.
19061         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
19062         * ipa-devirt.c (types_same_for_odr): Do not explode when one
19063         of types is not polymorphic.
19064
19065 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
19066
19067         * lra-constraints.c (remove_inheritance_pseudos): Process
19068         destination pseudo too.
19069
19070 2014-07-11  Rong Xu  <xur@google.com>
19071
19072         * gcov-tool.c (gcov_output_files): Fix build error introduced in
19073         commit r212448.
19074
19075 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
19076
19077         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
19078         * config/avr/avr-devices.c (AVR_MCU): Same.
19079         (avr_mcu_types): add text start value to end of device list.
19080         * config/avr/avr-mcus.def: Add text section start for all devices.
19081         (ata5782): Add new avr5 device.
19082         (ata5831): Same.
19083         * config/avr/avr-tables.opt: Regenerate.
19084         * config/avr/avr.h: Add declaration for text section start handler.
19085         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
19086         SPEC functions.
19087         (LINK_SPEC): Include text section start handler to linker spec.
19088         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
19089         pass -Ttext option to linker if the text section start for the device
19090         is not zero.
19091         * config/avr/t-multilib: Regenerate.
19092         * doc/avr-mmcu.texi: Regenerate.
19093
19094 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
19095
19096         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
19097         * config/rs6000/aix52.h (LINK_SPEC): Same.
19098         * config/rs6000/aix53.h (LINK_SPEC): Same.
19099         * config/rs6000/aix61.h (LINK_SPEC): Same.
19100         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
19101
19102 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
19103
19104         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
19105         (graphite_verify): New function.
19106         (ivs_params_clear): New function.
19107         (gcc_expression_from_isl_ast_expr_id): New function.
19108         (gcc_expression_from_isl_expr_int): New function.
19109         (binary_op_to_tree): New function.
19110         (ternary_op_to_tree): New function.
19111         (unary_op_to_tree): New function.
19112         (nary_op_to_tree): New function.
19113         (gcc_expression_from_isl_expr_op): New function.
19114         (gcc_expression_from_isl_expression): New function.
19115         (graphite_create_new_loop): New function.
19116         (translate_isl_ast_for_loop): New function.
19117         (get_upper_bound): New function.
19118         (graphite_create_new_loop_guard): New function.
19119         (translate_isl_ast_node_for): New function.
19120         (translate_isl_ast): New function.
19121         (add_parameters_to_ivs_params): New function.
19122         (scop_to_isl_ast): New parameter ip.
19123         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
19124
19125 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
19126
19127         * config/xtensa/predicates.md (call expander): Update for
19128         DECL_SECTION_NAME being string.
19129
19130 2014-07-11  Richard Biener  <rguenther@suse.de>
19131
19132         PR middle-end/61473
19133         * builtins.c (fold_builtin_memory_op): Inline memory moves that
19134         can be implemented with a single load followed by a single store.
19135         (c_strlen): Only warn when only_value is not 2.
19136
19137 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
19138
19139         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
19140
19141 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
19142
19143         PR target/61561
19144         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
19145         (*movhi_bytes): Likewise.
19146         (*arm_movqi_insn): Likewise.
19147
19148 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
19149
19150         PR target/56858
19151         * config/alpha/alpha.c: Include tree-pass.h, context.h
19152         and pass_manager.h.
19153         (pass_data_handle_trap_shadows): New pass.
19154         (pass_handle_trap_shadows::gate): New pass gate function.
19155         (make_pass_handle_trap_shadows): New function.
19156         (rest_of_handle_trap_shadows): Ditto.
19157
19158         (alpha_align_insns_1): Rename from alpha_align_insns.
19159         (pass_data_align_insns): New pass.
19160         (pass_align_insns::gate): New pass gate function.
19161         (make_pass_aling_insns): New function.
19162         (rest_of_align_insns): Ditto.
19163         (alpha_align_insns): Ditto.
19164
19165         (alpha_option_override): Declare handle_trap_shadows info
19166         and align_insns_info.  Register handle_trap_shadows and align_insns
19167         passes here.
19168         (alpha_reorg): Do not call alpha_trap_shadows and
19169         alpha_align_insn from here.
19170
19171         (alpha_pad_function_end): Do not skip BARRIERs.
19172
19173 2014-07-10  Rong Xu  <xur@google.com>
19174
19175         Add gcov-tool: an offline gcda profile processing tool support.
19176         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
19177         (gcov_is_error): Ditto.
19178         (gcov_read_string): Ditto.
19179         (gcov_read_sync): Ditto.
19180         * gcov-io.h: Move counter defines to gcov-counter.def.
19181         * gcov-dump.c (tag_counters): Use gcov-counter.def.
19182         * coverage.c: Ditto.
19183         * gcov-tool.c: Offline gcda profile processing tool.
19184         (unlink_gcda_file): Remove one gcda file.
19185         (unlink_profile_dir): Remove gcda files from the profile path.
19186         (gcov_output_files): Output gcda files to an output dir.
19187         (profile_merge): Merge two profiles in directory.
19188         (print_merge_usage_message): Print merge usage.
19189         (merge_usage): Print merge usage and exit.
19190         (do_merge): Driver for profile merge sub-command.
19191         (profile_rewrite): Rewrite profile.
19192         (print_rewrite_usage_message): Print rewrite usage.
19193         (rewrite_usage): Print rewrite usage and exit.
19194         (do_rewrite): Driver for profile rewrite sub-command.
19195         (print_usage): Print gcov-info usage and exit.
19196         (print_version): Print gcov-info version.
19197         (process_args): Process arguments.
19198         (main): Main routine for gcov-tool.
19199         * Makefile.in: Build and install gcov-tool.
19200         * gcov-counter.def: New file split from gcov-io.h.
19201         * doc/gcc.texi: Include gcov-tool.texi.
19202         * doc/gcov-tool.texi: Document for gcov-tool.
19203
19204 2014-07-10  Richard Biener  <rguenther@suse.de>
19205
19206         PR tree-optimization/61757
19207         * tree-ssa-dom.c (loop_depth_of_name): Restore.
19208         (propagate_rhs_into_lhs): Revert part of last change.
19209
19210 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
19211
19212         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
19213         FUNCTION_DECLs.
19214
19215 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
19216
19217         PR middle-end/53590
19218         * function.c (allocate_struct_function): Revert r188667 change.
19219
19220         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
19221
19222 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
19223
19224         * doc/install.texi: Remove links to defunct package providers for
19225         Solaris.
19226
19227 2014-07-09  Tom de Vries  <tom@codesourcery.com>
19228
19229         * final.c (get_call_fndecl): Declare.
19230         (self_recursive_call_p): New function.
19231         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
19232
19233 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
19234
19235         * ipa-devirt.c (record_node): Walk through aliases.
19236
19237 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
19238
19239         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
19240
19241 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
19242
19243         Revert:
19244         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
19245
19246 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
19247
19248         * ipa-visibility.c (function_and_variable_visibility): Remove
19249         temporary hack disabling local aliases on AIX.
19250
19251 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
19252
19253         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
19254         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
19255
19256 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
19257
19258         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
19259         * rs6000/rs6000.c: Inline output of .set instruction.
19260         (declare_alias_data): New struct.
19261         (rs6000_declare_alias): New function.
19262         (rs6000_xcoff_declare_function_name): Use it.
19263         (rs6000_xcoff_declare_object_name): New function.
19264         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
19265         (ASM_OUTPUT_DEF): Turn to empty definition.
19266
19267 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
19268
19269         PR bootstrap/61679
19270         * hash-table.h: use hash_table::value_type instead of
19271         Descriptor::value_type in the return types of several methods.
19272
19273 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
19274
19275         * tree-pass.h (pass_data): Remove has_execute member.
19276         * passes.c (execute_one_pass): Don't check pass->has_execute.
19277         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
19278         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
19279         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
19280         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19281         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
19282         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
19283         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
19284         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
19285         gimple-low.c, gimple-ssa-isolate-paths.c,
19286         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
19287         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
19288         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
19289         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
19290         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
19291         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
19292         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
19293         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
19294         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
19295         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
19296         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
19297         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
19298         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
19299         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19300         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19301         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19302         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19303         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19304         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19305         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19306         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
19307         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
19308         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
19309         web.c: Remove initializer for pass_data::has_execute.
19310
19311 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
19312
19313         * graphite-htab.h: Use hash_map instead of hash_table.
19314         * graphite-clast-to-gimple.c: Adjust.
19315         * passes.c: Use hash_map instead of hash_table.
19316         * sese.c: Likewise.
19317         * sese.h: Remove now unused code.
19318
19319 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
19320
19321         PR target/61599
19322         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
19323         than zero.
19324
19325 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
19326
19327         PR rtl-optimization/61673
19328         * combine.c (simplify_comparison): Test just mode's sign bit
19329         in tmode rather than the sign bit and any bits above it.
19330
19331 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
19332
19333         * graphite-isl-ast-to-gimple.c (generate_isl_context):
19334         Add __isl_give to the declaration.
19335         (generate_isl_schedule): Likewise.
19336         (scop_to_isl_ast): Likewise.
19337
19338 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19339
19340         * config/arm/arm.c (cortexa5_extra_costs): New table.
19341         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
19342
19343 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
19344
19345         PR tree-optimization/61725
19346         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
19347         range, use range_includes_zerop_p instead of integer_zerop on
19348         vr0->min, only use log2 of max if min is not negative.
19349
19350 2014-07-08  Richard Biener  <rguenther@suse.de>
19351
19352         * tree-ssa-dom.h (loop_depth_of_name): Remove.
19353         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
19354         restriction on loop depth difference.
19355         (record_equality): Likewise.
19356         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
19357         (loop_depth_of_name): Remove.
19358         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
19359         restriction on loop depth difference.
19360         (init_copy_prop): Likewise.
19361
19362 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
19363
19364         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
19365         parameter.
19366         (walk_aliased_vdefs): Likewise.
19367         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
19368         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
19369         (detect_type_change_from_memory_writes): Check if entry was reached.
19370
19371 2014-07-08  Richard Biener  <rguenther@suse.de>
19372
19373         PR tree-optimization/61681
19374         * tree-ssa-structalias.c (find_what_var_points_to): Expand
19375         NONLOCAL inside ESCAPED.
19376
19377 2014-07-08  Richard Biener  <rguenther@suse.de>
19378
19379         PR tree-optimization/61680
19380         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
19381         Handle properly all read-write dependences with group accesses.
19382
19383 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
19384
19385         PR tree-optimization/61576
19386         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
19387         block containing reduction statement is predecessor of phi basi block.
19388
19389 2014-07-08  Marek Polacek  <polacek@redhat.com>
19390
19391         PR c/60226
19392         * fold-const.c (round_up_loc): Change the parameter type.
19393         Remove assert.
19394         * fold-const.h (round_up_loc): Adjust declaration.
19395         * stor-layout.c (finalize_record_size): Check for too large types.
19396
19397 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
19398
19399         * symtab.c: Include calls.h.
19400         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
19401
19402 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
19403
19404         * config/rs6000/rs6000.c (output_vec_const_move): Handle
19405         little-endian code generation.
19406         * config/rs6000/spe.md (spe_evmergehi): Rename to...
19407         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
19408         (spe_evmergehilo): Rename to...
19409         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
19410         (spe_evmergelo): Rename to...
19411         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
19412         (spe_evmergelohi): Rename to...
19413         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
19414         (spe_evmergehi, spe_evmergehilo): New expanders.
19415         (spe_evmergelo, spe_evmergelohi): Likewise.
19416         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
19417         (*frob_tf_ti): Likewise.
19418         (*frob_<mode>_di_2): Likewise.
19419         (*frob_tf_di_8_2): Likewise.
19420         (*frob_di_<mode>): Likewise.
19421         (*frob_ti_tf): Likewise.
19422         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
19423         (*frob_ti_<mode>_8_2): Likewise.
19424         (*frob_ti_tf_2): Likewise.
19425         (mov_si<mode>_e500_subreg0): Rename to...
19426         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
19427         endianness only.
19428         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
19429         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
19430         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
19431         the big endianness only.
19432         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
19433         (*mov_si<mode>_e500_subreg0_2): Rename to...
19434         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
19435         big big endianness only.
19436         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
19437         (*mov_si<mode>_e500_subreg4): Rename to...
19438         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
19439         endianness only.
19440         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
19441         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
19442         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
19443         the big endianness only.
19444         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
19445         pattern.
19446         (*mov_si<mode>_e500_subreg4_2): Rename to...
19447         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
19448         endianness only.
19449         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
19450         (*mov_sitf_e500_subreg8): Rename to...
19451         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
19452         endianness only.
19453         (*mov_sitf_e500_subreg8_le): New instruction pattern.
19454         (*mov_sitf_e500_subreg8_2): Rename to...
19455         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
19456         endianness only.
19457         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
19458         (*mov_sitf_e500_subreg12): Rename to...
19459         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
19460         endianness only.
19461         (*mov_sitf_e500_subreg12_le): New instruction pattern.
19462         (*mov_sitf_e500_subreg12_2): Rename to...
19463         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
19464         endianness only.
19465         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
19466
19467 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
19468
19469         * asan.c (instrument_strlen_call): Do not instrument first byte
19470         in strlen if already instrumented.
19471
19472 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19473
19474         * config/arm/arm.opt (mwords-little-endian): Delete.
19475         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
19476         of TARGET_LITTLE_WORDS.
19477         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
19478         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
19479         warning.
19480         * doc/invoke.texi: Remove references to -mwords-little-endian.
19481
19482 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
19483
19484         * expmed.c (struct init_expmed_rtl): Change all fields but
19485         pow2 and cint from struct rtx_def to rtx.
19486         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
19487         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
19488         at the end again.
19489
19490 2014-07-06  Marek Polacek  <polacek@redhat.com>
19491
19492         PR c/6940
19493         * doc/invoke.texi: Document -Wsizeof-array-argument.
19494
19495 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
19496
19497         * wide-int.h (wide_int_storage): Change declaration from struct
19498         to class.
19499
19500 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
19501
19502         * cgraph.c (cgraph_create_indirect_edge): Update call of
19503         get_polymorphic_call_info.
19504         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
19505         (possible_polymorphic_call_targets): Add parameter call.
19506         (decl_maybe_in_construction_p): New predicate.
19507         (get_polymorphic_call_info): Add parameter call;
19508         use decl_maybe_in_construction_p.
19509         * gimple-fold.c (fold_gimple_assign): Update use of
19510         possible_polymorphic_call_targets.
19511         (gimple_fold_call): Likewise.
19512         * ipa-prop.c: Inlcude calls.h
19513         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
19514         (param_type_may_change_p): New predicate.
19515         (detect_type_change_from_memory_writes): Break out from ...
19516         (detect_type_change): ... this one; use param_type_may_change_p.
19517         (detect_type_change_ssa): Use param_type_may_change_p.
19518         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
19519
19520 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
19521
19522         PR target/49423
19523         * config/arm/arm-protos.h (arm_legitimate_address_p,
19524         arm_is_constant_pool_ref): Add prototypes.
19525         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
19526         (arm_is_constant_pool_ref) New function.
19527         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
19528         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
19529         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
19530         operand. Remove pool_range and neg_pool_range attributes.
19531         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
19532         pool_range and neg_pool_range attributes.
19533         * config/arm/constraints.md (Uh): New constraint.
19534         (Uq): Don't allow constant pool references.
19535
19536 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
19537
19538         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
19539         (move_lo_quad_internal_be_<mode>): Likewise.
19540         (move_lo_quad_<mode>): Convert to define_expand.
19541         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
19542         (aarch64_simd_move_hi_quad_be_<mode>): New.
19543         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
19544         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
19545         (aarch64_combinez_be<mode>): New.
19546         (aarch64_combine<mode>): Convert to define_expand.
19547         (aarch64_combine_internal<mode>): New.
19548         (aarch64_simd_combine<mode>): Remove bogus RTL description.
19549
19550 2014-07-04  Tom de Vries  <tom@codesourcery.com>
19551
19552         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
19553         combination of earlyclobber and read/write modifiers.
19554
19555 2014-07-04  Tom de Vries  <tom@codesourcery.com>
19556
19557         * config/aarch64/aarch64-simd.md
19558         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
19559
19560 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
19561
19562         PR target/61714
19563         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
19564
19565 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
19566
19567         PR middle-end/61654
19568         * cgraphunit.c (expand_thunk): Call free_dominance_info.
19569
19570         PR tree-optimization/61684
19571         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
19572         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
19573
19574 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19575             Kito Cheng  <kito@0xlab.org>
19576             Monk Chiang  <sh.chiang04@gmail.com>
19577
19578         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
19579         (nds32_symbol_load_store_p): Move to ...
19580         (nds32_fp_as_gp_check_available): Move to ...
19581         * config/nds32/nds32-fp-as-gp.c: ... here.
19582         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
19583         extern declaration.
19584
19585 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19586             Kito Cheng  <kito@0xlab.org>
19587             Monk Chiang  <sh.chiang04@gmail.com>
19588
19589         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
19590         (nds32_expand_store_multiple): Move to ...
19591         (nds32_expand_movmemqi): Move to ...
19592         * config/nds32/nds32-memory-manipulation.c: ... here.
19593
19594 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19595             Kito Cheng  <kito@0xlab.org>
19596             Monk Chiang  <sh.chiang04@gmail.com>
19597
19598         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
19599         (nds32_output_casesi_pc_relative): Move to ...
19600         (nds32_output_casesi): Move to ...
19601         (nds32_mem_format): Move to ...
19602         (nds32_output_16bit_store): Move to ...
19603         (nds32_output_16bit_load): Move to ...
19604         (nds32_output_32bit_store): Move to ...
19605         (nds32_output_32bit_load): Move to ...
19606         (nds32_output_32bit_load_s): Move to ...
19607         (nds32_output_stack_push): Move to ...
19608         (nds32_output_stack_pop): Move to ...
19609         * config/nds32/nds32-md-auxiliary.c: ... here.
19610
19611 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19612             Ling-Hua Tseng  <uranus@tinlans.org>
19613
19614         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
19615         the purpose of this file.
19616
19617 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19618             Kito Cheng  <kito@0xlab.org>
19619             Monk Chiang  <sh.chiang04@gmail.com>
19620
19621         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
19622         (nds32_address_cost): Move implementation to ...
19623         * config/nds32/nds32-cost.c: ... here.
19624         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
19625         (nds32_address_cost_impl): Declare.
19626
19627 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19628             Kito Cheng  <kito@0xlab.org>
19629             Monk Chiang  <sh.chiang04@gmail.com>
19630
19631         * config/nds32/nds32.c
19632         (nds32_consecutive_registers_load_store_p): Move to ...
19633         (nds32_valid_multiple_load_store): Move to ...
19634         (nds32_valid_stack_push_pop): Move to ...
19635         (nds32_can_use_bclr_p): Move to ...
19636         (nds32_can_use_bset_p): Move to ...
19637         (nds32_can_use_btgl_p): Move to ...
19638         (nds32_can_use_bitci_p): Move to ...
19639         * config/nds32/nds32-predicates.c: ... here.
19640
19641 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19642             Kito Cheng  <kito@0xlab.org>
19643             Monk Chiang  <sh.chiang04@gmail.com>
19644
19645         * config/nds32/nds32.c
19646         (nds32_expand_builtin_null_ftype_reg): Move to ...
19647         (nds32_expand_builtin_reg_ftype_imm): Move to ...
19648         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
19649         (nds32_init_builtins): Move implementation to ...
19650         (nds32_expand_builtin): Move implementation to ...
19651         * config/nds32/nds32-intrinsic.c: ... here.
19652         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
19653         (nds32_expand_builtin_impl): Declare.
19654
19655 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19656             Kito Cheng  <kito@0xlab.org>
19657             Monk Chiang  <sh.chiang04@gmail.com>
19658
19659         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
19660         (nds32_emit_section_tail_template): Move to ...
19661         (nds32_emit_isr_jmptbl_section): Move to ...
19662         (nds32_emit_isr_vector_section): Move to ...
19663         (nds32_emit_isr_reset_conten): Move to ...
19664         (nds32_check_isr_attrs_conflict): Move to ...
19665         (nds32_construct_isr_vectors_information): Move to ...
19666         (nds32_asm_file_start): Move implementation to ...
19667         (nds32_asm_file_end): Move implementation to ...
19668         * config/nds32/nds32-isr.c: ... here.
19669         * config/nds32/nds32-protos.h
19670         (nds32_check_isr_attrs_conflict): Declare.
19671         (nds32_construct_isr_vectors_information): Declare.
19672         (nds32_asm_file_start_for_isr): Declare.
19673         (nds32_asm_file_end_for_isr): Declare.
19674
19675 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19676             Kito Cheng  <kito@0xlab.org>
19677             Monk Chiang  <sh.chiang04@gmail.com>
19678
19679         * config.gcc (nds32*): Add new modules to extra_objs.
19680         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
19681         (nds32be-*-*): Likewise.
19682         * config/nds32/nds32-cost.c: New file.
19683         * config/nds32/nds32-fp-as-gp.c: New file.
19684         * config/nds32/nds32-intrinsic.c: New file.
19685         * config/nds32/nds32-isr.c: New file.
19686         * config/nds32/nds32-md-auxiliary.c: New file.
19687         * config/nds32/nds32-memory-manipulation.c: New file.
19688         * config/nds32/nds32-pipelines-auxiliary.c: New file.
19689         * config/nds32/nds32-predicates.c: New file.
19690         * config/nds32/t-nds32: New file.
19691
19692 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
19693
19694         PR tree-optimization/61682
19695         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
19696         using cases and when one of the operands is equal to 1.
19697
19698 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
19699
19700         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
19701         ashr<mode>3): Correct mode of operands[2].
19702         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
19703         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
19704         Correct mode of operands[2].  Fix split condition.
19705
19706 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
19707
19708         * arm.md (arch): Add armv6_or_vfpv3.
19709         (arch_enabled): Add test for the above.
19710         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
19711         on VFP9.
19712         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
19713
19714 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
19715
19716         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
19717         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
19718         HWI 1 and negate the unsigned value.
19719         * expmed.c (expand_sdiv_pow2): For modes wider than word always
19720         use AND instead of shift.
19721         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
19722
19723 2014-07-03  Marek Polacek  <polacek@redhat.com>
19724
19725         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
19726         (-fsanitize=float-divide-by-zero): Move to the table with
19727         -fsanitize=undefined suboptions.
19728         (-fsanitize=float-cast-overflow): Likewise.
19729
19730 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
19731
19732         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
19733         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
19734         endianness.
19735
19736 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19737
19738         * loop-invariant.c (struct invariant): Add a new member: eqno;
19739         (find_identical_invariants): Update eqno;
19740         (create_new_invariant): Init eqno;
19741         (get_inv_cost): Compute comp_cost with eqno;
19742
19743 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
19744
19745         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
19746         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
19747         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
19748         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
19749         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
19750
19751 2014-07-02  Christian Bruel  <christian.bruel@st.com>
19752
19753         PR target/29349
19754         PR target/53513
19755         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
19756         (make_preds_opaque): Delete.
19757         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
19758         (commit_mode_sets): New function.
19759         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
19760         Process all modes at once.
19761         * basic-block.h (pre_edge_lcm_avs): Declare.
19762         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
19763         Call clear_aux_for_edges. Fix comments.
19764         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
19765         (pre_edge_rev_lcm): Idem.
19766         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
19767         parameter.
19768         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
19769         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
19770         Idem.
19771         * config/i386/i386.c (x96_emit_mode_set): Idem.
19772         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
19773         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
19774         (fpscr_toggle) Disallow from delay slot.
19775         * target.def (emit_mode_set): Add prev_mode parameter.
19776         * doc/tm.texi: Regenerate.
19777
19778 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19779
19780         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
19781         variable i.
19782
19783 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
19784
19785         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
19786         vtable_pointer_value_to_vtable): Constify.
19787         (contains_polymorphic_type_p): Declare.
19788         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
19789         vtable_pointer_value_to_vtable): Constify.
19790         (contains_polymorphic_type_p): New predicate.
19791         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
19792         polymorphic types.
19793         (ipa_set_ancestor_jf): Likewise.
19794         (detect_type_change): Return false in easy cases.
19795         (compute_complex_assign_jump_func): Require type to contain
19796         polymorphic type.
19797         (compute_known_type_jump_func): Likewise.
19798
19799 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
19800
19801         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
19802         Remove.
19803         (type_in_anonymous_namespace_p): Constify argument.
19804         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
19805         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
19806         (main_odr_variant): New function.
19807         (hash_type_name): Make static; update assert; do not ICE on
19808         non-records.
19809         (types_same_for_odr): Bring here from tree.c; simplify and remove
19810         old structural comparing code that doesn't work for templates.
19811         (odr_hasher::equal): Update assert.
19812         (add_type_duplicate): Return true when bases should be computed;
19813         replace incomplete loader by complete; do not output duplicated
19814         warnings; do not ICE on non-records; set odr_violated flag.
19815         (get_odr_type): Be ready to replace incomplete type by complete
19816         one; work on ODR variants instead of main variants; reorder item
19817         in array so bases have still smaller indexes.
19818         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
19819         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
19820
19821 2014-07-01  Cary Coutant  <ccoutant@google.com>
19822
19823         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
19824         lookup.
19825         (resolve_addr_in_expr): When replacing the rtx in a location list
19826         entry, get a new address table entry.
19827         (dwarf2out_finish): Call index_location_lists even if there are no
19828         addr_index_table entries yet.
19829
19830 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
19831
19832         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
19833         change for not being obvious.
19834
19835 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
19836
19837         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
19838         unused argument.
19839
19840 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19841
19842         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
19843         (vcagt_f64): Likewise.
19844         (vcale_f64): Likewise.
19845         (vcaled_f64): Likewise.
19846         (vcales_f32): Likewise.
19847         (vcalt_f64): Likewise.
19848         (vcaltd_f64): Likewise.
19849         (vcalts_f32): Likewise.
19850
19851 2014-07-01  Marek Polacek  <polacek@redhat.com>
19852
19853         * doc/invoke.texi: Document -Wint-conversion.
19854
19855 2014-07-01  Marek Polacek  <polacek@redhat.com>
19856
19857         PR c/58286
19858         * doc/invoke.texi: Document -Wincompatible-pointer-types.
19859
19860 2014-07-01  Martin Liska  <mliska@suse.cz>
19861
19862         IPA REF alias refactoring
19863         * cgraph.h (iterate_direct_aliases): New function.
19864         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
19865         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
19866         FOR_EACH_ALIAS added.
19867         (cgraph_for_node_and_aliases): Likewise.
19868         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
19869         * ipa-inline.c (reset_edge_caches): Likewise.
19870         (update_caller_keys): Likewise.
19871         * trans-mem.c (ipa_tm_execute): Likewise.
19872         *varpool.c (varpool_analyze_node): Likewise.
19873         (varpool_for_node_and_aliases): Likewise.
19874         * ipa-ref.h (first_alias): New function.
19875         (last_alias): Likewise.
19876         (has_aliases_p): Likewise.
19877         * ipa-ref.c (ipa_ref::remove_reference): Removal function
19878         is sensitive to IPA_REF_ALIASes.
19879         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
19880         are put at the beginning of the list.
19881         (symtab_node::iterate_direct_aliases): New function.
19882
19883 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
19884
19885         Revert:
19886         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
19887         type is complete.
19888         (write_ts_type_common_tree_pointers): Do not stream fields not set
19889         for incomplete types; do not stream duplicated fields for variants;
19890         sanity check that variant and type match.
19891         (write_ts_type_non_common_tree_pointers): Likewise.
19892         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
19893         TYPE_SIZE whether type is complete.
19894         (lto_input_ts_type_common_tree_pointers): Do same changes as in
19895         write_ts_type_common_tree_pointers
19896         (lto_input_ts_type_non_common_tree_pointers): Likewise.
19897
19898 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
19899
19900         * var-tracking.c (add_stores): Return instead of asserting if old
19901         and new values for conditional store are the same.
19902
19903 2014-06-30  Richard Henderson  <rth@redhat.com>
19904
19905         PR rtl-opt/61608
19906         PR target/39284
19907         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
19908         the cfg if there were any changes.
19909         * passes.def: Revert move of peephole2 after reorder_blocks;
19910         move duplicate_computed_gotos before peephole2.
19911
19912 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
19913
19914         * except.c (emit_note_eh_region_end): New helper function.
19915         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
19916         emit EH_REGION_END note.
19917         * jump.c (cleanup_barriers): Do not split a call and its
19918         corresponding CALL_ARG_LOCATION note.
19919
19920 2014-06-30  Jeff Law  <law@redhat.com>
19921
19922         PR tree-optimization/61607
19923         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
19924         deeper into the SSA_NAME_VALUE chain.
19925
19926 2014-06-30  Marek Polacek  <polacek@redhat.com>
19927
19928         * convert.c (convert_to_integer): Don't instrument conversions if the
19929         function has no_sanitize_undefined attribute.
19930         * ubsan.c: Don't run the ubsan pass if the function has
19931         no_sanitize_undefined attribute.
19932
19933 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
19934
19935         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
19936         -fsanitize=undefined suboptions.
19937
19938 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
19939
19940         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
19941         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
19942         against bigendian and adjust indices.
19943
19944 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
19945
19946         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
19947
19948 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19949
19950         PR target/61633
19951         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
19952         Add alternative; make early clobber.  Adjust both split patterns
19953         to use operand 0 as the working register.
19954
19955 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
19956
19957         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
19958         as ira_object_id_map might be NULL, or 1.
19959
19960 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19961
19962         * loop-invariant.c (get_inv_cost): Handle register class.
19963         (gain_for_invariant): Check the register pressure of the inv
19964         and its overlapped register class, other than all.
19965
19966 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
19967
19968         * doc/invoke.texi (Optimize Options): Fix descriptions of
19969         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
19970
19971 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
19972
19973         * doc/extend.texi (Function Attributes): Update 'naked' attribute
19974         documentation.
19975
19976 2014-06-29  Tobias Grosser <tobias@grosser.es>
19977
19978         PR bootstrap/61650
19979         * graphite-isl-ast-to-gimple.c: Add missing guards.
19980
19981 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
19982
19983         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
19984         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
19985         * flag-types.h: Add new enum fgraphite_generator.
19986         * graphite-isl-ast-to-gimple.c: New.
19987         * graphite-isl-ast-to-gimple.h: New.
19988         * graphite.c (graphite_transform_loops): Add choice of Graphite
19989         code generator, which depends on flag_graphite_code_gen.
19990
19991 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
19992
19993         * graphite-dependences.c (subtract_commutative_associative_deps):
19994         Add NULL checking of the following variables: must_raw_no_source,
19995         may_raw_no_source, must_war_no_source, may_war_no_source,
19996         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
19997         must_war, may_war, must_waw, may_waw.
19998
19999 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
20000
20001         * graphite-clast-to-gimple.c: gloog is renamed to
20002         graphite_regenerate_ast_cloog.  gloog_error is renamed to
20003         graphite_regenerate_error.
20004         * graphite-clast-to-gimple.h: The definition of the struct
20005         bb_pbb_def is moved to graphite-htab.h.
20006         Add inclusion of the hash-table.h.
20007         * graphite-htab.h: The declaration of the function gloog is moved
20008         to graphite-clast-to-gimple.h and renamed to
20009         graphite_regenerate_ast_cloog.
20010         * graphite.c (graphite_transform_loops): gloog is renamed
20011         to graphite_regenerate_ast_cloog.
20012
20013 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
20014
20015         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
20016         type is complete.
20017         (write_ts_type_common_tree_pointers): Do not stream fields not set
20018         for incomplete types; do not stream duplicated fields for variants;
20019         sanity check that variant and type match.
20020         (write_ts_type_non_common_tree_pointers): Likewise.
20021         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
20022         TYPE_SIZE whether type is complete.
20023         (lto_input_ts_type_common_tree_pointers): Do same changes as in
20024         write_ts_type_common_tree_pointers
20025         (lto_input_ts_type_non_common_tree_pointers): Likewise.
20026
20027 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
20028
20029         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
20030
20031 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
20032
20033         * tree-inline.c (remap_type_1): Do not duplicate fields
20034         that are shared in between type and its main variant.
20035
20036 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
20037
20038         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
20039         of the type.
20040         (ipa_set_ancestor_jf) Likewise.
20041         (check_stmt_for_type_change): Check that we work on main variant.
20042         (detect_type_change): Look into main variant.
20043         (compute_known_type_jump_func): Check that main variant has BINFO.
20044
20045 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
20046
20047         * ipa-devirt.c (set_type_binfo): New function.
20048         (add_type_duplicate): Use it.
20049         (get_odr_type): Sanity check that binfos points to main variants.
20050         (get_class_context): Be sure the context's outer_type is main variant.
20051         (contains_type_p): Walk main variant.
20052         (get_polymorphic_call_info_for_decl): Set outer_type to be
20053         main variant.
20054         (get_polymorphic_call_info): Likewise.
20055         (possible_polymorphic_call_targets): Sanity check that we operate
20056         on main variant.
20057
20058 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
20059
20060         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
20061
20062 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20063
20064         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
20065         accidental change due to wide-int branch merge.
20066
20067 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20068
20069         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
20070         compressed debug support.
20071         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
20072         * configure: Regenerate.
20073         * config.in: Regenerate.
20074         * common.opt (compressed_debug_sections): New enum.
20075         (gz, gz=): New options.
20076         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
20077         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
20078         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
20079         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
20080         LINK_COMPRESS_DEBUG_SPEC.
20081         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
20082         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
20083         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
20084         (Debugging Options): Document -gz[=type].
20085
20086 2014-06-27  Martin Jambor  <mjambor@suse.cz>
20087
20088         PR ipa/61160
20089         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
20090         args_to_skip, use those from node instead.  Copy args_to_skip and
20091         combined_args_to_skip from node to the new thunk.
20092         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
20093         (cgraph_create_virtual_clone): Moved computation of
20094         combined_args_to_skip...
20095         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
20096
20097 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
20098
20099         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
20100         redundant diagnostic machinary.
20101
20102 2014-06-27  Richard Biener  <rguenther@suse.de>
20103
20104         * tree-ssa-math-opts.c (bswap_replace): Fix
20105         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
20106
20107 2014-06-27  Martin Liska  <mliska@suse.cz>
20108
20109         * gimple.h (gimple_location_safe): New function introduced.
20110         * cgraphunit.c (walk_polymorphic_call_targets): Usage
20111         of gimple_location_safe replaces gimple_location.
20112         (gimple_fold_call): Likewise.
20113         * ipa-devirt.c (ipa_devirt): Likewise.
20114         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
20115         * ipa.c (walk_polymorphic_call_targets): Likewise.
20116         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
20117
20118 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
20119
20120         PR tree-optimization/57233
20121         PR tree-optimization/61299
20122         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
20123         functions.
20124         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
20125         would be lowered to scalar shifts, check if corresponding
20126         shifts and vector BIT_IOR_EXPR are supported and don't lower
20127         or lower just to narrower vector type in that case.
20128         * expmed.c (expand_shift_1): Fix up handling of vector
20129         shifts and rotates.
20130
20131 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
20132
20133         PR target/61586
20134         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
20135
20136 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
20137
20138         * doc/invoke.texi (-fsemantic-interposition): Document.
20139         * common.opt (fsemantic-interposition): New flag.
20140         * varasm.c (decl_replaceable_p): Use it.
20141
20142 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20143
20144         PR target/61542
20145         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
20146         extraction other than index 3.
20147
20148 2014-06-26  Teresa Johnson  <tejohnson@google.com>
20149
20150         * doc/invoke.texi: Fix typo.
20151         * dumpfile.c: Add support for documented -fdump-* options
20152         optimized/missed/note/optall.
20153
20154 2014-06-26  Martin Jambor  <mjambor@suse.cz>
20155
20156         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
20157         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
20158         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
20159         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
20160         * opts.c (default_options_optimization): Set
20161         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
20162         * doc/invoke.texi (allow-load-data-races)
20163         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
20164         (allow-store-data-races): Document the new default.
20165
20166 2014-06-26  Martin Jambor  <mjambor@suse.cz>
20167
20168         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
20169         renamed to ipa_impossible_devirt_target.  Fix typo.
20170         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
20171         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
20172         ipa_impossible_devirt_target.
20173
20174 2014-06-26  Richard Biener  <rguenther@suse.de>
20175
20176         PR tree-optimization/61607
20177         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
20178         explaining why we restrict copies on loop depth.
20179         * tree-ssa-dom.c (cprop_operand): Remove restriction on
20180         on loop depth.
20181         (record_equivalences_from_phis): Instead add it here.
20182
20183 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
20184
20185         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
20186         (LTO_WRAPPER_OBJS): New variable.
20187         (lto-wrapper$(exeext)): Use it.
20188         * collect2.c: Include "collect-utils.h".
20189         (verbose, debug): Remove variables.
20190         (at_file_supplied): No longer static.
20191         (tool_name): New variable.
20192         (do_wait, fork_execute, maybe_unlink): Don't declare.
20193         (tool_cleanup): No longer static.
20194         (notice): Remove function.
20195         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
20196         fork_execute calls.
20197         (collect_wait, do_wait, collect_execute): Remove functions.
20198         (maybe_unlink): No longer static.
20199         * collect2.h (verbose, debug): Don't declare.
20200         (at_file_supplied): Declare.
20201         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
20202         changed.
20203         (collect_execute): Replace with implementation from collect2, plus a
20204         new arg use_atfile.  All callers changed.
20205         (collect_wait): Replace with implementation from collect2.
20206         (maybe_unlink_file): Remove function.
20207         (fork_execute): Replace with implementation from collect2, plus a
20208         new arg use_atfile.  All callers changed.
20209         (do_wait): Add call to utils_cleanup to the error path.
20210         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
20211         (tool_cleanup): Adjust declarations.
20212         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
20213         * tlink.c: Include "collect-utils.h".
20214         (tlink_execute): New arg use_atfile.  All callers changed.
20215         (tlink_init, tlink_execute): Remove declarations.
20216
20217         * collect-utils.c (save_temps): New variable.
20218         (do_wait): Use it instead of debug.  Use fatal_error.
20219         * collect-utils.h (save_temps): Declare.
20220         * collect2.c (verbose): Rename from vflag.  All uses changed.
20221         (tool_cleanup): New function, copied from collect_atexit.
20222         (collect_atexit, handler): Just call it.
20223         * collect2.h (verbose): Declaration renamed from vflag.
20224         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
20225         debug.
20226
20227         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
20228         (lto-wrapper$(exeext)): Link with collect-utils.o.
20229         * collect-utils.c: New file.
20230         * collect-utils.h: New file.
20231         * lto-wrapper.c: Include "collect-utils.h".
20232         (args_name): Delete variable.
20233         (tool_name): New variable.
20234         (tool_cleanup): New function.
20235         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
20236         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
20237         (fork_execute): Remove functions.
20238
20239 2014-06-26  Nick Clifton  <nickc@redhat.com>
20240
20241         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
20242
20243         * doc/extend.texi (Function Attributes): Fix typo in description
20244         of RX vector attribute.
20245
20246 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
20247
20248         * config.gcc (supported_defaults): Error when passing either
20249         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
20250
20251 2014-06-26  Richard Biener  <rguenther@suse.de>
20252
20253         * tree-ssa-dom.c (cprop_operand): Remove restriction on
20254         propagating volatile pointers.
20255
20256 2014-06-26  Richard Biener  <rguenther@suse.de>
20257
20258         PR tree-optimization/61607
20259         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
20260         loop if we redirected its latch edge.
20261         (thread_block_1): Do not cancel loops prematurely.
20262
20263 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
20264
20265         * toplev.c (backend_init_target): Move init_emit_regs and
20266         init_regs to...
20267         (backend_init) ... here; skip ira_init_once and backend_init_target.
20268         (target_reinit) ... and here; clear
20269         this_target_rtl->lang_dependent_initialized.
20270         (lang_dependent_init_target): Clear
20271         this_target_rtl->lang_dependent_initialized;
20272         break out rtl initialization to ...
20273         (initialize_rtl): ... here; call also backend_init_target
20274         and ira_init_once.
20275         * toplev.h (initialize_rtl): New function.
20276         * function.c: Include toplev.h
20277         (init_function_start): Call initialize_rtl.
20278         * rtl.h (target_rtl): Add target_specific_initialized,
20279         lang_dependent_initialized.
20280
20281 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
20282             Jakub Jelinek  <jakub@redhat.com>
20283
20284         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
20285
20286 2014-06-25  Tom de Vries  <tom@codesourcery.com>
20287
20288         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
20289
20290 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20291
20292         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
20293         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
20294         Issue a strict overflow warning if appropriate.
20295
20296 2014-06-25  Martin Liska  <mliska@suse.cz>
20297
20298         IPA REF refactoring
20299         * Makefile.in: Removed header file (ipa-ref-inline.h).
20300         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
20301         called.
20302         (cgraph_speculative_call_info): Likewise.
20303         (cgraph_for_node_thunks_and_aliases): Likewise.
20304         (cgraph_for_node_and_aliases): Likewise.
20305         (verify_cgraph_node): Likewise.
20306         * cgraph.h: Batch of IPA REF functions become member functions of
20307         symtab_node: add_reference, maybe_add_reference, clone_references,
20308         clone_referring, clone_reference, find_reference,
20309         remove_stmt_references, remove_all_references,
20310         remove_all_referring, dump_references, dump_referring,
20311         has_alias_p, iterate_reference, iterate_referring.
20312         * cgraphbuild.c (record_reference): New IPA REF function used.
20313         (record_type_list): Likewise.
20314         (record_eh_tables): Likewise.
20315         (mark_address): Likewise.
20316         (mark_load): Likewise.
20317         (mark_store): Likewise.
20318         (pass_build_cgraph_edges): Likewise.
20319         (rebuild_cgraph_edge): Likewise.
20320         (cgraph_rebuild_references): Likewise.
20321         (pass_remove_cgraph_callee_edges): Likewise.
20322         * cgraphclones.c (cgraph_clone_node): Likewise.
20323         (cgraph_create_virtual_clone): Likewise.
20324         (cgraph_materialize_clone): Likewise.
20325         (cgraph_materialize_all_clones): Likewise.
20326         * cgraphunit.c (cgraph_reset_node): Likewise.
20327         (cgraph_reset_node): Likewise.
20328         (analyze_function): Likewise.
20329         (assemble_thunks_and_aliases): Likewise.
20330         (expand_function): Likewise.
20331         * ipa-comdats.c (propagate_comdat_group): Likewise.
20332         (enqueue_references): Likewise.
20333         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
20334         (create_specialized_node): Likewise.
20335         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
20336         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
20337         * ipa-inline.c (reset_edge_caches): Likewise.
20338         (update_caller_keys): Likewise.
20339         (execute): Likewise.
20340         * ipa-prop.c (remove_described_reference): Likewise.
20341         (propagate_controlled_uses): Likewise.
20342         (ipa_edge_duplication_hook): Likewise.
20343         (ipa_modify_call_arguments): Likewise.
20344         * ipa-pure-const.c (propagate_pure_const): Likewise.
20345         * ipa-ref-inline.h: Header file removed, functions moved
20346         to symtab_node class.
20347         * ipa-ref.c (remove_reference): New class member function.
20348         (cannot_lead_to_return): New class member function.
20349         (referring_ref_list): Likewise.
20350         (referred_ref_list): Likewise.
20351         Rest of functions moved to symtab_node class.
20352         * ipa-ref.h: New member functions remove_reference,
20353         cannot_lead_to_return, referring_ref_list, referred_ref_list added
20354         to ipa_ref class.
20355         ipa_ref_list class has new member functions: first_reference,
20356         first_referring, clear, nreferences.
20357         * ipa-reference.c (analyze_function): New IPA REF function used.
20358         (write_node_summary_p): Likewise.
20359         (ipa_reference_write_optimization_summary): Likewise.
20360         * ipa-split.c (split_function): Likewise.
20361         * ipa-utils.c (ipa_reverse_postorder): Likewise.
20362         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
20363         (function_and_variable_visibility): Likewise.
20364         * ipa.c (has_addr_references_p): Likewise.
20365         (process_references): Argument type changed.
20366         (symtab_remove_unreachable_nodes): New IPA REF function used.
20367         (process_references): Likewise.
20368         (set_writeonly_bit): Likewise.
20369         * lto-cgraph.c: Implementation of new symtab_node member functions
20370         that uses new IPA REF functions.
20371         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
20372         function used.
20373         * lto-streamer-out.c (output_symbol_p): Likewise.
20374         * lto-streamer.h (referenced_from_this_partition_p): Argument type
20375         changed.
20376         * symtab.c: Implementation of new IPA REF API.
20377         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
20378         (ipa_tm_create_version): Likewise.
20379         (ipa_tm_execute): Likewise.
20380         * tree-emutls.c (gen_emutls_addr): Likewise.
20381         * tree-inline.c (copy_bb): Likewise.
20382         (delete_unreachable_blocks_update_callgraph): Likewise.
20383         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
20384         (varpool_for_node_and_aliases): Likewise.
20385
20386 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
20387
20388         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
20389
20390 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
20391
20392         PR bootstrap/61598
20393         * fold-const.c (fold_checksum_tree): Use a hash_table of const
20394         tree_node * instead of tree_node *.
20395         (fold): Adjust.
20396         (print_fold_checksum): Likewise.
20397         (fold_check_failed): Likewise.
20398         (debug_fold_checksum): Likewise.
20399         (fold_build1_stat_loc): Likewise.
20400         (fold_build2_stat_loc): Likewise.
20401         (fold_build3_stat_loc): Likewise.
20402         (fold_build_call_array_loc): Likewise.
20403
20404 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
20405
20406         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
20407         implementation with call to...
20408         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
20409         function.
20410         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
20411         Declare.
20412
20413 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
20414
20415         PR tree-optimization/57742
20416         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
20417         after replacing the statement.
20418
20419 2014-06-25  Nick Clifton  <nickc@redhat.com>
20420
20421         * config/v850/v850.c (GHS_default_section_names): Change to const
20422         char * type.
20423         (GHS_current_section_names): Likewise.
20424         (v850_insert_attributes): Do not build strings, just assign the
20425         names directly.  Change the type of 'chosen_section' to const
20426         char*.
20427         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
20428         directly to the array entry.
20429         * config/v850/v850.h (GHS_default_section_names): Change to const
20430         char * type.
20431         (GHS_current_section_names): Likewise.
20432
20433 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
20434
20435         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
20436         (LANG_HOOKS_DECLS): Add it.
20437         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
20438         has correct type.
20439         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
20440         * langhooks.h (struct lang_hooks_for_decls): Add
20441         omp_clause_linear_ctor hook.
20442         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
20443         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
20444         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
20445         combined simd loop use omp_clause_linear_ctor hook.
20446
20447 2014-06-24  Cong Hou  <congh@google.com>
20448
20449         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
20450         pattern recognition.
20451         (type_conversion_p): PROMOTION is true if it's a type promotion
20452         conversion, and false otherwise.  Return true if the given expression
20453         is a type conversion one.
20454         * tree-vectorizer.h: Adjust the number of patterns.
20455         * tree.def: Add SAD_EXPR.
20456         * optabs.def: Add sad_optab.
20457         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
20458         * expr.c (expand_expr_real_2): Likewise.
20459         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
20460         * gimple.c (get_gimple_rhs_num_ops): Likewise.
20461         * optabs.c (optab_for_tree_code): Likewise.
20462         * tree-cfg.c (estimate_operator_cost): Likewise.
20463         * tree-ssa-operands.c (get_expr_operands): Likewise.
20464         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
20465         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
20466         * doc/generic.texi: Add document for SAD_EXPR.
20467         * doc/md.texi: Add document for ssad and usad.
20468
20469 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
20470
20471         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
20472         qualification in cast.
20473
20474 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
20475
20476         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
20477         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
20478         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
20479         (tree_function_decl): ... here.
20480         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
20481         streaming of vindex to ...
20482         (write_ts_function_decl_tree_pointers): ... here.
20483         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
20484         Do not stream DECL_VINDEX.
20485         (lto_input_ts_function_decl_tree_pointers): Stream it here.
20486
20487 2014-06-24  Catherine Moore  <clm@codesourcery.com>
20488             Sandra Loosemore  <sandra@codesourcery.com>
20489
20490         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
20491         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
20492         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
20493
20494 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
20495
20496         * doc/invoke.texi (Warning Options): Remove duplicated
20497         -Wmaybe-uninitialized.
20498
20499 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
20500
20501         PR tree-optimization/57742
20502         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
20503         (handle_builtin_malloc, handle_builtin_memset): New functions.
20504         (strlen_optimize_stmt): Call them.
20505         * passes.def: Move strlen after loop+dom but before vrp.
20506
20507 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
20508
20509         PR target/61570
20510         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
20511         model family 6 CPU with has_longmode never use a CPU without
20512         64-bit support.
20513
20514 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
20515
20516         PR target/61570
20517         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
20518         the last change.
20519
20520 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
20521
20522         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
20523         * dominance.c (iterate_fix_dominators): Use hash_map instead of
20524         pointer_map.
20525         * hash-map.h: New file.
20526         * ipa-comdats.c: Use hash_map instead of pointer_map.
20527         * ipa.c: Likewise.
20528         * lto-section-out.c: Adjust.
20529         * lto-streamer.h: Replace pointer_map with hash_map.
20530         * symtab.c (verify_symtab): Likewise.
20531         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
20532         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
20533         * tree-streamer.h: Likewise.
20534         * tree-streamer.c: Adjust.
20535         * pointer-set.h: Remove pointer_map.
20536
20537 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
20538
20539         * hash-table.h: Add a template arg to choose between storing values
20540         and storing pointers to values, and then provide partial
20541         specializations for both.
20542         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
20543         should store, not the type values should point to.
20544         * tree-into-ssa.c (var_info_hasher): Likewise.
20545         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
20546         * tree-complex.c: Adjust.
20547         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
20548         table instead of int_tree_map *.
20549         * tree-parloops.c: Adjust.
20550         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
20551         type is being stored.
20552         * tree-vectorizer.c: Adjust.
20553
20554 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
20555
20556         * hash-table.h: Remove a layer of indirection from hash_table so that
20557         it contains the hash table's data instead of a pointer to the data.
20558         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
20559         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
20560         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
20561         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
20562         fold-const.c, gcse.c, ggc-common.c,
20563         gimple-ssa-strength-reduction.c, gimplify.c,
20564         graphite-clast-to-gimple.c, graphite-dependences.c,
20565         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
20566         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
20567         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
20568         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
20569         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
20570         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
20571         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
20572         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
20573         tree-ssa-live.c, tree-ssa-loop-im.c,
20574         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
20575         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
20576         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
20577         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
20578         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
20579         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
20580         vtable-verify.c, vtable-verify.h: Adjust.
20581
20582 2014-06-24  Richard Biener  <rguenther@suse.de>
20583
20584         PR tree-optimization/61572
20585         * tree-ssa-sink.c (statement_sink_location): Do not sink
20586         loads from hard registers.
20587
20588 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
20589
20590         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
20591         not mentioned in clauses use private clause if the iterator is
20592         declared in #pragma omp for simd, and when adding lastprivate
20593         instead, add it to the outer #pragma omp for too.  Diagnose
20594         if the variable is private in outer context.  For simd collapse > 1
20595         loops, replace all iterators with temporaries.
20596         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
20597         same even in collapse > 1 loops.
20598
20599         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
20600         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
20601         non-NULL.
20602         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
20603         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
20604         non-NULL.
20605         (gimplify_adjust_omp_clauses): Likewise.
20606         * omp-low.c (lower_rec_simd_input_clauses,
20607         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
20608         safelen the same as safelen(1).
20609         * tree-nested.c (convert_nonlocal_omp_clauses,
20610         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
20611         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
20612         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
20613         Fixup handling of GIMPLE_OMP_TARGET.
20614         (convert_tramp_reference_stmt, convert_gimple_call): Handle
20615         GIMPLE_OMP_TARGET.
20616
20617 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
20618
20619         PR tree-optimization/61554
20620         * tree-ssa-propagate.c: Include "bitmap.h".
20621         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
20622         properly update constructor/destructor.
20623         (substitute_and_fold_dom_walker::before_dom_children):
20624         Remove call to gimple_purge_dead_eh_edges, add bb->index to
20625         need_eh_cleaup instead.
20626         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
20627         need_eh_cleanup.
20628
20629 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
20630
20631         * varpool.c (dump_varpool_node): Dump used_by_single_function.
20632         * tree-pass.h (make_pass_ipa_single_use): New pass.
20633         * cgraph.h (used_by_single_function): New flag.
20634         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
20635         Stream it.
20636         * passes.def (pass_ipa_single_use): Scedule.
20637         * ipa.c (BOTTOM): New macro.
20638         (meet): New function
20639         (propagate_single_user): New function.
20640         (ipa_single_use): New function.
20641         (pass_data_ipa_single_use): New pass.
20642         (pass_ipa_single_use): New pass.
20643         (pass_ipa_single_use::gate): New gate.
20644         (make_pass_ipa_single_use): New function.
20645
20646 2014-06-23  Kai Tietz  <ktietz@redhat.com>
20647
20648         PR target/39284
20649         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
20650         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
20651
20652 2014-06-23  Richard Biener  <rguenther@suse.de>
20653
20654         * tree-ssa-loop.c (gate_loop): New function.
20655         (pass_tree_loop::gate): Call it.
20656         (pass_data_tree_no_loop, pass_tree_no_loop,
20657         make_pass_tree_no_loop): New.
20658         * tree-vectorizer.c: Include tree-scalar-evolution.c
20659         (pass_slp_vectorize::execute): Initialize loops and SCEV if
20660         required.
20661         (pass_slp_vectorize::clone): New method.
20662         * timevar.def (TV_TREE_NOLOOP): New.
20663         * tree-pass.h (make_pass_tree_no_loop): Declare.
20664         * passes.def (pass_tree_no_loop): New pass group with
20665         SLP vectorizer.
20666
20667 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
20668
20669         PR target/61570
20670         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
20671         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
20672
20673 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
20674
20675         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
20676         "yes" where needed.
20677
20678 2014-06-23  Alan Modra  <amodra@gmail.com>
20679
20680         PR bootstrap/61583
20681         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
20682         to zero on debug statements.
20683
20684 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
20685
20686         PR target/60825
20687         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
20688         Ignore third operand if present by marking qualifier_internal.
20689
20690         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
20691
20692         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
20693         vector extension.
20694         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
20695         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
20696         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
20697         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
20698         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
20699         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
20700         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
20701         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
20702         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
20703         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
20704         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
20705         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
20706         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
20707         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
20708         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
20709         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
20710         logic in GCC vector extensions
20711
20712         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
20713         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
20714         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
20715         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
20716         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
20717         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
20718         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
20719         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
20720         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
20721         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
20722
20723         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
20724
20725         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
20726         extensions.
20727
20728         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
20729         (vget_low_s64): Use __GET_LOW macro.
20730         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
20731         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
20732         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
20733         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
20734         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
20735
20736         (vcombine_s64): Use GCC vector extensions; remove cast.
20737         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
20738         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
20739         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
20740         Fix type signature; remove cast.
20741
20742 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
20743
20744         PR target/60825
20745         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
20746         V1DFmode.
20747         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
20748         add V1DFmode
20749         (BUILTIN_VD1): New.
20750         (BUILTIN_VD_RE): Remove.
20751         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
20752         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
20753         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
20754         variant but not df.
20755         (vreinterpretv1df*, vreinterpret*v1df): New.
20756         (vreinterpretdf*, vreinterpret*df): Remove.
20757         * config/aarch64/aarch64-simd.md (aarch64_create,
20758         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
20759         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
20760         (VD1): New.
20761         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
20762         (vcreate_f64): Remove cast, use v1df builtin.
20763         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
20764         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
20765         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
20766         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
20767         vmov_n_f64, vst1_f64): Use gcc vector extensions.
20768         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
20769         add range check using __builtin_aarch64_im_lane_boundsi.
20770         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
20771         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
20772         type signature, use gcc vector extensions.
20773         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
20774         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
20775         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
20776         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
20777         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
20778         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
20779         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
20780         vreinterpret_u64_f64): Use v1df builtin not df.
20781
20782 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
20783
20784         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
20785         vector registers.
20786
20787 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
20788
20789         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
20790         priority directly.
20791
20792 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20793
20794         * loop-invariant.c (pre_check_invariant_p): New function.
20795         (find_invariant_insn): Call pre_check_invariant_p.
20796
20797 2014-06-22  Richard Henderson  <rth@redhat.com>
20798
20799         PR target/61565
20800         * compare-elim.c (struct comparison): Add eh_note.
20801         (find_comparison_dom_walker::before_dom_children): Don't eliminate
20802         a redundant comparison in a different EH region.  Purge EH edges if
20803         necessary.
20804
20805 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20806
20807         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
20808         (var_shift): Use it.
20809         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
20810         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
20811         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
20812         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
20813         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
20814         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
20815         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
20816         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
20817         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
20818         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
20819         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
20820         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
20821         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
20822         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
20823         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
20824         *rotldi3_internal15be): Use the new attribute.  Merge register and
20825         integer alternatives.
20826
20827 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20828
20829         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
20830         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
20831         split, *ashrdi3_internal3 and split): Delete, merge into...
20832         (ashr<mode>3): New expander.
20833         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
20834         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
20835
20836 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20837
20838         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
20839         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
20840         *rotldi3_internal3 and split): Delete, merge into...
20841         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
20842         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
20843         Use "rotlw" extended mnemonic.
20844
20845 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20846
20847         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
20848         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
20849         and split, *ashldi3_internal3 and split): Delete, merge into...
20850         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
20851         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
20852
20853 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20854
20855         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
20856         (lshrsi3, two anonymous define_insns and define_splits,
20857         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
20858         *lshrdi3_internal3 and split): Delete, merge into...
20859         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
20860         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
20861
20862 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20863
20864         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
20865         Remove "O" alternative.
20866
20867 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
20868
20869         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
20870         (mips_move_from_gpr_cost): Likewise.
20871         (mips_register_move_cost): Update accordingly.
20872         (mips_secondary_reload_class): Remove name of in_p.
20873
20874 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
20875
20876         PR target/61503
20877         * config/i386/i386.md (x86_64_shrd, x86_shrd,
20878         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
20879
20880 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
20881
20882         * config/nios2/nios2.c: Include "builtins.h".
20883
20884 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
20885
20886         * cgraph.h (tls_model_names): New variable.
20887         * print-tree.c (print_node): Simplify.
20888         * varpool.c (tls_model_names): New variable.
20889         (dump_varpool_node): Output tls model.
20890
20891 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
20892
20893         * ipa-visibility.c (function_and_variable_visibility): Disable
20894         temporarily local aliases for some targets.
20895
20896 2014-06-20  Marek Polacek  <polacek@redhat.com>
20897
20898         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
20899         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
20900         into SANITIZE_UNDEFINED.
20901         * doc/invoke.texi: Describe -fsanitize=bounds.
20902         * gimplify.c (gimplify_call_expr): Add gimplification of internal
20903         functions created in the FEs.
20904         * internal-fn.c: Move "internal-fn.h" after "tree.h".
20905         (expand_UBSAN_BOUNDS): New function.
20906         * internal-fn.def (UBSAN_BOUNDS): New internal function.
20907         * internal-fn.h: Don't define internal functions here.
20908         * opts.c (common_handle_option): Add -fsanitize=bounds.
20909         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
20910         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
20911         * tree-core.h: Define internal functions here.
20912         (struct tree_base): Add ifn field.
20913         * tree-pretty-print.c: Include "internal-fn.h".
20914         (dump_generic_node): Handle functions without CALL_EXPR_FN.
20915         * tree.c (get_callee_fndecl): Likewise.
20916         (build_call_expr_internal_loc): New function.
20917         * tree.def (CALL_EXPR): Update description.
20918         * tree.h (CALL_EXPR_IFN): Define.
20919         (build_call_expr_internal_loc): Declare.
20920         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
20921         types.
20922         (ubsan_type_descriptor): Change bool parameter to enum
20923         ubsan_print_style.  Adjust the code.  Add handling of
20924         UBSAN_PRINT_ARRAY.
20925         (ubsan_expand_bounds_ifn): New function.
20926         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
20927         (ubsan_build_overflow_builtin): Likewise.
20928         (instrument_bool_enum_load): Likewise.
20929         (ubsan_instrument_float_cast): Likewise.
20930         * ubsan.h (enum ubsan_print_style): New enum.
20931         (ubsan_expand_bounds_ifn): Declare.
20932         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
20933
20934 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
20935
20936         * config/rs6000/rs6000.md: Append `DONE' to preparation
20937         statements of `bswap' pattern splitters.
20938
20939 2014-06-20  Tom de Vries  <tom@codesourcery.com>
20940
20941         * target.def (call_fusage_contains_non_callee_clobbers): Update
20942         definition.
20943         * doc/tm.texi: Regenerate.
20944
20945 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
20946             Max Ostapenko  <m.ostapenko@partner.samsung.com>
20947
20948         PR sanitizer/61547
20949         * asan.c (instrument_strlen_call): Fixed instrumentation of
20950         trailing byte.
20951
20952 2014-06-20  Martin Jambor  <mjambor@suse.cz>
20953
20954         PR ipa/61540
20955         * ipa-prop.c (impossible_devirt_target): New function.
20956         (try_make_edge_direct_virtual_call): Use it, also instead of
20957         asserting.
20958
20959 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
20960             Max Ostapenko  <m.ostapenko@partner.samsung.com>
20961
20962         PR sanitizer/61530
20963         * asan.c (build_check_stmt): Add condition.
20964
20965 2014-06-20  Martin Jambor  <mjambor@suse.cz>
20966
20967         PR ipa/61211
20968         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
20969         expanded clones.
20970
20971 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20972
20973         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
20974         Update comments.
20975         (VCONQ): Make comment more helpful.
20976         (VCON): Delete.
20977         * config/aarch64/aarch64-simd.md
20978         (aarch64_sqdmulh_lane<mode>):
20979         Use VCOND for operands 2.  Update lane checking and flipping logic.
20980         (aarch64_sqrdmulh_lane<mode>): Likewise.
20981         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
20982         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
20983         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
20984         attribute of operand 3 to VCOND.
20985         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
20986         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
20987         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
20988         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
20989         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
20990         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
20991         define_insn.
20992         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
20993         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
20994         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
20995         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
20996         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
20997         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
20998         operand to VCOND.  Update lane flipping and bounds checking logic.
20999         (aarch64_sqdmlal2_lane<mode>): Likewise.
21000         (aarch64_sqdmlsl_lane<mode>): Likewise.
21001         (aarch64_sqdmull_lane<mode>): Likewise.
21002         (aarch64_sqdmull2_lane<mode>): Likewise.
21003         (aarch64_sqdmlal_laneq<mode>):
21004         Replace VCON usage with VCONQ.
21005         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
21006         (aarch64_sqdmlal2_laneq<mode>): Emit
21007         aarch64_sqdmlal2_laneq<mode>_internal insn.
21008         Replace VCON with VCONQ.
21009         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
21010         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
21011         (aarch64_sqdmull_laneq<mode>): Emit
21012         aarch64_sqdmull_laneq<mode>_internal insn.
21013         Replace VCON with VCONQ.
21014         (aarch64_sqdmull2_laneq<mode>): Emit
21015         aarch64_sqdmull2_laneq<mode>_internal insn.
21016         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
21017         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
21018         of 3rd argument to int16x4_t.
21019         (vqdmlalh_lane_s16): Likewise.
21020         (vqdmlslh_lane_s16): Likewise.
21021         (vqdmull_high_lane_s16): Likewise.
21022         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
21023         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
21024         (vqdmlsl_lane_s16): Likewise.
21025         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
21026         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
21027         (vqdmlals_lane_s32): Likewise.
21028         (vqdmlsls_lane_s32): Likewise.
21029         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
21030         (vqdmulls_lane_s32): Likewise.
21031         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
21032         (vqdmlsl_lane_s32): Likewise.
21033         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
21034         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
21035         (vqrdmulhh_lane_s16): Likewise.
21036         (vqdmlsl_high_lane_s16): Likewise.
21037         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
21038         (vqdmlsl_high_lane_s32): Likewise.
21039         (vqrdmulhs_lane_s32): Likewise.
21040
21041 2014-06-20  Tom de Vries  <tom@codesourcery.com>
21042
21043         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
21044         get_call_reg_set_usage.
21045
21046 2014-06-20  Tom de Vries  <tom@codesourcery.com>
21047
21048         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
21049         it contains all call_used_regs.
21050
21051 2014-06-20  Tom de Vries  <tom@codesourcery.com>
21052
21053         * final.c (collect_fn_hard_reg_usage): Add and use variable
21054         function_used_regs.
21055
21056 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
21057
21058         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
21059         (set_init_priority, get_init_priority, set_fini_priority,
21060         get_fini_priority): New methods.
21061         * tree.c (init_priority_for_decl): Remove.
21062         (init_ttree): Do not initialize init priority.
21063         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
21064         (decl_priority_info): Remove.
21065         (decl_init_priority_insert): Rewrite.
21066         (decl_fini_priority_insert): Rewrite.
21067         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
21068         tree_priority_map_marked_p): Remove.
21069         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
21070         * lto-streamer-out.c (hash_tree): Do not hash priorities.
21071         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
21072         not output priorities.
21073         (pack_ts_function_decl_value_fields): Likewise.
21074         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
21075         not input priorities.
21076         (unpack_ts_function_decl_value_fields): Likewise.
21077         * symtab.c (symbol_priority_map): Declare.
21078         (init_priority_hash): Declare.
21079         (symtab_unregister_node): Unregister from priority hash, too.
21080         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
21081         New methods.
21082         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
21083         (symbol_priority_info): New function.
21084         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
21085         New methods.
21086         * tree-core.h (tree_priority_map): Remove.
21087
21088 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
21089
21090         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
21091         0xff to uint64_t before shifting it up.
21092
21093 2014-06-20  Julian Brown  <julian@codesourcery.com>
21094             Chung-Lin Tang  <cltang@codesourcery.com>
21095
21096         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
21097         TARGET_THUMB1_ONLY. Add comments.
21098
21099 2014-06-19  Tom de Vries  <tom@codesourcery.com>
21100
21101         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
21102         return type to void.
21103         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
21104
21105 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21106
21107         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
21108         as "move", from depends_on.
21109
21110 2014-06-19  Terry Guo  <terry.guo@arm.com>
21111
21112         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
21113         stage.
21114
21115 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
21116
21117         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
21118         Remove cr5.
21119         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
21120
21121 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
21122
21123         PR target/61550
21124         * config/sh/sh.c (prepare_move_operands): Don't process TLS
21125         addresses here if reload in progress or completed.
21126
21127 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
21128
21129         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
21130         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
21131         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
21132         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
21133         (mips_register_priority): New function that implements the target
21134         hook TARGET_REGISTER_PRIORITY.
21135         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
21136         (mips_lra_p): Likewise for TARGET_LRA_P.
21137         (TARGET_REGISTER_PRIORITY): Define macro.
21138         (TARGET_SPILL_CLASS): Likewise.
21139         (TARGET_LRA_P): Likewise.
21140         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
21141         classes.
21142         (REG_CLASS_NAMES): Likewise.
21143         (REG_CLASS_CONTENTS): Likewise.
21144         (BASE_REG_CLASS): Use M16_SP_REGS.
21145         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
21146         New set attribute to enable alternatives depending on the register
21147         allocator used.
21148         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
21149         (*lea64): Disable pattern for MIPS16.
21150         * config/mips/mips.opt (mlra): New option.
21151
21152 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
21153
21154         * lra-constraints.c (base_to_reg): New function.
21155         (process_address): Use new function.
21156
21157 2014-06-18  Tom de Vries  <tom@codesourcery.com>
21158
21159         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
21160         * config/aarch64/aarch64.c
21161         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
21162         (aarch64_emit_call_insn): New function.
21163         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
21164         of emit_call_insn.
21165         * config/aarch64/aarch64.md (define_expand "call_internal")
21166         (define_expand "call_value_internal", define_expand "sibcall_internal")
21167         (define_expand "sibcall_value_internal"): New.
21168         (define_expand "call", define_expand "call_value")
21169         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
21170         expand variant and aarch64_emit_call_insn.
21171
21172 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
21173             Tom de Vries  <tom@codesourcery.com>
21174
21175         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
21176         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
21177         Redefine to true.
21178         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
21179         clobbers to CALL_INSN_FUNCTION_USAGE.
21180         (define_expand "sibcall_internal")
21181         (define_expand "sibcall_value_internal"): New.
21182         (define_expand "call", define_expand "call_value"): Add argument to
21183         arm_emit_call_insn.
21184         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
21185         (define_expand "sibcall_value"): Use sibcall_value_internal and
21186         arm_emit_call_insn.
21187
21188 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21189
21190         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
21191
21192 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21193
21194         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
21195         __udivmoddi4.
21196
21197 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21198
21199         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
21200         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
21201         annotations. Fix DWARF information.
21202
21203 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21204
21205         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
21206         __udivmoddi4, and fixups for negative operands.
21207
21208 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21209
21210         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
21211
21212 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21213
21214         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
21215         to __udivmoddi4.
21216
21217 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21218
21219         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
21220         manipulation.
21221
21222 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21223
21224         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
21225         describing register usage on function entry and exit.
21226
21227 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21228
21229         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
21230         (__aeabi_ldivmod): Fix whitespace.
21231
21232 2014-06-18  Andreas Schwab  <schwab@suse.de>
21233
21234         * doc/md.texi (Standard Names): Use @itemx for grouped items.
21235         Remove blank line after @item.
21236
21237 2014-06-18  Richard Henderson  <rth@redhat.com>
21238
21239         PR target/61545
21240         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
21241
21242 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21243
21244         * config/arm/arm.c (neon_vector_mem_operand): Allow register
21245         POST_MODIFY for neon loads and stores.
21246         (arm_print_operand): Output post-index register for neon loads and
21247         stores.
21248
21249 2014-06-18  Richard Biener  <rguenther@suse.de>
21250
21251         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
21252
21253 2014-06-18  Richard Biener  <rguenther@suse.de>
21254
21255         * tree-pass.h (make_pass_dce_loop): Remove.
21256         * passes.def: Replace pass_dce_loop with pass_dce.
21257         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
21258         changed free niter estimates and reset the scev cache.
21259         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
21260         make_pass_dce_loop): Remove.
21261         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
21262         (fini_copy_prop): Return whether something changed.  Always
21263         let substitute_and_fold perform DCE and free niter estimates
21264         and reset the scev cache if so.
21265         (execute_copy_prop): If sth changed schedule cleanup-cfg.
21266         (pass_data_copy_prop): Do not unconditionally schedule
21267         cleanup-cfg or update-ssa.
21268
21269 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
21270
21271         PR tree-optimization/61518
21272         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
21273         reduction var is used in reduction stmt or phi-function only.
21274
21275 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21276
21277         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
21278
21279 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21280
21281         PR tree-optimization/61517
21282         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
21283         whose rhs's first tree is the source expression instead of the
21284         expression itself.
21285         (find_bswap_or_nop): Likewise.
21286         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
21287         gimple stmt whose rhs's first tree is the source. In the memory source
21288         case, move the stmt to be replaced close to one of the original load to
21289         avoid the problem of a store between the load and the stmt's original
21290         location.
21291         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
21292         signature.
21293
21294 2014-06-18  Andreas Schwab  <schwab@suse.de>
21295
21296         PR rtl-optimization/54555
21297         * postreload.c (move2add_use_add2_insn): Substitute
21298         STRICT_LOW_PART only if it is cheaper.
21299
21300 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
21301
21302         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
21303         Do not use unspec as call operand.  Use memory_operand instead of
21304         memory_nox32_operand and add "m" operand constraint.  Disable
21305         pattern for TARGET_X32.
21306         (*sibcall_pop_memory): Ditto.
21307         (*sibcall_value_memory): Ditto.
21308         (*sibcall_value_pop_memory): Ditto.
21309         (sibcall peepholes): Merge SImode and DImode patterns using
21310         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
21311         Disable pattern for TARGET_X32.  Check if eliminated register is
21312         really dead after call insn.  Generate call RTX without unspec operand.
21313         (sibcall_value peepholes): Ditto.
21314         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
21315         instead of memory_nox32_operand.  Check if eliminated register is
21316         really dead after call insn. Generate call RTX without unspec operand.
21317         (sibcall_value_pop peepholes): Ditto.
21318         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
21319
21320 2014-06-18  Terry Guo  <terry.guo@arm.com>
21321
21322         PR target/61544
21323         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
21324         reach the head.
21325
21326 2014-06-18  Olivier Hainque  <hainque@adacore.com>
21327
21328         * tree-core.h (tree_block): Add an "end_locus" field, allowing
21329         memorization of the end of block source location.
21330         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
21331         * gimplify.c (gimplify_bind_expr): Propagate the block start and
21332         end source location info we have on the block entry/exit code we
21333         generate.
21334
21335 2014-06-18  Richard Biener  <rguenther@suse.de>
21336
21337         * common.opt (fssa-phiopt): New option.
21338         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
21339         but not with -Og.
21340         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
21341         * doc/invoke.texi (-fssa-phiopt): Document.
21342
21343 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21344
21345         * genattrtab.c (n_bypassed): New variable.
21346         (process_bypasses): Initialise n_bypassed.
21347         Count number of bypassed reservations.
21348         (make_automaton_attrs): Allocate space for bypassed reservations
21349         rather than number of bypasses.
21350
21351 2014-06-18  Richard Biener  <rguenther@suse.de>
21352
21353         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
21354         we propagated anything.
21355         (substitute_and_fold_dom_walker::before_dom_children): Something
21356         changed if we propagated into PHI arguments.
21357         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
21358         we removed a stmt.
21359
21360 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
21361
21362         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
21363         vector case.
21364         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
21365         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
21366         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
21367         Introduces alternative way of loads group permutaions.
21368         (vect_transform_grouped_load): Try alternative way of permutations.
21369
21370 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
21371
21372         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
21373         changed in ORT_TARGET region, don't jump to do_outer.
21374         (struct gimplify_adjust_omp_clauses_data): New type.
21375         (gimplify_adjust_omp_clauses_1): Adjust for data being
21376         a struct gimplify_adjust_omp_clauses_data pointer instead
21377         of tree *.  Pass pre_p as a new argument to
21378         lang_hooks.decls.omp_finish_clause hook.
21379         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
21380         splay_tree_foreach to pass both list_p and pre_p.
21381         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
21382         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
21383         gimplify_adjust_omp_clauses callers.
21384         * langhooks.c (lhd_omp_finish_clause): New function.
21385         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
21386         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
21387         * langhooks.h (struct lang_hooks_for_decls): Add a new
21388         gimple_seq * argument to omp_finish_clause hook.
21389         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
21390         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
21391         (scan_omp_parallel, lower_omp_for): When adding
21392         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
21393         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
21394         * tree-nested.c (convert_nonlocal_omp_clauses,
21395         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
21396         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
21397
21398 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
21399
21400         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
21401         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
21402
21403 2014-06-17  Xinliang David Li  <davidxl@google.com>
21404
21405         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
21406         * passes.c (pass_init_dump_file): Do not set initialize
21407         flag to false unconditionally.
21408
21409 2014-06-17  Richard Biener  <rguenther@suse.de>
21410
21411         * genopinit.c (main): Use vec<>::qsort method.
21412         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
21413         Likewise.
21414         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
21415
21416 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
21417
21418         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
21419         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
21420         (mips_move_to_gpr_cost): Remove ST_REGS case.
21421         (mips_move_from_gpr_cost): Likewise.
21422         (mips_register_move_cost): Likewise.
21423         (mips_secondary_reload_class): Likewise.
21424
21425 2014-06-17  Richard Biener  <rguenther@suse.de>
21426
21427         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
21428         (pass_all_optimizations): Move 3rd copy-prop pass from after
21429         fre to before ifcombine/phiopt.
21430
21431 2014-06-17  Richard Biener  <rguenther@suse.de>
21432
21433         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
21434         and allow all blocks to be forwarders.
21435
21436 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
21437
21438         PR target/61483
21439         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
21440         variable 'size'; calculate 'size' right in the front; use
21441         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
21442         pcum->aapcs_stack_words.
21443
21444 2014-06-17  Nick Clifton  <nickc@redhat.com>
21445
21446         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
21447         (umulhi3, mulsidi3, umulsidi3): Likewise.
21448
21449 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
21450
21451         PR middle-end/61508
21452         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
21453         check for section name.
21454
21455 2014-06-17  Richard Biener  <rguenther@suse.de>
21456
21457         * tree-ssa-propagate.c: Include domwalk.h.
21458         (substitute_and_fold): Outline main worker into a domwalker ...
21459         (substitute_and_fold_dom_walker::before_dom_children): ... here.
21460         Schedule stmts we can fully propagate for removal.  Remove
21461         poor-mans DCE.
21462         (substitute_and_fold): Apply a dominator walk to perform
21463         substitution.  Process stmts scheduled for removal here.
21464
21465 2014-06-17  Richard Biener  <rguenther@suse.de>
21466
21467         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
21468         of PHI node moving.
21469
21470 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
21471
21472         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
21473         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
21474         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
21475         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
21476         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
21477         TARGET_HARD_FLOAT.
21478         (get_fpscr) : Likewise.
21479
21480 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
21481
21482         PR rtl-optimization/61325
21483         * lra-constraints.c (valid_address_p): Add forward declaration.
21484         (simplify_operand_subreg): Check address validity before and after
21485         alter_reg of memory subreg.
21486
21487 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
21488
21489         * config/i386/i386.c (decide_alg): Correctly handle
21490         maximum size of stringop algorithm.
21491
21492 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
21493
21494         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
21495
21496 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
21497
21498         PR rtl-optimization/61522
21499         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
21500
21501 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
21502
21503         Revert:
21504         * symtab.c (symtab_node::reset_section): New method.
21505         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
21506         for localization.
21507         * cgraph.h (reset_section): Declare.
21508         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
21509         do not consider comdat locals.
21510         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
21511         for new symbol.
21512         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
21513         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
21514         reset sections of symbols dragged out of the comdats.
21515         (function_and_variable_visibility): Reset sections of
21516         localized symbols.
21517
21518 2014-06-16  Richard Biener  <rguenther@suse.de>
21519
21520         PR tree-optimization/61482
21521         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
21522         [-INF(OVF), +INF(OVF)] range.
21523
21524 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
21525
21526         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
21527         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
21528         handling 32-bit multiplication.
21529
21530 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
21531
21532         PR middle-end/61430
21533         * lra-lives.c (process_bb_lives): Skip creating copy during
21534         insn scan when src/dest has constrained to same regno.
21535
21536 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
21537
21538         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
21539         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
21540
21541 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
21542
21543         * asan.c (check_func): New function.
21544         (maybe_create_ssa_name): Likewise.
21545         (build_check_stmt_with_calls): Likewise.
21546         (use_calls_p): Likewise.
21547         (report_error_func): Change interface.
21548         (build_check_stmt): Allow non-integer lengths; add support
21549         for new parameter.
21550         (asan_instrument): Likewise.
21551         (instrument_mem_region_access): Moved code to build_check_stmt.
21552         (instrument_derefs): Likewise.
21553         (instrument_strlen_call): Likewise.
21554         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
21555         * doc/invoke.texi: Describe new parameter.
21556         * params.def: Define new parameter.
21557         * params.h: Likewise.
21558         * sanitizer.def: Describe new builtins.
21559
21560 2014-06-16  Richard Biener  <rguenther@suse.de>
21561
21562         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
21563         Make all defs available at the end.
21564         (eliminate): If we remove a PHI node schedule cfg-cleanup.
21565
21566 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
21567
21568         PR plugins/45078
21569         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
21570
21571 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
21572
21573         PR bootstrap/61516
21574         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
21575         initialization.  Replace remaining use of uid.
21576
21577 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
21578
21579         * c-family/c-common.c (handle_tls_model_attribute): Use
21580         set_decl_tls_model.
21581         * c-family/c-common.c (handle_tls_model_attribute): Use
21582         set_decl_tls_model.
21583         * cgraph.h (struct varpool_node): Add tls_model.
21584         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
21585         * tree.h (DECL_TLS_MODEL): Update.
21586         (DECL_THREAD_LOCAL_P): Check that variable is static.
21587         (decl_tls_model): Declare.
21588         (set_decl_tls_model): Declare.
21589         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
21590         set symbol prorperties.
21591         (get_emutls_init_templ_addr): Cleanup.
21592         (new_emutls_decl): Update.
21593         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
21594         (lto_input_varpool_node): Likewise.
21595         * lto-streamer-out.c (hash_tree): Likewise.
21596         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
21597         not stream DECL_TLS_MODEL.
21598         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
21599         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
21600
21601 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21602
21603         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
21604
21605 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21606
21607         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
21608         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
21609         lists.
21610         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
21611         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
21612         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
21613         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
21614         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
21615         (df_get_artificial_defs, df_get_artificial_uses)
21616         (df_single_def, df_single_use): Update accordingly.
21617         (df_refs_chain_dump): Take the first element in a linked list as
21618         parameter, rather than a pointer to an array of pointers.
21619         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
21620         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
21621         (df_chain_create_bb_process_use): Likewise.
21622         (df_md_bb_local_compute_process_def): Likewise.
21623         * fwprop.c (process_defs, process_uses): Likewise.
21624         (register_active_defs, update_uses): Likewise.
21625         (forward_propagate_asm): Update for new df_ref linking.
21626         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
21627         (df_null_ref_rec, df_null_mw_rec): Likewise.
21628         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
21629         explicitly.
21630         (df_scan_free_bb_info): Remove check for null artificial_defs.
21631         (df_install_ref_incremental): Adjust for new df_ref linking.
21632         Use a single-element insertion rather than a full sort.
21633         (df_ref_chain_delete_du_chain): Take the first element
21634         in a linked list as parameter, rather than a pointer to an array of
21635         pointers.
21636         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
21637         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
21638         (df_insn_info_delete): Remove check for null defs and call to
21639         df_scan_free_mws_vec.
21640         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
21641         null rather than df_null_*_rec.
21642         (df_insn_rescan_debug_internal): Likewise, and update null
21643         checks in the same way.  Remove check for null defs.
21644         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
21645         Move a single element rather doing a full sort.
21646         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
21647         linking.
21648         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
21649         Initialize df_ref and df_mw_hardreg lists to null rather than
21650         df_null_*_rec.
21651         (df_ref_compare): Take df_refs as parameter, transferring the
21652         old interface to...
21653         (df_ref_ptr_compare): ...this new function.
21654         (df_sort_and_compress_refs): Update accordingly.
21655         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
21656         old interface to...
21657         (df_mw_ptr_compare): ...this new function.
21658         (df_sort_and_compress_mws): Update accordingly.
21659         (df_install_refs, df_install_mws): Return a linked list rather than
21660         an array of pointers.
21661         (df_refs_add_to_chains): Assert that old lists are empty rather
21662         than freeing them.
21663         (df_insn_refs_verify): Don't handle null defs speciailly.
21664         * web.c (union_match_dups): Update for new df_ref linking.
21665
21666 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21667
21668         * df.h (df_ref_create, df_ref_remove): Delete.
21669         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
21670         (df_ref_remove): Likewise.
21671
21672 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21673
21674         * df.h (df_single_def, df_single_use): New functions.
21675         * ira.c (find_moveable_pseudos): Use them.
21676
21677 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21678
21679         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
21680         * df-problems.c (df_note_bb_compute): Use it.
21681         * regstat.c (regstat_bb_compute_ri): Likewise.
21682
21683 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21684
21685         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
21686         * cse.c (cse_extended_basic_block): Use them.
21687         * dce.c (mark_artificial_use): Likewise.
21688         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
21689         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
21690         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
21691         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
21692         (df_simulate_initialize_backwards): Likewise.
21693         (df_simulate_finalize_backwards): Likewise.
21694         (df_simulate_initialize_forwards): Likewise.
21695         (df_md_simulate_artificial_defs_at_top): Likewise.
21696         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
21697         * regrename.c (init_rename_info): Likewise.
21698         * regstat.c (regstat_bb_compute_ri): Likewise.
21699         (regstat_bb_compute_calls_crossed): Likewise.
21700
21701 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21702
21703         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
21704         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
21705         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
21706         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
21707         * combine.c (create_log_links): Likewise.
21708         * compare-elim.c (find_flags_uses_in_insn): Likewise.
21709         (try_eliminate_compare): Likewise.
21710         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
21711         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
21712         (remove_reg_equal_equiv_notes_for_defs): Likewise.
21713         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
21714         (word_dce_process_block, dce_process_block): Likewise.
21715         * ddg.c (def_has_ccmode_p): Likewise.
21716         * df-core.c (df_bb_regno_first_def_find): Likewise.
21717         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
21718         * df-problems.c (df_rd_simulate_one_insn): Likewise.
21719         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
21720         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
21721         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
21722         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
21723         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
21724         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
21725         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
21726         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
21727         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
21728         * fwprop.c (local_ref_killed_between_p): Likewise.
21729         (all_uses_available_at, free_load_extend): Likewise.
21730         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
21731         * hw-doloop.c (scan_loop): Likewise.
21732         * ifcvt.c (dead_or_predicable): Likewise.
21733         * init-regs.c (initialize_uninitialized_regs): Likewise.
21734         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
21735         (process_bb_node_lives): Likewise.
21736         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
21737         (find_moveable_pseudos): Likewise.
21738         * loop-invariant.c (check_dependencies, record_uses): Likewise.
21739         * recog.c (peep2_find_free_register): Likewise.
21740         * ree.c (get_defs): Likewise.
21741         * regstat.c (regstat_bb_compute_ri): Likewise.
21742         (regstat_bb_compute_calls_crossed): Likewise.
21743         * sched-deps.c (find_inc, find_mem): Likewise.
21744         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
21745         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
21746         * shrink-wrap.c (requires_stack_frame_p): Likewise.
21747         (prepare_shrink_wrap): Likewise.
21748         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
21749         * web.c (union_defs, pass_web::execute): Likewise.
21750         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
21751         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
21752
21753 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
21754
21755         * lra-assign.c (assign_by_spills): Add code to assign vector regs
21756         to inheritance pseudos.
21757         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
21758
21759 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
21760
21761         PR target/61415
21762         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
21763         (BU_MISC_2): Rename to ...
21764         (BU_LDBL128_2): ... this.
21765         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
21766         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
21767         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
21768         RS6000_BTM_LDBL128.
21769         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
21770         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
21771         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
21772         (unpacktf_1): Likewise.
21773         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
21774         (__builtin_longdouble_dw1): Likewise.
21775         * doc/sourcebuild.texi (longdouble128): Document.
21776
21777 2014-06-13  Jeff Law  <law@redhat.com>
21778
21779         PR rtl-optimization/61094
21780         PR rtl-optimization/61446
21781         * ree.c (combine_reaching_defs): Get the mode for the copy from
21782         the extension insn rather than the defining insn.
21783
21784 2014-06-13  Dehao Chen  <dehao@google.com>
21785
21786         * dwarf2out.c (add_linkage_name): Emit more linkage name.
21787
21788 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
21789
21790         * doc/install.texi (--enable-linker-plugin-configure-flags)
21791         (--enable-linker-plugin-flags): Document new flags.
21792
21793 2014-06-13  Martin Jambor  <mjambor@suse.cz>
21794
21795         PR ipa/61186
21796         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
21797         cache_token if returning early.
21798
21799 2014-06-13  Nick Clifton  <nickc@redhat.com>
21800
21801         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
21802         requested alignment is active.
21803         (LABEL_ALIGN): Likewise.
21804         (LOOP_ALIGN): Likewise.
21805
21806 2014-06-13  Richard Biener  <rguenther@suse.de>
21807
21808         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
21809         Rewrite to propagate the VN result into all uses where
21810         possible and to remove stmts becoming dead because of that.
21811         (eliminate): Generalize stmt removal handling, remove in
21812         reverse dominator order to support proper debug stmt
21813         generation.  Update stmts before removing stmts.
21814         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
21815
21816 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21817
21818         PR tree-optimization/61375
21819         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
21820         symbolic number cannot be represented in an uint64_t.
21821         (find_bswap_or_nop_1): Likewise.
21822
21823 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
21824
21825         * symtab.c (symtab_node::reset_section): New method.
21826         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
21827         for localization.
21828         * cgraph.h (reset_section): Declare.
21829         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
21830         do not consider comdat locals.
21831         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
21832         for new symbol.
21833         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
21834         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
21835         reset sections of symbols dragged out of the comdats.
21836         (function_and_variable_visibility): Reset sections of
21837         localized symbols.
21838
21839 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
21840
21841         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
21842         to use symtab and decl_binds_to_current_def_p
21843         * tree-vectorizer.c (increase_alignment): Increase alignment
21844         of alias target, too.
21845
21846 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
21847
21848         PR middle-end/61486
21849         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
21850         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
21851         if outer combined construct is distribute.
21852         (gimplify_omp_for): For OMP_DISTRIBUTE set
21853         gimplify_omp_ctxp->distribute.
21854         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
21855         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
21856         mapping into decl map.
21857
21858 2014-06-12  Jason Merrill  <jason@redhat.com>
21859
21860         * common.opt (fabi-version): Change default to 0.
21861
21862 2014-06-12  Jason Merrill  <jason@redhat.com>
21863
21864         * toplev.c (process_options): Reject -fabi-version=1.
21865
21866 2014-06-12  Jeff Law  <law@redhat.com>
21867
21868         PR tree-optimization/61009
21869         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
21870         value when we stop processing a block due to problematic PHIs.
21871
21872 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
21873
21874         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
21875         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
21876         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
21877         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
21878         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
21879         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
21880         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
21881         are not in the spec.
21882
21883 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
21884
21885         PR target/59843
21886         * config/aarch64/aarch64-modes.def: Add V1DFmode.
21887         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
21888         Support V1DFmode.
21889
21890 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
21891
21892         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
21893
21894 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
21895
21896         PR target/61443
21897         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
21898         loading from address spaces.
21899
21900 2014-06-12  Martin Liska  <mliska@suse.cz>
21901
21902         PR ipa/61462
21903         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
21904         statement is reachable.
21905
21906 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
21907
21908         * symtab.c (section_hash): New hash.
21909         (symtab_unregister_node): Clear section before freeing.
21910         (hash_section_hash_entry): New haser.
21911         (eq_sections): New function.
21912         (symtab_node::set_section_for_node): New method.
21913         (set_section_1): Update.
21914         (symtab_node::set_section): Take string instead of tree as parameter.
21915         (symtab_resolve_alias): Update.
21916         * cgraph.h (section_hash_entry_d): New structure.
21917         (section_hash_entry): New typedef.
21918         (cgraph_node): Change comdat_group_ to x_comdat_group,
21919         change section_ to x_section and turn into section_hash_entry;
21920         update accestors; put set_section_for_node offline.
21921         * tree.c (decl_section_name): Turn into string.
21922         (set_decl_section_name): Change parameter to be string.
21923         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
21924         * sdbout.c (sdbout_one_type): Update.
21925         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
21926         * varasm.c (IN_NAMED_SECTION, get_named_section,
21927         resolve_unique_section, hot_function_section, get_named_text_section,
21928         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
21929         make_decl_rtl, default_unique_section): Update.
21930         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
21931         (c6x_elf_unique_section): Update.
21932         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
21933         * config/pa/pa.c (pa_function_section): Update.
21934         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
21935         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
21936         * config/arc/arc.c (arc_in_small_data_p): Update.
21937         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
21938         * config/mcore/mcore.c (mcore_unique_section): Update.
21939         * config/mips/mips.c (mips16_build_function_stub): Update.
21940         (mips16_build_call_stub): Update.
21941         (mips_function_rodata_section): Update.
21942         (mips_in_small_data_p): Update.
21943         * config/score/score.c (score_in_small_data_p): Update.
21944         * config/rx/rx.c (rx_in_small_data): Update.
21945         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
21946         (rs6000_xcoff_asm_named_section): Update.
21947         (rs6000_xcoff_unique_section): Update.
21948         * config/frv/frv.c (frv_string_begins_with): Update.
21949         (frv_in_small_data_p): Update.
21950         * config/v850/v850.c (v850_encode_data_area): Update.
21951         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
21952         (bfin_handle_l1_data_attribute): Update.
21953         (bfin_handle_l2_attribute): Update.
21954         * config/mep/mep.c (mep_unique_section): Update.
21955         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
21956         Update.
21957         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
21958         (h8300_handle_tiny_data_attribute): Update.
21959         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
21960         (m32r_in_small_data_p): Update.
21961         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
21962         * config/i386/i386.c (ix86_in_large_data_p): Update.
21963         * config/i386/winnt.c (i386_pe_unique_section): Update.
21964         * config/darwin.c (darwin_function_section): Update.
21965         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
21966         * tree-emutls.c (get_emutls_init_templ_addr): Update.
21967         (new_emutls_decl): Update.
21968         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
21969         input_varpool_node): Update.
21970         (ead_string_cst): Turn to ...
21971         (read_string): ... this one.
21972         * dwarf2out.c (secname_for_decl): Update.
21973         * asan.c (asan_protect_global): Update.
21974
21975 2014-06-11  DJ Delorie  <dj@redhat.com>
21976
21977         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
21978         cache lines.
21979         * config/rx/rx.c (rx_option_override): Likewise.
21980         (rx_align_for_label): Likewise.
21981
21982         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
21983
21984 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
21985
21986         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
21987         prototype.
21988
21989 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21990
21991         * common.md: New file.
21992         * doc/md.texi: Update description of generic, machine-independent
21993         constraints.
21994         * config/s390/constraints.md (e): Delete.
21995         * Makefile.in (md_file): Include common.md.
21996         * config/m32c/t-m32c (md_file): Likewise.
21997         * genpreds.c (general_mem): New array.
21998         (generic_constraint_letters): Remove constraints now defined by
21999         common.md.
22000         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
22001         Allow the first character to be '<' or '>' as well.
22002         * genoutput.c (general_mem): New array.
22003         (indep_constraints): Remove constraints now defined by common.md.
22004         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
22005         Remove special handling of 'm'.
22006         * ira-costs.c (record_reg_classes): Remove special handling of
22007         constraints now defined by common.md.
22008         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
22009         * ira-lives.c (single_reg_class): Likewise.
22010         (ira_implicitly_set_insn_hard_regs): Likewise.
22011         * lra-constraints.c (reg_class_from_constraints): Likewise.
22012         (process_alt_operands, process_address, curr_insn_transform): Likewise.
22013         * postreload.c (reload_cse_simplify_operands): Likewise.
22014         * reload.c (push_secondary_reload, scratch_reload_class)
22015         (find_reloads, alternative_allows_const_pool_ref): Likewise.
22016         * reload1.c (maybe_fix_stack_asms): Likewise.
22017         * targhooks.c (default_secondary_reload): Likewise.
22018         * stmt.c (parse_output_constraint): Likewise.
22019         * recog.c (preprocess_constraints): Likewise.
22020         (constrain_operands, peep2_find_free_register): Likewise.
22021         (asm_operand_ok): Likewise, but add a comment saying why 'o'
22022         must be handled specially.
22023
22024 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
22025
22026         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
22027         * genpreds.c (have_const_dbl_constraints): Delete.
22028         (add_constraint): Don't set it.
22029         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
22030         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
22031         constraints using the lookup_constraint logic.
22032         * ira-lives.c (single_reg_class): Likewise.
22033         * ira.c (ira_setup_alts): Likewise.
22034         * lra-constraints.c (process_alt_operands): Likewise.
22035         * recog.c (asm_operand_ok, constrain_operands): Likewise.
22036         * reload.c (find_reloads): Likewise.
22037
22038 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
22039
22040         * genpreds.c (const_int_start, const_int_end): New variables.
22041         (choose_enum_order): Output CONST_INT constraints before memory
22042         constraints.
22043         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
22044         Add CT_CONST_INT.
22045         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
22046         * ira.c (ira_setup_alts): Likewise.
22047         * lra-constraints.c (process_alt_operands): Likewise.
22048         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
22049         * reload.c (find_reloads): Likewise.
22050
22051 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
22052
22053         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
22054         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
22055         * recog.c (preprocess_constraints): Update accordingly.
22056
22057 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
22058
22059         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
22060         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
22061         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
22062         * genpreds.c (print_type_tree): New function.
22063         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
22064         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
22065         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
22066         Write out enum constraint_type and get_constraint_type.
22067         * lra-constraints.c (satisfies_memory_constraint_p): Take a
22068         constraint_num rather than a constraint string.
22069         (satisfies_address_constraint_p): Likewise.
22070         (reg_class_from_constraints): Avoid old constraint macros.
22071         (process_alt_operands, process_address_1): Likewise.
22072         (curr_insn_transform): Likewise.
22073         * ira-costs.c (record_reg_classes): Likewise.
22074         (record_operand_costs): Likewise.
22075         * ira-lives.c (single_reg_class): Likewise.
22076         (ira_implicitly_set_insn_hard_regs): Likewise.
22077         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
22078         * postreload.c (reload_cse_simplify_operands): Likewise.
22079         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
22080         (constrain_operands, peep2_find_free_register): Likewise.
22081         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
22082         (find_reloads, alternative_allows_const_pool_ref): Likewise.
22083         * reload1.c (maybe_fix_stack_asms): Likewise.
22084         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
22085         * targhooks.c (default_secondary_reload): Likewise.
22086         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
22087         to EXTRA_CONSTRAINT_STR.
22088         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
22089
22090 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
22091
22092         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
22093         (write_constraint_satisfied_p_array): ...this new function.
22094         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
22095         an array.
22096         (write_insn_preds_c): Update accordingly.
22097
22098 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
22099
22100         * genpreds.c (write_lookup_constraint): Rename to...
22101         (write_lookup_constraint_1): ...this.
22102         (write_lookup_constraint_array): New function.
22103         (write_tm_preds_h): Define lookup_constraint as an inline function
22104         that uses write_lookup_constraint_array where possible.
22105         (write_insn_preds_c): Update for the changes above.
22106
22107 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
22108
22109         * doc/md.texi (regclass_for_constraint): Rename to...
22110         (reg_class_for_constraint): ...this.
22111         * genpreds.c (num_constraints, enum_order, register_start)
22112         (register_end, satisfied_start, memory_start, memory_end)
22113         (address_start, address_end): New variables.
22114         (add_constraint): Count the number of constraints.
22115         (choose_enum_order): New function.
22116         (write_enum_constraint_num): Iterate over enum_order.
22117         (write_regclass_for_constraint): Rename to...
22118         (write_reg_class_for_constraint_1): ...this and update output
22119         accordingly.
22120         (write_constraint_satisfied_p): Rename to...
22121         (write_constraint_satisfied_p_1): ...this and update output
22122         accordingly.  Do nothing if all extra constraints are register
22123         constraints.
22124         (write_insn_extra_memory_constraint): Delete.
22125         (write_insn_extra_address_constraint): Delete.
22126         (write_range_function): New function.
22127         (write_tm_preds_h): Define constraint_satisfied_p and
22128         reg_class_for_constraint as inline functions that do a range check
22129         before calling the out-of-line function.  Use write_range_function
22130         to implement insn_extra_{register,memory,address}_constraint,
22131         the first of which is new.
22132         (write_insn_preds_c): Update after above changes to write_* functions.
22133         (main): Call choose_enum_order.
22134
22135 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22136
22137         PR tree-optimization/61306
22138         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
22139         expression instead of its size.
22140         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
22141         false to prevent optimization when the result is unpredictable due to
22142         arithmetic right shift of signed type with highest byte is set.
22143         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
22144         (init_symbolic_number): Likewise.
22145         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
22146         when the result is unpredictable due to sign extension.
22147
22148 2014-06-11  Terry Guo  <terry.guo@arm.com>
22149
22150         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
22151         (*thumb1_addsi3): Ditto.
22152         (*thumb_subdi3): Ditto.
22153         (thumb1_subsi3_insn): Ditto.
22154         (*thumb_mulsi3): Ditto.
22155         (*thumb_mulsi3_v6): Ditto.
22156         (*thumb1_andsi3_insn): Ditto.
22157         (thumb1_bicsi3): Ditto.
22158         (*thumb1_iorsi3_insn): Ditto.
22159         (*thumb1_xorsi3_insn): Ditto.
22160         (*thumb1_ashlsi3): Ditto.
22161         (*thumb1_ashrsi3): Ditto.
22162         (*thumb1_lshrsi3): Ditto.
22163         (*thumb1_rotrsi3): Ditto.
22164         (*thumb1_negdi2): Ditto.
22165         (*thumb1_negsi2): Ditto.
22166         (*thumb1_abssi2): Ditto.
22167         (*thumb1_neg_abssi2): Ditto.
22168         (*thumb1_one_cmplsi2): Ditto.
22169         (*thumb1_zero_extendhisi2): Ditto.
22170         (*thumb1_zero_extendqisi2): Ditto.
22171         (*thumb1_zero_extendqisi2_v6): Ditto.
22172         (thumb1_extendhisi2): Ditto.
22173         (thumb1_extendqisi2): Ditto.
22174         (*thumb1_movdi_insn): Ditto.
22175         (*thumb1_movsi_insn): Ditto.
22176         (*thumb1_movhi_insn): Ditto.
22177         (thumb_movhi_clobber): Ditto.
22178         (*thumb1_movqi_insn): Ditto.
22179         (*thumb1_movhf): Ditto.
22180         (*thumb1_movsf_insn): Ditto.
22181         (*thumb_movdf_insn): Ditto.
22182         (movmem12b): Ditto.
22183         (movmem8b): Ditto.
22184         (cbranchqi4): Ditto.
22185         (cbranchsi4_insn): Ditto.
22186         (cbranchsi4_scratch): Ditto.
22187         (*negated_cbranchsi4): Ditto.
22188         (*tbit_cbranch): Ditto.
22189         (*tlobits_cbranch): Ditto.
22190         (*tstsi3_cbranch): Ditto.
22191         (*cbranchne_decr1): Ditto.
22192         (*addsi3_cbranch): Ditto.
22193         (*addsi3_cbranch_scratch): Ditto.
22194         (*thumb_cmpdi_zero): Ditto.
22195         (cstoresi_eq0_thumb1): Ditto.
22196         (cstoresi_ne0_thumb1): Ditto.
22197         (*cstoresi_eq0_thumb1_insn): Ditto.
22198         (*cstoresi_ne0_thumb1_insn): Ditto.
22199         (cstoresi_nltu_thumb1): Ditto.
22200         (cstoresi_ltu_thumb1): Ditto.
22201         (thumb1_addsi3_addgeu): Ditto.
22202         (*thumb_jump): Ditto.
22203         (*call_reg_thumb1_v5): Ditto.
22204         (*call_reg_thumb1): Ditto.
22205         (*call_value_reg_thumb1_v5): Ditto.
22206         (*call_value_reg_thumb1): Ditto.
22207         (*call_insn): Ditto.
22208         (*call_value_insn): Ditto.
22209         (thumb1_casesi_internal_pic): Ditto.
22210         (thumb1_casesi_dispatch): Ditto.
22211         (*thumb1_indirect_jump): Ditto.
22212         (prologue_thumb1_interwork): Ditto.
22213         (*epilogue_insns): Ditto.
22214         (consttable_1): Ditto.
22215         (consttable_2): Ditto.
22216         (tablejump): Ditto.
22217         (*thumb1_tablejump): Ditto.
22218         (thumb_eh_return): Ditto.
22219         (define_peephole2): Two of them are thumb1 only and got moved into
22220         new file thumb1.md.
22221         (define_split): Six of them are thumb1 only and got moved into new
22222         file thumb1.md.
22223         * config/arm/thumb1.md: New file comprised of above thumb1 only
22224         patterns.
22225
22226 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22227
22228         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
22229         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
22230         dependencies.
22231         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
22232         (aarch64_crc_builtin_datum): New struct.
22233         (aarch64_crc_builtin_data): New.
22234         (aarch64_init_crc32_builtins): New function.
22235         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
22236         (aarch64_crc32_expand_builtin): New.
22237         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
22238         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
22239         __ARM_FEATURE_CRC32 when appropriate.
22240         (TARGET_CRC32): Define.
22241         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
22242         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
22243         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
22244         (aarch64_<crc_variant>): New pattern.
22245         * config/aarch64/arm_acle.h: New file.
22246         * config/aarch64/iterators.md (CRC): New int iterator.
22247         (crc_variant, crc_mode): New int attributes.
22248         * doc/aarch64-acle-intrinsics.texi: New file.
22249         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
22250         Include aarch64-acle-intrinsics.texi.
22251
22252 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
22253
22254         * tree-vect-data-refs.c (vect_grouped_store_supported): New
22255         check for stores group of length 3.
22256         (vect_permute_store_chain): New permutations for stores group of
22257         length 3.
22258         * tree-vect-stmts.c (vect_model_store_cost): Change cost
22259         of vec_perm_shuffle for the new permutations.
22260
22261 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
22262
22263         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
22264         table rewriting temporarily on targets not supporting ONE_ONLY.
22265
22266 2014-06-11  Richard Biener  <rguenther@suse.de>
22267
22268         PR middle-end/61437
22269         Revert
22270         2014-06-04  Richard Biener  <rguenther@suse.de>
22271
22272         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
22273         TREE_PUBLIC and DECL_EXTERNAL decls.
22274
22275 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
22276
22277         * varasm.c (set_implicit_section): New function.
22278         (resolve_unique_section): Use it to set implicit section
22279         for aliases, too.
22280         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
22281         (default_function_section): Likewise.
22282         (decl_binds_to_current_def_p): Constify argument.
22283         * varasm.h (decl_binds_to_current_def_p): Update prototype.
22284         * asan.c (asan_protect_global): Use
22285         symtab_get_node (decl)->implicit_section.
22286         * symtab.c (dump_symtab_base): Dump implicit sections.
22287         (verify_symtab_base): Verify sanity of sectoins and comdats.
22288         (symtab_resolve_alias): Alias share the section of its target.
22289         (set_section_1): New function.
22290         (symtab_node::set_section): Move here, recurse to aliases.
22291         (verify_symtab): Check for duplicated symtab lists.
22292         * tree-core.h (implicit_section_name_p): Remove.
22293         * tree-vect-data-refs.c: Include varasm.h.
22294         (vect_can_force_dr_alignment_p): Fix conditional on when
22295         decl bints to current definition; use
22296         symtab_get_node (decl)->implicit_section.
22297         * cgraph.c (cgraph_make_node_local_1): Fix section set.
22298         * cgraph.h (struct symtab_node): Add implicit_section.
22299         (set_section): Rename to ...
22300         (set_section_for_node): ... this one.
22301         (set_section): Declare.
22302         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
22303         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
22304         input_overwrite_node, input_varpool_node): Stream implicit_section.
22305         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
22306         removal; it will fail in LTO.
22307
22308 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22309
22310         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
22311         Change second alternative type to f_mcr.
22312         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
22313         and 12th alternatives' types to f_mcr and f_mrc.
22314         (*movdi_aarch64): Same for 12th and 13th alternatives.
22315         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
22316         (aarch64_movtilow_tilow): Change type to fmov.
22317
22318 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
22319
22320         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
22321         (aarch64_save_or_restore_callee_save_registers): Fix layout.
22322
22323 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22324
22325         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
22326         New expander.
22327         (aarch64_sqrdmulh_lane<mode>): Likewise.
22328         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
22329         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
22330         (aarch64_sqdmulh_laneq<mode>): New expander.
22331         (aarch64_sqrdmulh_laneq<mode>): Likewise.
22332         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
22333         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
22334         (aarch64_sqdmulh_lane<mode>): New expander.
22335         (aarch64_sqrdmulh_lane<mode>): Likewise.
22336         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
22337         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
22338         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
22339         (aarch64_sqdmlal_laneq<mode>): Likewise.
22340         (aarch64_sqdmlsl_lane<mode>): Likewise.
22341         (aarch64_sqdmlsl_laneq<mode>): Likewise.
22342         (aarch64_sqdmlal2_lane<mode>): Likewise.
22343         (aarch64_sqdmlal2_laneq<mode>): Likewise.
22344         (aarch64_sqdmlsl2_lane<mode>): Likewise.
22345         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
22346         (aarch64_sqdmull_lane<mode>): Likewise.
22347         (aarch64_sqdmull_laneq<mode>): Likewise.
22348         (aarch64_sqdmull2_lane<mode>): Likewise.
22349         (aarch64_sqdmull2_laneq<mode>): Likewise.
22350
22351 2014-06-10  Richard Biener  <rguenther@suse.de>
22352
22353         PR tree-optimization/61438
22354         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
22355         (eliminate_dom_walker::before_dom_children): Only try to inhibit
22356         insertion of IVs if running PRE.
22357         (eliminate): Adjust.
22358         (pass_pre::execute): Likewise.
22359         (pass_fre::execute): Likewise.
22360
22361 2014-06-10  Richard Biener  <rguenther@suse.de>
22362
22363         PR middle-end/61456
22364         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
22365         Do not use the main variant for the type comparison.
22366         (ncr_compar): Likewise.
22367         (nonoverlapping_component_refs_p): Likewise.
22368
22369 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22370
22371         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
22372         REG_CFA_RESTORE mode.
22373
22374 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
22375
22376         * config/i386/i386.c (expand_vec_perm_pblendv): New.
22377         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
22378         expand_vec_perm_pblendv.
22379
22380 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22381
22382         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
22383         available.
22384         Simplify description of __crc32d and __crc32cd intrinsics.
22385         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
22386         availability.
22387
22388 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
22389
22390         PR lto/61334
22391         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
22392         * config.in: Regenerate.
22393         * configure: Likewise.
22394
22395 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
22396
22397         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
22398         and public vars.
22399         (intersect_static_var_sets): Remove.
22400         (propagate): Do not prune local statics.
22401
22402 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
22403
22404         PR fortran/60928
22405         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
22406         Set lastprivate_firstprivate even if omp_private_outer_ref
22407         langhook returns true.
22408         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
22409         langhook, call unshare_expr on new_var and call
22410         build_outer_var_ref to get the last argument.
22411
22412 2014-06-10  Marek Polacek  <polacek@redhat.com>
22413
22414         PR c/60988
22415         * doc/extend.texi: Add cindex for transparent_union.
22416
22417 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22418
22419         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
22420         init_symbolic_number ().
22421
22422 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
22423
22424         PR middle-end/61141
22425         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
22426         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
22427         (verify_rtl_sharing): Likewise.
22428
22429 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
22430
22431         PR c++/54442
22432         * tree.c (build_qualified_type): Use a canonical type for
22433         TYPE_CANONICAL.
22434
22435 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22436
22437         * config/arm/arm-modes.def: Remove XFmode.
22438
22439 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
22440
22441         PR target/61062
22442         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
22443         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
22444         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
22445         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
22446         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
22447         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
22448         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
22449         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
22450         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
22451
22452 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
22453
22454         * tree-core.h (tree_decl_with_vis): Remove section_name.
22455
22456 2014-06-09  Kito Cheng  <kito@0xlab.org>
22457
22458         * ira.c (ira): Don't call init_caller_save if LRA enabled
22459         since LRA use its own infrastructure to handle that.
22460
22461 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
22462
22463         * symtab.c (dump_symtab_base): Update dumping.
22464         (symtab_make_decl_local): Clear only DECL_COMDAT.
22465         * tree-vect-data-refs.c (Check that variable is static before
22466         tampering with sections.
22467         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
22468         (cgraph_create_virtual_clone): Likewise.
22469         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
22470         (decl_section_name, set_decl_section_name): New accessors.
22471         (find_decls_types_r): Do not walk section name
22472         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
22473         (decl_comdat_group, decl_comdat_group_id): Constify.
22474         (decl_section_name, set_decl_section_name): Update.
22475         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
22476         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
22477         (cgraph_make_node_local_1): Clear section and comdat group.
22478         * cgraph.h (set_comdat_group): Sanity check.
22479         (get_section, set_section): New.
22480         * ipa-comdats.c (ipa_comdats): Use get_section.
22481         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
22482         * lto-streamer-out.c: Do not follow section names.
22483         * c-family/c-common.c (handle_section_attribute): Update.
22484         * lto-cgraph.c (lto_output_node): Output section.
22485         (lto_output_varpool_node): Likewise.
22486         (read_comdat_group): Rename to ...
22487         (read_identifier): ... this one.
22488         (read_string_cst): New function.
22489         (input_node, input_varpool_node): Input section names.
22490         * tree-emutls.c (get_emutls_init_templ_addr): Update.
22491         (new_emutls_decl): Update.
22492         (secname_for_decl): Check section names only of static vars.
22493         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
22494         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
22495         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
22496         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
22497         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
22498         * config/mcore/mcore.c (mcore_unique_section): Likewise.
22499         * config/mips/mips.c (mips16_build_function_stub): Likewise.
22500         * config/v850/v850.c (v850_insert_attributes): Likewise.
22501         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
22502         Likewise.
22503         (h8300_handle_tiny_data_attribute): Likewise.
22504         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
22505         (bfin_handle_l2_attribute): Likewise.
22506
22507 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
22508
22509         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
22510         remove static initializer.
22511
22512 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
22513
22514         * varasm.c (use_blocks_for_decl_p): Check symbol table
22515         instead of alias attribute.
22516         (place_block_symbol): Recurse on aliases.
22517
22518 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
22519
22520         * ipa-visibility.c: Include varasm.h
22521         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
22522
22523 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
22524
22525         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
22526         outputting aliases.
22527
22528 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
22529
22530         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
22531         from test_insn into GGC space escape via SET_SRC.
22532
22533 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
22534
22535         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
22536         call statement, if any.
22537         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
22538         statements, if any.  Tidy up.
22539
22540 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
22541
22542         PR target/61431
22543         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
22544         iterators, VSX_D that handles 64-bit types, and VSX_LE that
22545         handles swapping the two 64-bit double words on little endian
22546         systems.  Include V1TImode and optionally TImode in VSX_LE so that
22547         these types are properly swapped.  Change all of the insns and
22548         splits that do the 64-bit swaps to use VSX_LE.
22549         (vsx_le_perm_load_<mode>): Likewise.
22550         (vsx_le_perm_store_<mode>): Likewise.
22551         (splitters for little endian memory operations): Likewise.
22552         (vsx_xxpermdi2_le_<mode>): Likewise.
22553         (vsx_lxvd2x2_le_<mode>): Likewise.
22554         (vsx_stxvd2x2_le_<mode>): Likewise.
22555
22556 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
22557
22558         PR target/61423
22559         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
22560         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
22561         and corresponding splitters.  Zero extend general register
22562         or memory input operand to XMM temporary.  Enable for
22563         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
22564         (floatunssi<mode>2): Update expander predicate.
22565
22566 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
22567
22568         PR rtl-optimization/61325
22569         * lra-constraints.c (process_address_1): Check scale equal to one
22570         to prevent transformation: base + scale * index => base + new_reg.
22571
22572 2014-06-06  Richard Biener  <rguenther@suse.de>
22573
22574         PR tree-optimization/59299
22575         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
22576         a def operand.
22577         (nearest_common_dominator_of_uses): Likewise.
22578         (statement_sink_location): Adjust.  Support sinking loads.
22579
22580 2014-06-06  Martin Jambor  <mjambor@suse.cz>
22581
22582         * ipa-prop.c (get_place_in_agg_contents_list): New function.
22583         (build_agg_jump_func_from_list): Likewise.
22584         (determine_known_aggregate_parts): Renamed to
22585         determine_locally_known_aggregate_parts.  Moved some functionality
22586         to the two functions above, removed bound checks.
22587
22588 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
22589
22590         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
22591         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
22592         (aarch64_progress_pointer): Likewise.
22593         (aarch64_copy_one_part_and_move_pointers): Likewise.
22594         (aarch64_expand_movmen): Likewise.
22595         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
22596         * config/aarch64/aarch64.md (movmem<mode>): New.
22597
22598 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
22599
22600         * targhooks.c (default_add_stmt_cost): Call target specific
22601         hook instead of default one.
22602
22603 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22604
22605         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
22606         endianness instead of host endianness.
22607         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
22608         comments.
22609
22610 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
22611
22612         PR debug/53927
22613         * function.c (instantiate_decls): Process the saved static chain.
22614         (expand_function_start): If not optimizing, save the static chain
22615         onto the stack.
22616         * tree-nested.c (convert_all_function_calls): Always create the static
22617         chain for nested functions if not optimizing.
22618
22619 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
22620
22621         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
22622
22623 2014-06-06  Richard Biener  <rguenther@suse.de>
22624
22625         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
22626         (construct_init_block): Likewise.
22627         (construct_exit_block): Likewise.
22628         (pass_expand::execute): Likewise.
22629         * graphite.c (graphite_transforms): Replace check for current_loops
22630         with a check for > 1 loops.
22631         (pass_graphite_transforms::execute): Adjust.
22632         * ipa-split.c (split_function): Remove check for current_loops.
22633         * omp-low.c (expand_parallel_call): Likewise.
22634         (expand_omp_for_init_counts): Likewise.
22635         (extract_omp_for_update_vars): Likewise.
22636         (expand_omp_for_generic): Likewise.
22637         (expand_omp_sections): Likewise.
22638         (expand_omp_target): Likewise.
22639         * tracer.c (tail_duplicate): Likewise.
22640         (pass_tracer::execute): Likewise.
22641         * trans-mem.c (expand_transaction): Likewise.
22642         * tree-complex.c (expand_complex_div_wide): Likewise.
22643         * tree-eh.c (lower_resx): Likewise.
22644         (cleanup_empty_eh_merge_phis): Likewise.
22645         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
22646         current_loops with a check for > 1 loops.
22647         (pass_predcom::execute): Adjust.
22648         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
22649         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
22650         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
22651         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
22652         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
22653         * tree-switch-conversion.c (process_switch): Likewise.
22654         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
22655         * tree-vrp.c (vrp_visit_phi_node): Likewise.
22656         (execute_vrp): Likewise.
22657         * ubsan.c (ubsan_expand_null_ifn): Likewise.
22658
22659 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
22660
22661         * rtl.h (insn_location): Declare.
22662         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
22663         with UNKNOWN_LOCATION.
22664         * emit-rtl.c (insn_location): New function.
22665         * final.c (notice_source_line): Check that the instruction has a
22666         location before retrieving it and use insn_location.
22667         * modulo-sched.c (loop_single_full_bb_p): Likewise.
22668         * print-rtl.c (print_rtx): Likewise.
22669
22670 2014-06-06  Richard Biener  <rguenther@suse.de>
22671
22672         * passes.def: Move 2nd VRP pass before phi-only-cprop.
22673
22674 2014-06-06  Christian Bruel  <christian.bruel@st.com>
22675
22676         PR tree-optimization/43934
22677         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
22678         cost.
22679
22680 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
22681
22682         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
22683         return NO_REGS for extra address and memory constraints.  Handle
22684         operands that match (or are equivalent to something that matches)
22685         extra constant constraints.  Ignore other non-register operands.
22686
22687 2014-06-06  Alan Modra  <amodra@gmail.com>
22688
22689         PR target/61300
22690         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
22691         * doc/tm.texi: Regenerate.
22692         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
22693         Use throughout in place of REG_PARM_STACK_SPACE.
22694         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
22695         "incoming" param.  Pass to rs6000_function_parms_need_stack.
22696         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
22697         prototype_p when incoming.  Use function decl when incoming
22698         to handle K&R style functions.
22699         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
22700         (INCOMING_REG_PARM_STACK_SPACE): Define.
22701
22702 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
22703
22704         PR target/52472
22705         * cfgexpand.c (expand_debug_expr): Use address space of nested
22706         TREE_TYPE for ADDR_EXPR and MEM_REF.
22707
22708 2014-06-05  Jeff Law  <law@redhat.com>
22709
22710         PR tree-optimization/61289
22711         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
22712         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
22713         looking for those which match LHS.  All callers changed.
22714         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
22715         parameters and code which manipulated them.  All callers changed.
22716         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
22717         and DST_MAP parameters.  Simplify invalidation code by just calling
22718         invalidate_equivalences.  All callers changed.
22719         (thread_across_edge): Simplify now that we don't need to maintain
22720         the map of equivalences to invalidate.
22721
22722 2014-06-05  Kai Tietz  <ktietz@redhat.com>
22723             Richard Henderson  <rth@redhat.com>
22724
22725         PR target/46219
22726         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
22727         checking for !TARGET_X32.
22728         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
22729         (sibcall_intern): New define_insn, plus required peepholes.
22730         (sibcall_pop_intern): Likewise.
22731         (sibcall_value_intern): Likewise.
22732         (sibcall_value_pop_intern): Likewise.
22733
22734 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
22735
22736         * tree-inline.c (tree_function_versioning): Check DF info existence
22737         before accessing it.
22738
22739 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22740
22741         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
22742         frame_size.
22743         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
22744         aarch64_frame hard_fp_offset and frame_size.
22745         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
22746         frame_size; remove original_frame_size.
22747         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
22748         (aarch64_initial_elimination_offset): Remove frame_size and
22749         offset.  Use aarch64_frame frame_size.
22750
22751 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22752             Jiong Wang  <jiong.wang@arm.com>
22753             Renlin  <renlin.li@arm.com>
22754
22755         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
22756         initialization of R30 offset.  Update offset.  Iterate core
22757         regisers upto X30.  Remove X29, X30 specific code.
22758
22759 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22760             Jiong Wang  <jiong.wang@arm.com>
22761
22762         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
22763         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
22764         (aarch64_register_saved_on_entry): Adjust test.
22765
22766 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22767
22768         * config/aarch64/aarch64.h (machine_function): Move
22769         saved_varargs_size from here...
22770         (aarch64_frame): ... to here.
22771
22772         * config/aarch64/aarch64.c (aarch64_expand_prologue)
22773         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
22774         (aarch64_initial_elimination_offset)
22775         (aarch64_setup_incoming_varargs): Adjust location of
22776         saved_varargs_size.
22777
22778 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22779
22780         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
22781         layout comment.
22782
22783 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
22784             Prachi Godbole  <Prachi.Godbole@imgtec.com>
22785
22786         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
22787         mips32r5 entry to use PROCESSOR_P5600.
22788         * config/mips/mips-tables.opt: Regenerate.
22789         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
22790         * config/mips/mips.c (mips_fmadd_bypass): New function.
22791         (mips_rtx_cost_data): Add costs for p5600.
22792         (mips_issue_rate): Add support for p5600.
22793         (mips_multipass_dfa_lookahead): Likewise.
22794         * config/mips/mips.h (TUNE_P5600): New define.
22795         (TUNE_MACC_CHAINS): Add TUNE_P5600.
22796         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
22797         * config/mips/mips.md: Include p5600.md.
22798         (processor): Add p5600.
22799         * config/mips/p5600.md: New file.
22800
22801 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
22802
22803         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
22804         * config/i386/predicates.md (palignr_operand): New.
22805         Indicates if permutation is suitable for palignr instruction.
22806
22807 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
22808
22809         PR tree-optimization/61319
22810         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
22811         stmt belongs to loop.
22812
22813 2014-06-05  Richard Biener  <rguenther@suse.de>
22814
22815         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
22816         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
22817         (lookup_tmp_var): Adjust.
22818         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
22819
22820 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22821
22822         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
22823
22824 2014-06-05  Marek Polacek  <polacek@redhat.com>
22825
22826         PR c/49706
22827         * doc/invoke.texi: Document -Wlogical-not-parentheses.
22828
22829 2014-06-04  Tom de Vries  <tom@codesourcery.com>
22830
22831         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
22832         CONST_INT.
22833
22834 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
22835
22836         PR tree-optimization/61385
22837         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
22838
22839 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
22840
22841         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
22842         changed to use fatal_error.
22843         (main): Ensure lto_wrapper_cleanup is run atexit.
22844
22845 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22846
22847         * lra-constraints.c (valid_address_p): Move earlier in file.
22848         (address_eliminator): New structure.
22849         (satisfies_memory_constraint_p): New function.
22850         (satisfies_address_constraint_p): Likewise.
22851         (process_alt_operands, process_address, curr_insn_transform): Use them.
22852
22853 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22854
22855         * lra-int.h (lra_static_insn_data): Make operand_alternative a
22856         const pointer.
22857         (target_lra_int, default_target_lra_int, this_target_lra_int)
22858         (op_alt_data): Delete.
22859         * lra.h (lra_init): Delete.
22860         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
22861         (init_insn_code_data_once): Remove op_alt_data handling.
22862         (finish_insn_code_data_once): Likewise.
22863         (init_op_alt_data): Delete.
22864         (get_static_insn_data): Initialize operand_alternative to null.
22865         (free_insn_recog_data): Cast operand_alternative before freeing it.
22866         (setup_operand_alternative): Take the operand_alternative as
22867         parameter and assume it isn't already cached in the static
22868         insn data.
22869         (lra_set_insn_recog_data): Update accordingly.
22870         (lra_init): Delete.
22871         * ira.c (ira_init): Don't call lra_init.
22872         * target-globals.h (this_target_lra_int): Declare.
22873         (target_globals): Remove lra_int.
22874         (restore_target_globals): Update accordingly.
22875         * target-globals.c: Don't include lra-int.h.
22876         (default_target_globals, save_target_globals): Remove lra_int.
22877
22878 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22879
22880         * recog.h (operand_alternative): Convert reg_class, reject,
22881         matched and matches into bitfields.
22882         (preprocess_constraints): New overload.
22883         (preprocess_insn_constraints): New function.
22884         (preprocess_constraints): Take the insn as parameter.
22885         (recog_op_alt): Change into a pointer.
22886         (target_recog): Add x_op_alt.
22887         * recog.c (asm_op_alt): New variable.
22888         (recog_op_alt): Change into a pointer.
22889         (preprocess_constraints): New overload, replacing the old function
22890         definition with one that doesn't use global state.
22891         (preprocess_insn_constraints): New function.
22892         (preprocess_constraints): Use them.  Take the insn as parameter.
22893         Use asm_op_alt for asms.
22894         (recog_init): Free existing x_op_alt entries.
22895         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
22896         pointer const.
22897         (make_early_clobber_and_input_conflicts): Likewise.
22898         (process_bb_node_lives): Pass the insn to process_constraints.
22899         * reg-stack.c (check_asm_stack_operands): Likewise.
22900         (subst_asm_stack_regs): Likewise.
22901         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
22902         * regrename.c (build_def_use): Likewise.
22903         * sched-deps.c (sched_analyze_insn): Likewise.
22904         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
22905         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
22906         (note_invalid_constants): Likewise.
22907         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22908         (ix86_legitimate_combined_insn): Make operand_alternative pointer
22909         const.
22910
22911 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22912
22913         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
22914         * ira-lives.c (check_and_make_def_conflict): Check for disabled
22915         alternatives.
22916         (make_early_clobber_and_input_conflicts): Likewise.
22917         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22918
22919 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22920
22921         * recog.h (alternative_class): New function.
22922         (which_op_alt): Return a const recog_op_alt.
22923         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
22924         (subst_asm_stack_regs): Likewise.
22925         * config/arm/arm.c (note_invalid_constants): Likewise.
22926         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
22927         the operand_alternative; use alternative class instead.
22928         * sel-sched.c (get_reg_class): Likewise.
22929         * regrename.c (build_def_use): Likewise.
22930         (hide_operands, restore_operands, record_out_operands): Update type
22931         accordingly.
22932
22933 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22934
22935         * recog.h (recog_op_alt): Convert to a flat array.
22936         (which_op_alt): New function.
22937         * recog.c (recog_op_alt): Convert to a flat array.
22938         (preprocess_constraints): Update accordingly, grouping all
22939         operands of the same alternative together, rather than the
22940         other way around.
22941         * ira-lives.c (check_and_make_def_conflict): Likewise.
22942         (make_early_clobber_and_input_conflicts): Likewise.
22943         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22944         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
22945         (subst_asm_stack_regs): Likewise.
22946         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
22947         * regrename.c (hide_operands, record_out_operands): Likewise.
22948         (build_def_use): Likewise.
22949         * sel-sched.c (get_reg_class): Likewise.
22950         * config/arm/arm.c (note_invalid_constants): Likewise.
22951
22952 2014-06-04  Jason Merrill  <jason@redhat.com>
22953
22954         PR c++/51253
22955         PR c++/61382
22956         * gimplify.c (gimplify_arg): Non-static.
22957         * gimplify.h: Declare it.
22958
22959 2014-06-04  Richard Biener  <rguenther@suse.de>
22960
22961         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
22962         TREE_PUBLIC and DECL_EXTERNAL decls.
22963
22964 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
22965
22966         * regcprop.c (copyprop_hardreg_forward_1): Account for
22967         HARD_REGNO_CALL_PART_CLOBBERED.
22968
22969 2014-06-04  Richard Biener  <rguenther@suse.de>
22970
22971         * configure.ac: Check whether the underlying type of int64_t
22972         is long or long long.
22973         * configure: Regenerate.
22974         * config.in: Likewise.
22975         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
22976         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
22977
22978 2014-06-04  Richard Biener  <rguenther@suse.de>
22979
22980         PR tree-optimization/60098
22981         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
22982         we hit a kill.
22983         (dse_optimize_stmt): Simplify, now that we found a kill
22984         earlier.
22985
22986 2014-06-04  Richard Biener  <rguenther@suse.de>
22987
22988         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
22989         of accesses with non-invariant address.
22990
22991 2014-06-04  Martin Liska  <mliska@suse.cz>
22992
22993         * cgraph.h (cgraph_make_wrapper): New function introduced.
22994         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
22995         * ipa-inline.h (inline_analyze_function): The function is global.
22996         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
22997
22998 2014-06-04  Martin Liska  <mliska@suse.cz>
22999
23000         * tree.h (private_lookup_attribute_starting): New function.
23001         (lookup_attribute_starting): Likewise.
23002         * tree.c (private_lookup_attribute_starting): Likewise.
23003
23004 2014-06-04  Martin Liska  <mliska@suse.cz>
23005
23006         * cgraph.h (expand_thunk): New argument added.
23007         (address_taken_from_non_vtable_p): New global function.
23008         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
23009         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
23010         * cgraphunit.c (analyze_function): Likewise.
23011         (assemble_thunks_and_aliases): Argument added to call.
23012         (expand_thunk): New argument forces to produce GIMPLE thunk.
23013
23014 2014-06-04  Martin Liska  <mliska@suse.cz>
23015
23016         * coverage.h (coverage_compute_cfg_checksum): Argument added.
23017         * coverage.c (coverage_compute_cfg_checksum): Likewise.
23018         * profile.c (branch_prob): Likewise.
23019
23020 2014-06-04  Martin Jambor  <mjambor@suse.cz>
23021
23022         PR ipa/61340
23023         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
23024         handler for switch on an ipa_ref_use enum.
23025         * ipa-reference.c (analyze_function): Likewise.
23026
23027 2014-06-04  Kai Tietz  <ktietz@redhat.com>
23028
23029         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
23030         from old call-instruction.
23031
23032 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
23033
23034         * config/aarch64/aarch64.c (aarch64_classify_address)
23035         (aarch64_legitimize_reload_address): Support full addressing modes
23036         for vector modes.
23037         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
23038         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
23039
23040 2014-06-03  Andrew Pinski  <apinski@cavium.com>
23041
23042         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
23043         for OP0.
23044
23045 2014-06-03  Andrew Pinski  <apinski@cavium.com>
23046
23047         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
23048         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
23049
23050 2014-06-03  Kai Tietz  <ktietz@redhat.com>
23051
23052         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
23053         for 64-bit ms-abi.
23054
23055 2014-06-03  Dehao Chen  <dehao@google.com>
23056
23057         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
23058         the same loop.
23059
23060 2014-06-03  Marek Polacek  <polacek@redhat.com>
23061
23062         PR c/60439
23063         * doc/invoke.texi: Document -Wswitch-bool.
23064         * function.c (stack_protect_epilogue): Cast controlling expression of
23065         the switch to int.
23066         * gengtype.c (walk_type): Generate switch expression with its
23067         controlling expression cast to int.
23068
23069 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
23070
23071         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
23072         and attiny841.
23073         * config/avr/avr-tables.opt: Regenerate.
23074         * config/avr/t-multilib: Regenerate.
23075         * doc/avr-mmcu.texi: Regenerate.
23076
23077 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
23078             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
23079
23080         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
23081         (ata6617c, ata664251): Add new avr35 devices.
23082         (ata6612c): Add new avr4 device.
23083         (ata6613c, ata6614q): Add new avr5 devices.
23084         * config/avr/avr-tables.opt: Regenerate.
23085         * config/avr/t-multilib: Regenerate.
23086         * doc/avr-mmcu.texi: Regenerate.
23087
23088 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
23089
23090         * gcc/config/aarch64/aarch64-builtins.c
23091         (aarch64_types_binop_ssu_qualifiers): New static data.
23092         (TYPES_BINOP_SSU): Define.
23093         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
23094         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
23095         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
23096         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
23097         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
23098         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
23099         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
23100         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
23101         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
23102         suffix to builtin function name, remove cast.
23103         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
23104         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
23105         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
23106
23107 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
23108
23109         * gcc/config/aarch64/aarch64-builtins.c
23110         (aarch64_types_binop_uus_qualifiers,
23111         aarch64_types_shift_to_unsigned_qualifiers,
23112         aarch64_types_unsigned_shiftacc_qualifiers): Define.
23113         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
23114         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
23115         sqshlu_n, uqshl_n): Update qualifiers.
23116         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
23117         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
23118         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
23119         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
23120         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
23121         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
23122         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
23123         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
23124         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
23125         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
23126         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
23127         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
23128         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
23129         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
23130         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
23131         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
23132         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
23133         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
23134         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
23135         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
23136         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
23137         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
23138         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
23139         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
23140         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
23141         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
23142         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
23143
23144 2014-06-03  Teresa Johnson  <tejohnson@google.com>
23145
23146         * tree-sra.c (modify_function): Record caller nodes after rebuild.
23147
23148 2014-06-02  Jason Merrill  <jason@redhat.com>
23149
23150         PR c++/61020
23151         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
23152
23153 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
23154
23155         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
23156         location == 0.
23157
23158 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
23159
23160         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
23161         New pattern.
23162         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
23163         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
23164         * config/aarch64/iterators.md (REVERSE): New iterator.
23165         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
23166         (rev_op): New int_attribute.
23167         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
23168         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
23169         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
23170         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
23171         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
23172         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
23173         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
23174         Replace temporary __asm__ with __builtin_shuffle.
23175
23176 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
23177
23178         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
23179         mips64r5.
23180         * config/mips/mips-tables.opt: Regenerate.
23181         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
23182         to use mips_isa_rev rather than ISA_MIPS32R2.
23183         * config/mips/mips.h (ISA_MIPS32R3): New define.
23184         (ISA_MIPS32R5): New define.
23185         (ISA_MIPS64R3): New define.
23186         (ISA_MIPS64R5): New define.
23187         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
23188         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
23189         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
23190         and mips64r5.
23191         (MIPS_ISA_SYNCI_SPEC): Likewise.
23192         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
23193         (LINK_SPEC): Added mips32r3 and mips32r5.
23194         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
23195         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
23196         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
23197         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
23198         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
23199         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
23200         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
23201
23202 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
23203
23204         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
23205         options.
23206         * config/mips/mips.opt (mxpa): New option.
23207         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
23208         assembler.
23209
23210 2014-06-03  Martin Jambor  <mjambor@suse.cz>
23211
23212         PR ipa/61160
23213         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
23214         thunks.
23215
23216 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23217
23218         PR tree-optimization/61328
23219         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
23220         initialization from find_bswap_or_nop_1.
23221         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
23222         in source_expr2 before using the size value the function sets. Also
23223         make use of init_symbolic_number () in both the old place and
23224         find_bswap_or_nop_load () to avoid reading uninitialized memory when
23225         doing recursion in the GIMPLE_BINARY_RHS case.
23226
23227 2014-06-03  Richard Biener  <rguenther@suse.de>
23228
23229         PR tree-optimization/61383
23230         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
23231         stmts can't trap.
23232
23233 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
23234
23235         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
23236         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
23237         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
23238         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
23239         in this file.
23240         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
23241         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
23242         * system.h: ...here and make it unconditional.
23243         * target.def (conditional_register_usage): Mention
23244         define_register_constraint instead of old-style constraint macros.
23245         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
23246         * doc/tm.texi: Regenerate.
23247         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
23248         protected by !USE_MD_CONSTRAINTS.
23249         * config/frv/frv.md: Remove quote from old version of documentation.
23250         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
23251         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
23252         CONST_DOUBLE_OK_FOR_LETTER.
23253         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
23254
23255 2014-06-02  Andrew Pinski  <apinski@cavium.com>
23256
23257         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
23258         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
23259         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
23260         file whose name depends on -mabi= and -mbig-endian.
23261         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
23262         Handle LP64 better and handle ilp32 too.
23263         (MULTILIB_OPTIONS): Delete.
23264         (MULTILIB_DIRNAMES): Delete.
23265
23266 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
23267
23268         * expr.h: Remove prototypes of functions defined in builtins.c.
23269         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
23270         Remove prototypes of functions defined in builtins.c.
23271         * builtins.h: Update prototype list to include all exported functions.
23272         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
23273         no_c99_libc_has_function): Move to targhooks.c
23274         (build_string_literal, build_call_expr_loc_array,
23275         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
23276         to tree.c.
23277         (expand_builtin_object_size, fold_builtin_object_size): Make static.
23278         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
23279         no_c99_libc_has_function): Relocate from builtins.c.
23280         * tree.c: Include builtins.h.
23281         (build_call_expr_loc_array, build_call_expr_loc_vec,
23282         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
23283         from builtins.c.
23284         * fold-const.h (fold_fma): Move prototype to builtins.h.
23285         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
23286         * asan.c: Include builtins.h.
23287         * cfgexpand.c: Likewise.
23288         * convert.c: Likewise.
23289         * emit-rtl.c: Likewise.
23290         * except.c: Likewise.
23291         * expr.c: Likewise.
23292         * fold-const.c: Likewise.
23293         * gimple-fold.c: Likewise.
23294         * gimple-ssa-strength-reduction.c: Likewise.
23295         * gimplify.c: Likewise.
23296         * ipa-inline.c: Likewise.
23297         * ipa-prop.c: Likewise.
23298         * lto-streamer-out.c: Likewise.
23299         * stmt.c: Likewise.
23300         * tree-inline.c: Likewise.
23301         * tree-object-size.c: Likewise.
23302         * tree-sra.c: Likewise.
23303         * tree-ssa-ccp.c: Likewise.
23304         * tree-ssa-forwprop.c: Likewise.
23305         * tree-ssa-loop-ivcanon.c: Likewise.
23306         * tree-ssa-loop-ivopts.c: Likewise.
23307         * tree-ssa-math-opts.c: Likewise.
23308         * tree-ssa-reassoc.c: Likewise.
23309         * tree-ssa-threadedge.c: Likewise.
23310         * tree-streamer-in.c: Likewise.
23311         * tree-vect-data-refs.c: Likewise.
23312         * tree-vect-patterns.c: Likewise.
23313         * tree-vect-stmts.c: Likewise.
23314         * config/aarch64/aarch64.c: Likewise.
23315         * config/alpha/alpha.c: Likewise.
23316         * config/arc/arc.c: Likewise.
23317         * config/arm/arm.c: Likewise.
23318         * config/avr/avr.c: Likewise.
23319         * config/bfin/bfin.c: Likewise.
23320         * config/c6x/c6x.c: Likewise.
23321         * config/cr16/cr16.c: Likewise.
23322         * config/cris/cris.c: Likewise.
23323         * config/epiphany/epiphany.c: Likewise.
23324         * config/fr30/fr30.c: Likewise.
23325         * config/frv/frv.c: Likewise.
23326         * config/h8300/h8300.c: Likewise.
23327         * config/i386/i386.c: Likewise.
23328         * config/i386/winnt.c: Likewise.
23329         * config/ia64/ia64.c: Likewise.
23330         * config/iq2000/iq2000.c: Likewise.
23331         * config/lm32/lm32.c: Likewise.
23332         * config/m32c/m32c.c: Likewise.
23333         * config/m32r/m32r.c: Likewise.
23334         * config/m68k/m68k.c: Likewise.
23335         * config/mcore/mcore.c: Likewise.
23336         * config/mep/mep.c: Likewise.
23337         * config/microblaze/microblaze.c: Likewise.
23338         * config/mips/mips.c: Likewise.
23339         * config/mmix/mmix.c: Likewise.
23340         * config/mn10300/mn10300.c: Likewise.
23341         * config/moxie/moxie.c: Likewise.
23342         * config/msp430/msp430.c: Likewise.
23343         * config/nds32/nds32.c: Likewise.
23344         * config/pa/pa.c: Likewise.
23345         * config/pdp11/pdp11.c: Likewise.
23346         * config/picochip/picochip.c: Likewise.
23347         * config/rl78/rl78.c: Likewise.
23348         * config/rs6000/rs6000.c: Likewise.
23349         * config/rx/rx.c: Likewise.
23350         * config/s390/s390.c: Likewise.
23351         * config/score/score.c: Likewise.
23352         * config/sh/sh.c: Likewise.
23353         * config/sparc/sparc.c: Likewise.
23354         * config/spu/spu.c: Likewise.
23355         * config/stormy16/stormy16.c: Likewise.
23356         * config/tilegx/tilegx.c: Likewise.
23357         * config/tilepro/tilepro.c: Likewise.
23358         * config/v850/v850.c: Likewise.
23359         * config/vax/vax.c: Likewise.
23360         * config/xtensa/xtensa.c: Likewise.
23361
23362 2014-06-02  Jeff Law  <law@redhat.com>
23363
23364         PR rtl-optimization/61094
23365         * ree.c (combine_reaching_defs): Do not reextend an insn if it
23366         was marked as do_no_reextend.  If a copy is needed to eliminate
23367         an extension, then mark it as do_not_reextend.
23368
23369 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
23370
23371         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
23372
23373 2014-06-02  Richard Henderson  <rth@redhat.com>
23374
23375         PR target/61336
23376         * config/alpha/alpha.c (print_operand_address): Allow symbolic
23377         addresses inside asms.  Use output_operand_lossage instead of
23378         gcc_unreachable.
23379
23380 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
23381
23382         PR target/61239
23383         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
23384         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
23385
23386 2014-06-02  Tom de Vries  <tom@codesourcery.com>
23387
23388         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
23389         case that x has VOIDmode.
23390
23391 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
23392
23393         * varasm.c (copy_constant): Delete function.
23394         (build_constant_desc): Don't call it.
23395
23396 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23397
23398         PR target/61154
23399         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
23400         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
23401         with immediate_operand.
23402
23403 2014-06-02  Andreas Schwab  <schwab@suse.de>
23404
23405         * config/ia64/ia64.c
23406         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
23407         pending_data_specs first.
23408
23409 2014-06-02  Richard Biener  <rguenther@suse.de>
23410
23411         PR tree-optimization/61378
23412         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
23413         valueized_anything.
23414
23415 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
23416
23417         * config/i386/constraints.md (Bw): Rename from 'w'.
23418         (Bz): Rename from 'z'.
23419         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
23420
23421 2014-06-01  Kai Tietz  <ktietz@redhat.com>
23422
23423         PR target/61377
23424         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
23425         * config/i386/i386.md (sibcall_insn_operand): Use Bs
23426         instead of m constraint.
23427
23428 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
23429
23430         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
23431         a separate alternative where the scratch operand 2 is marked as
23432         early clobber.
23433
23434 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
23435
23436         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
23437         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
23438         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
23439         and __builtins_arm_get_fpscr.
23440         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
23441         __builtins_arm_get_fpscr.
23442         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
23443         __builtins_arm_ldfpscr.
23444         (arm_atomic_assign_expand_fenv): New function.
23445         * config/arm/vfp.md (set_fpscr): New pattern.
23446         (get_fpscr) : Likewise.
23447         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
23448         VUNSPEC_SET_FPSCR.
23449         * doc/extend.texi (AARCH64 Built-in Functions) : Document
23450         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
23451
23452 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
23453
23454         * asan.c (report_error_func): Add SLOW_P argument, use
23455         BUILT_IN_ASAN_*_N if set.
23456         (build_check_stmt): Likewise.
23457         (instrument_derefs): If T has insufficient alignment,
23458         force same handling as for odd sizes.
23459
23460         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
23461         BUILT_IN_ASAN_REPORT_STORE_N): New.
23462         * asan.c (struct asan_mem_ref): Change access_size type to
23463         HOST_WIDE_INT.
23464         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
23465         update_mem_ref_hash_table): Likewise.
23466         (asan_mem_ref_hasher::hash): Hash in a HWI.
23467         (report_error_func): Change size_in_bytes argument to HWI.
23468         Use *_N builtins if size_in_bytes is larger than 16 or not power of
23469         two.
23470         (build_shadow_mem_access): New function.
23471         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
23472         Handle size_in_bytes not power of two or larger than 16.
23473         (instrument_derefs): Don't give up if size_in_bytes is not
23474         power of two or is larger than 16.
23475
23476 2014-05-30  Kai Tietz  <ktietz@redhat.com>
23477
23478         PR target/60104
23479         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
23480         for sibling-tail-calls.
23481         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
23482         to its use.
23483         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
23484         (sibcall_insn_operand): Add check for sibcall_memory_operand.
23485
23486 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
23487
23488         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
23489         * config/avr/avr-tables.opt: Regenerate.
23490         * config/avr/t-multilib: Regenerate.
23491         * doc/avr-mmcu.texi: Regenerate.
23492
23493 2014-05-30  Ian Lance Taylor  <iant@google.com>
23494
23495         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
23496         target("sse").
23497
23498 2014-05-30  Tom de Vries  <tom@codesourcery.com>
23499
23500         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
23501         Redefine as true.
23502
23503 2014-05-30  Tom de Vries  <tom@codesourcery.com>
23504
23505         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
23506         * lra.c (initialize_lra_reg_info_element): Add init of
23507         actual_call_used_reg_set field.
23508         (lra): Call lra_create_live_ranges before lra_inheritance for
23509         -fuse-caller-save.
23510         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
23511         -fuse-caller-save.
23512         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
23513         instead of call_used_reg_set for -fuse-caller-save.
23514         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
23515
23516 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23517
23518         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
23519         to mov_imm.
23520         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
23521
23522 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
23523
23524         * ira.c (ira_get_dup_out_num): Check for output operands at
23525         the start of the loop.  Handle cases where an included alternative
23526         follows an excluded one.
23527
23528 2014-05-29  Mike Stump  <mikestump@comcast.net>
23529
23530         PR debug/61352
23531         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
23532         post ld passes when lto is used.
23533
23534 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
23535
23536         PR rtl-optimization/61325
23537         * lra-constraints.c (process_address): Rename to process_address_1.
23538         (process_address): New function.
23539
23540 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
23541
23542         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
23543         TYPES_BINOPV): New static data.
23544         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
23545         New builtin.
23546         * config/aarch64/aarch64-simd.md (aarch64_ext,
23547         aarch64_im_lane_boundsi): New patterns.
23548         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
23549         patterns for EXT.
23550         (aarch64_evpc_ext): New function.
23551
23552         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
23553
23554         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
23555         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
23556         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
23557         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
23558         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
23559
23560 2014-05-29  Tom de Vries  <tom@codesourcery.com>
23561
23562         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
23563
23564 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
23565             Richard Sandiford  <rdsandiford@googlemail.com>
23566
23567         * arm/iterators.md (shiftable_ops): New code iterator.
23568         (t2_binop0, arith_shift_insn): New code attributes.
23569         * arm/predicates.md (shift_nomul_operator): New predicate.
23570         * arm/arm.md (insn_enabled): Delete.
23571         (enabled): Remove insn_enabled test.
23572         (*arith_shiftsi): Delete.  Replace with ...
23573         (*<arith_shift_insn>_multsi): ... new pattern.
23574         (*<arith_shift_insn>_shiftsi): ... new pattern.
23575         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
23576
23577 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
23578             Tom de Vries  <tom@codesourcery.com>
23579
23580         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
23581         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
23582         clobber.
23583         (mips_split_call): Use POST_CALL_TMP_REG.
23584         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
23585
23586 2014-05-29  Tom de Vries  <tom@codesourcery.com>
23587
23588         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
23589         with #ifdef STACK_REGS.
23590
23591 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
23592
23593         * varasm.c (get_variable_section): Walk aliases.
23594         (place_block_symbol): Walk aliases.
23595
23596 2014-05-28  Tom de Vries  <tom@codesourcery.com>
23597
23598         Revert:
23599         2014-05-28  Tom de Vries  <tom@codesourcery.com>
23600
23601         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
23602         * lra.c (initialize_lra_reg_info_element): Add init of
23603         actual_call_used_reg_set field.
23604         (lra): Call lra_create_live_ranges before lra_inheritance for
23605         -fuse-caller-save.
23606         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
23607         -fuse-caller-save.
23608         * lra-constraints.c (need_for_call_save_p): Use
23609         actual_call_used_reg_set instead of call_used_reg_set for
23610         -fuse-caller-save.
23611         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
23612
23613 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
23614
23615         * doc/md.texi: Document that the % constraint character must
23616         be at the beginning of the string.
23617         * genoutput.c (validate_insn_alternatives): Check that '=',
23618         '+' and '%' only appear at the beginning of a constraint.
23619         * ira.c (commutative_constraint_p): Delete.
23620         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
23621         at the start of the string.
23622         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
23623         duplicate '='s.
23624         * config/arm/neon.md (bicdi3_neon): Likewise.
23625         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
23626         (slt_si, sltu_si): Likewise.
23627         * config/vax/vax.md (sbcdi3): Likewise.
23628         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
23629         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
23630         (mul64): Move '%' to beginning of constraint.
23631         * config/arm/arm.md (*xordi3_insn): Likewise.
23632         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
23633         (xorsi3): Likewise.
23634
23635 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
23636
23637         * doc/md.texi: Document the restrictions on the "enabled" attribute.
23638
23639 2014-05-28  Jason Merrill  <jason@redhat.com>
23640
23641         PR c++/47202
23642         * cgraph.h (symtab_node::get_comdat_group_id): New.
23643         * cgraphunit.c (analyze_functions): Call it.
23644         * symtab.c (dump_symtab_node): Likewise.
23645         * tree.c (decl_comdat_group_id): New.
23646         * tree.h: Declare it.
23647         * lto-streamer-out.c (write_symbol): Use it.
23648         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
23649
23650 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
23651
23652         PR bootstrap/PR61146
23653         * wide-int.cc: Do not include longlong.h when compiling with clang.
23654
23655 2014-05-28  Richard Biener  <rguenther@suse.de>
23656
23657         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
23658         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
23659         (vrp_visit_assignment_or_call): Print less vertical space.
23660         (vrp_visit_stmt): Likewise.
23661         (vrp_visit_phi_node): Likewise.  For a PHI argument with
23662         VR_VARYING range consider recording it as copy.
23663
23664 2014-05-28  Richard Biener  <rguenther@suse.de>
23665
23666         Revert
23667         2014-05-28  Richard Biener  <rguenther@suse.de>
23668
23669         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
23670
23671 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23672
23673         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
23674         sufficiently aligned and an offset is used at the same time.
23675         (expand_expr_real_1): Likewise.
23676
23677 2014-05-28  Richard Biener  <rguenther@suse.de>
23678
23679         PR middle-end/61045
23680         * fold-const.c (fold_comparison): When folding
23681         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
23682         the sign of the remaining constant operand stays the same.
23683
23684 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
23685
23686         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
23687         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
23688         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
23689         to the assembler.
23690         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
23691         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
23692         (m32bit-doubles) Likewise.
23693         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
23694         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
23695         option for RL78.
23696
23697 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23698
23699         * configure.ac ($gcc_cv_ld_clearcap): New test.
23700         * configure: Regenerate.
23701         * config.in: Regenerate.
23702         * config/sol2.opt (mclear-hwcap): New option.
23703         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
23704         * config/sol2-clearcap.map: Moved here from
23705         testsuite/gcc.target/i386/clearcap.map.
23706         * config/sol2-clearcapv2.map: Move here from
23707         gcc.target/i386/clearcapv2.map.
23708         * config/t-sol2 (install): Depend on install-clearcap-map.
23709         (install-clearcap-map): New target.
23710         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
23711         -mclear-hwcap.
23712
23713 2014-05-28  Richard Biener  <rguenther@suse.de>
23714
23715         * hwint.h (*_HALF_WIDE_INT*): Move to ...
23716         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
23717         ... here and remove the rest.
23718         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
23719
23720 2014-05-28  Richard Biener  <rguenther@suse.de>
23721
23722         PR tree-optimization/61335
23723         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
23724         new range fails, drop to varying.
23725
23726 2014-05-28  Olivier Hainque  <hainque@adacore.com>
23727
23728         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
23729         (CPP_SPEC): Add entry for -mcpu=8548.
23730         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
23731         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
23732
23733 2014-05-28  Tom de Vries  <tom@codesourcery.com>
23734
23735         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
23736         * lra.c (initialize_lra_reg_info_element): Add init of
23737         actual_call_used_reg_set field.
23738         (lra): Call lra_create_live_ranges before lra_inheritance for
23739         -fuse-caller-save.
23740         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
23741         -fuse-caller-save.
23742         * lra-constraints.c (need_for_call_save_p): Use
23743         actual_call_used_reg_set instead of call_used_reg_set for
23744         -fuse-caller-save.
23745         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
23746
23747 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
23748             Tom de Vries  <tom@codesourcery.com>
23749
23750         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
23751         to gccoptlist.
23752         (@item -fuse-caller-save): New item.
23753
23754 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
23755             Tom de Vries  <tom@codesourcery.com>
23756
23757         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
23758         OPT_fuse_caller_save.
23759
23760 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
23761             Tom de Vries  <tom@codesourcery.com>
23762
23763         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
23764         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
23765         get_call_reg_set_usage.
23766         * resource.c (mark_set_resources, mark_target_live_regs): Use
23767         get_call_reg_set_usage.
23768         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
23769         field.
23770         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
23771         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
23772         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23773         * ira-build.c (ira_create_allocno): Init
23774         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23775         (create_cap_allocno, propagate_allocno_info)
23776         (propagate_some_info_from_allocno)
23777         (copy_info_to_removed_store_destinations): Handle
23778         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23779         * ira-costs.c (ira_tune_allocno_costs): Use
23780         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
23781
23782 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
23783             Tom de Vries  <tom@codesourcery.com>
23784
23785         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
23786         and function_used_regs_valid fields.
23787         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
23788         find_all_hard_reg_sets.
23789         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
23790         (get_call_reg_set_usage): New function.
23791         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
23792         * regs.h (get_call_reg_set_usage): Declare.
23793
23794 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
23795
23796         PR libgcc/61152
23797         * config/dbx.h (License): Add Runtime Library Exception.
23798         * config/newlib-stdint.h (License): Same.
23799         * config/rtems.h (License): Same
23800         * config/initfini-array.h (License): Same
23801         * config/v850/v850.h (License): Same.
23802         * config/v850/v850-opts.h (License): Same
23803         * config/v850/rtems.h (License): Same.
23804
23805 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
23806
23807         PR target/61044
23808         * doc/extend.texi (Local Labels): Note that label differences are
23809         not supported for AVR.
23810
23811 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
23812             Olivier Hainque  <hainque@adacore.com>
23813
23814         * rtl.h (set_for_reg_notes): Declare.
23815         * emit-rtl.c (set_for_reg_notes): New function.
23816         (set_unique_reg_note): Use it.
23817         * optabs.c (add_equal_note): Likewise
23818
23819 2014-05-27  Andrew Pinski  <apinski@cavium.com>
23820
23821         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
23822         Use <w> for the register in assembly template.
23823         (stack_protect_test): Use the mode of operands[0] for the result.
23824         (stack_protect_test_<mode>): Use <w> for the register
23825         in assembly template.
23826
23827 2014-05-27  DJ Delorie  <dj@redhat.com>
23828
23829         * config/rx/rx.c (add_vector_labels): New.
23830         (rx_output_function_prologue): Call it.
23831         (rx_handle_func_attribute): Don't require empty arguments.
23832         (rx_handle_vector_attribute): New.
23833         (rx_attribute_table): Add "vector" attribute.
23834         * doc/extend.texi (interrupt, vector): Document new/changed
23835         RX-specific attributes.
23836
23837         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
23838
23839 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
23840
23841         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
23842         predicate to detect a negative quotient.
23843
23844 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
23845
23846         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
23847         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
23848         Add X - Y CMP 0 to X CMP Y transformation.
23849         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
23850
23851 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
23852
23853         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
23854         before printing.
23855
23856 2014-05-27  Steve Ellcey  <sellcey@mips.com>
23857
23858         * config/mips/mips.c: Add include of cgraph.h.
23859
23860 2014-05-27  Richard Biener  <rguenther@suse.de>
23861
23862         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
23863
23864 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
23865
23866         PR libgcc/61152
23867         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
23868         * config/arm/arm-cores.def (License): Same.
23869         * config/arm/arm-opts.h (License): Same.
23870         * config/arm/aout.h (License): Same.
23871         * config/arm/bpabi.h (License): Same.
23872         * config/arm/elf.h (License): Same.
23873         * config/arm/linux-elf.h (License): Same.
23874         * config/arm/linux-gas.h (License): Same.
23875         * config/arm/netbsd-elf.h (License): Same.
23876         * config/arm/uclinux-eabi.h (License): Same.
23877         * config/arm/uclinux-elf.h (License): Same.
23878         * config/arm/vxworks.h (License): Same.
23879
23880 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23881
23882         * config/arm/neon.md (neon_bswap<mode>): New pattern.
23883         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
23884         (arm_init_neon_builtins): Handle NEON_BSWAP.
23885         Define required type nodes.
23886         (arm_expand_neon_builtin): Handle NEON_BSWAP.
23887         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
23888         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
23889         * config/arm/iterators.md (VDQHSD): New mode iterator.
23890
23891 2014-05-27  Richard Biener  <rguenther@suse.de>
23892
23893         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
23894         Try using literal operands when comparing value-ranges failed.
23895
23896 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
23897
23898         * ira.c (commutative_operand): Adjust for change to recog_data.
23899         [Missing from previous commit.]
23900
23901 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
23902
23903         * system.h (TEST_BIT): New macro.
23904         * recog.h (alternative_mask): New type.
23905         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
23906         (recog_data_d): Replace alternative_enabled_p array with
23907         enabled_alternatives.
23908         (target_recog): New structure.
23909         (default_target_recog, this_target_recog): Declare.
23910         (get_enabled_alternatives, recog_init): Likewise.
23911         * recog.c (default_target_recog, this_target_recog): New variables.
23912         (get_enabled_alternatives): New function.
23913         (extract_insn): Use it.
23914         (recog_init): New function.
23915         (preprocess_constraints, constrain_operands): Adjust for change to
23916         recog_data.
23917         * postreload.c (reload_cse_simplify_operands): Likewise.
23918         * reload.c (find_reloads): Likewise.
23919         * ira-costs.c (record_reg_classes): Likewise.
23920         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
23921         all alternatives after a disabled one would be skipped.
23922         (ira_implicitly_set_insn_hard_regs): Likewise.
23923         * ira.c (ira_setup_alts): Adjust for change to recog_data.
23924         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
23925         with enabled_alternatives.
23926         * lra.c (free_insn_recog_data): Update accordingly.
23927         (lra_update_insn_recog_data): Likewise.
23928         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
23929         * lra-constraints.c (process_alt_operands): Likewise.  Handle
23930         only_alternative as part of the enabled mask.
23931         * target-globals.h (this_target_recog): Declare.
23932         (target_globals): Add a recog field.
23933         (restore_target_globals): Restore this_target_recog.
23934         * target-globals.c: Include recog.h.
23935         (default_target_globals): Initialize recog field.
23936         (save_target_globals): Likewise.
23937         * reginfo.c (reinit_regs): Call recog_init.
23938         * toplev.c (backend_init_target): Likewise.
23939
23940 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
23941
23942         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
23943         rather than any named insn's code.
23944
23945 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
23946
23947         PR libgcc/61152
23948         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
23949         * config/arm/arm-cores.def (License): Same.
23950
23951 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
23952
23953         * tree.h (decl_comdat_group): Declare.
23954         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
23955         * tree.c (decl_comdat_group): Here.
23956
23957 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
23958
23959         PR rtl-optimization/61222
23960         * combine.c (simplify_shift_const_1): When moving a PLUS outside
23961         the shift, truncate the PLUS operand to the result mode.
23962
23963 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
23964
23965         PR target/61271
23966         * config/i386/i386.c (ix86_rtx_costs)
23967         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
23968         Fix condition.
23969
23970 2014-05-26  Martin Jambor  <mjambor@suse.cz>
23971
23972         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
23973         subreg uses.
23974
23975 2014-05-26  Richard Biener  <rguenther@suse.de>
23976
23977         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
23978         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
23979         Provide specializations.
23980         (wi::int_traits <HOST_WIDE_INT>,
23981         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
23982
23983 2014-05-26  Alan Modra  <amodra@gmail.com>
23984
23985         PR target/61098
23986         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
23987         params and return a bool.  Remove dead code.  Update comment.
23988         Assert we have a const_int source.  Remove bogus code from
23989         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
23990         handling of constants > 2G and reg_equal note, from..
23991         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
23992         return value.  Update comment.  If we can, use a new pseudo
23993         for intermediate calculations.
23994         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
23995         prototype.
23996         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
23997         call to rs6000_emit_set_const in splitter.
23998         (movdi_internal64+2, +3): Likewise.
23999
24000 2014-05-26  Richard Biener  <rguenther@suse.de>
24001
24002         * system.h: Define __STDC_FORMAT_MACROS before
24003         including inttypes.h.
24004         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
24005         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
24006         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
24007         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
24008         HOST_WIDEST_INT_C): Remove.
24009         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
24010         if C99 inttypes.h is not available.
24011         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
24012         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
24013         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
24014         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
24015         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
24016         (struct output_info): Likewise.
24017         (print_statistics): Adjust.
24018         (dump_bitmap_statistics): Likewise.
24019         * bt-load.c (migrate_btr_defs): Print with PRId64.
24020         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
24021         (MAX_SAFE_MULTIPLIER): Adjust.
24022         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
24023         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
24024         dump_cgraph_node): Likewise.
24025         * final.c (dump_basic_block_info): Likewise.
24026         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
24027         * gcov.c (format_gcov): Likewise.
24028         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
24029         for calculation.
24030         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
24031         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
24032         (inline_small_functions, dump_overall_stats, dump_inline_stats):
24033         Use PRId64 for dumping.
24034         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
24035         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
24036         (add_allocno_hard_regs): Adjust.
24037         * loop-doloop.c (doloop_modify): Print using PRId64.
24038         * loop-iv.c (inverse): Compute in uint64_t.
24039         (determine_max_iter, iv_number_of_iterations): Likewise.
24040         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
24041         Print using PRId64.
24042         * lto-streamer-out.c (write_symbol): Use uint64_t.
24043         * mcf.c (CAP_INFINITY): Use int64_t maximum.
24044         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
24045         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
24046         * modulo-sched.c (const_iteration_count): Use int64_t.
24047         (sms_schedule): Dump using PRId64.
24048         * predict.c (dump_prediction): Likewise.
24049         * pretty-print.h (pp_widest_integer): Remove.
24050         * profile.c (get_working_sets, is_edge_inconsistent,
24051         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
24052         * tree-pretty-print.c (pp_double_int): Remove case handling
24053         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
24054         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
24055         and adjust users.
24056         (pass_optimize_bswap::execute): Remove restriction on hosts.
24057         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
24058         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
24059         * tree.c (widest_int_cst_value): Remove.
24060         * tree.h (widest_int_cst_value): Likewise.
24061         * value-prof.c (dump_histogram_value): Print using PRId64.
24062         * gengtype.c (main): Also inject int64_t.
24063         * ggc-page.c (struct max_alignment): Use int64_t.
24064         * alloc-pool.c (struct allocation_object_def): Likewise.
24065         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
24066         for computation.
24067         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
24068         * doc/tm.texi: Regenerated.
24069         * gengtype-lex.l (IWORD): Handle [u]int64_t.
24070         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
24071         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
24072         mmix_output_register_setting): Use [u]int64_t in prototypes.
24073         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
24074         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
24075         mmix_output_octa, mmix_output_shifted_value): Adjust.
24076         (mmix_intval): Adjust.  Remove unreachable case.
24077         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
24078
24079 2014-05-26  Richard Biener  <rguenther@suse.de>
24080
24081         * configure.ac: Drop __int64 type check.  Insist that we
24082         found uint64_t and int64_t.
24083         * hwint.h (HOST_BITS_PER___INT64): Remove.
24084         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
24085         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
24086         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
24087         (HOST_WIDEST_FAST_INT): Remove __int64 case.
24088         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
24089         for dst_q_src_df_rms_cdt.
24090         * configure: Regenerate.
24091         * config.in: Likewise.
24092
24093 2014-05-26  Michael Tautschnig  <mt@debian.org>
24094
24095         PR target/61249
24096         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
24097         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
24098
24099 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24100
24101         PR rtl-optimization/61278
24102         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
24103
24104 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24105
24106         PR rtl-optimization/61220
24107         Part of PR rtl-optimization/61225
24108         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
24109         insn; skip split_edge for a block with only one successor.
24110
24111 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
24112
24113         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
24114         for variables.
24115
24116 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
24117
24118         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
24119         (update_vtable_references): New function.
24120         (function_and_variable_visibility): Rewrite also vtable initializers.
24121         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
24122
24123 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
24124
24125         * ggc.h (ggc_grow): New function.
24126         * ggc-none.c (ggc_grow): New function.
24127         * ggc-page.c (ggc_grow): Likewise.
24128
24129 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
24130
24131         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
24132         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
24133         comdat_can_be_unshared_p, cgraph_externally_visible_p,
24134         varpool_externally_visible_p, can_replace_by_local_alias,
24135         update_visibility_by_resolution_info, function_and_variable_visibility,
24136         pass_data_ipa_function_and_variable_visibility,
24137         make_pass_ipa_function_and_variable_visibility,
24138         whole_program_function_and_variable_visibility,
24139         pass_data_ipa_whole_program_visibility,
24140         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
24141         * cgraph.h (cgraph_local_node_p): Declare.
24142         * ipa-visibility.c: New file.
24143         * Makefile.in (OBJS): Add ipa-visiblity.o
24144
24145 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
24146
24147         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
24148         that var decl is available.
24149
24150 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
24151
24152         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
24153         symtab_node pointer.
24154         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
24155         (find_decls_types_r): Do not walk COMDAT_GROUP.
24156         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
24157         * varasm.c (make_decl_one_only): Use set_comdat_group;
24158         create node if needed.
24159         * ipa-inline-transform.c (save_inline_function_body): Update
24160         way we decl->symtab mapping.
24161         * symtab.c (symtab_hash, hash_node, eq_node
24162         symtab_insert_node_to_hashtable): Remove.
24163         (symtab_register_node): Update.
24164         (symtab_unregister_node): Update.
24165         (symtab_get_node): Reimplement as inline function.
24166         (symtab_add_to_same_comdat_group): Update.
24167         (symtab_dissolve_same_comdat_group_list): Update.
24168         (dump_symtab_base): Update.
24169         (verify_symtab_base): Update.
24170         (symtab_make_decl_local): Update.
24171         (fixup_same_cpp_alias_visibility): Update.
24172         (symtab_nonoverwritable_alias): Update.
24173         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
24174         * ipa.c (update_visibility_by_resolution_info): UPdate.
24175         * bb-reorder.c: Include cgraph.h
24176         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
24177         with comdat groups.
24178         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
24179         * cgraph.c (cgraph_get_create_node): Update.
24180         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
24181         and comdat_group_.
24182         (symtab_get_node): Make inline.
24183         (symtab_insert_node_to_hashtable): Remove.
24184         (symtab_can_be_discarded): Update.
24185         (decl_comdat_group): New function.
24186         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
24187         Update.
24188         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
24189         comdat group name.
24190         (read_comdat_group): New function.
24191         (input_node, input_varpool_node): Use it.
24192         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
24193         comdat groups.
24194         * mips.c (mips_start_unique_function): Likewise.
24195         (ix86_code_end): Likewise.
24196         (rs6000_code_end): Likweise.
24197         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
24198
24199 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
24200
24201         * gengtype-state.c (fatal_reading_state): Bring offline.
24202         * optabs.c (widening_optab_handler): Bring offline.
24203         * optabs.h (widening_optab_handler): Likewise.
24204         * final.c (get_attr_length_1): Likewise.
24205
24206 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
24207
24208         * sched-int.h (sd_iterator_cond): Manually tail recurse.
24209
24210 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24211
24212         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
24213         (ppc440-compare): Include shift with dot.
24214         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
24215         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
24216         without dot.
24217         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
24218         without dot.
24219         (e6500_sfx2): Include it.
24220         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
24221         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
24222         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
24223         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
24224         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
24225         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
24226         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
24227         *lshiftrt_internal1le, *lshiftrt_internal1be,
24228         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
24229         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
24230         *rotldi3_internal10le, *rotldi3_internal10be,
24231         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
24232         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
24233         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
24234         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
24235         define_insns): Use type "shift" in the appropriate alternatives.
24236
24237 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24238
24239         * config/rs6000/rs6000.md (type): Add "logical".  Delete
24240         "fast_compare".
24241         (dot): Adjust comment.
24242         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
24243         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
24244         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
24245         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
24246         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
24247         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
24248         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
24249         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
24250
24251         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
24252         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
24253         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
24254         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
24255         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
24256         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
24257         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
24258         * config/rs6000/8540.md (ppc8540_su): Adjust.
24259         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
24260         cell-cmp-microcoded): Adjust.
24261         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
24262         * config/rs6000/e500mc.md (e500mc_su): Adjust.
24263         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
24264         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
24265         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
24266         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
24267         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
24268         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
24269         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
24270         Adjust.
24271         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
24272         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
24273         Adjust.  Adjust comment.
24274         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
24275         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
24276
24277 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24278
24279         * config/rs6000/rs6000.md (type): Add "add".
24280         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
24281         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
24282         define_insns): Use it.
24283         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
24284
24285         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
24286         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
24287         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
24288         * config/rs6000/601.md (ppc601-integer): Adjust.
24289         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
24290         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
24291         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
24292         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
24293         * config/rs6000/8540.md (ppc8540_su): Adjust.
24294         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
24295         cell-cmp-microcoded): Adjust.
24296         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
24297         * config/rs6000/e500mc.md (e500mc_su): Adjust.
24298         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
24299         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
24300         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
24301         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
24302         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
24303         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
24304         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
24305         Adjust.
24306         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
24307         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
24308         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
24309         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
24310
24311 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24312
24313         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
24314         "delayed_compare", "var_delayed_compare".
24315         (var_shift): New attribute.
24316         (cell_micro): Adjust.
24317         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
24318         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
24319         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
24320         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
24321         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
24322         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
24323         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
24324         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
24325         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
24326         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
24327         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
24328         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
24329         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
24330         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
24331         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
24332         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
24333         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
24334         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
24335         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
24336         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
24337         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
24338         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
24339         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
24340         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
24341         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
24342
24343         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
24344         * config/rs6000/440.md (ppc440-integer): Adjust.
24345         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
24346         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
24347         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
24348         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
24349         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
24350         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
24351         * config/rs6000/8540.md (ppc8540_su): Adjust.
24352         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
24353         cell-cmp-microcoded): Adjust.
24354         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
24355         * config/rs6000/e500mc.md (e500mc_su): Adjust.
24356         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
24357         e500mc64_delayed): Adjust.
24358         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
24359         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
24360         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
24361         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
24362         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
24363         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
24364         power6-delayed-compare, power6-var-delayed-compare): Adjust.
24365         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
24366         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
24367         Adjust comment.
24368         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
24369         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
24370
24371 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24372
24373         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
24374         (bits): New mode_attr.
24375         (idiv_ldiv): Delete mode_attr.
24376         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
24377         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
24378         rs6000_adjust_priority, is_nonpipeline_insn,
24379         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
24380
24381         * config/rs6000/40x.md (ppc403-idiv): Adjust.
24382         * config/rs6000/440.md (ppc440-idiv): Adjust.
24383         * config/rs6000/476.md (ppc476-idiv): Adjust.
24384         * config/rs6000/601.md (ppc601-idiv): Adjust.
24385         * config/rs6000/603.md (ppc603-idiv): Adjust.
24386         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
24387         ppc620-ldiv): Adjust.
24388         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
24389         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
24390         * config/rs6000/8540.md (ppc8540_divide): Adjust.
24391         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
24392         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
24393         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
24394         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
24395         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
24396         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
24397         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
24398         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
24399         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
24400         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
24401         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
24402         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
24403         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
24404         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
24405         * config/rs6000/titan.md (titan_fxu_div): Adjust.
24406
24407 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24408
24409         * config/rs6000/rs6000.md (type): Delete "insert_word",
24410         "insert_dword".  Add "insert".
24411         (size): Update comment.
24412         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
24413         insn_must_be_first_in_group): Adjust.
24414         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
24415         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
24416         *insvsi_internal6, insvdi_internal): Adjust.
24417
24418         * config/rs6000/40x.md (ppc403-integer): Adjust.
24419         * config/rs6000/440.md (ppc440-integer): Adjust.
24420         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
24421         * config/rs6000/601.md (ppc601-integer): Adjust.
24422         * config/rs6000/603.md (ppc603-integer): Adjust.
24423         * config/rs6000/6xx.md (ppc604-integer): Adjust.
24424         * config/rs6000/7450.md (ppc7450-integer): Adjust.
24425         * config/rs6000/7xx.md (ppc750-integer): Adjust.
24426         * config/rs6000/8540.md (ppc8540_su): Adjust.
24427         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
24428         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
24429         * config/rs6000/e500mc.md (e500mc_su): Adjust.
24430         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
24431         * config/rs6000/e5500.md (e5500_sfx): Adjust.
24432         * config/rs6000/e6500.md (e6500_sfx): Adjust.
24433         * config/rs6000/mpc.md (mpccore-integer): Adjust.
24434         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
24435         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
24436         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
24437         * config/rs6000/power7.md (power7-integer): Adjust.
24438         * config/rs6000/power8.md (power8-1cyc): Adjust.
24439         * config/rs6000/rs64.md (rs64a-integer): Adjust.
24440         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
24441
24442 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24443
24444         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
24445         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
24446         (size): New attribute.
24447         (dot): New attribute.
24448         (cell_micro): Adjust.
24449         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
24450         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
24451         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
24452         umuldi3_highpart): Adjust.
24453         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
24454         rs6000_adjust_priority, is_nonpipeline_insn,
24455         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
24456
24457         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
24458         ppc405-imul3): Adjust.
24459         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
24460         * config/rs6000/476.md (ppc476-imul): Adjust.
24461         * config/rs6000/601.md (ppc601-imul): Adjust.
24462         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
24463         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
24464         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
24465         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
24466         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
24467         Adjust.
24468         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
24469         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
24470         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
24471         cell-imul): Adjust.
24472         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
24473         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
24474         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
24475         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
24476         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
24477         * config/rs6000/mpc.md (mpccore-imul): Adjust.
24478         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
24479         power4-lmul, power4-imul, power4-imul3): Adjust.
24480         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
24481         power5-lmul, power5-imul, power5-imul3): Adjust.
24482         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
24483         power6-lmul, power6-imul, power6-imul3): Adjust.
24484         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
24485         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
24486
24487         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
24488         rs64a-lmul): Adjust.
24489         * config/rs6000/titan.md (titan_imul): Adjust.
24490
24491 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24492
24493         * config/rs6000/rs6000.md (type): Add new value "halfmul".
24494         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
24495         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
24496         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
24497         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
24498         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
24499         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
24500         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
24501         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
24502         * config/rs6000/titan.md: Delete nonsensical comment.
24503         (titan_imul): Add type imul3.
24504         (titan_mulhw): Remove type imul3; add type halfmul.
24505
24506 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24507
24508         * config/rs6000/rs6000.md (type): Reorder, reformat.
24509
24510 2014-05-23  Martin Jambor  <mjambor@suse.cz>
24511
24512         PR tree-optimization/53787
24513         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
24514         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
24515         analysis_done, update all uses.
24516         * ipa-prop.c: Include domwalk.h
24517         (param_analysis_info): Removed.
24518         (param_aa_status): New type.
24519         (ipa_bb_info): Likewise.
24520         (func_body_info): Likewise.
24521         (ipa_get_bb_info): New function.
24522         (aa_overwalked): Likewise.
24523         (find_dominating_aa_status): Likewise.
24524         (parm_bb_aa_status_for_bb): Likewise.
24525         (parm_preserved_before_stmt_p): Changed to use new param AA info.
24526         (load_from_unmodified_param): Accept func_body_info as a parameter
24527         instead of parms_ainfo.
24528         (parm_ref_data_preserved_p): Changed to use new param AA info.
24529         (parm_ref_data_pass_through_p): Likewise.
24530         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
24531         (compute_complex_assign_jump_func): Changed to use new param AA info.
24532         (compute_complex_ancestor_jump_func): Likewise.
24533         (ipa_compute_jump_functions_for_edge): Likewise.
24534         (ipa_compute_jump_functions): Removed.
24535         (ipa_compute_jump_functions_for_bb): New function.
24536         (ipa_analyze_indirect_call_uses): Likewise, moved variable
24537         declarations down.
24538         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
24539         and info, moved variable declarations down.
24540         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
24541         node and info.
24542         (ipa_analyze_stmt_uses): Likewise.
24543         (ipa_analyze_params_uses): Removed.
24544         (ipa_analyze_params_uses_in_bb): New function.
24545         (ipa_analyze_controlled_uses): Likewise.
24546         (free_ipa_bb_info): Likewise.
24547         (analysis_dom_walker): New class.
24548         (ipa_analyze_node): Handle node-specific forbidden analysis,
24549         initialize and free func_body_info, use dominator walker.
24550         (ipcp_modif_dom_walker): New class.
24551         (ipcp_transform_function): Create and free func_body_info, use
24552         ipcp_modif_dom_walker, moved a lot of functionality there.
24553
24554 2014-05-23  Marek Polacek  <polacek@redhat.com>
24555             Jakub Jelinek  <jakub@redhat.com>
24556
24557         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
24558         * gcc.c (sanitize_spec_function): Likewise.
24559         * convert.c (convert_to_integer): Include "ubsan.h".  Add
24560         floating-point to integer instrumentation.
24561         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
24562         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
24563         SANITIZE_NONDEFAULT.
24564         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
24565         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
24566         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
24567         * ubsan.c: Include "realmpfr.h" and "dfp.h".
24568         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
24569         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
24570         float/double/long double.
24571         (ubsan_instrument_float_cast): New function.
24572         * ubsan.h (ubsan_instrument_float_cast): Declare.
24573
24574 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
24575
24576         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
24577         predicate.
24578         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
24579         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
24580         Adjust for tailcalling through registers.
24581         * config/aarch64/aarch64.h (enum reg_class): New caller save
24582         register class.
24583         (REG_CLASS_NAMES): Likewise.
24584         (REG_CLASS_CONTENTS): Likewise.
24585         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
24586         Allow tailcalling without decls.
24587
24588 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
24589
24590         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
24591         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
24592
24593         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
24594         gsi, and variables v_* to v*.
24595
24596 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
24597
24598         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
24599
24600 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
24601
24602         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
24603         * omp-low.c: Update accordingly.
24604
24605         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
24606         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
24607         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
24608         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
24609         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
24610         GF_OMP_TARGET_KIND_UPDATE.
24611
24612         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
24613         Explicitly enumerate the expected region types.
24614
24615 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
24616
24617         PR other/56955
24618         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
24619         documentation; the old documentation didn't clearly state the
24620         constraints on the contents of the pointed-to storage.
24621
24622 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24623
24624         Fix bootstrap error on ia64
24625         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
24626         Return default value.
24627
24628 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24629
24630         PR tree-optimization/54733
24631         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
24632         (CMPNOP): Define.
24633         (find_bswap_or_nop_load): New.
24634         (find_bswap_1): Renamed to ...
24635         (find_bswap_or_nop_1): This. Also add support for memory source.
24636         (find_bswap): Renamed to ...
24637         (find_bswap_or_nop): This. Also add support for memory source and
24638         detection of bitwise operations equivalent to load in target
24639         endianness.
24640         (execute_optimize_bswap): Likewise. Also move its leading comment back
24641         in place and split statement transformation into ...
24642         (bswap_replace): This.
24643
24644 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
24645
24646         PR rtl-optimization/61215
24647         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
24648         simplify_gen_subreg until final substitution.
24649
24650 2014-05-23  Alan Modra  <amodra@gmail.com>
24651
24652         PR target/61231
24653         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
24654         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
24655         Use "Y" constraint rather than "m".
24656
24657 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
24658
24659         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
24660         define.
24661         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
24662         New function declaration.
24663         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
24664         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
24665         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
24666         (aarch64_init_builtins) : Initialize builtins
24667         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
24668         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
24669         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
24670         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
24671         and __builtins_aarch64_set_fpsr.
24672         (aarch64_atomic_assign_expand_fenv): New function.
24673         * config/aarch64/aarch64.md (set_fpcr): New pattern.
24674         (get_fpcr) : Likewise.
24675         (set_fpsr) : Likewise.
24676         (get_fpsr) : Likewise.
24677         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
24678         and UNSPECV_SET_FPSR.
24679         * doc/extend.texi (AARCH64 Built-in Functions) : Document
24680         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
24681         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
24682
24683 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
24684
24685         PR rtl-optimization/60969
24686         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
24687         constraints.  Set up mem cost for NO_REGS case.
24688
24689 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
24690
24691         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
24692
24693 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
24694
24695         * config/darwin.c: Include "lto-section-names.h".
24696         (LTO_SEGMENT_NAME): Don't define.
24697         * config/i386/winnt.c: Include "lto-section-names.h".
24698         * lto-streamer.c: Include "lto-section-names.h".
24699         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
24700         * lto-wrapper.c: Include "lto-section-names.h".
24701         (LTO_SECTION_NAME_PREFIX): Don't define.
24702         * lto-section-names.h: New file.
24703         * cgraphunit.c: Include "lto-section-names.h".
24704
24705 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
24706
24707         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
24708
24709 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
24710
24711         PR target/61208
24712         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
24713
24714 2014-05-22  Nick Clifton  <nickc@redhat.com>
24715
24716         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
24717
24718 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
24719
24720         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
24721         -> (T)A transformation to integer types.
24722
24723 2014-05-22  Teresa Johnson  <tejohnson@google.com>
24724
24725         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
24726         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
24727         (gcov_rewrite): Use gcov_nonruntime_assert.
24728         (gcov_open): Ditto.
24729         (gcov_write_words): Ditto.
24730         (gcov_write_length): Ditto.
24731         (gcov_read_words): Use gcov_nonruntime_assert, and remove
24732         gcc_assert from IN_LIBGCOV code.
24733         (gcov_read_summary): Use gcov_error to flag profile corruption.
24734         (gcov_sync): Use gcov_nonruntime_assert.
24735         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
24736         (gcov_histo_index): Use gcov_nonruntime_assert.
24737         (static void gcov_histogram_merge): Ditto.
24738         (compute_working_sets): Ditto.
24739         * gcov-io.h (gcov_nonruntime_assert): Define.
24740         (gcov_error): Define for !IN_LIBGCOV
24741
24742 2014-05-22  Richard Biener  <rguenther@suse.de>
24743
24744         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
24745         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
24746         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
24747         and deallocation site.
24748         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24749         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
24750         passing through the incoming points-to set.
24751         (handle_lhs_call): Use flags argument instead of recomputing it.
24752         (find_func_aliases_for_call): Call handle_lhs_call with proper
24753         call return flags.
24754
24755 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
24756
24757         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
24758         all padding bits in REAL_VALUE_TYPE are cleared.
24759
24760 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24761
24762         Cleanup and improve multipass_dfa_lookahead_guard
24763         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
24764         (core2i7_first_cycle_multipass_begin,)
24765         (core2i7_first_cycle_multipass_issue,)
24766         (core2i7_first_cycle_multipass_backtrack): Update signature.
24767         * config/ia64/ia64.c
24768         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
24769         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
24770         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
24771         hook definition.
24772         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
24773         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
24774         values.
24775         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
24776         return values.
24777         * doc/tm.texi: Regenerate.
24778         * doc/tm.texi.in
24779         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
24780         * haifa-sched.c (ready_try): Make signed to allow negative values.
24781         (rebug_ready_list_1): Update.
24782         (choose_ready): Simplify.
24783         (sched_extend_ready_list): Update.
24784
24785 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24786
24787         Remove IA64 speculation tweaking flags
24788         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
24789         speculation tuning flags.
24790         (msched-prefer-non-data-spec-insns,)
24791         (msched-prefer-non-control-spec-insns): Obsolete options.
24792         * haifa-sched.c (choose_ready): Remove handling of
24793         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
24794         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
24795         and PREFER_NON_DATA_SPEC.
24796         * sel-sched.c (process_spec_exprs): Remove handling of
24797         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
24798
24799 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24800
24801         Improve scheduling debug output
24802         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
24803         (advance_one_cycle): Update.
24804         (schedule_insn, queue_to_ready): Add debug printouts.
24805         (debug_ready_list_1): New static function.
24806         (debug_ready_list): Update.
24807         (max_issue): Add debug printouts.
24808         (dump_insn_stream): New static function.
24809         (schedule_block): Use it.  Also better indent printouts.
24810
24811 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24812
24813         Fix sched_insn debug counter
24814         * haifa-sched.c (schedule_insn): Update.
24815         (struct haifa_saved_data): Add nonscheduled_insns_begin.
24816         (save_backtrack_point, restore_backtrack_point): Update.
24817         (first_nonscheduled_insn): New static function.
24818         (queue_to_ready, choose_ready): Use it.
24819         (schedule_block): Init nonscheduled_insns_begin.
24820         (sched_emit_insn): Update.
24821
24822
24823 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
24824
24825         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
24826         to GENERAL_REGS.
24827         (aarch64_secondary_reload) : LikeWise.
24828         (aarch64_class_max_nregs) : Remove CORE_REGS.
24829         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
24830         (REG_CLASS_NAMES) : Likewise.
24831         (REG_CLASS_CONTENTS) : LikeWise.
24832         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
24833
24834 2014-05-21  Guozhi Wei  <carrot@google.com>
24835
24836         PR target/61202
24837         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
24838         constraint.
24839         (vqdmulhq_n_s16): Likewise.
24840
24841 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
24842
24843         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
24844
24845 2014-05-21  Marek Polacek  <polacek@redhat.com>
24846
24847         PR sanitizer/61272
24848         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
24849
24850 2014-05-21  Martin Jambor  <mjambor@suse.cz>
24851
24852         * doc/invoke.texi (Optimize Options): Document parameters
24853         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
24854         ipa-cp-array-index-hint-bonus.
24855
24856 2014-05-21  Mark Wielaard  <mjw@redhat.com>
24857
24858         PR debug/16063
24859         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
24860         version >= 3 or not strict DWARF.
24861         * langhooks.h (struct lang_hooks_for_types): Add
24862         enum_underlying_base_type.
24863         * langhooks.c (lhd_enum_underlying_base_type): New function.
24864         * gcc/langhooks.h (struct lang_hooks_for_types): Add
24865         enum_underlying_base_type.
24866         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
24867         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
24868         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
24869
24870 2014-05-21  Richard Biener  <rguenther@suse.de>
24871
24872         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
24873
24874 2014-05-21  John Marino  <gnugcc@marino.st>
24875
24876         * config.gcc (*-*-dragonfly*): New target.
24877         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
24878         * configure: Regenerate.
24879         * config/dragonfly-stdint.h: New.
24880         * config/dragonfly.h: New.
24881         * config/dragonfly.opt: New.
24882         * config/i386/dragonfly.h: New.
24883         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
24884
24885 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
24886
24887         * tree.def (VOID_CST): New.
24888         * tree-core.h (TI_VOID): New.
24889         * tree.h (void_node): New.
24890         * tree.c (tree_node_structure_for_code, tree_code_size)
24891         (iterative_hash_expr): Handle VOID_CST.
24892         (build_common_tree_nodes): Initialize void_node.
24893
24894 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
24895
24896         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
24897         functions.
24898         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
24899
24900         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
24901         more places.
24902
24903         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
24904         flag_reorder_blocks_and_partition.
24905         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
24906
24907 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
24908
24909         PR target/54236
24910         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
24911         constraints.
24912         (*addc_r_t): Add new insn_and_split.
24913
24914 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
24915
24916         PR middle-end/61252
24917         * omp-low.c (handle_simd_reference): New function.
24918         (lower_rec_input_clauses): Use it.  Defer adding reference
24919         initialization even for reduction without placeholder if in simd,
24920         handle it properly later on.
24921
24922 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
24923
24924         PR tree-optimization/60899
24925         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
24926         assume all static symbols will have definition wile parsing and
24927         check the do have definition later in compilation; check that
24928         variable referring symbol will be output before concluding that
24929         reference is safe; be conservative for referring local statics;
24930         be more precise about when comdat is output in other partition.
24931
24932 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
24933
24934         PR bootstrap/60984
24935         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
24936         parameter.
24937         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
24938         (ipa_inline): Loop inline_to_all_callers until no more aliases
24939         are removed.
24940
24941 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
24942
24943         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
24944         set writeonly flag only for vars actually written to.
24945
24946 2014-05-20  Dehao Chen  <dehao@google.com>
24947
24948         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
24949         and callee count to get clone count.
24950         * tree-inline.c (expand_call_inline): Use callee count instead of bb
24951         count in copy_body.
24952
24953 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
24954
24955         PR rtl-optimization/61243
24956         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
24957
24958 2014-05-20  Xinliang David Li  <davidxl@google.com>
24959
24960         * cgraphunit.c (walk_polymorphic_call_targets): Add
24961         dbgcnt and fopt-info support.
24962         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
24963         * ipa-devirt.c (ipa_devirt): Ditto.
24964         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
24965         * ipa.c (walk_polymorphic_call_targets): Ditto.
24966         * gimple-fold.c (fold_gimple_assign): Ditto.
24967         (gimple_fold_call): Ditto.
24968         * dbgcnt.def: New counter.
24969
24970 2014-05-20  DJ Delorie  <dj@redhat.com>
24971
24972         * config/msp430/msp430.md (split): Don't allow subregs when
24973         splitting SImode adds.
24974         (andneghi): Fix subtraction logic.
24975         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
24976
24977 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
24978
24979         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
24980         symbols.
24981         * except.c (switch_to_exception_section, resolve_unique_section,
24982         get_named_text_section, default_function_rodata_section,
24983         align_variable, get_block_for_decl, default_section_type_flags):
24984         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
24985         * symtab.c (symtab_add_to_same_comdat_group,
24986         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
24987         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
24988         Likewise.
24989         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
24990         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
24991         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
24992         (c6x_function_in_section_p): Likewise.
24993         * config/darwin.c (machopic_select_section): Likewise.
24994         * config/arm/arm.c (arm_function_in_section_p): Likewise.
24995         * config/mips/mips.c (mips_function_rodata_section): Likewise.
24996         * config/mep/mep.c (mep_select_section): LIkewise.
24997         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
24998
24999 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
25000
25001         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
25002         EH region of calls to pure functions that can throw an exception.
25003         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
25004         (copy_reference_ops_from_call): Also copy the EH region of the call if
25005         it can throw an exception.
25006
25007 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25008
25009         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
25010         nested VEC_SELECTs that are inverses of each other.
25011
25012 2014-05-20  Richard Biener  <rguenther@suse.de>
25013
25014         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
25015         (extract_and_process_scc_for_name): not here.
25016         (cond_dom_walker::before_dom_children): Only process
25017         stmts that end the BB in interesting ways.
25018         (run_scc_vn): Mark param uses as visited.
25019
25020 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25021
25022         * config/arm/arm.md (arith_shiftsi): Do not predicate for
25023         arm_restrict_it.
25024
25025 2014-05-20  Nick Clifton  <nickc@redhat.com>
25026
25027         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
25028         (msp430_gimplify_va_arg_expr): New function.
25029         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
25030
25031         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
25032         operand 0 in order to prevent confusion about the number of
25033         registers involved.
25034
25035 2014-05-20  Richard Biener  <rguenther@suse.de>
25036
25037         PR tree-optimization/61221
25038         * tree-ssa-pre.c (el_to_update): Remove.
25039         (eliminate_dom_walker::before_dom_children): Handle released
25040         VDEFs by value-numbering them to the associated VUSE.  Update
25041         stmt immediately for substituted call address.
25042         (eliminate): Remove delayed stmt updating code.
25043         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
25044         possibly late re-numbered vuses.
25045         (vn_reference_lookup_2): Adjust.
25046         (vn_reference_lookup_pieces): Likewise.
25047         (vn_reference_lookup): Likewise.
25048
25049 2014-05-20  Richard Biener  <rguenther@suse.de>
25050
25051         * config.gcc: Remove need_64bit_hwint.
25052         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
25053         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
25054         it to be true.
25055         * config.in: Regenerate.
25056         * configure: Likewise.
25057
25058 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
25059
25060         * doc/extend.texi: Create Label Attributes section,
25061         move all label attributes into it and reference it.
25062
25063 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
25064
25065         * arm.c (thumb1_reorg): When scanning backwards skip anything
25066         that's not a proper insn.
25067
25068 2014-05-19  Richard Biener  <rguenther@suse.de>
25069
25070         PR tree-optimization/61221
25071         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
25072         Do nothing for unreachable blocks.
25073         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
25074         Improve unreachability detection.
25075
25076 2014-05-19  Richard Biener  <rguenther@suse.de>
25077
25078         PR tree-optimization/61209
25079         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
25080
25081 2014-05-19  Nick Clifton  <nickc@redhat.com>
25082
25083         * except.c (init_eh): Fix computation of builtin setjmp buffer
25084         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
25085
25086 2014-05-19  Richard Biener  <rguenther@suse.de>
25087
25088         PR tree-optimization/61184
25089         * tree-vrp.c (is_negative_overflow_infinity): Use
25090         TREE_OVERFLOW_P and do that check first.
25091         (is_positive_overflow_infinity): Likewise.
25092         (is_overflow_infinity): Likewise.
25093         (vrp_operand_equal_p): Properly treat operands with
25094         differing overflow as not equal.
25095
25096 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
25097
25098         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
25099         shift simplification where it was intended.
25100
25101 2014-05-19  Christian Bruel  <christian.bruel@st.com>
25102
25103         PR target/61195
25104         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
25105
25106 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
25107
25108         PR target/61084
25109         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
25110         than wide_int.
25111
25112 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
25113
25114         * reg-notes.def (CROSSING_JUMP): Likewise.
25115         * rtl.h (rtx_def): Update comment for jump flag.
25116         (CROSSING_JUMP_P): Define.
25117         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
25118         of a REG_CROSSING_JUMP note.
25119         * cfghooks.c (tidy_fallthru_edges): Likewise.
25120         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
25121         * emit-rtl.c (try_split): Likewise.
25122         * haifa-sched.c (sched_create_recovery_edges): Likewise.
25123         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
25124         * jump.c (redirect_jump_2): Likewise.
25125         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
25126         (relax_delay_slots): Likewise.
25127         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
25128         (bbit_di): Likewise.
25129         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
25130         * config/sh/sh.md (jump_compact): Likewise.
25131         * bb-reorder.c (rotate_loop): Likewise.
25132         (pass_duplicate_computed_gotos::execute): Likewise.
25133         (add_reg_crossing_jump_notes): Rename to...
25134         (update_crossing_jump_flags): ...this.
25135         (pass_partition_blocks::execute): Update accordingly.
25136
25137 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
25138
25139         * tree.h: Remove extraneous template <>.
25140
25141 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
25142
25143         * ipa.c (symtab_remove_unreachable_nodes): Remove
25144         symbol from comdat group if its body was eliminated.
25145         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
25146         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
25147         (symtab_unregister_node): ... this one.
25148         (verify_symtab_base): More strict checking of comdats.
25149         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
25150
25151 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
25152
25153         * tree-pass.h (make_pass_ipa_comdats): New pass.
25154         * timevar.def (TV_IPA_COMDATS): New timevar.
25155         * passes.def (pass_ipa_comdats): Add.
25156         * Makefile.in (OBJS): Add ipa-comdats.o
25157         * ipa-comdats.c: New file.
25158
25159 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
25160
25161         * ipa.c (update_visibility_by_resolution_info): New function.
25162         (function_and_variable_visibility): Use it.
25163
25164 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
25165
25166         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
25167         New functions.
25168         (FOR_EACH_DEFINED_SYMBOL): New macro.
25169         (varpool_first_static_initializer, varpool_next_static_initializer,
25170         varpool_first_defined_variable, varpool_next_defined_variable):
25171         Fix comments.
25172         (symtab_in_same_comdat_p): Correctly deal with inline functions.
25173
25174 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
25175
25176         * ggc-page.c (ggc_handle_finalizers): Add comment.
25177
25178 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
25179
25180         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
25181         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
25182         (ggc_internal_cleared_alloc): Likewise.
25183         * ggc-page.c (finalizer): New class.
25184         (vec_finalizer): Likewise.
25185         (globals::finalizers): New member.
25186         (globals::vec_finalizers): Likewise.
25187         (ggc_internal_alloc): Record the finalizer if any for the block being
25188         allocated.
25189         (ggc_handle_finalizers): New function.
25190         (ggc_collect): Call ggc_handle_finalizers.
25191         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
25192         finalizer.
25193         (ggc_internal_cleared_alloc): Likewise.
25194         (finalize): New function.
25195         (need_finalization_p): Likewise.
25196         (ggc_alloc): Install the type's destructor as the finalizer if it
25197         might do something.
25198         (ggc_cleared_alloc): Likewise.
25199         (ggc_vec_alloc): Likewise.
25200         (ggc_cleared_vec_alloc): Likewise.
25201
25202 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
25203
25204         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
25205
25206 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
25207
25208         * alias.c (record_alias_subset): Adjust.
25209         * bitmap.c (bitmap_element_allocate): Likewise.
25210         (bitmap_gc_alloc_stat): Likewise.
25211         * cfg.c (init_flow): Likewise.
25212         (alloc_block): Likewise.
25213         (unchecked_make_edge): Likewise.
25214         * cfgloop.c (alloc_loop): Likewise.
25215         (flow_loops_find): Likewise.
25216         (rescan_loop_exit): Likewise.
25217         * cfgrtl.c (init_rtl_bb_info): Likewise.
25218         * cgraph.c (insert_new_cgraph_node_version): Likewise.
25219         (cgraph_allocate_node): Likewise.
25220         (cgraph_create_edge_1): Likewise.
25221         (cgraph_allocate_init_indirect_info): Likewise.
25222         * cgraphclones.c (cgraph_clone_edge): Likewise.
25223         * cgraphunit.c (add_asm_node): Likewise.
25224         (init_lowered_empty_function): Likewise.
25225         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
25226         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
25227         (alpha_use_linkage): Likewise.
25228         * config/arc/arc.c (arc_init_machine_status): Likewise.
25229         * config/arm/arm.c (arm_init_machine_status): Likewise.
25230         * config/avr/avr.c (avr_init_machine_status): Likewise.
25231         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
25232         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
25233         * config/cris/cris.c (cris_init_machine_status): Likewise.
25234         * config/darwin.c (machopic_indirection_name): Likewise.
25235         (darwin_build_constant_cfstring): Likewise.
25236         (darwin_enter_string_into_cfstring_table): Likewise.
25237         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
25238         * config/frv/frv.c (frv_init_machine_status): Likewise.
25239         * config/i386/i386.c (get_dllimport_decl): Likewise.
25240         (ix86_init_machine_status): Likewise.
25241         (assign_386_stack_local): Likewise.
25242         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
25243         (i386_pe_maybe_record_exported_symbol): Likewise.
25244         (i386_pe_record_stub): Likewise.
25245         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
25246         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
25247         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
25248         (m32c_note_pragma_address): Likewise.
25249         * config/mep/mep.c (mep_init_machine_status): Likewise.
25250         (mep_note_pragma_flag): Likewise.
25251         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
25252         (mips16_local_alias): Likewise.
25253         (mips_init_machine_status): Likewise.
25254         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
25255         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
25256         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
25257         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
25258         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
25259         * config/pa/pa.c (pa_init_machine_status): Likewise.
25260         (pa_get_deferred_plabel): Likewise.
25261         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
25262         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
25263         (rs6000_init_machine_status): Likewise.
25264         (output_toc): Likewise.
25265         * config/s390/s390.c (s390_init_machine_status): Likewise.
25266         * config/score/score.c (score_output_external): Likewise.
25267         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
25268         * config/spu/spu.c (spu_init_machine_status): Likewise.
25269         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
25270         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
25271         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
25272         * coverage.c (coverage_end_function): Likewise.
25273         * dbxout.c (dbxout_init): Likewise.
25274         * doc/gty.texi: Don't mention variable_size attribute.
25275         * dwarf2cfi.c (new_cfi): Adjust.
25276         (new_cfi_row): Likewise.
25277         (copy_cfi_row): Likewise.
25278         (create_cie_data): Likewise.
25279         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
25280         (new_loc_descr): Likewise.
25281         (find_AT_string_in_table): Likewise.
25282         (add_addr_table_entry): Likewise.
25283         (new_die): Likewise.
25284         (add_var_loc_to_decl): Likewise.
25285         (clone_die): Likewise.
25286         (clone_as_declaration): Likewise.
25287         (break_out_comdat_types): Likewise.
25288         (new_loc_list): Likewise.
25289         (add_loc_descr_to_each): Likewise.
25290         (add_location_or_const_value_attribute): Likewise.
25291         (add_linkage_name): Likewise.
25292         (lookup_filename): Likewise.
25293         (dwarf2out_var_location): Likewise.
25294         (new_line_info_table): Likewise.
25295         (dwarf2out_init): Likewise.
25296         (mem_loc_descriptor): Likewise.
25297         (loc_descriptor): Likewise.
25298         (add_const_value_attribute): Likewise.
25299         (tree_add_const_value_attribute): Likewise.
25300         (comp_dir_string): Likewise.
25301         (dwarf2out_vms_debug_main_pointer): Likewise.
25302         (string_cst_pool_decl): Likewise.
25303         * emit-rtl.c (set_mem_attrs): Likewise.
25304         (get_reg_attrs): Likewise.
25305         (start_sequence): Likewise.
25306         (init_emit): Likewise.
25307         (init_emit_regs): Likewise.
25308         * except.c (init_eh_for_function): Likewise.
25309         (gen_eh_region): Likewise.
25310         (gen_eh_region_catch): Likewise.
25311         (gen_eh_landing_pad): Likewise.
25312         (add_call_site): Likewise.
25313         * function.c (add_frame_space): Likewise.
25314         (insert_temp_slot_address): Likewise.
25315         (assign_stack_temp_for_type): Likewise.
25316         (get_hard_reg_initial_val): Likewise.
25317         (allocate_struct_function): Likewise.
25318         (prepare_function_start): Likewise.
25319         (types_used_by_var_decl_insert): Likewise.
25320         * gengtype.c (variable_size_p): Remove function.
25321         (enum alloc_quantity): Remove enum.
25322         (write_typed_alloc_def): Remove function.
25323         (write_typed_struct_alloc_def): Likewise.
25324         (write_typed_typedef_alloc_def): Likewise.
25325         (write_typed_alloc_defns): Likewise.
25326         (main): Adjust.
25327         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
25328         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
25329         * ggc.h (ggc_alloc): new function.
25330         (ggc_cleared_alloc): Likewise.
25331         (ggc_vec_alloc): Template on type of vector element, and remove
25332         element size argument.
25333         (ggc_cleared_vec_alloc): Likewise.
25334         * gimple.c (gimple_build_omp_for): Adjust.
25335         (gimple_copy): Likewise.
25336         * ipa-cp.c (get_replacement_map): Likewise.
25337         (find_aggregate_values_for_callers_subset): Likewise.
25338         (known_aggs_to_agg_replacement_list): Likewise.
25339         * ipa-devirt.c (get_odr_type): Likewise.
25340         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
25341         (read_agg_replacement_chain): Likewise.
25342         * loop-iv.c (get_simple_loop_desc): Likewise.
25343         * lto-cgraph.c (input_node_opt_summary): Likewise.
25344         * lto-section-in.c (lto_new_in_decl_state): Likewise.
25345         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
25346         (input_eh_region): Likewise.
25347         (input_eh_lp): Likewise.
25348         (input_cfg): Likewise.
25349         * optabs.c (set_optab_libfunc): Likewise.
25350         (init_tree_optimization_optabs): Likewise.
25351         (set_conv_libfunc): Likewise.
25352         * passes.c (do_per_function_toporder): Likewise.
25353         * rtl.h: Don't use variable_size gty attribute.
25354         * sese.c (if_region_set_false_region): Adjust.
25355         * stringpool.c (gt_pch_save_stringpool): Likewise.
25356         * target-globals.c (save_target_globals): Likewise.
25357         * toplev.c (general_init): Likewise.
25358         * trans-mem.c (record_tm_replacement): Likewise.
25359         (split_bb_make_tm_edge): Likewise.
25360         * tree-cfg.c (move_sese_region_to_fn): Likewise.
25361         * tree-data-ref.h (lambda_vector_new): Likewise.
25362         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
25363         * tree-iterator.c (tsi_link_before): Likewise.
25364         (tsi_link_after): Likewise.
25365         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
25366         * tree-ssa-loop-niter.c (record_estimate): Likewise.
25367         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
25368         * tree-ssa-operands.h: Don't use variable_size gty attribute.
25369         * tree-ssa.c (init_tree_ssa): Adjust.
25370         * tree-ssanames.c (set_range_info): Likewise.
25371         (get_ptr_info): Likewise.
25372         (duplicate_ssa_name_ptr_info): Likewise.
25373         (duplicate_ssa_name_range_info): Likewise.
25374         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
25375         (unpack_ts_fixed_cst_value_fields): Likewise.
25376         * tree.c (build_fixed): Likewise.
25377         (build_real): Likewise.
25378         (build_string): Likewise.
25379         (decl_priority_info): Likewise.
25380         (decl_debug_expr_insert): Likewise.
25381         (decl_value_expr_insert): Likewise.
25382         (decl_debug_args_insert): Likewise.
25383         (type_hash_add): Likewise.
25384         (build_omp_clause): Likewise.
25385         * ubsan.c (decl_for_type_insert): Likewise.
25386         * varasm.c (get_unnamed_section): Likewise.
25387         (get_noswitch_section): Likewise.
25388         (get_section): Likewise.
25389         (get_block_for_section): Likewise.
25390         (create_block_symbol): Likewise.
25391         (build_constant_desc): Likewise.
25392         (create_constant_pool): Likewise.
25393         (force_const_mem): Likewise.
25394         (record_tm_clone_pair): Likewise.
25395         * varpool.c (varpool_create_empty_node): Likewise.
25396
25397 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
25398
25399         * dwarf2out.c (tree_add_const_value_attribute): Call
25400         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
25401         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
25402         instead of ggc_internal_<x>alloc_stat.
25403         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
25404         (ggc_realloc): Likewise.
25405         * ggc-none.c (ggc_internal_alloc): Likewise.
25406         (ggc_internal_cleared_alloc): Likewise.
25407         * ggc-page.c: Likewise.
25408         * ggc.h (ggc_internal_alloc_stat): Likewise.
25409         (ggc_internal_alloc): Remove macro.
25410         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
25411         (ggc_internal_cleared_alloc): Remove macro.
25412         (GGC_RESIZEVEC): Adjust.
25413         (ggc_resizevar): Remove macro.
25414         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
25415         (ggc_internal_cleared_vec_alloc_stat): Likewise.
25416         (ggc_internal_vec_cleared_alloc): Remove macro.
25417         (ggc_alloc_atomic_stat): Drop _stat suffix.
25418         (ggc_alloc_atomic): Remove macro.
25419         (ggc_alloc_cleared_atomic): Remove macro.
25420         (ggc_alloc_string_stat): Drop _stat suffix.
25421         (ggc_alloc_string): Remove macro.
25422         (ggc_alloc_rtx_def_stat): Adjust.
25423         (ggc_alloc_tree_node_stat): Likewise.
25424         (ggc_alloc_cleared_tree_node_stat): Likewise.
25425         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
25426         (ggc_alloc_cleared_simd_clone_stat): Likewise.
25427         * gimple.c (gimple_build_omp_for): Likewise.
25428         (gimple_copy): Likewise.
25429         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
25430         * toplev.c (realloc_for_line_map): Adjust.
25431         * tree-data-ref.h (lambda_vector_new): Likewise.
25432         * tree-phinodes.c (allocate_phi_node): Likewise.
25433         * tree.c (grow_tree_vec_stat): Likewise.
25434         * vec.h (va_gc::reserve): Adjust.
25435
25436 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
25437
25438         * config/microblaze/microblaze.c (break_handler): New Declaration.
25439         (microblaze_break_function_p,microblaze_is_break_handler): New.
25440         (compute_frame_size): Use microblaze_break_function_p.
25441         Add the test of break_handler.
25442         (microblaze_function_prologue) : Add the test of variable
25443         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
25444         (microblaze_function_epilogue) : Add the test of break_handler.
25445         (microblaze_globalize_label) : Add the test of break_handler.
25446         Check the name by BREAK_HANDLER_NAME.
25447
25448         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
25449
25450         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
25451         microblaze_is_break_handler test.
25452         (call_internal1,call_value_intern): Use microblaze_break_function_p.
25453         Use SYMBOL_REF_DECL.
25454
25455         * config/microblaze/microblaze-protos.h
25456         (microblaze_break_function_p,microblaze_is_break_handler):
25457         New Declaration.
25458
25459         * doc/extend.texi (MicroBlaze break_handler Functions): Document
25460         new MicroBlaze break_handler functions.
25461
25462 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
25463
25464         * doc/extend.texi (Size of an asm): Move node text according
25465         to its @menu entry position.
25466
25467 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
25468
25469         PR tree-optimization/61140
25470         PR tree-optimization/61150
25471         PR tree-optimization/61197
25472         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
25473
25474 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
25475
25476         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
25477
25478 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
25479
25480         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
25481         __SIZEOF_INT128__ is defined.
25482
25483 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
25484
25485         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
25486         (rs6000_delegitimize_address): Use it.
25487
25488 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
25489
25490         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
25491         inplace argument.  Store the new address in the original MEM when true.
25492         * emit-rtl.c (change_address_1): Likewise.
25493         (adjust_address_1, adjust_automodify_address_1, offset_address):
25494         Update accordingly.
25495         * rtl.h (plus_constant): Add an inplace argument.
25496         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
25497         when true.  Avoid generating (plus X (const_int 0)).
25498         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
25499         in-place.  Pass true to plus_constant.
25500         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
25501
25502 2014-05-16  Dehao Chen  <dehao@google.com>
25503
25504         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
25505
25506 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
25507
25508         PR target/54089
25509         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
25510         patterns.
25511         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
25512
25513 2014-05-16  Dehao Chen  <dehao@google.com>
25514
25515         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
25516         optimize_function_for_size_p.
25517         * regs.h (REG_FREQ_FROM_BB): Likewise.
25518
25519 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
25520
25521         PR target/51244
25522         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
25523         negt_reg_operand cases.
25524         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
25525         predicate.
25526         * config/sh/predicates.md (cbranch_treg_value): Simplify.
25527
25528 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
25529
25530         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
25531         target variants.
25532
25533 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
25534
25535         Revert:
25536         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
25537
25538         * tree-cfg.c (dump_function_to_file): Dump the return type of
25539         functions, in a line to itself before the function body, mimicking
25540         the layout of a C function.
25541
25542 2014-05-16  Dehao Chen  <dehao@google.com>
25543
25544         * cfghooks.c (make_forwarder_block): Use direct computation to
25545         get fall-through edge's count and frequency.
25546
25547 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
25548
25549         * config/arc/arc.c (arc_init): Fix typo in error message.
25550         * config/i386/i386.c (ix86_expand_builtin): Likewise.
25551         (split_stack_prologue_scratch_regno): Likewise.
25552         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
25553         word from error message.
25554
25555 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
25556
25557         * ira-costs.c: Fix typo in comment.
25558
25559 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
25560
25561         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
25562
25563 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
25564
25565         * varpool.c (dump_varpool_node): Dump write-only flag.
25566         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
25567         write-only flag.
25568         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
25569         write-only variables.
25570         * ipa.c (process_references): New function.
25571         (set_readonly_bit): New function.
25572         (set_writeonly_bit): New function.
25573         (clear_addressable_bit): New function.
25574         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
25575         fix handling of aliases.
25576         * cgraph.h (struct varpool_node): Add writeonly flag.
25577
25578 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
25579
25580         PR rtl-optimization/60969
25581         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
25582         Calculate costs for this case.
25583
25584 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
25585
25586         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
25587         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
25588
25589 2014-05-16  Richard Biener  <rguenther@suse.de>
25590
25591         PR tree-optimization/61194
25592         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
25593         bool patterns ending in a COND_EXPR.
25594
25595 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25596
25597         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
25598
25599 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25600
25601         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
25602         where we were unable to cost an RTX.
25603
25604 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25605
25606         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
25607         HIGH, LO_SUM.
25608
25609 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25610             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25611
25612         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
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 FMA,
25618         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
25619
25620 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25621             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25622
25623         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
25624         operators.
25625
25626 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25627             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25628
25629         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
25630         DIV/MOD.
25631
25632 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25633             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25634
25635         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
25636         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
25637
25638 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25639             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25640
25641         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
25642         rotates and shifts.
25643
25644 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25645             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25646
25647         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
25648         ZERO_EXTEND and SIGN_EXTEND better.
25649
25650 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25651             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25652
25653         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
25654         logical operations.
25655
25656 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25657             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25658
25659         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
25660         costs when costing loads and stores to memory.
25661
25662 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25663             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
25664
25665         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
25666         for SET RTX.
25667
25668 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25669
25670         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
25671
25672 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25673             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25674
25675         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
25676         to...
25677         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
25678         well formed.
25679         (aarch64_rtx_mult_cost): New.
25680         (aarch64_rtx_costs): Use it, refactor as appropriate.
25681
25682 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25683             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25684
25685         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
25686         emit instructions, return number of instructions which would
25687         be emitted.
25688         (aarch64_add_constant): Update call to aarch64_build_constant.
25689         (aarch64_output_mi_thunk): Likewise.
25690         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
25691         a CONST_DOUBLE.
25692
25693 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25694
25695         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
25696         (TARGET_RTX_COSTS): Call it.
25697
25698 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25699
25700         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
25701         (cortexa57_vector_cost): Likewise.
25702         (cortexa57_tunings): Use them.
25703
25704 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25705
25706         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
25707         (cpu_addrcost_table): Use it.
25708         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
25709         (aarch64_address_cost): Rewrite using aarch64_classify_address,
25710         move it.
25711
25712 2014-05-16  Richard Biener  <rguenther@suse.de>
25713
25714         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
25715         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
25716         (visit_phi): Ignore edges marked as not executable.
25717         (class cond_dom_walker): New.
25718         (cond_dom_walker::before_dom_children): Value-number
25719         control statements and mark successor edges as not
25720         executable if possible.
25721         (run_scc_vn): First walk all control statements in
25722         dominator order, marking edges as not executable.
25723         * tree-inline.c (copy_edges_for_bb): Be not confused
25724         about random edge flags.
25725
25726 2014-05-16  Richard Biener  <rguenther@suse.de>
25727
25728         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
25729
25730 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
25731
25732         PR target/61193
25733         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
25734         (__TM_simple_begin): Use it.
25735         (__TM_begin): Likewise.
25736
25737 2014-05-15  Martin Jambor  <mjambor@suse.cz>
25738
25739         PR ipa/61085
25740         * ipa-prop.c (update_indirect_edges_after_inlining): Check
25741         type_preserved flag when the indirect edge is polymorphic.
25742
25743 2014-05-15  Martin Jambor  <mjambor@suse.cz>
25744
25745         PR tree-optimization/61090
25746         * tree-sra.c (sra_modify_expr): Pass the current gsi to
25747         build_ref_for_model.
25748
25749 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25750
25751         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
25752         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
25753
25754 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
25755
25756         PR tree-optimization/61158
25757         * fold-const.c (fold_binary_loc): If X is zero-extended and
25758         shiftc >= prec, make sure zerobits is all ones instead of
25759         invoking undefined behavior.
25760
25761 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25762
25763         * regcprop.h: New file.
25764         * regcprop.c (skip_debug_insn_p): New decl.
25765         (replace_oldest_value_reg): Check skip_debug_insn_p.
25766         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
25767         * shrink-wrap.c: Include regcprop.h.
25768         (prepare_shrink_wrap): Call
25769         copyprop_hardreg_forward_bb_without_debug_insn.
25770
25771 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25772
25773         * shrink-wrap.h: Update comment.
25774         * shrink-wrap.c: Update comment.
25775         (next_block_for_reg): Rename to live_edge_for_reg.
25776         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
25777         (move_insn_for_shrink_wrap): Split live_edge.
25778         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
25779
25780 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
25781
25782         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
25783         Delete.
25784         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
25785         * config/sparc/sparc.md (fptype_ut699): New attribute.
25786         (in_branch_delay): Return false if -mfix-ut699 is specified and
25787         fptype_ut699 is set to single.
25788         (truncdfsf2): Add fptype_ut699 attribute.
25789         (fix_truncdfsi2): Likewise.
25790         (floatsisf2): Change fptype attribute.
25791         (fix_truncsfsi2): Likewise.
25792         (negtf2_notv9): Delete.
25793         (negtf2_v9): Likewise.
25794         (negtf2_hq): New instruction.
25795         (negtf2): New instruction and splitter.
25796         (negdf2_notv9): Rewrite.
25797         (abstf2_notv9): Delete.
25798         (abstf2_hq_v9): Likewise.
25799         (abstf2_v9): Likewise.
25800         (abstf2_hq): New instruction.
25801         (abstf2): New instruction and splitter.
25802         (absdf2_notv9): Rewrite.
25803
25804 2014-05-14  Cary Coutant  <ccoutant@google.com>
25805
25806         PR debug/61013
25807         * opts.c (common_handle_option): Don't special-case "-g".
25808         (set_debug_level): Default to at least level 2 with "-g".
25809
25810 2014-05-14  DJ Delorie  <dj@redhat.com>
25811
25812         * config/msp430/msp430.c (msp430_builtin): Add
25813         MSP430_BUILTIN_DELAY_CYCLES.
25814         (msp430_init_builtins): Register void __delay_cycles(long long).
25815         (msp430_builtin_decl): Add it.
25816         (cg_magic_constant): New.
25817         (msp430_expand_delay_cycles): New.
25818         (msp430_expand_builtin): Call it.
25819         (msp430_print_operand_raw): Change integer printing from "int" to
25820         HOST_WIDE_INT.
25821         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
25822         (delay_cycles_start): New.
25823         (delay_cycles_end): New.
25824         (delay_cycles_32): New.
25825         (delay_cycles_32x): New.
25826         (delay_cycles_16): New.
25827         (delay_cycles_16x): New.
25828         (delay_cycles_2): New.
25829         (delay_cycles_1): New.
25830         * doc/extend.texi: Document __delay_cycles().
25831
25832 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
25833
25834         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
25835         length attribute computation.
25836
25837 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
25838
25839         PR debug/61188
25840         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
25841
25842 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
25843
25844         PR target/61084
25845         * config/sparc/sparc.md: Fix types of low and high in DI constant
25846         splitter.  Use gen_int_mode in some other splitters.
25847
25848 2014-05-14  Martin Jambor  <mjambor@suse.cz>
25849
25850         PR ipa/60897
25851         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
25852
25853 2014-05-14  James Norris  <jnorris@codesourcery.com>
25854
25855         * omp-low.c (expand_parallel_call): Remove shadow variable.
25856         (expand_omp_taskreg): Likewise.
25857
25858 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
25859
25860         * common/config/i386/i386-common.c
25861         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
25862         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
25863         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
25864         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
25865         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
25866         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
25867         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
25868         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
25869         xsavecintrin.h, xsavesintrin.h.
25870         (x86_64-*-*): Ditto.
25871         * config/i386/clflushoptintrin.h: New.
25872         * config/i386/xsavecintrin.h: Ditto.
25873         * config/i386/xsavesintrin.h: Ditto.
25874         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
25875         (bit_XSAVES): Ditto.
25876         (bit_XSAVES): Ditto.
25877         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
25878         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
25879         -mno-clflushopt.
25880         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25881         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
25882         OPTION_MASK_ISA_XSAVES.
25883         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
25884         -mxsavec, -mxsaves.
25885         (PTA_CLFLUSHOPT) Define.
25886         (PTA_XSAVEC): Ditto.
25887         (PTA_XSAVES): Ditto.
25888         (ix86_option_override_internal): Handle new options.
25889         (ix86_valid_target_attribute_inner_p): Ditto.
25890         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
25891         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
25892         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
25893         (bdesc_special_args): Add __builtin_ia32_xsaves,
25894         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
25895         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
25896         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
25897         (ix86_expand_builtin): Handle new builtins.
25898         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
25899         (TARGET_CLFLUSHOPT_P): Ditto.
25900         (TARGET_XSAVEC): Ditto.
25901         (TARGET_XSAVEC_P): Ditto.
25902         (TARGET_XSAVES): Ditto.
25903         (TARGET_XSAVES_P): Ditto.
25904         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
25905         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
25906         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
25907         (ANY_XRSTOR): New.
25908         (ANY_XRSTOR64): Ditto.
25909         (xrstor): Ditto.
25910         (xrstor): Change into <xrstor>.
25911         (xrstor_rex64): Change into <xrstor>_rex64.
25912         (xrstor64): Change into <xrstor>64
25913         (clflushopt): New.
25914         * config/i386/i386.opt (mclflushopt): New.
25915         (mxsavec): Ditto.
25916         (mxsaves): Ditto.
25917         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
25918         xsavecintrin.h.
25919         * doc/invoke.texi: Document new options.
25920
25921 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
25922
25923         PR rtl-optimization/60866
25924         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
25925         Default it to -1.  Pass it down to init_simplejump_data.
25926         (init_simplejump_data): New parameter old_seqno.  Pass it down
25927         to get_seqno_for_a_jump.
25928         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
25929         initializing new jump seqno as a last resort.  Add comment.
25930         (sel_redirect_edge_and_branch): Save old seqno of the conditional
25931         jump and pass it down to sel_init_new_insn.
25932         (sel_redirect_edge_and_branch_force): Likewise.
25933
25934 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
25935
25936         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
25937         shifted values to avoid build warning.
25938
25939 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
25940
25941         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
25942         * cfgrtl.c (rtl_merge_blocks): Fix comment.
25943         (cfg_layout_merge_blocks): Likewise.
25944         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
25945
25946 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
25947
25948         PR rtl-optimization/60901
25949         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
25950         bb predecessor belongs to the same scheduling region.  Adjust comment.
25951
25952 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
25953
25954         * doc/sourcebuild.texi: (dfp_hw): Document.
25955         (p8vector_hw): Likewise.
25956         (powerpc_eabi_ok): Likewise.
25957         (powerpc_elfv2): Likewise.
25958         (powerpc_htm_ok): Likewise.
25959         (ppc_recip_hw): Likewise.
25960         (vsx_hw): Likewise.
25961
25962 2014-05-13  Cary Coutant  <ccoutant@google.com>
25963
25964         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
25965
25966 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
25967
25968         * gengtype-parse.c (require3): Eliminate in favor of...
25969         (require4): New.
25970         (require_template_declaration): Update to support optional single *
25971         on a type.
25972
25973         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
25974         (create_user_defined_type): Handle a single level of explicit
25975         pointerness within template arguments.
25976         (struct write_types_data): Add field "kind".
25977         (filter_type_name): Handle "*" character.
25978         (write_user_func_for_structure_ptr): Require a write_types_data
25979         rather than just a prefix string, so that we can look up the kind
25980         of the wtd and use it as an index into wrote_user_func_for_ptr,
25981         ensuring that such functions are written at most once.  Support
25982         subclasses by invoking the marking function of the ultimate base class.
25983         (write_user_func_for_structure_body): Require a write_types_data
25984         rather than just a prefix string, so that we can pass this to
25985         write_user_func_for_structure_ptr.
25986         (write_func_for_structure): Likewise.
25987         (ggc_wtd): Add initializer of new "kind" field.
25988         (pch_wtd): Likewise.
25989
25990         * gengtype.h (enum write_types_kinds): New.
25991         (struct type): Add field wrote_user_func_for_ptr to the "s"
25992         union member.
25993
25994 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
25995
25996         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
25997         instead of const_binop.
25998         (fold_binary_loc): Likewise.
25999
26000 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
26001
26002         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
26003         calculation to match get_ref_base_and_extent.
26004
26005 2014-05-13  Catherine Moore  <clm@codesourcery.com>
26006             Sandra Loosemore  <sandra@codesourcery.com>
26007
26008         * configure.ac: Fix assembly for explicit JALR relocation check.
26009         * configure: Regenerate.
26010
26011 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26012
26013         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
26014         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
26015         Remove associated type declarations and initialisations.
26016         (arm_expand_neon_builtin): Likewise.
26017         (neon_emit_pair_result_insn): Delete.
26018         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
26019         * config/arm/neon.md (neon_vtrn<mode>): Delete.
26020         (neon_vzip<mode>): Likewise.
26021         (neon_vuzp<mode>): Likewise.
26022
26023 2014-05-13  Richard Biener  <rguenther@suse.de>
26024
26025         PR ipa/60973
26026         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
26027         it needs revisiting whether the call still may be tail-called.
26028
26029 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
26030
26031         * rtl.def (SYMBOL_REF): Remove middle "0" field.
26032         * rtl.h (block_symbol): Reduce number of fields to 2.
26033         (rtx_def): Add u2.symbol_ref_flags.
26034         (SYMBOL_REF_FLAGS): Use it.
26035         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
26036         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
26037         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
26038         Lower index of SYMBOL_REF_DATA.
26039         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
26040         Print SYMBOL_REF_FLAGS at the same time.
26041         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
26042
26043 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
26044
26045         * rtl.def (VAR_LOCATION): Remove "i" field.
26046         * rtl.h (rtx_def): Add u2.var_location_status.
26047         (PAT_VAR_LOCATION_STATUS): Use it.
26048         (gen_rtx_VAR_LOCATION): Declare.
26049         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
26050         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
26051         * var-tracking.c (emit_note_insn_var_location): Remove casts.
26052
26053 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
26054
26055         * rtl.def (scratch): Fix outdated comment and remove "0" field.
26056         * gengtype.c (adjust_field_rtx_def): Update accordingly.
26057
26058 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
26059
26060         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
26061         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
26062         * rtl.h (rtx_def): Add insn_uid to u2 field.
26063         (RTX_FLAG_CHECK8): Delete in favor of...
26064         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
26065         (INSN_DELETED_P): Update accordingly.
26066         (INSN_UID): Use u2.insn_uid.
26067         (INSN_CHAIN_CODE_P): Define.
26068         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
26069         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
26070         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
26071         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
26072         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
26073         indices accordingly.
26074         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
26075         Update indices for insn-chain rtxes.
26076         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
26077         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
26078         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
26079         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
26080         * combine.c (try_combine): Likewise.
26081         * ira.c (setup_prohibited_mode_move_regs): Likewise.
26082
26083 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
26084
26085         * rtl.def (REG): Remove middle field.
26086         * rtl.h (rtx_def): Add orignal_regno to u2.
26087         (ORIGINAL_REGNO): Use it instead of field 1.
26088         (REG_ATTRS): Lower field index accordingly.
26089         * gengtype.c (adjust_field_rtx_def): Remove handling of
26090         ORIGINAL_REGNO.  Move REG_ATTRS index down.
26091         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
26092         code that prints the REGNO.
26093
26094 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
26095
26096         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
26097         GENERATOR_FILE.
26098
26099 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
26100
26101         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
26102
26103 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
26104
26105         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
26106         (alloc_iv): Lower base expressions containing ADDR_EXPR.
26107
26108 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
26109
26110         * config/aarch64/aarch64-protos.h
26111         (aarch64_hard_regno_caller_save_mode): New prototype.
26112         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
26113         New function.
26114         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
26115
26116 2014-05-13  Christian Bruel  <christian.bruel@st.com>
26117
26118         * target.def (mode_switching): New hook vector.
26119         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
26120         (mode_exit, modepriority_to_mode): Likewise.
26121         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
26122         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
26123         * target.h: Include tm.h and hard-reg-set.h.
26124         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
26125         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
26126         * doc/tm.texi Regenerate.
26127         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
26128         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
26129         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
26130         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
26131         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
26132         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
26133         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
26134         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
26135         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
26136         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
26137         (ix86_emit_mode_set): Hookify.
26138         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
26139         Delete.
26140         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
26141         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
26142         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
26143         (epiphany_mode_priority_to_mode): Remove declaration.
26144         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
26145         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
26146         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
26147         Likewise.
26148         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
26149         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
26150         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
26151
26152 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
26153
26154         PR target/61060
26155         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
26156         is const0_rtx, return immediately.  Don't test count == 0 when
26157         it is always true.
26158
26159 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
26160
26161         * Makefile.in: add shrink-wrap.o.
26162         * config/i386/i386.c: include "shrink-wrap.h"
26163         * function.c: Likewise.
26164         (requires_stack_frame_p, next_block_for_reg,
26165         move_insn_for_shrink_wrap, prepare_shrink_wrap,
26166         dup_block_and_redirect): Move to shrink-wrap.c
26167         (thread_prologue_and_epilogue_insns): Extract three code segments
26168         as functions in shrink-wrap.c
26169         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
26170         shrink-wrap.h
26171         * shrink-wrap.c: New file.
26172         * shrink-wrap.h: New file.
26173
26174 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
26175
26176         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
26177         reference to Solaris.
26178
26179 2014-05-12  Mike Stump  <mikestump@comcast.net>
26180
26181         PR other/31778
26182         * genattrtab.c (filename): Add.
26183         (convert_set_attr_alternative): Improve error message.
26184         (check_defs): Restore read_md_filename for error messages.
26185         (gen_insn): Save filename.
26186
26187 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
26188
26189         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
26190         -fno-local-ivars and -fivar-visibility.
26191         * c-family/c.opt: Make -Wshadow also implicitly enable
26192         -Wshadow-ivar.
26193
26194 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
26195
26196         * doc/tm.texi: Remove reference to deleted macro.
26197         * doc/tm.texi.in: Likewise.
26198
26199 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
26200
26201         PR target/60991
26202         * config/avr/avr.c (avr_out_store_psi): Use correct constant
26203         to restore Y.
26204
26205 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
26206
26207         PR libgcc/61152
26208         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
26209         * config/arm/aout.h (License): Same.
26210         * config/arm/bpabi.h (License): Same.
26211         * config/arm/elf.h (License): Same.
26212         * config/arm/linux-elf.h (License): Same.
26213         * config/arm/linux-gas.h (License): Same.
26214         * config/arm/netbsd-elf.h (License): Same.
26215         * config/arm/uclinux-eabi.h (License): Same.
26216         * config/arm/uclinux-elf.h (License): Same.
26217         * config/arm/vxworks.h (License): Same.
26218
26219 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
26220
26221         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
26222         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
26223         number of operands to 3.
26224         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
26225         * tree-nested.c (convert_nonlocal_omp_clauses,
26226         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
26227         * gimplify.c (gimplify_scan_omp_clauses): Handle
26228         OMP_CLAUSE_LINEAR_STMT.
26229         * omp-low.c (lower_rec_input_clauses): Fix typo.
26230         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
26231         cast between Fortran boolean_type_node and C _Bool if
26232         needed.
26233
26234 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
26235
26236         PR tree-optimization/61136
26237         * wide-int.h (multiple_of_p): Define a version that doesn't return
26238         the quotient.
26239         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
26240         integer_zerop/const_binop pair.
26241         (multiple_of_p): Likewise, converting both operands to widest_int
26242         precision.
26243
26244 2014-05-09  Teresa Johnson  <tejohnson@google.com>
26245
26246         * cgraphunit.c (analyze_functions): Use correct dump file.
26247
26248 2014-05-09  Florian Weimer  <fweimer@redhat.com>
26249
26250         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
26251         expand_used_vars.
26252         (stack_protect_return_slot_p): New function.
26253         (expand_used_vars): Call stack_protect_decl_p and
26254         stack_protect_return_slot_p for -fstack-protector-strong.
26255
26256 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
26257         Andrew Haley <aph@redhat.com>
26258         Richard Sandiford <rdsandiford@googlemail.com>
26259
26260         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
26261         pages.
26262
26263 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
26264
26265         PR middle-end/61111
26266         * fold-const.c (fold_binary_loc): Changed width of mask.
26267
26268 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
26269
26270         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
26271         unsigned int initializers for regno_in, regno_out.
26272
26273 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
26274
26275         PR target/61055
26276         * config/avr/avr.md (cc): Add new attribute set_vzn.
26277         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
26278         Set cc insn attribute to set_vzn instead of set_zn for alternatives
26279         with INC, DEC or NEG.
26280         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
26281         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
26282         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
26283
26284 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26285
26286         Revert:
26287         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26288
26289         * wide-int.cc (UTItype): Define.
26290         (UDWtype): Define for appropriate W_TYPE_SIZE.
26291
26292 2014-05-09  Richard Biener  <rguenther@suse.de>
26293
26294         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
26295         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
26296         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
26297         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
26298         ssa_propagate): Adjust.
26299
26300 2014-05-08  Jeff Law  <law@redhat.com>
26301
26302         PR tree-optimization/61009
26303         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
26304         tri-state rather than a boolean.  When a block is too big to
26305         thread through, inform caller via negative return value.
26306         (thread_across_edge): If a block was too big for normal threading,
26307         then it's too big for a joiner too, so remove temporary equivalences
26308         and return immediately.
26309
26310 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26311             Matthias Klose  <doko@ubuntu.com>
26312
26313         PR driver/61106
26314         * optc-gen.awk: Fix option handling for -Wunused-parameter.
26315
26316 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
26317
26318         PR target/59952
26319         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
26320
26321 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
26322
26323         PR target/61092
26324         * config/alpha/alpha.c: Include gimple-iterator.h.
26325         (alpha_gimple_fold_builtin): New function.  Move
26326         ALPHA_BUILTIN_UMULH folding from ...
26327         (alpha_fold_builtin): ... here.
26328         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
26329
26330 2014-05-08  Wei Mi  <wmi@google.com>
26331
26332         PR target/58066
26333         * config/i386/i386.c (ix86_compute_frame_layout): Update
26334         preferred_stack_boundary for call, expanded from tls descriptor.
26335         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
26336         to depend on SP register.
26337         (*tls_local_dynamic_base_32_gnu): Ditto.
26338         (*tls_local_dynamic_32_once): Ditto.
26339         (tls_global_dynamic_64_<mode>): Set
26340         ix86_tls_descriptor_calls_expanded_in_cfun.
26341         (tls_local_dynamic_base_64_<mode>): Ditto.
26342         (tls_global_dynamic_32): Set
26343         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
26344         to depend on SP register.
26345         (tls_local_dynamic_base_32): Ditto.
26346
26347 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26348
26349         * config/arm/arm_neon.h: Update comment.
26350         * config/arm/neon-docgen.ml: Delete.
26351         * config/arm/neon-gen.ml: Delete.
26352         * doc/arm-neon-intrinsics.texi: Update comment.
26353
26354 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26355
26356         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
26357         and v4sf versions.
26358         (vand, vorr, veor, vorn, vbic): Remove.
26359         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
26360         iterator.
26361         (neon_vsub_unspec): Likewise.
26362         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
26363
26364 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26365
26366         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
26367         (vadd_s16): Likewise.
26368         (vadd_s32): Likewise.
26369         (vadd_f32): Likewise.
26370         (vadd_u8): Likewise.
26371         (vadd_u16): Likewise.
26372         (vadd_u32): Likewise.
26373         (vadd_s64): Likewise.
26374         (vadd_u64): Likewise.
26375         (vaddq_s8): Likewise.
26376         (vaddq_s16): Likewise.
26377         (vaddq_s32): Likewise.
26378         (vaddq_s64): Likewise.
26379         (vaddq_f32): Likewise.
26380         (vaddq_u8): Likewise.
26381         (vaddq_u16): Likewise.
26382         (vaddq_u32): Likewise.
26383         (vaddq_u64): Likewise.
26384         (vmul_s8): Likewise.
26385         (vmul_s16): Likewise.
26386         (vmul_s32): Likewise.
26387         (vmul_f32): Likewise.
26388         (vmul_u8): Likewise.
26389         (vmul_u16): Likewise.
26390         (vmul_u32): Likewise.
26391         (vmul_p8): Likewise.
26392         (vmulq_s8): Likewise.
26393         (vmulq_s16): Likewise.
26394         (vmulq_s32): Likewise.
26395         (vmulq_f32): Likewise.
26396         (vmulq_u8): Likewise.
26397         (vmulq_u16): Likewise.
26398         (vmulq_u32): Likewise.
26399         (vsub_s8): Likewise.
26400         (vsub_s16): Likewise.
26401         (vsub_s32): Likewise.
26402         (vsub_f32): Likewise.
26403         (vsub_u8): Likewise.
26404         (vsub_u16): Likewise.
26405         (vsub_u32): Likewise.
26406         (vsub_s64): Likewise.
26407         (vsub_u64): Likewise.
26408         (vsubq_s8): Likewise.
26409         (vsubq_s16): Likewise.
26410         (vsubq_s32): Likewise.
26411         (vsubq_s64): Likewise.
26412         (vsubq_f32): Likewise.
26413         (vsubq_u8): Likewise.
26414         (vsubq_u16): Likewise.
26415         (vsubq_u32): Likewise.
26416         (vsubq_u64): Likewise.
26417         (vand_s8): Likewise.
26418         (vand_s16): Likewise.
26419         (vand_s32): Likewise.
26420         (vand_u8): Likewise.
26421         (vand_u16): Likewise.
26422         (vand_u32): Likewise.
26423         (vand_s64): Likewise.
26424         (vand_u64): Likewise.
26425         (vandq_s8): Likewise.
26426         (vandq_s16): Likewise.
26427         (vandq_s32): Likewise.
26428         (vandq_s64): Likewise.
26429         (vandq_u8): Likewise.
26430         (vandq_u16): Likewise.
26431         (vandq_u32): Likewise.
26432         (vandq_u64): Likewise.
26433         (vorr_s8): Likewise.
26434         (vorr_s16): Likewise.
26435         (vorr_s32): Likewise.
26436         (vorr_u8): Likewise.
26437         (vorr_u16): Likewise.
26438         (vorr_u32): Likewise.
26439         (vorr_s64): Likewise.
26440         (vorr_u64): Likewise.
26441         (vorrq_s8): Likewise.
26442         (vorrq_s16): Likewise.
26443         (vorrq_s32): Likewise.
26444         (vorrq_s64): Likewise.
26445         (vorrq_u8): Likewise.
26446         (vorrq_u16): Likewise.
26447         (vorrq_u32): Likewise.
26448         (vorrq_u64): Likewise.
26449         (veor_s8): Likewise.
26450         (veor_s16): Likewise.
26451         (veor_s32): Likewise.
26452         (veor_u8): Likewise.
26453         (veor_u16): Likewise.
26454         (veor_u32): Likewise.
26455         (veor_s64): Likewise.
26456         (veor_u64): Likewise.
26457         (veorq_s8): Likewise.
26458         (veorq_s16): Likewise.
26459         (veorq_s32): Likewise.
26460         (veorq_s64): Likewise.
26461         (veorq_u8): Likewise.
26462         (veorq_u16): Likewise.
26463         (veorq_u32): Likewise.
26464         (veorq_u64): Likewise.
26465         (vbic_s8): Likewise.
26466         (vbic_s16): Likewise.
26467         (vbic_s32): Likewise.
26468         (vbic_u8): Likewise.
26469         (vbic_u16): Likewise.
26470         (vbic_u32): Likewise.
26471         (vbic_s64): Likewise.
26472         (vbic_u64): Likewise.
26473         (vbicq_s8): Likewise.
26474         (vbicq_s16): Likewise.
26475         (vbicq_s32): Likewise.
26476         (vbicq_s64): Likewise.
26477         (vbicq_u8): Likewise.
26478         (vbicq_u16): Likewise.
26479         (vbicq_u32): Likewise.
26480         (vbicq_u64): Likewise.
26481         (vorn_s8): Likewise.
26482         (vorn_s16): Likewise.
26483         (vorn_s32): Likewise.
26484         (vorn_u8): Likewise.
26485         (vorn_u16): Likewise.
26486         (vorn_u32): Likewise.
26487         (vorn_s64): Likewise.
26488         (vorn_u64): Likewise.
26489         (vornq_s8): Likewise.
26490         (vornq_s16): Likewise.
26491         (vornq_s32): Likewise.
26492         (vornq_s64): Likewise.
26493         (vornq_u8): Likewise.
26494         (vornq_u16): Likewise.
26495         (vornq_u32): Likewise.
26496         (vornq_u64): Likewise.
26497
26498 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26499
26500         * wide-int.cc (UTItype): Define.
26501         (UDWtype): Define for appropriate W_TYPE_SIZE.
26502
26503 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
26504
26505         PR tree-optimization/59100
26506         * tree-ssa-phiopt.c: Include tree-inline.h.
26507         (neutral_element_p, absorbing_element_p): New functions.
26508         (value_replacement): Handle conditional binary operations with a
26509         neutral or absorbing element.
26510
26511 2014-05-08  Richard Biener  <rguenther@suse.de>
26512
26513         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
26514         folding the expression.
26515         (valueize_expr): Remove.
26516         (visit_reference_op_load): Do not valueize the result of
26517         vn_get_expr_for.
26518         (simplify_binary_expression): Likewise.
26519         (simplify_unary_expression): Likewise.
26520
26521 2014-05-08  Richard Biener  <rguenther@suse.de>
26522
26523         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
26524         looking at TYPE_ARG_TYPES.
26525
26526 2014-05-08  Richard Biener  <rguenther@suse.de>
26527
26528         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
26529         pointer propagation special-case.
26530
26531 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
26532
26533         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
26534         core part of address expressions.
26535
26536 2014-05-08  Alan Modra  <amodra@gmail.com>
26537
26538         PR target/60737
26539         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
26540         loads and stores when -mno-strict-align at any alignment.
26541         (expand_block_clear): Similarly.  Also correct calculation of
26542         instruction count.
26543
26544 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26545
26546         PR middle-end/39246
26547         * tree-complex.c (expand_complex_move): Keep line info when expanding
26548         complex move.
26549         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
26550         of complex expression. Use new argument to display correct location
26551         for values coming from phi statement.
26552         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
26553         (warn_uninitialized_phi): Pass location of phi argument to
26554         warn_uninit.
26555         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
26556         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
26557
26558 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
26559
26560         * config/rs6000/predicates.md (indexed_address_mem): New.
26561         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
26562         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
26563         fpstore_ux, fpstore_u.
26564         (sign_extend, indexed, update): New.
26565         (cell_micro): Adjust.
26566         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
26567         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
26568         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
26569         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
26570         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
26571         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
26572         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
26573         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
26574         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
26575         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
26576         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
26577         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
26578         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
26579         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
26580         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
26581
26582         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
26583         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
26584         *vsx_extract_<mode>_store): Adjust.
26585         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
26586         is_cracked_insn, insn_must_be_first_in_group,
26587         insn_must_be_last_in_group): Adjust.
26588
26589         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
26590         Adjust.
26591         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
26592         ppc440-fpstore): Adjust.
26593         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
26594         ppc476-fpstore): Adjust.
26595         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
26596         ppc601-fpstore): Adjust.
26597         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
26598         Adjust.
26599         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
26600         Adjust.
26601         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
26602         ppc7450-fpstore): Adjust.
26603         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
26604         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
26605         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
26606         Adjust.
26607         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
26608         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
26609         cell-fpstore, cell-fpstore-update): Adjust.
26610         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
26611         ppce300c3_store, ppce300c3_fpstore): Adjust.
26612         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
26613         e500mc_fpstore): Adjust.
26614         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
26615         e500mc64_store, e500mc64_fpstore): Adjust.
26616         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
26617         e5500_fpstore): Adjust.
26618         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
26619         e6500_fpstore): Adjust.
26620         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
26621         Adjust.
26622         * config/rs6000/power4.md (power4-load, power4-load-ext,
26623         power4-load-ext-update, power4-load-ext-update-indexed,
26624         power4-load-update-indexed, power4-load-update, power4-fpload,
26625         power4-fpload-update, power4-store, power4-store-update,
26626         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
26627         Adjust.
26628         * config/rs6000/power5.md (power5-load, power5-load-ext,
26629         power5-load-ext-update, power5-load-ext-update-indexed,
26630         power5-load-update-indexed, power5-load-update, power5-fpload,
26631         power5-fpload-update, power5-store, power5-store-update,
26632         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
26633         Adjust.
26634         * config/rs6000/power6.md (power6-load, power6-load-ext,
26635         power6-load-update, power6-load-update-indexed,
26636         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
26637         power6-fpload-update, power6-store, power6-store-update,
26638         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
26639         Adjust.
26640         * config/rs6000/power7.md (power7-load, power7-load-ext,
26641         power7-load-update, power7-load-update-indexed,
26642         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
26643         power7-fpload-update, power7-store, power7-store-update,
26644         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
26645         Adjust.
26646         * config/rs6000/power8.md (power8-load, power8-load-update,
26647         power8-load-ext, power8-load-ext-update, power8-fpload,
26648         power8-fpload-update, power8-store, power8-store-update-indexed,
26649         power8-fpstore, power8-fpstore-update): Adjust.
26650         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
26651         Adjust.
26652         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
26653         titan_lsu_store, titan_lsu_fpstore): Adjust.
26654         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
26655
26656 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
26657
26658         PR target/60884
26659         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
26660         unrolled byte insns.  Emit address increments after move insns.
26661
26662 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
26663
26664         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
26665         const_gimple, rather than a gimple.
26666         (gimple_call_builtin_p): Likewise, for the three variants.
26667
26668         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
26669         (gimple_call_builtin_p): Likewise, for the three variants.
26670
26671 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
26672
26673         PR tree-optimization/61095
26674         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
26675
26676 2014-05-07  Richard Biener  <rguenther@suse.de>
26677
26678         PR tree-optimization/61034
26679         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
26680         (maybe_skip_until): Use translate to take into account
26681         lattices when trying to do disambiguations.
26682         (get_continuation_for_phi_1): Likewise.
26683         (get_continuation_for_phi): Adjust for added translate arguments.
26684         (walk_non_aliased_vuses): Likewise.
26685         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
26686         (walk_non_aliased_vuses): Likewise.
26687         (call_may_clobber_ref_p_1): Declare.
26688         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
26689         calls.  Stop early if we are only supposed to disambiguate.
26690         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
26691
26692 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
26693
26694         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
26695         Emit an error when the function has arguments.
26696
26697 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
26698
26699         * cfgloop.h (unswitch_loops): Remove.
26700         * doc/passes.texi: Remove references to loop-unswitch.c
26701         * timevar.def (TV_LOOP_UNSWITCH): Remove.
26702
26703 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
26704
26705         * tree-vect-data-refs.c (vect_grouped_load_supported): New
26706         check for loads group of length 3.
26707         (vect_permute_load_chain): New permutations for loads group of
26708         length 3.
26709         * tree-vect-stmts.c (vect_model_load_cost): Change cost
26710         of vec_perm_shuffle for the new permutations.
26711
26712 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
26713
26714         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
26715         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
26716         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
26717         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
26718         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
26719         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
26720         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
26721         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
26722
26723 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
26724
26725         * loop-unswitch.c: Delete.
26726
26727 2014-05-07  Richard Biener  <rguenther@suse.de>
26728
26729         * config.gcc: Always set need_64bit_hwint to yes.
26730
26731 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
26732
26733         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
26734         of using optimize_size.
26735
26736 2014-05-06  Mike Stump  <mikestump@comcast.net>
26737
26738         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
26739
26740 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
26741
26742         * config/i386/sse.md (*mov<mode>_internal)
26743         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
26744         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
26745         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
26746         (*<code><mode>3, *andnot<mode>3<mask_name>)
26747         (<mask_codefor><code><mode>3<mask_name>): Only consider
26748         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
26749
26750 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
26751
26752         Revert:
26753         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
26754
26755         * lra-constraints.c (valid_address_p): Move earlier in file.
26756         Add a constraint argument to the address_info version.
26757         (satisfies_memory_constraint_p): New function.
26758         (satisfies_address_constraint_p): Likewise.
26759         (process_alt_operands, curr_insn_transform): Use them.
26760         (process_address): Pass the constraint to valid_address_p when
26761         checking address operands.
26762
26763 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
26764
26765         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
26766         to their respective blocks.  Fix inadvertent use of "node".
26767
26768 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
26769
26770         * emit-rtl.c (init_derived_machine_modes): New functionm, split
26771         out from...
26772         (init_emit_once): ...here.
26773         * rtl.h (init_derived_machine_modes): Declare.
26774         * toplev.c (do_compile): Call it even if no_backend.
26775
26776 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
26777             Mike Stump  <mikestump@comcast.net>
26778             Richard Sandiford  <rdsandiford@googlemail.com>
26779             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26780
26781         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
26782         (rtx_equal_for_memref_p): Update comment.
26783         (adjust_offset_for_component_ref): Use wide-int interfaces.
26784         * builtins.c (get_object_alignment_2): Likewise.
26785         (c_readstr): Likewise.
26786         (target_char_cast): Add comment.
26787         (determine_block_size): Use wide-int interfaces.
26788         (expand_builtin_signbit): Likewise.
26789         (fold_builtin_int_roundingfn): Likewise.
26790         (fold_builtin_bitop): Likewise.
26791         (fold_builtin_bswap): Likewise.
26792         (fold_builtin_logarithm): Use signop.
26793         (fold_builtin_pow): Likewise.
26794         (fold_builtin_memory_op): Use wide-int interfaces.
26795         (fold_builtin_object_size): Likewise.
26796         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
26797         nb_iterations_estimate.
26798         (record_niter_bound): Use wide-int interfaces.
26799         (get_estimated_loop_iterations_int): Likewise.
26800         (get_estimated_loop_iterations): Likewise.
26801         (get_max_loop_iterations): Likewise.
26802         * cfgloop.h: Include wide-int.h.
26803         (struct nb_iter_bound): Change bound to widest_int.
26804         (struct loop): Change nb_iterations_upper_bound and
26805         nb_iterations_estimate to widest_int.
26806         (record_niter_bound): Switch to use widest_int.
26807         (get_estimated_loop_iterations): Likewise.
26808         (get_max_loop_iterations): Likewise.
26809         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
26810         update for wide-int.
26811         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
26812         * combine.c (try_combine): Likewise.
26813         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
26814         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
26815         interfaces.
26816         (aarch64_float_const_representable_p): Likewise.
26817         * config/arc/arc.c: Include wide-int.h.
26818         (arc_can_use_doloop_p): Use wide-int interfaces.
26819         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
26820         (vfp3_const_double_index): Likewise.
26821         * config/avr/avr.c (avr_out_round): Likewise.
26822         (avr_fold_builtin): Likewise.
26823         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
26824         (bfin_can_use_doloop_p): Likewise.
26825         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
26826         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
26827         * config/i386/i386.c: Include wide-int.h.
26828         (ix86_data_alignment): Use wide-int interfaces.
26829         (ix86_local_alignment): Likewise.
26830         (ix86_emit_swsqrtsf): Update real_from_integer.
26831         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
26832         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
26833         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
26834         (zero_constant): Likewise.
26835         (input_operand): Likewise.
26836         (splat_input_operand): Likewise.
26837         (non_logical_cint_operand): Change const_double to const_wide_int.
26838         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
26839         (easy_altivec_constant): Remove comment.
26840         (paired_expand_vector_init): Use CONSTANT_P.
26841         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
26842         (rs6000_emit_move): Update checks.
26843         (rs6000_aggregate_candidate): Use wide-int interfaces.
26844         (rs6000_expand_ternop_builtin): Likewise.
26845         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
26846         (rs6000_assemble_integer): Likewise.
26847         (rs6000_hash_constant): Likewise.
26848         (output_toc): Likewise.
26849         (rs6000_rtx_costs): Likewise.
26850         (rs6000_emit_swrsqrt); Update call to real_from_integer.
26851         * config/rs6000/rs6000-c.c: Include wide-int.h.
26852         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
26853         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
26854         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
26855         Handle CONST_WIDE_INT.
26856         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
26857         Use tree_fits_uhwi_p.
26858         * config/sparc/sparc.c: Include wide-int.h.
26859         (sparc_fold_builtin): Use wide-int interfaces.
26860         * config/vax/vax.c: Include wide-int.h.
26861         (vax_float_literal): Use real_from_integer.
26862         * coretypes.h (struct hwivec_def): New.
26863         (hwivec): New.
26864         (const_hwivec): New.
26865         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
26866         (equiv_constant): Handle CONST_WIDE_INT.
26867         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
26868         (cselib_hash_rtx): Handle CONST_WIDE_INT.
26869         * dbxout.c (stabstr_U): Use wide-int interfaces.
26870         (dbxout_type): Update to use cst_fits_shwi_p.
26871         * defaults.h (LOG2_BITS_PER_UNIT): Define.
26872         (TARGET_SUPPORTS_WIDE_INT): Add default.
26873         * dfp.c: Include wide-int.h.
26874         (decimal_real_to_integer2): Use wide-int interfaces and rename to
26875         decimal_real_to_integer.
26876         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
26877         decimal_real_to_integer.
26878         * doc/generic.texi (Constant expressions): Update for wide_int.
26879         * doc/rtl.texi (const_double): Likewise.
26880         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
26881         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
26882         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
26883         (REAL_VALUE_FROM_INT): Remove.
26884         (TARGET_SUPPORTS_WIDE_INT): New.
26885         * doc/tm.texi: Regenerate.
26886         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
26887         * double-int.h: Include wide-int.h.
26888         (struct wi::int_traits): New.
26889         * dwarf2out.c (get_full_len): New.
26890         (dw_val_equal_p): Add case dw_val_class_wide_int.
26891         (size_of_loc_descr): Likewise.
26892         (output_loc_operands): Likewise.
26893         (insert_double): Remove.
26894         (insert_wide_int): New.
26895         (add_AT_wide): New.
26896         (print_die): Add case dw_val_class_wide_int.
26897         (attr_checksum): Likewise.
26898         (attr_checksum_ordered): Likewise.
26899         (same_dw_val_p): Likewise.
26900         (size_of_die): Likewise.
26901         (value_format): Likewise.
26902         (output_die): Likewise.
26903         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
26904         Use wide-int.
26905         (clz_loc_descriptor): Use wide-int interfaces.
26906         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
26907         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
26908         (round_up_to_align): Use wide-int interfaces.
26909         (field_byte_offset): Likewise.
26910         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
26911         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
26912         CONST_DOUBLE handling.  Use wide-int interfaces.
26913         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
26914         (gen_enumeration_type_die): Use add_AT_wide.
26915         (hash_loc_operands): Add case dw_val_class_wide_int.
26916         (compare_loc_operands): Likewise.
26917         * dwarf2out.h: Include wide-int.h.
26918         (wide_int_ptr): New.
26919         (enum dw_val_class): Add dw_val_class_wide_int.
26920         (struct dw_val_struct): Add val_wide.
26921         * emit-rtl.c (const_wide_int_htab): New.
26922         (const_wide_int_htab_hash): New.
26923         (const_wide_int_htab_eq): New.
26924         (lookup_const_wide_int): New.
26925         (const_double_htab_hash): Use wide-int interfaces.
26926         (const_double_htab_eq): Likewise.
26927         (rtx_to_double_int): Conditionally compile for wide-int.
26928         (immed_double_int_const): Rename to immed_wide_int_const and
26929         update for wide-int.
26930         (immed_double_const): Conditionally compile for wide-int.
26931         (init_emit_once): Use wide-int interfaces.
26932         * explow.c (plus_constant): Likewise.
26933         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
26934         (lshift_value): Use wide-int interfaces.
26935         (expand_mult): Likewise.
26936         (choose_multiplier): Likewise.
26937         (expand_smod_pow2): Likewise.
26938         (make_tree): Likewise.
26939         * expr.c (convert_modes): Consolidate handling of constants.
26940         Use wide-int interfaces.
26941         (emit_group_load_1): Add note.
26942         (store_expr): Update comment.
26943         (get_inner_reference): Use wide-int interfaces.
26944         (expand_constructor): Update comment.
26945         (expand_expr_real_2): Use wide-int interfaces.
26946         (expand_expr_real_1): Likewise.
26947         (reduce_to_bit_field_precision): Likewise.
26948         (const_vector_from_tree): Likewise.
26949         * final.c: Include wide-int-print.h.
26950         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
26951         * fixed-value.c: Include wide-int.h.
26952         (fixed_from_string): Use wide-int interfaces.
26953         (fixed_to_decimal): Likewise.
26954         (fixed_convert_from_real): Likewise.
26955         (real_convert_from_fixed): Likewise.
26956         * fold-const.h (mem_ref_offset): Return an offset_int.
26957         (div_if_zero_remainder): Remove code parameter.
26958         * fold-const.c (div_if_zero_remainder): Remove code parameter.
26959         Use wide-int interfaces.
26960         (may_negate_without_overflow_p): Use wide-int interfaces.
26961         (negate_expr_p): Likewise.
26962         (fold_negate_expr): Likewise.
26963         (int_const_binop_1): Likewise.
26964         (const_binop): Likewise.
26965         (fold_convert_const_int_from_int): Likewise.
26966         (fold_convert_const_int_from_real): Likewise.
26967         (fold_convert_const_int_from_fixed): Likewise.
26968         (fold_convert_const_fixed_from_int): Likewise.
26969         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
26970         (sign_bit_p): Use wide-int interfaces.
26971         (make_range_step): Likewise.
26972         (build_range_check): Likewise.  Pass an integer of the correct type
26973         instead of using integer_one_node.
26974         (range_predecessor): Pass an integer of the correct type instead
26975         of using integer_one_node.
26976         (range_successor): Likewise.
26977         (merge_ranges): Likewise.
26978         (unextend): Use wide-int interfaces.
26979         (extract_muldiv_1): Likewise.
26980         (fold_div_compare): Likewise.
26981         (fold_single_bit_test): Likewise.
26982         (fold_sign_changed_comparison): Likewise.
26983         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
26984         (fold_plusminus_mult_expr): Use wide-int interfaces.
26985         (native_encode_int): Likewise.
26986         (native_interpret_int): Likewise.
26987         (fold_unary_loc): Likewise.
26988         (pointer_may_wrap_p): Likewise.
26989         (size_low_cst): Likewise.
26990         (mask_with_tz): Likewise.
26991         (fold_binary_loc): Likewise.
26992         (fold_ternary_loc): Likewise.
26993         (multiple_of_p): Likewise.
26994         (tree_call_nonnegative_warnv_p): Update calls to
26995         tree_int_cst_min_precision and real_from_integer.
26996         (fold_negate_const): Use wide-int interfaces.
26997         (fold_abs_const): Likewise.
26998         (fold_relational_const): Use tree_int_cst_lt.
26999         (round_up_loc): Use wide-int interfaces.
27000         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
27001         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
27002         * gengtype.c: Remove include of double-int.h.
27003         (do_typedef): Use wide-int interfaces.
27004         (open_base_files): Add wide-int.h.
27005         (main): Add offset_int and widest_int typedefs.
27006         * gengtype-lex.l: Handle "^".
27007         (CXX_KEYWORD): Add "static".
27008         * gengtype-parse.c (require3): New.
27009         (require_template_declaration): Handle constant template arguments
27010         and nested templates.
27011         * gengtype-state.c: Don't include "double-int.h".
27012         * genpreds.c (write_one_predicate_function): Update comment.
27013         (write_tm_constrs_h): Add check for hval and lval use in
27014         CONST_WIDE_INT.
27015         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
27016         (add_to_sequence): Likewise.
27017         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
27018         and const_double_operand.
27019         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
27020         interfaces.
27021         * gimple-fold.c (get_base_constructor): Likewise.
27022         (fold_array_ctor_reference): Likewise.
27023         (fold_nonarray_ctor_reference): Likewise.
27024         (fold_const_aggregate_ref_1): Likewise.
27025         (gimple_val_nonnegative_real_p): Likewise.
27026         (gimple_fold_indirect_ref): Likewise.
27027         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
27028         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
27029         (struct slsr_cand_d): Change index to be widest_int.
27030         (struct incr_info_d): Change incr to be widest_int.
27031         (alloc_cand_and_find_basis): Use wide-int interfaces.
27032         (slsr_process_phi): Likewise.
27033         (backtrace_base_for_ref): Likewise.  Return a widest_int.
27034         (restructure_reference): Take a widest_int instead of a double_int.
27035         (slsr_process_ref): Use wide-int interfaces.
27036         (create_mul_ssa_cand): Likewise.
27037         (create_mul_imm_cand): Likewise.
27038         (create_add_ssa_cand): Likewise.
27039         (create_add_imm_cand): Take a widest_int instead of a double_int.
27040         (slsr_process_add): Use wide-int interfaces.
27041         (slsr_process_cast): Likewise.
27042         (slsr_process_copy): Likewise.
27043         (dump_candidate): Likewise.
27044         (dump_incr_vec): Likewise.
27045         (replace_ref): Likewise.
27046         (cand_increment): Likewise.  Return a widest_int.
27047         (cand_abs_increment): Likewise.
27048         (replace_mult_candidate): Take a widest_int instead of a double_int.
27049         (replace_unconditional_candidate): Use wide-int interfaces.
27050         (incr_vec_index): Take a widest_int instead of a double_int.
27051         (create_add_on_incoming_edge): Likewise.
27052         (create_phi_basis): Use wide-int interfaces.
27053         (replace_conditional_candidate): Likewise.
27054         (record_increment): Take a widest_int instead of a double_int.
27055         (record_phi_increments): Use wide-int interfaces.
27056         (phi_incr_cost): Take a widest_int instead of a double_int.
27057         (lowest_cost_path): Likewise.
27058         (total_savings): Likewise.
27059         (analyze_increments): Use wide-int interfaces.
27060         (ncd_with_phi): Take a widest_int instead of a double_int.
27061         (ncd_of_cand_and_phis): Likewise.
27062         (nearest_common_dominator_for_cands): Likewise.
27063         (insert_initializers): Use wide-int interfaces.
27064         (all_phi_incrs_profitable): Likewise.
27065         (replace_one_candidate): Likewise.
27066         (replace_profitable_candidates): Likewise.
27067         * godump.c: Include wide-int-print.h.
27068         (go_output_typedef): Use wide-int interfaces.
27069         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
27070         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
27071         (build_loop_iteration_domains): Likewise.
27072         * hooks.h: Include wide-int.h rather than double-int.h.
27073         (hook_bool_dint_dint_uint_bool_true): Delete.
27074         (hook_bool_wint_wint_uint_bool_true): Declare.
27075         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
27076         (hook_bool_wint_wint_uint_bool_true): New.
27077         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
27078         interfaces.
27079         (ubsan_expand_si_overflow_mul_check): Likewise.
27080         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
27081         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
27082         (get_ancestor_addr_info): Likewise.
27083         (ipa_modify_call_arguments): Likewise.
27084         * loop-doloop.c (doloop_modify): Likewise.
27085         (doloop_optimize): Likewise.
27086         * loop-iv.c (iv_number_of_iterations): Likewise.
27087         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
27088         (unroll_loop_constant_iterations): Likewise.
27089         (decide_unroll_runtime_iterations): Likewise.
27090         (unroll_loop_runtime_iterations): Likewise.
27091         (decide_peel_simple): Likewise.
27092         (decide_unroll_stupid): Likewise.
27093         * lto-streamer-in.c (streamer_read_wi): Add.
27094         (input_cfg): Use wide-int interfaces.
27095         (lto_input_tree_1): Likewise.
27096         * lto-streamer-out.c (streamer_write_wi): Add.
27097         (hash_tree): Use wide-int interfaces.
27098         (output_cfg): Likewise.
27099         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
27100         (GTFILES): Add wide-int.h and signop.h.
27101         (TAGS): Look for .cc files too.
27102         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
27103         * optabs.c (expand_subword_shift): Likewise.
27104         (expand_doubleword_shift): Likewise.
27105         (expand_absneg_bit): Likewise.
27106         (expand_copysign_absneg): Likewise.
27107         (expand_copysign_bit): Likewise.
27108         * postreload.c (reload_cse_simplify_set): Likewise.
27109         * predict.c (predict_iv_comparison): Likewise.
27110         * pretty-print.h: Include wide-int-print.h.
27111         (pp_wide_int) New.
27112         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
27113         * print-tree.c: Include wide-int-print.h.
27114         (print_node_brief): Use wide-int interfaces.
27115         (print_node): Likewise.
27116         * read-rtl.c (validate_const_wide_int): New.
27117         (read_rtx_code): Add CONST_WIDE_INT case.
27118         * real.c: Include wide-int.h.
27119         (real_to_integer2): Delete.
27120         (real_to_integer): New function, returning a wide_int.
27121         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
27122         (ten_to_ptwo): Update call to real_from_integer.
27123         (real_digit): Likewise.
27124         * real.h: Include signop.h, wide-int.h and insn-modes.h.
27125         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
27126         (REAL_VALUE_TO_INT): Delete.
27127         (real_to_integer): Declare a wide-int form.
27128         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
27129         * recog.c (const_int_operand): Improve comment.
27130         (const_scalar_int_operand): New.
27131         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
27132         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
27133         (split_double): Likewise.
27134         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
27135         (rtx_size): Likewise.
27136         (rtx_alloc_stat_v): New.
27137         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
27138         (cwi_output_hex): New.
27139         (iterative_hash_rtx): Handle CONST_WIDE_INT.
27140         (cwi_check_failed_bounds): New.
27141         * rtl.def (CONST_WIDE_INT): New.
27142         * rtl.h: Include <utility> and wide-int.h.
27143         (struct hwivec_def): New.
27144         (CWI_GET_NUM_ELEM): New.
27145         (CWI_PUT_NUM_ELEM): New.
27146         (struct rtx_def): Add num_elem and hwiv.
27147         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
27148         (CASE_CONST_UNIQUE): Likewise.
27149         (CASE_CONST_ANY): Likewise.
27150         (CONST_SCALAR_INT_P): Likewise.
27151         (CONST_WIDE_INT_P): New.
27152         (CWI_ELT): New.
27153         (HWIVEC_CHECK): New.
27154         (cwi_check_failed_bounds): New.
27155         (CWI_ELT): New.
27156         (HWIVEC_CHECK): New.
27157         (CONST_WIDE_INT_VEC) New.
27158         (CONST_WIDE_INT_NUNITS) New.
27159         (CONST_WIDE_INT_ELT) New.
27160         (rtx_mode_t): New type.
27161         (wi::int_traits <rtx_mode_t>): New.
27162         (wi::shwi): New.
27163         (wi::min_value): New.
27164         (wi::max_value): New.
27165         (rtx_alloc_v) New.
27166         (const_wide_int_alloc): New.
27167         (immed_wide_int_const): New.
27168         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
27169         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
27170         * signop.h: New file.
27171         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
27172         (simplify_const_unary_operation): Use wide-int interfaces.
27173         (simplify_binary_operation_1): Likewise.
27174         (simplify_const_binary_operation): Likewise.
27175         (simplify_const_relational_operation): Likewise.
27176         (simplify_immed_subreg): Likewise.
27177         * stmt.c (expand_case): Likewise.
27178         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
27179         signop rather than a bool.
27180         * stor-layout.c (layout_type): Use wide-int interfaces.
27181         (initialize_sizetypes): Update calls to
27182         set_min_and_max_values_for_integral_type.
27183         (set_min_and_max_values_for_integral_type): Take a signop rather
27184         than a bool.  Use wide-int interfaces.
27185         (fixup_signed_type): Update accordingly.  Remove
27186         HOST_BITS_PER_DOUBLE_INT limit.
27187         (fixup_unsigned_type): Likewise.
27188         * system.h (STATIC_CONSTANT_P): New.
27189         (STATIC_ASSERT): New.
27190         * target.def (can_use_doloop_p): Take widest_ints rather than
27191         double_ints.
27192         * target.h: Include wide-int.h rather than double-int.h.
27193         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
27194         than double_ints.
27195         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
27196         rather than INT_CST_LT_UNSIGNED.
27197         (can_use_doloop_if_innermost): Take widest_ints rather than
27198         double_ints.
27199         * tree-affine.c: Include wide-int-print.h.
27200         (double_int_ext_for_comb): Delete.
27201         (wide_int_ext_for_comb): New.
27202         (aff_combination_zero): Use wide-int interfaces.
27203         (aff_combination_const): Take a widest_int instead of a double_int.
27204         (aff_combination_elt): Use wide-int interfaces.
27205         (aff_combination_scale): Take a widest_int instead of a double_int.
27206         (aff_combination_add_elt): Likewise.
27207         (aff_combination_add_cst): Likewise.
27208         (aff_combination_add): Use wide-int interfaces.
27209         (aff_combination_convert): Likewise.
27210         (tree_to_aff_combination): Likewise.
27211         (add_elt_to_tree): Take a widest_int instead of a double_int.
27212         (aff_combination_to_tree): Use wide-int interfaces.
27213         (aff_combination_remove_elt): Likewise.
27214         (aff_combination_add_product): Take a widest_int instead of
27215         a double_int.
27216         (aff_combination_mult): Use wide-int interfaces.
27217         (aff_combination_expand): Likewise.
27218         (double_int_constant_multiple_p): Delete.
27219         (wide_int_constant_multiple_p): New.
27220         (aff_combination_constant_multiple_p): Take a widest_int pointer
27221         instead of a double_int pointer.
27222         (print_aff): Use wide-int interfaces.
27223         (get_inner_reference_aff): Take a widest_int pointer
27224         instead of a double_int pointer.
27225         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
27226         * tree-affine.h: Include wide-int.h.
27227         (struct aff_comb_elt): Change type of coef to widest_int.
27228         (struct affine_tree_combination): Change type of offset to widest_int.
27229         (double_int_ext_for_comb): Delete.
27230         (wide_int_ext_for_comb): New.
27231         (aff_combination_const): Use widest_int instead of double_int.
27232         (aff_combination_scale): Likewise.
27233         (aff_combination_add_elt): Likewise.
27234         (aff_combination_constant_multiple_p): Likewise.
27235         (get_inner_reference_aff): Likewise.
27236         (aff_comb_cannot_overlap_p): Likewise.
27237         (aff_combination_zero_p): Use wide-int interfaces.
27238         * tree.c: Include tree.h.
27239         (init_ttree): Use make_int_cst.
27240         (tree_code_size): Removed code for INTEGER_CST case.
27241         (tree_size): Add INTEGER_CST case.
27242         (make_node_stat): Update comment.
27243         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
27244         (build_int_cst_type): Use wide-int interfaces.
27245         (double_int_to_tree): Likewise.
27246         (double_int_fits_to_tree_p): Delete.
27247         (force_fit_type_double): Delete.
27248         (force_fit_type): New.
27249         (int_cst_hash_hash): Use wide-int interfaces.
27250         (int_cst_hash_eq): Likewise.
27251         (build_int_cst_wide): Delete.
27252         (wide_int_to_tree): New.
27253         (cache_integer_cst): Use wide-int interfaces.
27254         (build_low_bits_mask): Likewise.
27255         (cst_and_fits_in_hwi): Likewise.
27256         (real_value_from_int_cst): Likewise.
27257         (make_int_cst_stat): New.
27258         (integer_zerop): Use wide_int interfaces.
27259         (integer_onep): Likewise.
27260         (integer_all_onesp): Likewise.
27261         (integer_pow2p): Likewise.
27262         (integer_nonzerop): Likewise.
27263         (tree_log2): Likewise.
27264         (tree_floor_log2): Likewise.
27265         (tree_ctz): Likewise.
27266         (int_size_in_bytes): Likewise.
27267         (mem_ref_offset): Return an offset_int rather than a double_int.
27268         (build_type_attribute_qual_variant): Use wide_int interfaces.
27269         (type_hash_eq): Likewise
27270         (tree_int_cst_equal): Likewise.
27271         (tree_int_cst_lt): Delete.
27272         (tree_int_cst_compare): Likewise.
27273         (tree_fits_shwi_p): Use wide_int interfaces.
27274         (tree_fits_uhwi_p): Likewise.
27275         (tree_int_cst_sign_bit): Likewise.
27276         (tree_int_cst_sgn): Likewise.
27277         (tree_int_cst_min_precision): Take a signop rather than a bool.
27278         (simple_cst_equal): Use wide_int interfaces.
27279         (compare_tree_int): Likewise.
27280         (iterative_hash_expr): Likewise.
27281         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
27282         INT_CST_LT.
27283         (get_type_static_bounds): Use wide_int interfaces.
27284         (tree_int_cst_elt_check_failed): New.
27285         (build_common_tree_nodes): Reordered to set prec before filling in
27286         value.
27287         (int_cst_value): Check cst_and_fits_in_hwi.
27288         (widest_int_cst_value): Use wide_int interfaces.
27289         (upper_bound_in_type): Likewise.
27290         (lower_bound_in_type): Likewise.
27291         (num_ending_zeros): Likewise.
27292         (drop_tree_overflow): Likewise.
27293         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
27294         (gen_conditions_for_pow_cst_base): Likewise.
27295         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
27296         (group_case_labels_stmt): Use wide-int interfaces.
27297         (verify_gimple_assign_binary): Likewise.
27298         (print_loop): Likewise.
27299         * tree-chrec.c (tree_fold_binomial): Likewise.
27300         * tree-core.h (struct tree_base): Add int_length.
27301         (struct tree_int_cst): Change rep of value.
27302         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
27303         (dr_may_alias_p): Likewise.
27304         (max_stmt_executions_tree): Likewise.
27305         * tree.def (INTEGER_CST): Update comment.
27306         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
27307         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
27308         * tree-dump.c: Include wide-int.h and wide-int-print.h.
27309         (dequeue_and_dump): Use wide-int interfaces.
27310         * tree.h: Include wide-int.h.
27311         (NULL_TREE): Moved to earlier loc in file.
27312         (TREE_INT_CST_ELT_CHECK): New.
27313         (tree_int_cst_elt_check_failed): New.
27314         (TYPE_SIGN): New.
27315         (TREE_INT_CST): Delete.
27316         (TREE_INT_CST_LOW): Use wide-int interfaces.
27317         (TREE_INT_CST_HIGH): Delete.
27318         (TREE_INT_CST_NUNITS): New.
27319         (TREE_INT_CST_EXT_NUNITS): Likewise.
27320         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
27321         (TREE_INT_CST_ELT): Likewise.
27322         (INT_CST_LT): Delete.
27323         (tree_int_cst_elt_check): New (two forms).
27324         (type_code_size): Update comment.
27325         (make_int_cst_stat, make_int_cst): New.
27326         (tree_to_double_int): Delete.
27327         (double_int_fits_to_tree_p): Delete.
27328         (force_fit_type_double): Delete.
27329         (build_int_cstu): Replace with out-of-line function.
27330         (build_int_cst_wide): Delete.
27331         (tree_int_cst_lt): Define inline.
27332         (tree_int_cst_le): New.
27333         (tree_int_cst_compare): Define inline.
27334         (tree_int_cst_min_precision): Take a signop rather than a bool.
27335         (wi::int_traits <const_tree>): New.
27336         (wi::int_traits <tree>): New.
27337         (wi::extended_tree): New.
27338         (wi::int_traits <wi::extended_tree>): New.
27339         (wi::to_widest): New.
27340         (wi::to_offset): New.
27341         (wi::fits_to_tree_p): New.
27342         (wi::min_value): New.
27343         (wi::max_value): New.
27344         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
27345         (copy_tree_body_r): Likewise.
27346         * tree-object-size.c (compute_object_offset): Likewise.
27347         (addr_object_size): Likewise.
27348         * tree-predcom.c: Include wide-int-print.h.
27349         (struct dref_d): Change type of offset to widest_int.
27350         (dump_dref): Call wide-int printer.
27351         (aff_combination_dr_offset): Use wide-int interfaces.
27352         (determine_offset): Take a widest_int pointer rather than a
27353         double_int pointer.
27354         (split_data_refs_to_components): Use wide-int interfaces.
27355         (suitable_component_p): Likewise.
27356         (order_drefs): Likewise.
27357         (add_ref_to_chain): Likewise.
27358         (valid_initializer_p): Likewise.
27359         (determine_roots_comp): Likewise.
27360         * tree-pretty-print.c: Include wide-int-print.h.
27361         (dump_generic_node): Use wide-int interfaces.
27362         * tree-sra.c (sra_ipa_modify_expr): Likewise.
27363         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
27364         (move_fixed_address_to_symbol): Likewise.
27365         (move_hint_to_base): Likewise.
27366         (move_pointer_to_base): Likewise.
27367         (move_variant_to_index): Likewise.
27368         (most_expensive_mult_to_index): Likewise.
27369         (addr_to_parts): Likewise.
27370         (copy_ref_info): Likewise.
27371         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
27372         (indirect_refs_may_alias_p): Likewise.
27373         (stmt_kills_ref_p_1): Likewise.
27374         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
27375         * tree-ssa-ccp.c: Update comment at top of file.  Include
27376         wide-int-print.h.
27377         (struct prop_value_d): Change type of mask to widest_int.
27378         (extend_mask): New function.
27379         (dump_lattice_value): Use wide-int interfaces.
27380         (get_default_value): Likewise.
27381         (set_constant_value): Likewise.
27382         (set_value_varying): Likewise.
27383         (valid_lattice_transition): Likewise.
27384         (set_lattice_value): Likewise.
27385         (value_to_double_int): Delete.
27386         (value_to_wide_int): New.
27387         (get_value_from_alignment): Use wide-int interfaces.
27388         (get_value_for_expr): Likewise.
27389         (do_dbg_cnt): Likewise.
27390         (ccp_finalize): Likewise.
27391         (ccp_lattice_meet): Likewise.
27392         (bit_value_unop_1): Use widest_ints rather than double_ints.
27393         (bit_value_binop_1): Likewise.
27394         (bit_value_unop): Use wide-int interfaces.
27395         (bit_value_binop): Likewise.
27396         (bit_value_assume_aligned): Likewise.
27397         (evaluate_stmt): Likewise.
27398         (ccp_fold_stmt): Likewise.
27399         (visit_cond_stmt): Likewise.
27400         (ccp_visit_stmt): Likewise.
27401         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
27402         (constant_pointer_difference): Likewise.
27403         (associate_pointerplus): Likewise.
27404         (combine_conversions): Likewise.
27405         * tree-ssa-loop.h: Include wide-int.h.
27406         (struct tree_niter_desc): Change type of max to widest_int.
27407         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
27408         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
27409         (remove_redundant_iv_tests): Likewise.
27410         (canonicalize_loop_induction_variables): Likewise.
27411         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
27412         (constant_multiple_of): Take a widest_int pointer instead of
27413         a double_int pointer.
27414         (get_computation_aff): Use wide-int interfaces.
27415         (ptr_difference_cost): Likewise.
27416         (difference_cost): Likewise.
27417         (get_loop_invariant_expr_id): Likewise.
27418         (get_computation_cost_at): Likewise.
27419         (iv_elimination_compare_lt): Likewise.
27420         (may_eliminate_iv): Likewise.
27421         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
27422         instead of double_int.
27423         (max_loop_iterations): Likewise.
27424         (max_stmt_executions): Likewise.
27425         (estimated_stmt_executions): Likewise.
27426         * tree-ssa-loop-niter.c: Include wide-int-print.h.
27427         (split_to_var_and_offset): Use wide-int interfaces.
27428         (determine_value_range): Likewise.
27429         (bound_difference_of_offsetted_base): Likewise.
27430         (bounds_add): Take a widest_int instead of a double_int.
27431         (number_of_iterations_ne_max): Use wide-int interfaces.
27432         (number_of_iterations_ne): Likewise.
27433         (number_of_iterations_lt_to_ne): Likewise.
27434         (assert_loop_rolls_lt): Likewise.
27435         (number_of_iterations_lt): Likewise.
27436         (number_of_iterations_le): Likewise.
27437         (number_of_iterations_cond): Likewise.
27438         (number_of_iterations_exit): Likewise.
27439         (finite_loop_p): Likewise.
27440         (derive_constant_upper_bound_assign): Likewise.
27441         (derive_constant_upper_bound): Return a widest_int.
27442         (derive_constant_upper_bound_ops): Likewise.
27443         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
27444         (record_estimate): Take a widest_int rather than a double_int.
27445         (record_nonwrapping_iv): Use wide-int interfaces.
27446         (double_int_cmp): Delete.
27447         (wide_int_cmp): New.
27448         (bound_index): Take a widest_int rather than a double_int.
27449         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
27450         (maybe_lower_iteration_bound): Likewise.
27451         (estimate_numbers_of_iterations_loop): Likewise.
27452         (estimated_loop_iterations): Take a widest_int pointer than than
27453         a double_int pointer.
27454         (estimated_loop_iterations_int): Use wide-int interfaces.
27455         (max_loop_iterations): Take a widest_int pointer than than
27456         a double_int pointer.
27457         (max_loop_iterations_int): Use wide-int interfaces.
27458         (max_stmt_executions): Take a widest_int pointer than than
27459         a double_int pointer.
27460         (estimated_stmt_executions): Likewise.
27461         (n_of_executions_at_most): Use wide-int interfaces.
27462         (scev_probably_wraps_p): Likewise.
27463         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
27464         to real_to_integer.
27465         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
27466         interfaces.
27467         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
27468         double_ints.  Adjust for trailing_wide_ints <3> representation.
27469         (set_nonzero_bits): Likewise.
27470         (get_range_info): Return wide_ints rather than double_ints.
27471         Adjust for trailing_wide_ints <3> representation.
27472         (get_nonzero_bits): Likewise.
27473         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
27474         representation.
27475         * tree-ssanames.h (struct range_info_def): Replace min, max and
27476         nonzero_bits with a trailing_wide_ints <3>.
27477         (set_range_info): Use wide_int_refs rather than double_ints.
27478         (set_nonzero_bits): Likewise.
27479         (get_range_info): Return wide_ints rather than double_ints.
27480         (get_nonzero_bits): Likewise.
27481         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
27482         * tree-ssa-pre.c (phi_translate_1): Likewise.
27483         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
27484         (acceptable_pow_call): Likewise.
27485         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
27486         interfaces.
27487         (vn_reference_fold_indirect): Likewise.
27488         (vn_reference_maybe_forwprop_address): Likewise.
27489         (valueize_refs_1): Likewise.
27490         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
27491         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
27492         tree_int_cst_lt and tree_int_cst_le.
27493         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
27494         interfaces.
27495         (streamer_alloc_tree): Likewise.
27496         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
27497         (streamer_write_tree_header): Likewise.
27498         (streamer_write_integer_cst): Likewise.
27499         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
27500         (build_constructors): Likewise.
27501         (array_value_type): Likewise.
27502         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
27503         (vect_check_gather): Likewise.
27504         * tree-vect-generic.c (build_replicated_const): Likewise.
27505         (expand_vector_divmod): Likewise.
27506         * tree-vect-loop.c (vect_transform_loop): Likewise.
27507         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
27508         (vect_do_peeling_for_alignment): Likewise.
27509         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
27510         * tree-vrp.c: Include wide-int.h.
27511         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
27512         (extract_range_from_assert): Use wide-int interfaces.
27513         (vrp_int_const_binop): Likewise.
27514         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
27515         double_int pointers.
27516         (ranges_from_anti_range): Use wide-int interfaces.
27517         (quad_int_cmp): Delete.
27518         (quad_int_pair_sort): Likewise.
27519         (extract_range_from_binary_expr_1): Use wide-int interfaces.
27520         (extract_range_from_unary_expr_1): Likewise.
27521         (adjust_range_with_scev): Likewise.
27522         (masked_increment): Take and return wide_ints rather than double_ints.
27523         (register_edge_assert_for_2): Use wide-int interfaces.
27524         (check_array_ref): Likewise.
27525         (search_for_addr_array): Likewise.
27526         (maybe_set_nonzero_bits): Likewise.
27527         (union_ranges): Pass an integer of the correct type instead of
27528         using integer_one_node.
27529         (intersect_ranges): Likewise.
27530         (simplify_truth_ops_using_ranges): Likewise.
27531         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
27532         (range_fits_type_p): Likewise.
27533         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
27534         a bool.
27535         (simplify_conversion_using_ranges): Use wide-int interfaces.
27536         (simplify_float_conversion_using_ranges): Likewise.
27537         (vrp_finalize): Likewise.
27538         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
27539         (gimple_stringops_transform): Likewise.
27540         * varasm.c (decode_addr_const): Likewise.
27541         (const_hash_1): Likewise.
27542         (const_rtx_hash_1): Likewise
27543         (output_constant): Likewise.
27544         (array_size_for_constructor): Likewise.
27545         (output_constructor_regular_field): Likewise.
27546         (output_constructor_bitfield): Likewise.
27547         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
27548         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
27549         GENERATOR_FILEs.
27550         * gencheck.c: Define BITS_PER_UNIT.
27551         * wide-int.cc: New.
27552         * wide-int.h: New.
27553         * wide-int-print.cc: New.
27554         * wide-int-print.h: New.
27555
27556 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27557
27558         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
27559
27560 2014-05-06  Richard Biener  <rguenther@suse.de>
27561
27562         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
27563         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
27564         (TODO_verify_all): Adjust.
27565         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
27566         TODO_verify_stmts and TODO_verify_rtl_sharing.
27567         * bb-reorder.c: Likewise.
27568         * cfgexpand.c: Likewise.
27569         * cprop.c: Likewise.
27570         * cse.c: Likewise.
27571         * function.c: Likewise.
27572         * fwprop.c: Likewise.
27573         * gcse.c: Likewise.
27574         * gimple-ssa-isolate-paths.c: Likewise.
27575         * gimple-ssa-strength-reduction.c: Likewise.
27576         * ipa-split.c: Likewise.
27577         * loop-init.c: Likewise.
27578         * loop-unroll.c: Likewise.
27579         * lower-subreg.c: Likewise.
27580         * modulo-sched.c: Likewise.
27581         * postreload-gcse.c: Likewise.
27582         * predict.c: Likewise.
27583         * recog.c: Likewise.
27584         * sched-rgn.c: Likewise.
27585         * store-motion.c: Likewise.
27586         * tracer.c: Likewise.
27587         * trans-mem.c: Likewise.
27588         * tree-call-cdce.c: Likewise.
27589         * tree-cfg.c: Likewise.
27590         * tree-cfgcleanup.c: Likewise.
27591         * tree-complex.c: Likewise.
27592         * tree-eh.c: Likewise.
27593         * tree-emutls.c: Likewise.
27594         * tree-if-conv.c: Likewise.
27595         * tree-into-ssa.c: Likewise.
27596         * tree-loop-distribution.c: Likewise.
27597         * tree-object-size.c: Likewise.
27598         * tree-parloops.c: Likewise.
27599         * tree-pass.h: Likewise.
27600         * tree-sra.c: Likewise.
27601         * tree-ssa-ccp.c: Likewise.
27602         * tree-ssa-copy.c: Likewise.
27603         * tree-ssa-copyrename.c: Likewise.
27604         * tree-ssa-dce.c: Likewise.
27605         * tree-ssa-dom.c: Likewise.
27606         * tree-ssa-dse.c: Likewise.
27607         * tree-ssa-forwprop.c: Likewise.
27608         * tree-ssa-ifcombine.c: Likewise.
27609         * tree-ssa-loop-ch.c: Likewise.
27610         * tree-ssa-loop-ivcanon.c: Likewise.
27611         * tree-ssa-loop.c: Likewise.
27612         * tree-ssa-math-opts.c: Likewise.
27613         * tree-ssa-phiopt.c: Likewise.
27614         * tree-ssa-phiprop.c: Likewise.
27615         * tree-ssa-pre.c: Likewise.
27616         * tree-ssa-reassoc.c: Likewise.
27617         * tree-ssa-sink.c: Likewise.
27618         * tree-ssa-strlen.c: Likewise.
27619         * tree-ssa-tail-merge.c: Likewise.
27620         * tree-ssa-uncprop.c: Likewise.
27621         * tree-switch-conversion.c: Likewise.
27622         * tree-tailcall.c: Likewise.
27623         * tree-vect-generic.c: Likewise.
27624         * tree-vectorizer.c: Likewise.
27625         * tree-vrp.c: Likewise.
27626         * tsan.c: Likewise.
27627         * var-tracking.c: Likewise.
27628         * bt-load.c: Likewise.
27629         * cfgcleanup.c: Likewise.
27630         * combine-stack-adj.c: Likewise.
27631         * combine.c: Likewise.
27632         * compare-elim.c: Likewise.
27633         * config/epiphany/resolve-sw-modes.c: Likewise.
27634         * config/i386/i386.c: Likewise.
27635         * config/mips/mips.c: Likewise.
27636         * config/s390/s390.c: Likewise.
27637         * config/sh/sh_treg_combine.cc: Likewise.
27638         * config/sparc/sparc.c: Likewise.
27639         * dce.c: Likewise.
27640         * dse.c: Likewise.
27641         * final.c: Likewise.
27642         * ifcvt.c: Likewise.
27643         * mode-switching.c: Likewise.
27644         * passes.c: Likewise.
27645         * postreload.c: Likewise.
27646         * ree.c: Likewise.
27647         * reg-stack.c: Likewise.
27648         * regcprop.c: Likewise.
27649         * regrename.c: Likewise.
27650         * web.c: Likewise.
27651
27652 2014-05-06  Richard Biener  <rguenther@suse.de>
27653
27654         PR middle-end/61070
27655         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
27656         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
27657
27658 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
27659
27660         PR ipa/60965
27661         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
27662
27663 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
27664             Tom de Vries  <tom@codesourcery.com>
27665
27666         * target.def (call_fusage_contains_non_callee_clobbers): New
27667         DEFHOOKPOD.
27668         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
27669         Hooks to @menu.
27670         (@node Miscellaneous Register Hooks): New node.
27671         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
27672         * doc/tm.texi: Regenerate.
27673
27674 2014-05-05  Marek Polacek  <polacek@redhat.com>
27675
27676         PR driver/61065
27677         * opts.c (common_handle_option): Call error_at instead of warning_at.
27678
27679 2014-05-05  Richard Biener  <rguenther@suse.de>
27680
27681         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
27682         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
27683         under the TODO_verify_il umbrella.
27684
27685 2014-05-05  Richard Biener  <rguenther@suse.de>
27686
27687         * passes.c (execute_function_todo): Move TODO_verify_flow under
27688         the TODO_verify_ul umbrella.
27689
27690 2014-05-05  Richard Biener  <rguenther@suse.de>
27691
27692         PR middle-end/61010
27693         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
27694         X & CST away from a CST that is the mask of a mode.
27695
27696 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27697
27698         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
27699         int argument to enum machine_mode.
27700         (picochip_class_max_nregs): Ditto.
27701         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
27702         (picochip_class_max_nregs): Ditto.
27703
27704 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27705
27706         * target.def: Add new target hook.
27707         * doc/tm.texi: Regenerate.
27708         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
27709         * targhooks.c (default_keep_leaf_when_profiled): New function.
27710
27711         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
27712         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
27713
27714 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
27715
27716         PR tree-optimization/60363
27717         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
27718         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
27719         (update_destination_phis): New parameter.
27720         (create_edge_and_update_destination_phis): Ditto.
27721         (ssa_fix_duplicate_block_edges): Pass new arguments.
27722         (thread_single_edge): Ditto.
27723
27724 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
27725
27726         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
27727         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
27728         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
27729         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
27730         Use RS6000_BTM_HARD_FLOAT.
27731         (BU_MISC_2): Likewise.
27732         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
27733         RS6000_BTM_HARD_FLOAT.
27734         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
27735         is explicitly used.
27736         (rs6000_invalid_builtin): Add hard floating builtin support.
27737         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
27738         hard float builtins.
27739         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
27740
27741 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
27742
27743         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
27744         Add missing function* argument.
27745
27746 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
27747
27748         * lra-constraints.c (valid_address_p): Move earlier in file.
27749         Add a constraint argument to the address_info version.
27750         (satisfies_memory_constraint_p): New function.
27751         (satisfies_address_constraint_p): Likewise.
27752         (process_alt_operands, curr_insn_transform): Use them.
27753         (process_address): Pass the constraint to valid_address_p when
27754         checking address operands.
27755
27756 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
27757
27758         * config/mips/mips.c (mips_isa_rev): New variable.
27759         (mips_set_architecture): Set it.
27760         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
27761         from mips_isa_rev.
27762         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
27763         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
27764         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
27765         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
27766         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
27767         conditions in terms of mips_isa_rev.
27768         (mips_isa_rev): Declare.
27769
27770 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
27771
27772         * config/sh/sh-mem.cc: Use tabs instead of spaces.
27773         (prob_unlikely, prob_likely): Make variables const.
27774
27775 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
27776
27777         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
27778
27779 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
27780
27781         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
27782
27783 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
27784
27785         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
27786         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
27787         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
27788         functions.
27789         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
27790         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
27791         sh_pass_in_reg_p.
27792         Replace usage of ROUND_REG with sh_round_reg.
27793         Use CEIL instead of ROUND_ADVANCE.
27794
27795 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
27796
27797         PR target/61026
27798         * config/sh/sh.c: Include stdlib headers before everything else.
27799
27800 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
27801
27802         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
27803         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
27804         (gimplify_adjust_omp_clauses): Simd region is never
27805         directly nested in combined parallel.  Instead, for linear
27806         with copyin/copyout, if in combined for simd loop, make decl
27807         firstprivate/lastprivate on OMP_FOR.
27808         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
27809         expand_omp_for_static_chunk): When setting endvar, also set
27810         fd->loop.v to the same value.
27811
27812 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
27813
27814         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
27815
27816 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
27817
27818         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
27819         expression.
27820
27821 2014-05-02  Marek Polacek  <polacek@redhat.com>
27822
27823         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
27824
27825 2014-05-02  Kito Cheng  <kito@0xlab.org>
27826
27827         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
27828         to a C expression marco.
27829         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
27830         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
27831         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
27832         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
27833         HONOR_REG_ALLOC_ORDER.
27834         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
27835
27836 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27837
27838         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
27839
27840 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27841
27842         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
27843
27844 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
27845
27846         * tree-if-conv.c (is_cond_scalar_reduction): New function.
27847         (convert_scalar_cond_reduction): Likewise.
27848         (predicate_scalar_phi): Add recognition and transformation
27849         of simple conditioanl reduction to be vectorizable.
27850
27851 2014-05-01  Marek Polacek  <polacek@redhat.com>
27852
27853         PR c/43245
27854         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
27855
27856 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
27857
27858         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
27859         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
27860         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
27861         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
27862         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
27863         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
27864         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
27865         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
27866
27867 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
27868
27869         * config/arc/arc.opt (mlra): Move comment above option name
27870         to avoid mis-parsing as language options.
27871
27872 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27873
27874         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
27875         * config/sol2.h: ... here.
27876         * config/sol2-10.h: Remove.
27877
27878         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
27879         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
27880         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
27881         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
27882         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
27883         * config/sol2.h: ... here.
27884         (SECTION_NAME_FORMAT): Don't redefine.
27885         (STARTFILE_ARCH32_SPEC): Rename to ...
27886         (STARTFILE_ARCH_SPEC): ... this.
27887         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
27888         * config/sparc/sol2.h: ... here.
27889         (SECTION_NAME_FORMAT): Don't undef.
27890         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
27891         (SUBTARGET_EXTRA_SPECS): Remove.
27892         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
27893
27894         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
27895         (MD_STARTFILE_PREFIX): Remove.
27896         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
27897         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
27898         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
27899         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
27900         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
27901         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
27902         * config/i386/sol2.h: ... here.
27903         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
27904         * config/i386/sol2-bi.h: Remove.
27905         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
27906         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
27907
27908         * config/i386/t-sol2-64: Rename to ...
27909         * config/i386/t-sol2: ... this.
27910         * config/sparc/t-sol2-64: Rename to ...
27911         * config/sparc/t-sol2: ... this.
27912
27913         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
27914         sol2_tm_file_head, sol2_tm_file_tail.
27915         Include ${cpu_type}/sol2.h before sol2.h.
27916         Remove sol2-10.h.
27917         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
27918         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
27919         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
27920         Reflect i386/t-sol2-64 renaming.
27921         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
27922         Reflect sparc/t-sol2-64 renaming.
27923
27924 2014-04-30  Richard Biener  <rguenther@suse.de>
27925
27926         * passes.c (execute_function_todo): Move TODO_verify_stmts
27927         and TODO_verify_ssa under the TODO_verify_il umbrella.
27928         * tree-ssa.h (verify_ssa): Adjust prototype.
27929         * tree-ssa.c (verify_ssa): Add parameter to tell whether
27930         we should verify SSA operands.
27931         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
27932         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
27933         whether we should verify whether not throwing stmts have EH info.
27934         * graphite-scop-detection.c (create_sese_edges): Adjust.
27935         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
27936         * tree-eh.c (lower_try_finally_switch): Do not add the
27937         default case label twice.
27938
27939 2014-04-30  Marek Polacek  <polacek@redhat.com>
27940
27941         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
27942         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
27943         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
27944         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
27945
27946 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
27947
27948         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
27949         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
27950         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
27951         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
27952         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
27953         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
27954         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
27955         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
27956
27957 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
27958
27959         * tree-cfg.c (dump_function_to_file): Dump the return type of
27960         functions, in a line to itself before the function body, mimicking
27961         the layout of a C function.
27962
27963 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
27964
27965         PR tree-optimization/60971
27966         * tree-tailcall.c (process_assignment): Reject conversions which
27967         reduce precision.
27968
27969 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27970
27971         * calls.c (initialize_argument_information): Always treat
27972         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
27973         (expand_call): Likewise.
27974         (emit_library_call_calue_1): Likewise.
27975         * expr.c (PUSH_ARGS_REVERSED): Do not define.
27976         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
27977         code accordingly.
27978
27979 2014-04-29  Nick Clifton  <nickc@redhat.com>
27980
27981         * config/msp430/msp430.md (umulsidi): Fix typo.
27982         (mulhisi3): Enable even inside interrupt handlers.
27983         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
27984         bigger return address pushed in large mode.
27985
27986 2014-04-29  Nick Clifton  <nickc@redhat.com>
27987
27988         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
27989         (arc_init_reg_tables): Use a machine_mode enum to iterate over
27990         available modes.
27991         * config/m32r/m32r.c (init_reg_tables): Likewise.
27992         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
27993         enum to hold the modes.
27994
27995 2014-04-29  Richard Biener  <rguenther@suse.de>
27996
27997         * dominance.c (free_dominance_info): Add overload with
27998         function parameter.
27999         (dom_info_state): Likewise.
28000         (dom_info_available_p): Likewise.
28001         * basic-block.h (free_dominance_info, dom_info_state,
28002         dom_info_available_p): Declare overloads.
28003         * passes.c (execute_function_todo): Verify that verifiers
28004         don't change dominator info state.  Drop dominator info
28005         for IPA pass invocations.
28006         * cgraph.c (release_function_body): Restore asserts that
28007         dominator information is released.
28008
28009 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
28010
28011         * doc/invoke.texi: Fix typo.
28012         * tree-vrp.c: Fix typos.
28013         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
28014
28015 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
28016
28017         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
28018
28019 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
28020
28021         * config/aarch64/aarch64-builtins.c
28022         (aarch64_types_storestruct_lane_qualifiers): New.
28023         (TYPES_STORESTRUCT_LANE): Likewise.
28024         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
28025         (st3_lane): Likewise.
28026         (st4_lane): Likewise.
28027         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
28028         (vec_store_lanesci_lane<mode>): Likewise.
28029         (vec_store_lanesxi_lane<mode>): Likewise.
28030         (aarch64_st2_lane<VQ:mode>): Likewise.
28031         (aarch64_st3_lane<VQ:mode>): Likewise.
28032         (aarch64_st4_lane<VQ:mode>): Likewise.
28033         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
28034         * config/aarch64/arm_neon.h
28035         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
28036         use new macro arguments.
28037         (__ST3_LANE_FUNC): Likewise.
28038         (__ST4_LANE_FUNC): Likewise.
28039         * config/aarch64/iterators.md (V_TWO_ELEM): New.
28040         (V_THREE_ELEM): Likewise.
28041         (V_FOUR_ELEM): Likewise.
28042
28043 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
28044
28045         * doc/gimple.texi: Replace the description of the now-defunct
28046         union gimple_statement_d with a diagram showing the
28047         gimple_statement_base class hierarchy and its relationships to
28048         the GSS_ and GIMPLE_ enums.
28049
28050 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
28051
28052         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
28053         * config/aarch64/aarch64.c
28054         (aarch64_cannot_change_mode_class): Weaken conditions.
28055         (aarch64_modes_tieable_p): New.
28056         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
28057
28058 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
28059
28060         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
28061         (loadsync_<mode>): Change mode.
28062         (load_quadpti, store_quadpti): New.
28063         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
28064         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
28065
28066 2014-04-28  Martin Jambor  <mjambor@suse.cz>
28067
28068         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
28069         same alias type as the original statement.
28070         (subreplacement_assignment_data): New type.
28071         (handle_unscalarized_data_in_subtree): New type of parameter,
28072         generate new memory accesses with same alias type as the original
28073         statement.
28074         (load_assign_lhs_subreplacements): Likewise.
28075         (sra_modify_constructor_assign): Generate new memory accesses with
28076         same alias type as the original statement.
28077
28078 2014-04-28  Richard Biener  <rguenther@suse.de>
28079
28080         * tree-pass.h (TODO_verify_il): Define.
28081         (TODO_verify_all): Complete properly.
28082         * passes.c (execute_function_todo): Move existing loop-closed
28083         SSA verification under TODO_verify_il.
28084         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
28085         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
28086         Fix tree sharing issue.
28087
28088 2014-04-28  Richard Biener  <rguenther@suse.de>
28089
28090         PR middle-end/60092
28091         * builtins.def (DEF_C11_BUILTIN): Add.
28092         (BUILT_IN_ALIGNED_ALLOC): Likewise.
28093         * coretypes.h (enum function_class): Add function_c11_misc.
28094         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
28095         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
28096         (call_may_clobber_ref_p_1): Likewise.
28097         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
28098         (mark_all_reaching_defs_necessary_1): Likewise.
28099         (propagate_necessity): Likewise.
28100         (eliminate_unnecessary_stmts): Likewise.
28101         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
28102
28103 2014-04-28  Richard Biener  <rguenther@suse.de>
28104
28105         * tree-vrp.c (vrp_var_may_overflow): Remove.
28106         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
28107         with overflow immediately bump to one before that value and
28108         let iteration figure out overflow status.
28109
28110 2014-04-28  Richard Biener  <rguenther@suse.de>
28111
28112         * configure.ac: Do valgrind header checks unconditionally.
28113         Add --enable-valgrind-annotations.
28114         * system.h: Guard valgrind header inclusion with
28115         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
28116         * alloc-pool.c (pool_alloc, pool_free): Use
28117         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
28118         to guard possibly dead code.
28119         * config.in: Regenerated.
28120         * configure: Likewise.
28121
28122 2014-04-28  Jeff Law  <law@redhat.com>
28123
28124         PR tree-optimization/60902
28125         * tree-ssa-threadedge.c
28126         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
28127         over real defs when invalidating outputs from statements that do not
28128         produce useful outputs for threading.
28129
28130 2014-04-28  Richard Biener  <rguenther@suse.de>
28131
28132         PR tree-optimization/60979
28133         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
28134         SCOPs that end in a block with a successor with abnormal
28135         predecessors.
28136
28137 2014-04-28  Richard Biener  <rguenther@suse.de>
28138
28139         * tree-pass.h (execute_pass_list): Adjust prototype.
28140         * passes.c (pass_manager::execute_early_local_passes): Adjust.
28141         (do_per_function): Change callback signature, push all actual
28142         work to the callbals.
28143         (do_per_function_toporder): Likewise.
28144         (execute_function_dump): Adjust.
28145         (execute_function_todo): Likewise.
28146         (clear_last_verified): Likewise.
28147         (verify_curr_properties): Likewise.
28148         (update_properties_after_pass): Likewise.
28149         (execute_pass_list_1): Split out from ...
28150         (execute_pass_list): ... here.  Adjust.
28151         (execute_ipa_pass_list): Likewise.
28152         * cgraphunit.c (cgraph_add_new_function): Adjust.
28153         (analyze_function): Likewise.
28154         (expand_function): Likewise.
28155         * cgraph.c (release_function_body): Free dominance info
28156         here instead of asserting it was magically freed elsewhere.
28157
28158 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
28159
28160         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
28161         * configure: Regenerate.
28162         * config/sparc/sparc.opt (muser-mode): New option.
28163         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
28164         for LEON3.
28165         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
28166         * doc/invoke.texi (SPARC options): Document -muser-mode.
28167
28168 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
28169
28170         * cselib.c (find_slot_memmode): Delete.
28171         (cselib_hasher): Change compare_type to a struct.
28172         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
28173         constants.
28174         (preserve_constants_and_equivs): Adjust for new compare_type.
28175         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
28176         (wrap_constant): Delete.
28177         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
28178
28179 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
28180
28181         * doc/install.texi (Building with profile feedback): Remove
28182         outdated sentence.
28183
28184 2014-04-26  Tom de Vries  <tom@codesourcery.com>
28185
28186         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
28187         array accesses.
28188
28189 2014-04-25  Cary Coutant  <ccoutant@google.com>
28190
28191         PR debug/60929
28192         * dwarf2out.c (should_move_die_to_comdat): A type definition
28193         can contain a subprogram definition, but don't move it to a
28194         comdat unit.
28195         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
28196         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
28197         from original DIE.
28198         (clone_tree_hash): Rename to...
28199         (clone_tree_partial): ...this; change callers.  Copy
28200         DW_TAG_subprogram DIEs as declarations.
28201         (copy_decls_walk): Don't copy children of a declaration into a
28202         type unit.
28203
28204 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
28205
28206         PR target/60969
28207         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
28208         alternative 12.
28209
28210 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
28211
28212         * config/arm/predicates.md (call_insn_operand): Add long_call check.
28213         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
28214         reg for long_call.
28215         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
28216         restriction.
28217
28218 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28219
28220         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
28221
28222 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28223
28224         PR tree-optimization/60930
28225         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
28226         creating a multiply candidate by folding two constant
28227         multiplicands when the result overflows.
28228
28229 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
28230
28231         PR tree-optimization/60960
28232         * tree-vect-generic.c (expand_vector_operation): Only call
28233         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
28234
28235 2014-04-25  Tom de Vries  <tom@codesourcery.com>
28236
28237         * expr.c (clobber_reg_mode): New function.
28238         * expr.h (clobber_reg): New function.
28239
28240 2014-04-25  Tom de Vries  <tom@codesourcery.com>
28241
28242         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
28243         clobbers.
28244
28245 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
28246             Tom de Vries  <tom@codesourcery.com>
28247
28248         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
28249         handle.
28250         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
28251         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
28252         new argument to find_all_hard_reg_sets call.
28253
28254 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28255
28256         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
28257         Use HOST_WIDE_INT_C for mask literal.
28258         (aarch_rev16_shleft_mask_imm_p): Likewise.
28259
28260 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
28261
28262         PR target/60941
28263         * config/sparc/sparc.md (ashlsi3_extend): Delete.
28264
28265 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
28266
28267         PR preprocessor/56540
28268         * config/i386/i386-c.c (ix86_target_macros): Define
28269         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
28270
28271 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28272
28273         * configure.ac (tga_func): Remove.
28274         (LIB_TLS_SPEC): Remove.
28275         * configure: Regenerate.
28276         * config.in: Regenerate.
28277         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
28278
28279 2014-04-25  Richard Biener  <rguenther@suse.de>
28280
28281         PR ipa/60912
28282         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
28283         call stmt use/clobber sets during stmt walk instead of
28284         walking the possibly incomplete set of caller edges.
28285
28286 2014-04-25  Richard Biener  <rguenther@suse.de>
28287
28288         PR ipa/60911
28289         * passes.c (apply_ipa_transforms): Inline into only caller ...
28290         (execute_one_pass): ... here.  Properly bring in function
28291         bodies for nodes we want to apply IPA transforms to.
28292
28293 2014-04-24  Cong Hou  <congh@google.com>
28294
28295         PR tree-optimization/60896
28296         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
28297         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
28298         (vect_mark_pattern_stmts): Set the def type of all statements in
28299         PATTERN_DEF_SEQ as vect_internal_def.
28300
28301 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
28302
28303         * doc/extend.texi (PowerPC Built-in Functions): Document new
28304         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
28305         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
28306
28307         * config/rs6000/predicates.md (const_0_to_3_operand): New
28308         predicate to match 0..3 integer constants.
28309
28310         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
28311         to support adding miscellaneous builtin functions.
28312         (BU_DFP_MISC_2): Likewise.
28313         (BU_P7_MISC_1): Likewise.
28314         (BU_P7_MISC_2): Likewise.
28315         (BU_P8V_MISC_3): Likewise.
28316         (BU_MISC_1): Likewise.
28317         (BU_MISC_2): Likewise.
28318         (DIVWE): Add extended divide builtin functions.
28319         (DIVWEO): Likewise.
28320         (DIVWEU): Likewise.
28321         (DIVWEUO): Likewise.
28322         (DIVDE): Likewise.
28323         (DIVDEO): Likewise.
28324         (DIVDEU): Likewise.
28325         (DIVDEUO): Likewise.
28326         (DXEX): Add decimal floating-point builtin functions.
28327         (DXEXQ): Likewise.
28328         (DDEDPD): Likewise.
28329         (DDEDPDQ): Likewise.
28330         (DENBCD): Likewise.
28331         (DENBCDQ): Likewise.
28332         (DIEX): Likewise.
28333         (DIEXQ): Likewise.
28334         (DSCLI): Likewise.
28335         (DSCLIQ): Likewise.
28336         (DSCRI): Likewise.
28337         (DSCRIQ): Likewise.
28338         (CDTBCD): Add new BCD builtin functions.
28339         (CBCDTD): Likewise.
28340         (ADDG6S): Likewise.
28341         (BCDADD): Likewise.
28342         (BCDADD_LT): Likewise.
28343         (BCDADD_EQ): Likewise.
28344         (BCDADD_GT): Likewise.
28345         (BCDADD_OV): Likewise.
28346         (BCDSUB): Likewise.
28347         (BCDSUB_LT): Likewise.
28348         (BCDSUB_EQ): Likewise.
28349         (BCDSUB_GT): Likewise.
28350         (BCDSUB_OV): Likewise.
28351         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
28352         (UNPACK_TD): Likewise.
28353         (PACK_TF): Likewise.
28354         (UNPACK_TF): Likewise.
28355         (UNPACK_TF_0): Likewise.
28356         (UNPACK_TF_1): Likewise.
28357         (PACK_V1TI): Likewise.
28358         (UNPACK_V1TI): Likewise.
28359
28360         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
28361         support for decimal floating point builtin functions.
28362         (rs6000_expand_ternop_builtin): Add checks for the new builtin
28363         functions that take constant arguments.
28364         (rs6000_invalid_builtin): Add decimal floating point builtin support.
28365         (rs6000_init_builtins): Setup long double, _Decimal64, and
28366         _Decimal128 types for new builtin functions.
28367         (builtin_function_type): Set the unsigned flags appropriately for
28368         the new builtin functions.
28369         (rs6000_opt_masks): Add support for decimal floating point builtin
28370         functions.
28371
28372         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
28373         floating point builtin functions.
28374         (RS6000_BTM_COMMON): Likewise.
28375         (RS6000_BTI_long_double): Likewise.
28376         (RS6000_BTI_dfloat64): Likewise.
28377         (RS6000_BTI_dfloat128): Likewise.
28378         (long_double_type_internal_node): Likewise.
28379         (dfloat64_type_internal_node): Likewise.
28380         (dfloat128_type_internal_node): Likewise.
28381
28382         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
28383         2.07 bcd arithmetic instructions.
28384         (UNSPEC_BCDSUB): Likewise.
28385         (UNSPEC_BCD_OVERFLOW): Likewise.
28386         (UNSPEC_BCD_ADD_SUB): Likewise.
28387         (bcd_add_sub): Likewise.
28388         (BCD_TEST): Likewise.
28389         (bcd<bcd_add_sub>): Likewise.
28390         (bcd<bcd_add_sub>_test): Likewise.
28391         (bcd<bcd_add_sub>_test2): Likewise.
28392         (bcd<bcd_add_sub>_<code>): Likewise.
28393         (peephole2 for combined bcd ops): Likewise.
28394
28395         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
28396         decimal floating point builtin functions.
28397         (UNSPEC_DENBCD): Likewise.
28398         (UNSPEC_DXEX): Likewise.
28399         (UNSPEC_DIEX): Likewise.
28400         (UNSPEC_DSCLI): Likewise.
28401         (UNSPEC_DSCRI): Likewise.
28402         (D64_D128): Likewise.
28403         (dfp_suffix): Likewise.
28404         (dfp_ddedpd_<mode>): Likewise.
28405         (dfp_denbcd_<mode>): Likewise.
28406         (dfp_dxex_<mode>): Likewise.
28407         (dfp_diex_<mode>): Likewise.
28408         (dfp_dscli_<mode>): Likewise.
28409         (dfp_dscri_<mode>): Likewise.
28410
28411         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
28412         builtin functions.
28413         (UNSPEC_CDTBCD): Likewise.
28414         (UNSPEC_CBCDTD): Likewise.
28415         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
28416         (UNSPEC_DIVEO): Likewise.
28417         (UNSPEC_DIVEU): Likewise.
28418         (UNSPEC_DIVEUO): Likewise.
28419         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
28420         pack/unpack 128-bit types.
28421         (UNSPEC_PACK_128BIT): Likewise.
28422         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
28423         (udiv<mode>3): Use idiv_ldiv mode attribute.
28424         (div<mode>3): Likewise.
28425         (addg6s): Add new BCD builtin functions.
28426         (cdtbcd): Likewise.
28427         (cbcdtd): Likewise.
28428         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
28429         (div_extend): Likewise.
28430         (div<div_extend>_<mode>"): Likewise.
28431         (FP128_64): Add support for new builtin functions to pack/unpack
28432         128-bit types.
28433         (unpack<mode>): Likewise.
28434         (unpacktf_0): Likewise.
28435         (unpacktf_1): Likewise.
28436         (unpack<mode>_dm): Likewise.
28437         (unpack<mode>_nodm): Likewise.
28438         (pack<mode>): Likewise.
28439         (unpackv1ti): Likewise.
28440         (packv1ti): Likewise.
28441
28442 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
28443
28444         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
28445         is disabled.
28446
28447 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
28448
28449         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
28450         * gimplify.c (omp_is_private): Change last argument's type to int.
28451         Only diagnose lastprivate if the simd argument is 1, only diagnose
28452         linear if the simd argument is 2.
28453         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
28454         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
28455         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
28456         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
28457         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
28458         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
28459         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
28460         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
28461         * tree-nested.c (convert_nonlocal_omp_clauses,
28462         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
28463
28464 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
28465
28466         PR target/60822
28467         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
28468         operand 1.
28469
28470 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
28471
28472         * flag-types.h (enum ivar_visibility): Add.
28473
28474 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
28475
28476         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
28477         function * argument.
28478
28479 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
28480
28481         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
28482
28483 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
28484             Tom de Vries  <tom@codesourcery.com>
28485
28486         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
28487         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
28488         reg-note.
28489         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
28490         * emit-rtl.c (try_split): Same.
28491
28492 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
28493             Tom de Vries  <tom@codesourcery.com>
28494
28495         * common.opt (fuse-caller-save): New option.
28496
28497 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
28498
28499         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
28500         elements for big-endian.
28501
28502 2014-04-24  Richard Biener  <rguenther@suse.de>
28503
28504         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
28505         during TER and instead use the sepops interface for expanding
28506         non-GIMPLE_SINGLE_RHS.
28507
28508 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28509
28510         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
28511         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
28512
28513 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28514
28515         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
28516         assembler 64-bit option.
28517         * configure: Regenerate.
28518
28519 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28520
28521         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
28522         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
28523         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
28524         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
28525         (TARGET_CRYPTO): Take TARGET_SIMD into account.
28526
28527 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28528
28529         * config/aarch64/aarch64-builtins.c
28530         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
28531         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
28532         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
28533         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
28534         builtins.
28535         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
28536         (Vrevsuff): New mode attribute.
28537
28538 2014-04-24  Terry Guo  <terry.guo@arm.com>
28539
28540         * config/arm/arm.h (machine_function): Define variable
28541         after_arm_reorg here.
28542         * config/arm/arm.c (after_arm_reorg): Remove the definition.
28543         (arm_split_constant): Update the way to access variable
28544         after_arm_reorg.
28545         (arm_reorg): Ditto.
28546         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
28547
28548 2014-04-23  Tom de Vries  <tom@codesourcery.com>
28549
28550         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
28551
28552 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
28553
28554         * is-a.h: Update comments to reflect the following changes to the
28555         "pointerness" of the API, making the template parameter match the
28556         return type, allowing use of is-a.h with typedefs of pointers.
28557         (is_a_helper::cast): Return a T rather then a pointer to a T, so
28558         that the return type matches the parameter to the is_a_helper.
28559         (as_a): Likewise.
28560         (dyn_cast): Likewise.
28561
28562         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
28563         pointer from the is-a.h API.
28564
28565         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
28566         (is_a_helper <cgraph_node *>::test): ...this, matching change to
28567         is-a.h API.
28568         (is_a_helper <varpool_node>::test): Likewise, convert to...
28569         (is_a_helper <varpool_node *>::test): ...this.
28570
28571         (varpool_first_variable): Update for removal of implicit pointer
28572         from the is-a.h API.
28573         (varpool_next_variable): Likewise.
28574         (varpool_first_static_initializer): Likewise.
28575         (varpool_next_static_initializer): Likewise.
28576         (varpool_first_defined_variable): Likewise.
28577         (varpool_next_defined_variable): Likewise.
28578         (cgraph_first_defined_function): Likewise.
28579         (cgraph_next_defined_function): Likewise.
28580         (cgraph_first_function): Likewise.
28581         (cgraph_next_function): Likewise.
28582         (cgraph_first_function_with_gimple_body): Likewise.
28583         (cgraph_next_function_with_gimple_body): Likewise.
28584         (cgraph_alias_target): Likewise.
28585         (varpool_alias_target): Likewise.
28586         (cgraph_function_or_thunk_node): Likewise.
28587         (varpool_variable_node): Likewise.
28588         (symtab_real_symbol_p): Likewise.
28589         * cgraphunit.c (referred_to_p): Likewise.
28590         (analyze_functions): Likewise.
28591         (handle_alias_pairs): Likewise.
28592         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
28593         * gimple-ssa.h (gimple_vuse_op): Likewise.
28594         (gimple_vdef_op): Likewise.
28595         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
28596         * gimple.c (gimple_build_asm_1): Likewise.
28597         (gimple_build_try): Likewise.
28598         (gimple_build_resx): Likewise.
28599         (gimple_build_eh_dispatch): Likewise.
28600         (gimple_build_omp_for): Likewise.
28601         (gimple_omp_for_set_clauses): Likewise.
28602
28603         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
28604         (is_a_helper <gimple_statement_asm *>::test): ...this.
28605         (is_a_helper <gimple_statement_bind>::test): Convert to...
28606         (is_a_helper <gimple_statement_bind *>::test): ...this.
28607         (is_a_helper <gimple_statement_call>::test): Convert to...
28608         (is_a_helper <gimple_statement_call *>::test): ...this.
28609         (is_a_helper <gimple_statement_catch>::test): Convert to...
28610         (is_a_helper <gimple_statement_catch *>::test): ...this.
28611         (is_a_helper <gimple_statement_resx>::test): Convert to...
28612         (is_a_helper <gimple_statement_resx *>::test): ...this.
28613         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
28614         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
28615         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
28616         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
28617         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
28618         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
28619         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
28620         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
28621         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
28622         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
28623         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
28624         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
28625         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
28626         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
28627         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
28628         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
28629         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
28630         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
28631         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
28632         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
28633         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
28634         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
28635         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
28636         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
28637         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
28638         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
28639         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
28640         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
28641         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
28642         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
28643         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
28644         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
28645         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
28646         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
28647         (is_a_helper <gimple_statement_phi>::test): Convert to...
28648         (is_a_helper <gimple_statement_phi *>::test): ...this.
28649         (is_a_helper <gimple_statement_transaction>::test): Convert to...
28650         (is_a_helper <gimple_statement_transaction *>::test): ...this.
28651         (is_a_helper <gimple_statement_try>::test): Convert to...
28652         (is_a_helper <gimple_statement_try *>::test): ...this.
28653         (is_a_helper <gimple_statement_wce>::test): Convert to...
28654         (is_a_helper <gimple_statement_wce *>::test): ...this.
28655         (is_a_helper <const gimple_statement_asm>::test): Convert to...
28656         (is_a_helper <const gimple_statement_asm *>::test): ...this.
28657         (is_a_helper <const gimple_statement_bind>::test): Convert to...
28658         (is_a_helper <const gimple_statement_bind *>::test): ...this.
28659         (is_a_helper <const gimple_statement_call>::test): Convert to...
28660         (is_a_helper <const gimple_statement_call *>::test): ...this.
28661         (is_a_helper <const gimple_statement_catch>::test): Convert to...
28662         (is_a_helper <const gimple_statement_catch *>::test): ...this.
28663         (is_a_helper <const gimple_statement_resx>::test): Convert to...
28664         (is_a_helper <const gimple_statement_resx *>::test): ...this.
28665         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
28666         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
28667         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
28668         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
28669         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
28670         Convert to...
28671         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
28672         ...this.
28673         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
28674         Convert to...
28675         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
28676         ...this.
28677         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
28678         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
28679         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
28680         to...
28681         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
28682         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
28683         to...
28684         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
28685         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
28686         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
28687         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
28688         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
28689         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
28690         to...
28691         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
28692         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
28693         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
28694         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
28695         to...
28696         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
28697         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
28698         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
28699         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
28700         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
28701         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
28702         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
28703         (is_a_helper <const gimple_statement_phi>::test): Convert to...
28704         (is_a_helper <const gimple_statement_phi *>::test): ...this.
28705         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
28706         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
28707         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
28708         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
28709         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
28710         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
28711         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
28712         to...
28713         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
28714         ...this.
28715         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
28716         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
28717
28718         (gimple_use_ops): Update for removal of implicit pointer from the
28719         is-a.h API.
28720         (gimple_set_use_ops): Likewise.
28721         (gimple_vuse): Likewise.
28722         (gimple_vdef): Likewise.
28723         (gimple_vuse_ptr): Likewise.
28724         (gimple_vdef_ptr): Likewise.
28725         (gimple_set_vuse): Likewise.
28726         (gimple_set_vdef): Likewise.
28727         (gimple_omp_return_set_lhs): Likewise.
28728         (gimple_omp_return_lhs): Likewise.
28729         (gimple_omp_return_lhs_ptr): Likewise.
28730         (gimple_call_fntype): Likewise.
28731         (gimple_call_set_fntype): Likewise.
28732         (gimple_call_set_internal_fn): Likewise.
28733         (gimple_call_use_set): Likewise.
28734         (gimple_call_clobber_set): Likewise.
28735         (gimple_bind_vars): Likewise.
28736         (gimple_bind_set_vars): Likewise.
28737         (gimple_bind_body_ptr): Likewise.
28738         (gimple_bind_set_body): Likewise.
28739         (gimple_bind_add_stmt): Likewise.
28740         (gimple_bind_block): Likewise.
28741         (gimple_bind_set_block): Likewise.
28742         (gimple_asm_ninputs): Likewise.
28743         (gimple_asm_noutputs): Likewise.
28744         (gimple_asm_nclobbers): Likewise.
28745         (gimple_asm_nlabels): Likewise.
28746         (gimple_asm_input_op): Likewise.
28747         (gimple_asm_input_op_ptr): Likewise.
28748         (gimple_asm_output_op): Likewise.
28749         (gimple_asm_output_op_ptr): Likewise.
28750         (gimple_asm_set_output_op): Likewise.
28751         (gimple_asm_clobber_op): Likewise.
28752         (gimple_asm_set_clobber_op): Likewise.
28753         (gimple_asm_label_op): Likewise.
28754         (gimple_asm_set_label_op): Likewise.
28755         (gimple_asm_string): Likewise.
28756         (gimple_catch_types): Likewise.
28757         (gimple_catch_types_ptr): Likewise.
28758         (gimple_catch_handler_ptr): Likewise.
28759         (gimple_catch_set_types): Likewise.
28760         (gimple_catch_set_handler): Likewise.
28761         (gimple_eh_filter_types): Likewise.
28762         (gimple_eh_filter_types_ptr): Likewise.
28763         (gimple_eh_filter_failure_ptr): Likewise.
28764         (gimple_eh_filter_set_types): Likewise.
28765         (gimple_eh_filter_set_failure): Likewise.
28766         (gimple_eh_must_not_throw_fndecl): Likewise.
28767         (gimple_eh_must_not_throw_set_fndecl): Likewise.
28768         (gimple_eh_else_n_body_ptr): Likewise.
28769         (gimple_eh_else_e_body_ptr): Likewise.
28770         (gimple_eh_else_set_n_body): Likewise.
28771         (gimple_eh_else_set_e_body): Likewise.
28772         (gimple_try_eval_ptr): Likewise.
28773         (gimple_try_cleanup_ptr): Likewise.
28774         (gimple_try_set_eval): Likewise.
28775         (gimple_try_set_cleanup): Likewise.
28776         (gimple_wce_cleanup_ptr): Likewise.
28777         (gimple_wce_set_cleanup): Likewise.
28778         (gimple_phi_capacity): Likewise.
28779         (gimple_phi_num_args): Likewise.
28780         (gimple_phi_result): Likewise.
28781         (gimple_phi_result_ptr): Likewise.
28782         (gimple_phi_set_result): Likewise.
28783         (gimple_phi_arg): Likewise.
28784         (gimple_phi_set_arg): Likewise.
28785         (gimple_resx_region): Likewise.
28786         (gimple_resx_set_region): Likewise.
28787         (gimple_eh_dispatch_region): Likewise.
28788         (gimple_eh_dispatch_set_region): Likewise.
28789         (gimple_omp_critical_name): Likewise.
28790         (gimple_omp_critical_name_ptr): Likewise.
28791         (gimple_omp_critical_set_name): Likewise.
28792         (gimple_omp_for_clauses): Likewise.
28793         (gimple_omp_for_clauses_ptr): Likewise.
28794         (gimple_omp_for_set_clauses): Likewise.
28795         (gimple_omp_for_collapse): Likewise.
28796         (gimple_omp_for_index): Likewise.
28797         (gimple_omp_for_index_ptr): Likewise.
28798         (gimple_omp_for_set_index): Likewise.
28799         (gimple_omp_for_initial): Likewise.
28800         (gimple_omp_for_initial_ptr): Likewise.
28801         (gimple_omp_for_set_initial): Likewise.
28802         (gimple_omp_for_final): Likewise.
28803         (gimple_omp_for_final_ptr): Likewise.
28804         (gimple_omp_for_set_final): Likewise.
28805         (gimple_omp_for_incr): Likewise.
28806         (gimple_omp_for_incr_ptr): Likewise.
28807         (gimple_omp_for_set_incr): Likewise.
28808         (gimple_omp_for_pre_body_ptr): Likewise.
28809         (gimple_omp_for_set_pre_body): Likewise.
28810         (gimple_omp_parallel_clauses): Likewise.
28811         (gimple_omp_parallel_clauses_ptr): Likewise.
28812         (gimple_omp_parallel_set_clauses): Likewise.
28813         (gimple_omp_parallel_child_fn): Likewise.
28814         (gimple_omp_parallel_child_fn_ptr): Likewise.
28815         (gimple_omp_parallel_set_child_fn): Likewise.
28816         (gimple_omp_parallel_data_arg): Likewise.
28817         (gimple_omp_parallel_data_arg_ptr): Likewise.
28818         (gimple_omp_parallel_set_data_arg): Likewise.
28819         (gimple_omp_task_clauses): Likewise.
28820         (gimple_omp_task_clauses_ptr): Likewise.
28821         (gimple_omp_task_set_clauses): Likewise.
28822         (gimple_omp_task_child_fn): Likewise.
28823         (gimple_omp_task_child_fn_ptr): Likewise.
28824         (gimple_omp_task_set_child_fn): Likewise.
28825         (gimple_omp_task_data_arg): Likewise.
28826         (gimple_omp_task_data_arg_ptr): Likewise.
28827         (gimple_omp_task_set_data_arg): Likewise.
28828         (gimple_omp_taskreg_clauses): Likewise.
28829         (gimple_omp_taskreg_clauses_ptr): Likewise.
28830         (gimple_omp_taskreg_set_clauses): Likewise.
28831         (gimple_omp_taskreg_child_fn): Likewise.
28832         (gimple_omp_taskreg_child_fn_ptr): Likewise.
28833         (gimple_omp_taskreg_set_child_fn): Likewise.
28834         (gimple_omp_taskreg_data_arg): Likewise.
28835         (gimple_omp_taskreg_data_arg_ptr): Likewise.
28836         (gimple_omp_taskreg_set_data_arg): Likewise.
28837         (gimple_omp_task_copy_fn): Likewise.
28838         (gimple_omp_task_copy_fn_ptr): Likewise.
28839         (gimple_omp_task_set_copy_fn): Likewise.
28840         (gimple_omp_task_arg_size): Likewise.
28841         (gimple_omp_task_arg_size_ptr): Likewise.
28842         (gimple_omp_task_set_arg_size): Likewise.
28843         (gimple_omp_task_arg_align): Likewise.
28844         (gimple_omp_task_arg_align_ptr): Likewise.
28845         (gimple_omp_task_set_arg_align): Likewise.
28846         (gimple_omp_single_clauses): Likewise.
28847         (gimple_omp_single_clauses_ptr): Likewise.
28848         (gimple_omp_single_set_clauses): Likewise.
28849         (gimple_omp_target_clauses): Likewise.
28850         (gimple_omp_target_clauses_ptr): Likewise.
28851         (gimple_omp_target_set_clauses): Likewise.
28852         (gimple_omp_target_child_fn): Likewise.
28853         (gimple_omp_target_child_fn_ptr): Likewise.
28854         (gimple_omp_target_set_child_fn): Likewise.
28855         (gimple_omp_target_data_arg): Likewise.
28856         (gimple_omp_target_data_arg_ptr): Likewise.
28857         (gimple_omp_target_set_data_arg): Likewise.
28858         (gimple_omp_teams_clauses): Likewise.
28859         (gimple_omp_teams_clauses_ptr): Likewise.
28860         (gimple_omp_teams_set_clauses): Likewise.
28861         (gimple_omp_sections_clauses): Likewise.
28862         (gimple_omp_sections_clauses_ptr): Likewise.
28863         (gimple_omp_sections_set_clauses): Likewise.
28864         (gimple_omp_sections_control): Likewise.
28865         (gimple_omp_sections_control_ptr): Likewise.
28866         (gimple_omp_sections_set_control): Likewise.
28867         (gimple_omp_for_set_cond): Likewise.
28868         (gimple_omp_for_cond): Likewise.
28869         (gimple_omp_atomic_store_set_val): Likewise.
28870         (gimple_omp_atomic_store_val): Likewise.
28871         (gimple_omp_atomic_store_val_ptr): Likewise.
28872         (gimple_omp_atomic_load_set_lhs): Likewise.
28873         (gimple_omp_atomic_load_lhs): Likewise.
28874         (gimple_omp_atomic_load_lhs_ptr): Likewise.
28875         (gimple_omp_atomic_load_set_rhs): Likewise.
28876         (gimple_omp_atomic_load_rhs): Likewise.
28877         (gimple_omp_atomic_load_rhs_ptr): Likewise.
28878         (gimple_omp_continue_control_def): Likewise.
28879         (gimple_omp_continue_control_def_ptr): Likewise.
28880         (gimple_omp_continue_set_control_def): Likewise.
28881         (gimple_omp_continue_control_use): Likewise.
28882         (gimple_omp_continue_control_use_ptr): Likewise.
28883         (gimple_omp_continue_set_control_use): Likewise.
28884         (gimple_transaction_body_ptr): Likewise.
28885         (gimple_transaction_label): Likewise.
28886         (gimple_transaction_label_ptr): Likewise.
28887         (gimple_transaction_set_body): Likewise.
28888         (gimple_transaction_set_label): Likewise.
28889
28890         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
28891         * ipa-inline-analysis.c (inline_write_summary): Likewise.
28892         * ipa-ref.c (ipa_record_reference): Likewise.
28893         * ipa-reference.c (analyze_function): Likewise.
28894         (ipa_reference_write_optimization_summary): Likewise.
28895         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
28896         (address_taken_from_non_vtable_p): Likewise.
28897         (comdat_can_be_unshared_p_1): Likewise.
28898         * lto-cgraph.c (lto_output_ref): Likewise.
28899         (add_references): Likewise.
28900         (compute_ltrans_boundary): Likewise.
28901         (output_symtab): Likewise.
28902         (input_ref): Likewise.
28903         (input_cgraph_1): Likewise.
28904         (output_cgraph_opt_summary): Likewise.
28905         * lto-streamer-out.c (lto_output): Likewise.
28906         (output_symbol_p): Likewise.
28907         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
28908         (lsei_start_function_in_partition): Likewise.
28909         (lsei_next_variable_in_partition): Likewise.
28910         (lsei_start_variable_in_partition): Likewise.
28911         * symtab.c (insert_to_assembler_name_hash): Likewise.
28912         (unlink_from_assembler_name_hash): Likewise.
28913         (symtab_unregister_node): Likewise.
28914         (symtab_remove_node): Likewise.
28915         (dump_symtab_node): Likewise.
28916         (verify_symtab_base): Likewise.
28917         (verify_symtab_node): Likewise.
28918         (symtab_make_decl_local): Likewise.
28919         (symtab_alias_ultimate_target): Likewise.
28920         (symtab_resolve_alias): Likewise.
28921         (symtab_get_symbol_partitioning_class): Likewise.
28922         * tree-phinodes.c (allocate_phi_node): Likewise.
28923         (reserve_phi_args_for_new_edge): Likewise.
28924         (remove_phi_args): Likewise.
28925         * varpool.c (varpool_node_for_asm): Likewise.
28926         (varpool_remove_unreferenced_decls): Likewise.
28927
28928 2014-04-23  Jeff Law  <law@redhat.com>
28929
28930         PR tree-optimization/60902
28931         * tree-ssa-threadedge.c
28932         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
28933         invalidate outputs from statements that do not produce useful
28934         outputs for threading.
28935
28936 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
28937
28938         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
28939         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
28940         machine descriptions for Stack Smashing Protector.
28941
28942 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
28943
28944         * aarch64.md (<optab>_rol<mode>3): New pattern.
28945         (<optab>_rolsi3_uxtw): Likewise.
28946         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
28947
28948 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
28949
28950         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
28951         (arm_cortex_a12_tune): Likewise.
28952
28953 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28954
28955         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
28956
28957 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28958
28959         * config/arm/arm.md (arm_rev16si2): New pattern.
28960         (arm_rev16si2_alt): Likewise.
28961         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
28962
28963 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28964
28965         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
28966         (rev16<mode>2_alt): Likewise.
28967         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
28968         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
28969         (aarch_rev16_shleft_mask_imm_p): Likewise.
28970         (aarch_rev16_p_1): Likewise.
28971         (aarch_rev16_p): Likewise.
28972         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
28973         (aarch_rev16_shright_mask_imm_p): Likewise.
28974         (aarch_rev16_shleft_mask_imm_p): Likewise.
28975
28976 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28977
28978         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
28979         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
28980         rev cost.
28981         (cortex_a53_extra_costs): Likewise.
28982         (cortex_a57_extra_costs): Likewise.
28983         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
28984         (cortexa7_extra_costs): Likewise.
28985         (cortexa8_extra_costs): Likewise.
28986         (cortexa12_extra_costs): Likewise.
28987         (cortexa15_extra_costs): Likewise.
28988         (v7m_extra_costs): Likewise.
28989         (arm_new_rtx_costs): Handle BSWAP.
28990
28991 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28992
28993         * config/arm/arm.c (cortexa8_extra_costs): New table.
28994         (arm_cortex_a8_tune): New tuning struct.
28995         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
28996
28997 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28998
28999         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
29000
29001 2014-04-23  Richard Biener  <rguenther@suse.de>
29002
29003         * Makefile.in (OBJS): Remove loop-unswitch.o.
29004         * tree-pass.h (make_pass_rtl_unswitch): Remove.
29005         * passes.def (pass_rtl_unswitch): Likewise.
29006         * loop-init.c (gate_rtl_unswitch): Likewise.
29007         (rtl_unswitch): Likewise.
29008         (pass_data_rtl_unswitch): Likewise.
29009         (pass_rtl_unswitch): Likewise.
29010         (make_pass_rtl_unswitch): Likewise.
29011         * rtl.h (reversed_condition): Likewise.
29012         (compare_and_jump_seq): Likewise.
29013         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
29014         and make static.
29015         * loop-unroll.c (compare_and_jump_seq): Likewise.
29016
29017 2014-04-23  Richard Biener  <rguenther@suse.de>
29018
29019         PR tree-optimization/60903
29020         * tree-ssa-loop-im.c (analyze_memory_references): Remove
29021         commented code block.
29022         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
29023         loop flags to newly created BBs and edges.
29024
29025 2014-04-23  Nick Clifton  <nickc@redhat.com>
29026
29027         * config/msp430/msp430.c (msp430_handle_option): Move function
29028         to msp430-common.c
29029         (msp430_option_override): Simplify mcu and mcpu option handling.
29030         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
29031         support for -mhwmult command line option.
29032         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
29033         -mhwmult command line option.
29034         (msp430_hwmult_enabled): Delete.
29035         (msp43o_output_labelref): Add support for -mhwmult command line option.
29036         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
29037         (umulsidi3): Likewise.
29038         * config/msp430/msp430.opt (mmcu): Add Report attribute.
29039         (mcpu, mlarge, msmall): Likewise.
29040         (mhwmult): New option.
29041         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
29042         prototype.
29043         (msp430_is_f5_mcu): Remove prototype.
29044         (msp430_use_f5_series_hwmult): Add prototype.
29045         * config/msp430/msp430-opts.h: New file.
29046         * common/config/msp430: New directory.
29047         * common/config/msp430/msp430-common.c: New file.
29048         * config.gcc (msp430): Remove target_has_targetm_common.
29049         * doc/invoke.texi: Document -mhwmult command line option.
29050
29051 2014-04-23  Nick Clifton  <nickc@redhat.com>
29052
29053         * config/i386/cygwin.h (ENDFILE_SPEC): Include
29054         default-manifest.o if it can be found in the search path.
29055         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
29056
29057 2014-04-23  Terry Guo  <terry.guo@arm.com>
29058
29059         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
29060
29061 2014-04-23  Richard Biener  <rguenther@suse.de>
29062
29063         PR middle-end/60895
29064         * tree-inline.c (declare_return_variable): Use mark_addressable.
29065
29066 2014-04-23  Richard Biener  <rguenther@suse.de>
29067
29068         PR middle-end/60891
29069         * loop-init.c (loop_optimizer_init): Make sure to apply
29070         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
29071
29072 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
29073
29074         PR sanitizer/60275
29075         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
29076         New options.
29077         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
29078         if flag_sanitize_undefined_trap_on_error.
29079         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
29080         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
29081         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
29082         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
29083         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
29084         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
29085         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
29086         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
29087         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
29088         * ubsan.c (ubsan_instrument_unreachable): Return
29089         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
29090         (ubsan_expand_null_ifn): Emit __builtin_trap ()
29091         if flag_sanitize_undefined_trap_on_error and
29092         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
29093         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
29094         instrument_bool_enum_load): Emit __builtin_trap () if
29095         flag_sanitize_undefined_trap_on_error and
29096         __builtin_handle_*_abort () if !flag_sanitize_recover.
29097         * doc/invoke.texi (-fsanitize-recover,
29098         -fsanitize-undefined-trap-on-error): Document.
29099
29100 2014-04-22  Christian Bruel  <christian.bruel@st.com>
29101
29102         * config/sh/sh.md (mov<mode>): Replace movQIHI.
29103         Force immediates to SImode.
29104
29105 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
29106
29107         * config/nios2/nios2.md (UNSPEC_ROUND): New.
29108         (lroundsfsi2): New.
29109         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
29110         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
29111         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
29112         (nios2_fpu_insn): Add entry for round.
29113         (N2FPU_NO_ERRNO_P): Define.
29114         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
29115         flag_errno_math.
29116         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
29117
29118 2014-04-22  Richard Henderson  <rth@redhat.com>
29119
29120         * config/aarch64/aarch64 (addti3, subti3): New expanders.
29121         (add<GPI>3_compare0): Remove leading * from name.
29122         (add<GPI>3_carryin): Likewise.
29123         (sub<GPI>3_compare0): Likewise.
29124         (sub<GPI>3_carryin): Likewise.
29125         (<su_optab>mulditi3): New expander.
29126         (multi3): New expander.
29127         (madd<GPI>): Remove leading * from name.
29128
29129 2014-04-22  Martin Jambor  <mjambor@suse.cz>
29130
29131         * cgraphclones.c (cgraph_function_versioning): Copy
29132         ipa_transforms_to_apply instead of asserting it is empty.
29133
29134 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
29135
29136         PR target/60868
29137         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
29138         on count_exp to get mode.
29139
29140 2014-04-22  Andrew Pinski  <apinski@cavium.com>
29141
29142         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
29143         Handle TLS for ILP32.
29144         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
29145         (tlsie_small_<mode>): this and handle PTR.
29146         (tlsie_small_sidi): New pattern.
29147         (tlsle_small): Change to an expand to handle ILP32.
29148         (tlsle_small_<mode>): New pattern.
29149         (tlsdesc_small): Rename to ...
29150         (tlsdesc_small_<mode>): this and handle PTR.
29151
29152 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29153
29154         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
29155
29156 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
29157
29158         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
29159         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
29160         (aarch64_types_signed_poly_qualifiers): Likewise.
29161         (aarch64_types_unsigned_signed_qualifiers): Likewise.
29162         (aarch64_types_poly_signed_qualifiers): Likewise.
29163         (TYPES_REINTERP_SS): Type macro added.
29164         (TYPES_REINTERP_SU): Likewise.
29165         (TYPES_REINTERP_SP): Likewise.
29166         (TYPES_REINTERP_US): Likewise.
29167         (TYPES_REINTERP_PS): Likewise.
29168         (aarch64_fold_builtin): New expression folding added.
29169         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
29170         Declarations removed.
29171         (REINTERP_SS): Declarations added.
29172         (REINTERP_US): Likewise.
29173         (REINTERP_PS): Likewise.
29174         (REINTERP_SU): Likewise.
29175         (REINTERP_SP): Likewise.
29176         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
29177         (vreinterpretq_p8_f64): Likewise.
29178         (vreinterpret_p16_f64): Likewise.
29179         (vreinterpretq_p16_f64): Likewise.
29180         (vreinterpret_f32_f64): Likewise.
29181         (vreinterpretq_f32_f64): Likewise.
29182         (vreinterpret_f64_f32): Likewise.
29183         (vreinterpret_f64_p8): Likewise.
29184         (vreinterpret_f64_p16): Likewise.
29185         (vreinterpret_f64_s8): Likewise.
29186         (vreinterpret_f64_s16): Likewise.
29187         (vreinterpret_f64_s32): Likewise.
29188         (vreinterpret_f64_s64): Likewise.
29189         (vreinterpret_f64_u8): Likewise.
29190         (vreinterpret_f64_u16): Likewise.
29191         (vreinterpret_f64_u32): Likewise.
29192         (vreinterpret_f64_u64): Likewise.
29193         (vreinterpretq_f64_f32): Likewise.
29194         (vreinterpretq_f64_p8): Likewise.
29195         (vreinterpretq_f64_p16): Likewise.
29196         (vreinterpretq_f64_s8): Likewise.
29197         (vreinterpretq_f64_s16): Likewise.
29198         (vreinterpretq_f64_s32): Likewise.
29199         (vreinterpretq_f64_s64): Likewise.
29200         (vreinterpretq_f64_u8): Likewise.
29201         (vreinterpretq_f64_u16): Likewise.
29202         (vreinterpretq_f64_u32): Likewise.
29203         (vreinterpretq_f64_u64): Likewise.
29204         (vreinterpret_s64_f64): Likewise.
29205         (vreinterpretq_s64_f64): Likewise.
29206         (vreinterpret_u64_f64): Likewise.
29207         (vreinterpretq_u64_f64): Likewise.
29208         (vreinterpret_s8_f64): Likewise.
29209         (vreinterpretq_s8_f64): Likewise.
29210         (vreinterpret_s16_f64): Likewise.
29211         (vreinterpretq_s16_f64): Likewise.
29212         (vreinterpret_s32_f64): Likewise.
29213         (vreinterpretq_s32_f64): Likewise.
29214         (vreinterpret_u8_f64): Likewise.
29215         (vreinterpretq_u8_f64): Likewise.
29216         (vreinterpret_u16_f64): Likewise.
29217         (vreinterpretq_u16_f64): Likewise.
29218         (vreinterpret_u32_f64): Likewise.
29219         (vreinterpretq_u32_f64): Likewise.
29220
29221 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
29222
29223         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
29224         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
29225         (vreinterpret_p8_s8): Likewise.
29226         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
29227         (vreinterpret_p8_s16): Likewise.
29228         (vreinterpret_p8_s32): Likewise.
29229         (vreinterpret_p8_s64): Likewise.
29230         (vreinterpret_p8_f32): Likewise.
29231         (vreinterpret_p8_u8): Likewise.
29232         (vreinterpret_p8_u16): Likewise.
29233         (vreinterpret_p8_u32): Likewise.
29234         (vreinterpret_p8_u64): Likewise.
29235         (vreinterpret_p8_p16): Likewise.
29236         (vreinterpretq_p8_s8): Likewise.
29237         (vreinterpretq_p8_s16): Likewise.
29238         (vreinterpretq_p8_s32): Likewise.
29239         (vreinterpretq_p8_s64): Likewise.
29240         (vreinterpretq_p8_f32): Likewise.
29241         (vreinterpretq_p8_u8): Likewise.
29242         (vreinterpretq_p8_u16): Likewise.
29243         (vreinterpretq_p8_u32): Likewise.
29244         (vreinterpretq_p8_u64): Likewise.
29245         (vreinterpretq_p8_p16): Likewise.
29246         (vreinterpret_p16_s8): Likewise.
29247         (vreinterpret_p16_s16): Likewise.
29248         (vreinterpret_p16_s32): Likewise.
29249         (vreinterpret_p16_s64): Likewise.
29250         (vreinterpret_p16_f32): Likewise.
29251         (vreinterpret_p16_u8): Likewise.
29252         (vreinterpret_p16_u16): Likewise.
29253         (vreinterpret_p16_u32): Likewise.
29254         (vreinterpret_p16_u64): Likewise.
29255         (vreinterpret_p16_p8): Likewise.
29256         (vreinterpretq_p16_s8): Likewise.
29257         (vreinterpretq_p16_s16): Likewise.
29258         (vreinterpretq_p16_s32): Likewise.
29259         (vreinterpretq_p16_s64): Likewise.
29260         (vreinterpretq_p16_f32): Likewise.
29261         (vreinterpretq_p16_u8): Likewise.
29262         (vreinterpretq_p16_u16): Likewise.
29263         (vreinterpretq_p16_u32): Likewise.
29264         (vreinterpretq_p16_u64): Likewise.
29265         (vreinterpretq_p16_p8): Likewise.
29266         (vreinterpret_f32_s8): Likewise.
29267         (vreinterpret_f32_s16): Likewise.
29268         (vreinterpret_f32_s32): Likewise.
29269         (vreinterpret_f32_s64): Likewise.
29270         (vreinterpret_f32_u8): Likewise.
29271         (vreinterpret_f32_u16): Likewise.
29272         (vreinterpret_f32_u32): Likewise.
29273         (vreinterpret_f32_u64): Likewise.
29274         (vreinterpret_f32_p8): Likewise.
29275         (vreinterpret_f32_p16): Likewise.
29276         (vreinterpretq_f32_s8): Likewise.
29277         (vreinterpretq_f32_s16): Likewise.
29278         (vreinterpretq_f32_s32): Likewise.
29279         (vreinterpretq_f32_s64): Likewise.
29280         (vreinterpretq_f32_u8): Likewise.
29281         (vreinterpretq_f32_u16): Likewise.
29282         (vreinterpretq_f32_u32): Likewise.
29283         (vreinterpretq_f32_u64): Likewise.
29284         (vreinterpretq_f32_p8): Likewise.
29285         (vreinterpretq_f32_p16): Likewise.
29286         (vreinterpret_s64_s8): Likewise.
29287         (vreinterpret_s64_s16): Likewise.
29288         (vreinterpret_s64_s32): Likewise.
29289         (vreinterpret_s64_f32): Likewise.
29290         (vreinterpret_s64_u8): Likewise.
29291         (vreinterpret_s64_u16): Likewise.
29292         (vreinterpret_s64_u32): Likewise.
29293         (vreinterpret_s64_u64): Likewise.
29294         (vreinterpret_s64_p8): Likewise.
29295         (vreinterpret_s64_p16): Likewise.
29296         (vreinterpretq_s64_s8): Likewise.
29297         (vreinterpretq_s64_s16): Likewise.
29298         (vreinterpretq_s64_s32): Likewise.
29299         (vreinterpretq_s64_f32): Likewise.
29300         (vreinterpretq_s64_u8): Likewise.
29301         (vreinterpretq_s64_u16): Likewise.
29302         (vreinterpretq_s64_u32): Likewise.
29303         (vreinterpretq_s64_u64): Likewise.
29304         (vreinterpretq_s64_p8): Likewise.
29305         (vreinterpretq_s64_p16): Likewise.
29306         (vreinterpret_u64_s8): Likewise.
29307         (vreinterpret_u64_s16): Likewise.
29308         (vreinterpret_u64_s32): Likewise.
29309         (vreinterpret_u64_s64): Likewise.
29310         (vreinterpret_u64_f32): Likewise.
29311         (vreinterpret_u64_u8): Likewise.
29312         (vreinterpret_u64_u16): Likewise.
29313         (vreinterpret_u64_u32): Likewise.
29314         (vreinterpret_u64_p8): Likewise.
29315         (vreinterpret_u64_p16): Likewise.
29316         (vreinterpretq_u64_s8): Likewise.
29317         (vreinterpretq_u64_s16): Likewise.
29318         (vreinterpretq_u64_s32): Likewise.
29319         (vreinterpretq_u64_s64): Likewise.
29320         (vreinterpretq_u64_f32): Likewise.
29321         (vreinterpretq_u64_u8): Likewise.
29322         (vreinterpretq_u64_u16): Likewise.
29323         (vreinterpretq_u64_u32): Likewise.
29324         (vreinterpretq_u64_p8): Likewise.
29325         (vreinterpretq_u64_p16): Likewise.
29326         (vreinterpret_s8_s16): Likewise.
29327         (vreinterpret_s8_s32): Likewise.
29328         (vreinterpret_s8_s64): Likewise.
29329         (vreinterpret_s8_f32): Likewise.
29330         (vreinterpret_s8_u8): Likewise.
29331         (vreinterpret_s8_u16): Likewise.
29332         (vreinterpret_s8_u32): Likewise.
29333         (vreinterpret_s8_u64): Likewise.
29334         (vreinterpret_s8_p8): Likewise.
29335         (vreinterpret_s8_p16): Likewise.
29336         (vreinterpretq_s8_s16): Likewise.
29337         (vreinterpretq_s8_s32): Likewise.
29338         (vreinterpretq_s8_s64): Likewise.
29339         (vreinterpretq_s8_f32): Likewise.
29340         (vreinterpretq_s8_u8): Likewise.
29341         (vreinterpretq_s8_u16): Likewise.
29342         (vreinterpretq_s8_u32): Likewise.
29343         (vreinterpretq_s8_u64): Likewise.
29344         (vreinterpretq_s8_p8): Likewise.
29345         (vreinterpretq_s8_p16): Likewise.
29346         (vreinterpret_s16_s8): Likewise.
29347         (vreinterpret_s16_s32): Likewise.
29348         (vreinterpret_s16_s64): Likewise.
29349         (vreinterpret_s16_f32): Likewise.
29350         (vreinterpret_s16_u8): Likewise.
29351         (vreinterpret_s16_u16): Likewise.
29352         (vreinterpret_s16_u32): Likewise.
29353         (vreinterpret_s16_u64): Likewise.
29354         (vreinterpret_s16_p8): Likewise.
29355         (vreinterpret_s16_p16): Likewise.
29356         (vreinterpretq_s16_s8): Likewise.
29357         (vreinterpretq_s16_s32): Likewise.
29358         (vreinterpretq_s16_s64): Likewise.
29359         (vreinterpretq_s16_f32): Likewise.
29360         (vreinterpretq_s16_u8): Likewise.
29361         (vreinterpretq_s16_u16): Likewise.
29362         (vreinterpretq_s16_u32): Likewise.
29363         (vreinterpretq_s16_u64): Likewise.
29364         (vreinterpretq_s16_p8): Likewise.
29365         (vreinterpretq_s16_p16): Likewise.
29366         (vreinterpret_s32_s8): Likewise.
29367         (vreinterpret_s32_s16): Likewise.
29368         (vreinterpret_s32_s64): Likewise.
29369         (vreinterpret_s32_f32): Likewise.
29370         (vreinterpret_s32_u8): Likewise.
29371         (vreinterpret_s32_u16): Likewise.
29372         (vreinterpret_s32_u32): Likewise.
29373         (vreinterpret_s32_u64): Likewise.
29374         (vreinterpret_s32_p8): Likewise.
29375         (vreinterpret_s32_p16): Likewise.
29376         (vreinterpretq_s32_s8): Likewise.
29377         (vreinterpretq_s32_s16): Likewise.
29378         (vreinterpretq_s32_s64): Likewise.
29379         (vreinterpretq_s32_f32): Likewise.
29380         (vreinterpretq_s32_u8): Likewise.
29381         (vreinterpretq_s32_u16): Likewise.
29382         (vreinterpretq_s32_u32): Likewise.
29383         (vreinterpretq_s32_u64): Likewise.
29384         (vreinterpretq_s32_p8): Likewise.
29385         (vreinterpretq_s32_p16): Likewise.
29386         (vreinterpret_u8_s8): Likewise.
29387         (vreinterpret_u8_s16): Likewise.
29388         (vreinterpret_u8_s32): Likewise.
29389         (vreinterpret_u8_s64): Likewise.
29390         (vreinterpret_u8_f32): Likewise.
29391         (vreinterpret_u8_u16): Likewise.
29392         (vreinterpret_u8_u32): Likewise.
29393         (vreinterpret_u8_u64): Likewise.
29394         (vreinterpret_u8_p8): Likewise.
29395         (vreinterpret_u8_p16): Likewise.
29396         (vreinterpretq_u8_s8): Likewise.
29397         (vreinterpretq_u8_s16): Likewise.
29398         (vreinterpretq_u8_s32): Likewise.
29399         (vreinterpretq_u8_s64): Likewise.
29400         (vreinterpretq_u8_f32): Likewise.
29401         (vreinterpretq_u8_u16): Likewise.
29402         (vreinterpretq_u8_u32): Likewise.
29403         (vreinterpretq_u8_u64): Likewise.
29404         (vreinterpretq_u8_p8): Likewise.
29405         (vreinterpretq_u8_p16): Likewise.
29406         (vreinterpret_u16_s8): Likewise.
29407         (vreinterpret_u16_s16): Likewise.
29408         (vreinterpret_u16_s32): Likewise.
29409         (vreinterpret_u16_s64): Likewise.
29410         (vreinterpret_u16_f32): Likewise.
29411         (vreinterpret_u16_u8): Likewise.
29412         (vreinterpret_u16_u32): Likewise.
29413         (vreinterpret_u16_u64): Likewise.
29414         (vreinterpret_u16_p8): Likewise.
29415         (vreinterpret_u16_p16): Likewise.
29416         (vreinterpretq_u16_s8): Likewise.
29417         (vreinterpretq_u16_s16): Likewise.
29418         (vreinterpretq_u16_s32): Likewise.
29419         (vreinterpretq_u16_s64): Likewise.
29420         (vreinterpretq_u16_f32): Likewise.
29421         (vreinterpretq_u16_u8): Likewise.
29422         (vreinterpretq_u16_u32): Likewise.
29423         (vreinterpretq_u16_u64): Likewise.
29424         (vreinterpretq_u16_p8): Likewise.
29425         (vreinterpretq_u16_p16): Likewise.
29426         (vreinterpret_u32_s8): Likewise.
29427         (vreinterpret_u32_s16): Likewise.
29428         (vreinterpret_u32_s32): Likewise.
29429         (vreinterpret_u32_s64): Likewise.
29430         (vreinterpret_u32_f32): Likewise.
29431         (vreinterpret_u32_u8): Likewise.
29432         (vreinterpret_u32_u16): Likewise.
29433         (vreinterpret_u32_u64): Likewise.
29434         (vreinterpret_u32_p8): Likewise.
29435         (vreinterpret_u32_p16): Likewise.
29436         (vreinterpretq_u32_s8): Likewise.
29437         (vreinterpretq_u32_s16): Likewise.
29438         (vreinterpretq_u32_s32): Likewise.
29439         (vreinterpretq_u32_s64): Likewise.
29440         (vreinterpretq_u32_f32): Likewise.
29441         (vreinterpretq_u32_u8): Likewise.
29442         (vreinterpretq_u32_u16): Likewise.
29443         (vreinterpretq_u32_u64): Likewise.
29444         (vreinterpretq_u32_p8): Likewise.
29445         (vreinterpretq_u32_p16): Likewise.
29446
29447 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
29448
29449         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
29450         Pattern extended.
29451         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
29452         (sqabs): Likewise.
29453         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
29454         (vqnegd_s64): Likewise.
29455         (vqabs_s64): Likewise.
29456         (vqabsd_s64): Likewise.
29457
29458 2014-04-22  Richard Henderson  <rth@redhat.com>
29459
29460         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
29461         computation to the top of the loop.
29462
29463 2014-04-22  Renlin  <renlin.li@arm.com>
29464             Jiong Wang  <jiong.wang@arm.com>
29465
29466         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
29467         * config/aarch64/aarch64.c (aarch64_layout_frame)
29468         (aarch64_initial_elimination_offset): Likewise.
29469
29470 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
29471
29472         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
29473         Fix indentation.
29474
29475 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
29476
29477         * machmode.h (bitwise_mode_for_mode): Declare.
29478         * stor-layout.h (bitwise_type_for_mode): Likewise.
29479         * stor-layout.c (bitwise_mode_for_mode): New function.
29480         (bitwise_type_for_mode): Likewise.
29481         * builtins.c (fold_builtin_memory_op): Use it instead of
29482         int_mode_for_mode and build_nonstandard_integer_type.
29483
29484 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29485
29486         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
29487         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
29488         (*-*-solaris2*): Simplify.
29489         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
29490         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
29491         *-*-solaris2.9* handling.
29492
29493         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
29494         as bug.
29495         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
29496         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
29497         handling, simplify.
29498         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
29499         * configure: Regenerate.
29500
29501         * config/i386/sol2-9.h: Remove.
29502
29503         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
29504         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
29505         Remove Solaris 9 references.
29506
29507 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
29508
29509         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
29510         (floatuns<GPI:mode><GPF:mode>2): Remove.
29511         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
29512         and floatuns conversions.
29513         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
29514         and floatuns conversions.
29515         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
29516         (w1,w2): New mode attributes for inequal width conversions.
29517
29518 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
29519
29520         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
29521         the output asm format.
29522
29523 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
29524
29525         * config/aarch64/aarch64-simd.md
29526         (aarch64_cm<optab>di): Always split.
29527         (*aarch64_cm<optab>di): New.
29528         (aarch64_cmtstdi): Always split.
29529         (*aarch64_cmtstdi): New.
29530
29531 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
29532
29533         PR tree-optimization/60823
29534         * omp-low.c (ipa_simd_modify_function_body): Go through
29535         all SSA_NAMEs and for those refering to vector arguments
29536         which are going to be replaced adjust SSA_NAME_VAR and,
29537         if it is a default definition, change it into a non-default
29538         definition assigned at the beginning of function from new_decl.
29539         (ipa_simd_modify_stmt_ops): Rewritten.
29540         * tree-dfa.c (set_ssa_default_def): When removing default def,
29541         check for NULL loc instead of NULL *loc.
29542
29543 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29544
29545         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
29546         restrictions on core registers for DImode values in Thumb2.
29547
29548 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
29549
29550         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
29551         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
29552
29553 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
29554
29555         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
29556         (*iordi_notzesidi_di): Likewise.
29557         (*iordi_notsesidi_di): Likewise.
29558
29559 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
29560
29561         * config/arm/arm-protos.h (tune_params): New struct members.
29562         * config/arm/arm.c: Initialise tune_params per processor.
29563         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
29564         for speed, based on new tune_params.
29565
29566 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
29567
29568         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
29569         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
29570         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
29571         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
29572         * config/aarch64/arm_neon.h (vrnd_f64): Added.
29573         (vrnda_f64): Likewise.
29574         (vrndi_f64): Likewise.
29575         (vrndm_f64): Likewise.
29576         (vrndn_f64): Likewise.
29577         (vrndp_f64): Likewise.
29578         (vrndx_f64): Likewise.
29579
29580 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
29581
29582         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
29583         GET_MODE_SIZE argument is enum machine_mode.
29584
29585 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
29586
29587         PR target/60910
29588         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
29589         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
29590
29591 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
29592
29593         PR middle-end/60281
29594         * asan.c (asan_emit_stack_protection): Force the base to align to
29595         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
29596         appropriate bits if STRICT_ALIGNMENT.
29597         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
29598         when asan is on.
29599         (expand_used_vars): Leave a space in the stack frame for alignment
29600         if STRICT_ALIGNMENT.
29601
29602 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
29603
29604         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
29605         than a gimple.
29606         (gimple_store_p): Likewise.
29607         (gimple_assign_load_p): Likewise.
29608         (gimple_assign_cast_p): Likewise.
29609         (gimple_clobber_p): Likewise.
29610
29611         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
29612         rather than a gimple.
29613         (gimple_assign_cast_p): Likewise.
29614
29615 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
29616
29617         PR target/60735
29618         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
29619         If mode is DDmode and TARGET_E500_DOUBLE allow move.
29620
29621         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
29622         more debug information for E500 if -mdebug=reg.
29623
29624 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
29625
29626         PR target/60909
29627         * config/i386/i386.c (ix86_expand_builtin)
29628         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
29629         register for target RTX.
29630         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
29631
29632 2014-04-18  Cong Hou  <congh@google.com>
29633
29634         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
29635         the widen-mult pattern by handling two operands with different sizes,
29636         and operands whose size is smaller than half of the result type.
29637
29638 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
29639
29640         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
29641         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
29642         (do_estimate_edge_time): Compute it.
29643         * ipa-inline.c (want_inline_small_function_p): Bypass
29644         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
29645
29646 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
29647
29648         * ipa-inline.c (spec_rem): New static variable.
29649         (dump_overall_stats): New function.
29650         (dump_inline_stats): New function.
29651
29652 2014-04-18  Richard Henderson  <rth@redhat.com>
29653
29654         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
29655         to GET_MODE_SIZE, not a reg_class_t.
29656
29657 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29658
29659         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
29660         (vsx_xxmrglw_<mode>): Likewise.
29661
29662 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
29663
29664         PR target/60876
29665         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
29666         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
29667         (rs6000_init_hard_regno_mode_ok): Likewise.
29668
29669 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
29670
29671         * ipa-inline.c (inline_small_functions): Account only non-cold
29672         functions.
29673         * doc/invoke.texi (inline-unit-growth): Update documentation.
29674
29675 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
29676
29677         * config/rs6000/rs6000.md (addti3, subti3): New.
29678
29679 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
29680
29681         PR target/60863
29682         * config/i386/i386.c (ix86_expand_clear): Remove outdated
29683         comment.  Check optimize_insn_for_size_p instead of
29684         optimize_insn_for_speed_p.
29685
29686 2014-04-17  Martin Jambor  <mjambor@suse.cz>
29687
29688         * gimple-iterator.c (gsi_start_edge): New function.
29689         * gimple-iterator.h (gsi_start_edge): Declare.
29690         * tree-sra.c (single_non_eh_succ): New function.
29691         (disqualify_ops_if_throwing_stmt): Renamed to
29692         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
29693         having one non-EH successor BB.
29694         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
29695         generate loads into replacements.
29696         (sra_modify_assign): Likewise and and also use the simple path for
29697         such statements.
29698         (sra_modify_function_body): Commit statements on edges.
29699
29700 2014-04-17  Richard Biener  <rguenther@suse.de>
29701
29702         PR middle-end/60849
29703         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
29704         comparison results and add clarifying comment.
29705
29706 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
29707
29708         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
29709         (blank_mode): Initialize it.
29710         (emit_mode_size_inline, emit_mode_nunits_inline,
29711         emit_mode_inner_inline): New functions.
29712         (emit_insn_modes_h): Call them and surround their output with
29713         #if GCC_VERSION >= 4001 ... #endif.
29714         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
29715         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
29716         mode_* arrays if the argument is __builtin_constant_p.
29717         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
29718         is enum machine_mode.
29719
29720 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29721
29722         * passes.c (opt_pass::execute): Adjust.
29723         (pass_manager::execute_pass_mode_switching): Likewise.
29724         (early_local_passes::execute): Likewise.
29725         (execute_one_pass): Pass cfun to the pass's execute method.
29726         * tree-pass.h (opt_pass::execute): Add function * argument.
29727         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
29728         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
29729         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
29730         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29731         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
29732         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
29733         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
29734         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
29735         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
29736         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
29737         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
29738         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
29739         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
29740         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
29741         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
29742         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
29743         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
29744         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
29745         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
29746         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29747         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29748         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29749         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29750         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29751         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29752         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29753         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
29754         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
29755         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
29756         Adjust.
29757
29758 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29759
29760         * passes.c (opt_pass::gate): Take function * argument.
29761         (gate_all_early_local_passes): Merge into
29762         (early_local_passes::gate): this.
29763         (gate_all_early_optimizations): Merge into
29764         (all_early_optimizations::gate): this.
29765         (gate_all_optimizations): Mege into
29766         (all_optimizations::gate): this.
29767         (gate_all_optimizations_g): Merge into
29768         (all_optimizations_g::gate): this.
29769         (gate_rest_of_compilation): Mege into
29770         (rest_of_compilation::gate): this.
29771         (gate_postreload): Merge into
29772         (postreload::gate): this.
29773         (dump_one_pass): Pass cfun to the pass's gate method.
29774         (execute_ipa_summary_passes): Likewise.
29775         (execute_one_pass): Likewise.
29776         (ipa_write_summaries_2): Likewise.
29777         (ipa_write_optimization_summaries_1): Likewise.
29778         (ipa_read_summaries_1): Likewise.
29779         (ipa_read_optimization_summaries_1): Likewise.
29780         (execute_ipa_stmt_fixups): Likewise.
29781         * tree-pass.h (opt_pass::gate): Add function * argument.
29782         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
29783         combine-stack-adj.c, combine.c, compare-elim.c,
29784         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29785         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
29786         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
29787         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
29788         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
29789         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
29790         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
29791         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
29792         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
29793         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
29794         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
29795         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
29796         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
29797         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
29798         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
29799         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29800         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29801         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29802         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29803         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29804         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29805         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29806         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
29807         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
29808         var-tracking.c, vtable-verify.c, web.c: Adjust.
29809
29810 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29811
29812         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
29813         * configure: Regenerate.
29814
29815 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29816
29817         * passes.c (dump_one_pass): don't check pass->has_gate.
29818         (execute_ipa_summary_passes): Likewise.
29819         (execute_one_pass): Likewise.
29820         (ipa_write_summaries_2): Likewise.
29821         (ipa_write_optimization_summaries_1): Likewise.
29822         (ipa_read_optimization_summaries_1): Likewise.
29823         (execute_ipa_stmt_fixups): Likewise.
29824         * tree-pass.h (pass_data::has_gate): Remove.
29825         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
29826         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
29827         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
29828         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29829         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
29830         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
29831         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
29832         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
29833         gimple-low.c, gimple-ssa-isolate-paths.c,
29834         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
29835         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
29836         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
29837         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
29838         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
29839         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
29840         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
29841         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
29842         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
29843         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
29844         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
29845         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
29846         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29847         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29848         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29849         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29850         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29851         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29852         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29853         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
29854         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
29855         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
29856         Adjust.
29857
29858 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29859
29860         * pass_manager.h (pass_manager::register_dump_files_1): Remove
29861         declaration.
29862         * passes.c (pass_manager::register_dump_files_1): Merge into
29863         (pass_manager::register_dump_files): this, and remove its handling of
29864         properties since the pass always has the properties anyway.
29865         (pass_manager::pass_manager): Adjust.
29866
29867 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29868
29869         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
29870         * passes.c (pass_manager::register_dump_files_1): Remove dead code
29871         dealing with properties.
29872         (pass_manager::register_dump_files): Adjust.
29873
29874 2014-03-20  Mark Wielaard  <mjw@redhat.com>
29875
29876         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
29877         then represent the bound as normal constant value.
29878
29879 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
29880
29881         PR target/60847
29882         Forward port from 4.8 branch
29883         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
29884
29885         * config/i386/bmiintrin.h (_blsi_u32): New.
29886         (_blsi_u64): Ditto.
29887         (_blsr_u32): Ditto.
29888         (_blsr_u64): Ditto.
29889         (_blsmsk_u32): Ditto.
29890         (_blsmsk_u64): Ditto.
29891         (_tzcnt_u32): Ditto.
29892         (_tzcnt_u64): Ditto.
29893
29894 2014-04-17  Kito Cheng  <kito@0xlab.org>
29895
29896         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
29897
29898 2014-04-17  Richard Biener  <rguenther@suse.de>
29899
29900         PR middle-end/60849
29901         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
29902         boolean results for comparisons.
29903
29904 2014-04-17  Richard Biener  <rguenther@suse.de>
29905
29906         PR tree-optimization/60836
29907         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
29908         initial PHI args to be gimple values.
29909
29910 2014-04-17  Richard Biener  <rguenther@suse.de>
29911
29912         PR tree-optimization/60841
29913         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
29914         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
29915         of stmts to SLP build.
29916         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
29917         (vect_analyze_slp): Likewise.
29918         (vect_analyze_slp_instance): Likewise.
29919         (vect_build_slp_tree): Limit overall SLP tree growth.
29920         * tree-vectorizer.h (vect_analyze_data_refs,
29921         vect_analyze_slp): Adjust prototypes.
29922
29923 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
29924
29925         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
29926         Silvermont.
29927
29928 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
29929
29930         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
29931         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
29932         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
29933         for TARGET_SLOW_PSHUFB
29934
29935 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
29936
29937         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
29938         * config/i386/i386.c (intel_cost): Ditto.
29939
29940 2014-04-17  Joey Ye  <joey.ye@arm.com>
29941
29942         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
29943
29944 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
29945
29946         * opts.c (common_handle_option): Disable -fipa-reference coorectly
29947         with -fuse-profile.
29948
29949 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
29950
29951         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
29952         (type_all_derivations_known_p): New predicate.
29953         (type_all_ctors_visible_p): New predicate.
29954         (type_possibly_instantiated_p): New predicate.
29955         (get_odr_type): Compute all_derivations_known.
29956         (dump_odr_type): Dump the flag.
29957         (maybe_record_type): Cleanup.
29958         (record_target_from_binfo): Add bases_to_consider array;
29959         record bases for types w/o instances and skip CXX destructor.
29960         (possible_polymorphic_call_targets_1): Add bases_to_consider
29961         and consider_construction parameters; check if type may have instance.
29962         (get_polymorphic_call_info): Set maybe_in_construction to true
29963         when we know nothing.
29964         (record_targets_from_bases): Skip CXX destructors; they are
29965         never called for types in construction.
29966         (possible_polymorphic_call_targets): Do not record target when
29967         type may not have instance.
29968
29969 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
29970
29971         PR ipa/60854
29972         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
29973         external aliases alive, too.
29974
29975 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
29976
29977         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
29978         definition.
29979
29980 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
29981
29982         * final.c (compute_alignments): Do not apply loop alignment to a block
29983         falling through to the exit.
29984
29985 2014-04-16  Catherine Moore  <clm@codesourcery.com>
29986
29987         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
29988         Adjust constraints for microMIPS store patterns.
29989
29990 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
29991
29992         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
29993
29994 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
29995
29996         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
29997         (append_use): Run at -O0.
29998         (append_vdef): Likewise.
29999         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
30000         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
30001
30002 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
30003
30004         PR tree-optimization/60844
30005         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
30006         (propagate_op_to_single_use, remove_visited_stmt_chain,
30007         linearize_expr, repropagate_negates, reassociate_bb): Use it
30008         instead of gsi_remove.
30009
30010 2014-04-16  Martin Jambor  <mjambor@suse.cz>
30011
30012         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
30013         ipa_transforms_to_apply.
30014         (cgraph_function_versioning): Assert that old_node has empty
30015         ipa_transforms_to_apply.
30016         * trans-mem.c (ipa_tm_create_version): Likewise.
30017         * tree-inline.c (tree_function_versioning): Do not duplicate
30018         ipa_transforms_to_apply.
30019
30020 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30021
30022         PR target/60817
30023         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
30024         x86_64-*-* cases.
30025         Pass necessary as flags on 64-bit Solaris/x86.
30026         Use lowercase relocs for x86_64-*-*.
30027         * configure: Regenerate.
30028
30029 2014-04-15  Jan Hubicka  <jh@suse.cz>
30030
30031         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
30032         (maybe_record_node, likely_target_p): Use it.
30033
30034 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30035
30036         PR target/60839
30037         Revert following patch
30038
30039         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
30040
30041         PR target/60735
30042         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
30043         software floating point or no floating point registers, do not
30044         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
30045         in GPRs that occurs after we tested for GPRs that would never be
30046         true.
30047
30048         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
30049         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
30050         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
30051         specifically allow DDmode, since that does not use the SPE SIMD
30052         instructions.
30053
30054 2014-03-21  Mark Wielaard  <mjw@redhat.com>
30055
30056         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
30057         as unsigned or int depending on type and value used.
30058
30059 2014-04-15  Richard Biener  <rguenther@suse.de>
30060
30061         PR rtl-optimization/56965
30062         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
30063         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
30064         ... here.
30065         * alias.c (true_dependence_1): Do not call
30066         nonoverlapping_component_refs_p.
30067         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
30068         nonoverlapping_component_refs_p.
30069         (indirect_refs_may_alias_p): Likewise.
30070
30071 2014-04-15  Teresa Johnson  <tejohnson@google.com>
30072
30073         * cfg.c (dump_bb_info): Fix flags check.
30074         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
30075
30076 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30077
30078         PR rtl-optimization/60663
30079         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
30080         avoid 0 cost.
30081
30082 2014-04-15  Richard Biener  <rguenther@suse.de>
30083
30084         * lto-streamer.h (LTO_major_version): Bump to 4.
30085
30086 2014-04-15  Richard Biener  <rguenther@suse.de>
30087
30088         * common.opt (lto_partition_model): New enum.
30089         (flto-partition=): Merge separate options with a single with argument,
30090         add -flto-partition=one support.
30091         * flag-types.h (enum lto_partition_model): Declare.
30092         * opts.c (finish_options): Remove duplicate -flto-partition=
30093         option check.
30094         * lto-wrapper.c (run_gcc): Adjust.
30095
30096 2014-04-15  Richard Biener  <rguenther@suse.de>
30097
30098         * alias.c (ncr_compar): New function.
30099         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
30100
30101 2014-04-15  Richard Biener  <rguenther@suse.de>
30102
30103         * alias.c (record_component_aliases): Do not walk BINFOs.
30104
30105 2014-04-15  Richard Biener  <rguenther@suse.de>
30106
30107         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
30108         Add struct function argument and adjust.
30109         (find_func_aliases_for_call): Likewise.
30110         (find_func_aliases): Likewise.
30111         (find_func_clobbers): Likewise.
30112         (intra_create_variable_infos): Likewise.
30113         (compute_points_to_sets): Likewise.
30114         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
30115
30116 2014-04-15  Richard Biener  <rguenther@suse.de>
30117
30118         * tree.c (iterative_hash_expr): Use enum tree_code_class
30119         to store TREE_CODE_CLASS.
30120         (tree_block): Likewise.
30121         (tree_set_block): Likewise.
30122         * tree.h (fold_build_pointer_plus_loc): Use
30123         convert_to_ptrofftype_loc.
30124
30125 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
30126
30127         PR plugins/59335
30128         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
30129         added in 4.9.
30130
30131 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
30132
30133         * cfgloop.h (struct loop): Move force_vectorize down.
30134         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
30135         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
30136         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
30137         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
30138         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
30139         * tree-core.h (enum annot_expr_kind): Add new kind values.
30140         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
30141         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
30142         kinds.
30143         * tree.def (ANNOTATE_EXPR): Tweak comment.
30144
30145 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
30146
30147         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
30148         cxa_pure_virtual).
30149
30150 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
30151
30152         * tree.h (TYPE_IDENTIFIER): Declare.
30153         * tree.c (subrange_type_for_debug_p): Use it.
30154         * godump.c (go_format_type): Likewise.
30155         * dwarf2out.c (is_cxx_auto, modified_type_die,
30156         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
30157         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
30158
30159 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
30160
30161         PR lto/60820
30162         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
30163
30164 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
30165
30166         * config/i386/i386.c (examine_argument): Return bool.  Return true if
30167         parameter should be passed in memory.
30168         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
30169         (construct_container): Update calls to examine_argument.
30170         (function_arg_advance_64): Ditto.
30171         (return_in_memory_32): Merge with ix86_return_in_memory.
30172         (return_in_memory_64): Ditto.
30173         (return_in_memory_ms_64): Ditto.
30174
30175 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
30176
30177         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
30178         * coverage.c (coverage_compute_profile_id): Handle externally visible
30179         symbols.
30180
30181 2014-04-14  Martin Jambor  <mjambor@suse.cz>
30182
30183         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
30184         DECL_DISREGARD_INLINE_LIMITS functions.
30185
30186 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
30187
30188         PR target/60827
30189         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
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): Check
30195         optimize_insn_for_speed_p instead of
30196         optimize_function_for_speed_p.
30197
30198 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
30199
30200         * doc/invoke.texi (free): Document AArch64.
30201
30202 2014-04-14  Richard Biener  <rguenther@suse.de>
30203
30204         PR tree-optimization/60042
30205         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
30206         (insert_into_preds_of_block): Do not prevent PHI insertion
30207         for REFERENCE exprs here ...
30208         (eliminate_dom_walker::before_dom_children): ... but prevent
30209         their use here under similar conditions when applied to the
30210         IL after PRE optimizations.
30211
30212 2014-04-14  Richard Biener  <rguenther@suse.de>
30213
30214         * passes.def: Move early points-to after early SRA.
30215
30216 2014-04-14  Richard Biener  <rguenther@suse.de>
30217
30218         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
30219         check for which sign-changes we allow when forwarding
30220         a converted value into a switch.
30221
30222 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
30223
30224         * stor-layout.c (place_field): Finalize non-constant offset for the
30225         field, if any.
30226
30227 2014-04-14  Richard Biener  <rguenther@suse.de>
30228
30229         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
30230         as argument.
30231         (expand_switch_using_bit_tests_p): Likewise.
30232         (process_switch): Compute and pass on speed_p based on the
30233         switch stmt.
30234         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
30235         optimize_bb_for_speed_p.
30236
30237 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
30238
30239         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
30240         * function.h (struct function): Rename has_force_vect_loops into
30241         has_force_vectorize_loops.
30242         * lto-streamer-in.c (input_cfg): Adjust for renaming.
30243         (input_struct_function_base): Likewise.
30244         * lto-streamer-out.c (output_cfg): Likewise.
30245         (output_struct_function_base): Likewise.
30246         * omp-low.c (expand_omp_simd): Likewise.
30247         * tree-cfg.c (move_sese_region_to_fn): Likewise.
30248         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
30249         (version_loop_for_if_conversion): Likewise.
30250         (tree_if_conversion): Likewise.
30251         (main_tree_if_conversion): Likewise.
30252         (gate_tree_if_conversion): Likewise.
30253         * tree-inline.c (copy_loops): Likewise.
30254         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
30255         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
30256         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
30257         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
30258         * tree-vectorizer.c (vectorize_loops): Likewise.
30259         * tree-vectorizer.h (unlimited_cost_model): Likewise.
30260
30261 2014-04-14  Richard Biener  <rguenther@suse.de>
30262
30263         PR lto/60720
30264         * lto-streamer-out.c (wrap_refs): New function.
30265         (lto_output): Wrap symbol references in global initializes in
30266         type-preserving MEM_REFs.
30267
30268 2014-04-14  Christian Bruel  <christian.bruel@st.com>
30269
30270         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
30271
30272 2014-04-14  Christian Bruel  <christian.bruel@st.com>
30273
30274         * config/sh/sh.md (setmemqi): New expand pattern.
30275         * config/sh/sh.h (CLEAR_RATIO): Define.
30276         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
30277         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
30278
30279 2014-04-14  Richard Biener  <rguenther@suse.de>
30280
30281         PR middle-end/55022
30282         * fold-const.c (negate_expr_p): Don't negate directional rounding
30283         division.
30284         (fold_negate_expr): Likewise.
30285
30286 2014-04-14  Richard Biener  <rguenther@suse.de>
30287
30288         PR tree-optimization/59817
30289         PR tree-optimization/60453
30290         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
30291         recursion to catch all CHRECs in the scalar evolution and restrict
30292         the predicate for the remains appropriately.
30293
30294 2014-04-12  Catherine Moore  <clm@codesourcery.com>
30295
30296         * config/mips/constraints.md: Add new register constraint "kb".
30297         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
30298         (*movhi_internal): Likewise.
30299         (*movqi_internal): Likewise.
30300         * config/mips/mips.h (M16_STORE_REGS): New register class.
30301         (REG_CLASS_NAMES): Add M16_STORE_REGS.
30302         (REG_CLASS_CONTENTS): Likewise.
30303         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
30304
30305 2014-04-11  Tobias Burnus  <burnus@net-b.de>
30306
30307         PR c/60194
30308         * doc/invoke.texi (-Wformat-signedness): Document it.
30309         (Wformat=2): Mention that this enables -Wformat-signedness.
30310
30311 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
30312
30313         * common/config/epiphany/epiphany-common.c
30314         (epiphany_option_optimization_table): Enable section anchors by
30315         default at -O1 or higher.
30316         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
30317         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
30318         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
30319         carries no extra cost.
30320         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
30321         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
30322         * config/epiphany/predicates.md (memclob_operand): New predicate.
30323         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
30324         Use memclob_operand predicate and X constraint for operand 3.
30325
30326 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
30327
30328         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
30329         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
30330         its operands.
30331
30332 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
30333
30334         PR rtl-optimization/60651
30335         * mode-switching.c (optimize_mode_switching): Make sure to emit
30336         sets of a lower numbered entity before sets of a higher numbered
30337         entity to a mode of the same or lower priority.
30338         When creating a seginfo for a basic block that starts with a code
30339         label, move the insertion point past the code label.
30340         (new_seginfo): Document and enforce requirement that
30341         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
30342         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
30343         * doc/tm.texi: Regenerate.
30344
30345 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
30346
30347         PR target/60811
30348         * config/arc/arc.c (arc_save_restore): Fix assert typo.
30349
30350 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
30351
30352         * BASE-VER: Set to 4.10.0.
30353
30354 2014-04-11  Tobias Burnus  <burnus@net-b.de>
30355
30356         PR other/59055
30357         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
30358         * doc/gcc.texi (Service): Update description in the @menu
30359         * doc/invoke.texi (Option Summary): Remove misplaced and
30360         duplicated @menu.
30361
30362 2014-04-11  Steve Ellcey  <sellcey@mips.com>
30363             Jakub Jelinek  <jakub@redhat.com>
30364
30365         PR middle-end/60556
30366         * expr.c (convert_move): Use emit_store_flag_force instead of
30367         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
30368         argument to it.
30369
30370 2014-04-11  Richard Biener  <rguenther@suse.de>
30371
30372         PR middle-end/60797
30373         * varasm.c (assemble_alias): Avoid endless error reporting
30374         recursion by setting TREE_ASM_WRITTEN.
30375
30376 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30377
30378         * config/s390/s390.md: Add a splitter for NOT rtx.
30379
30380 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
30381
30382         PR rtl-optimization/60663
30383         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
30384
30385 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
30386             Jakub Jelinek  <jakub@redhat.com>
30387
30388         PR lto/60567
30389         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
30390         flag from decl_node to node.
30391
30392 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30393
30394         PR debug/60655
30395         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
30396         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
30397         ameliorating the cases where it can be.
30398
30399 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
30400
30401         Revert
30402         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
30403
30404         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
30405         (loadsync_<mode>): Change mode.
30406         (load_quadpti, store_quadpti): New.
30407         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
30408         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
30409         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
30410
30411 2014-04-09  Cong Hou  <congh@google.com>
30412
30413         PR testsuite/60773
30414         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
30415         documentation.
30416
30417 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30418
30419         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
30420         instead of vnor to exploit possible fusion opportunity in the
30421         future.
30422         (altivec_expand_vec_perm_const_le): Likewise.
30423
30424 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
30425
30426         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
30427         (loadsync_<mode>): Change mode.
30428         (load_quadpti, store_quadpti): New.
30429         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
30430         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
30431
30432 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
30433
30434         PR target/60763
30435         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
30436         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
30437         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
30438
30439 2014-04-08  Richard Biener  <rguenther@suse.de>
30440
30441         PR middle-end/60706
30442         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
30443         a 64bit widest int print double-int similar to on HWI64 hosts.
30444
30445 2014-04-08  Richard Biener  <rguenther@suse.de>
30446
30447         PR tree-optimization/60785
30448         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
30449         default defs properly.
30450
30451 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
30452
30453         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
30454         (Weffc++): Likewise.
30455
30456 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
30457
30458         * ipa-devirt.c (maybe_record_node): When node is not recorded,
30459         set completep to false rather than true.
30460
30461 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
30462
30463         PR target/60504
30464         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
30465         ARM_TARGET2_DWARF_FORMAT.
30466
30467 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
30468
30469         PR target/60609
30470         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
30471         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
30472         ADDR_DIFF_VEC.
30473
30474 2014-04-07  Richard Biener  <rguenther@suse.de>
30475
30476         PR tree-optimization/60766
30477         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
30478         (may_eliminate_iv): Convert cand_value_at result to desired type.
30479
30480 2014-04-07  Jason Merrill  <jason@redhat.com>
30481
30482         PR c++/60731
30483         * common.opt (-fno-gnu-unique): Add.
30484         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
30485
30486 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30487
30488         * haifa-sched.c: Fix outdated function reference and minor
30489         grammar errors in introductory comment.
30490
30491 2014-04-07  Richard Biener  <rguenther@suse.de>
30492
30493         PR middle-end/60750
30494         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
30495         for noreturn calls.
30496         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
30497
30498 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
30499
30500         PR debug/55794
30501         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
30502         size accounting for thunks.
30503         (pa_asm_output_mi_thunk): Use final_start_function() and
30504         final_end_function() to output function start and end directives.
30505
30506 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
30507
30508         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
30509         device specific ISA/ feature information. Remove short_sp and
30510         errata_skip ds.  Add avr_device_specific_features enum to have device
30511         specific info.
30512         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
30513         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
30514         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
30515         updated device specific info.
30516         * config/avr/avr-mcus.def: Merge device specific details to
30517         dev_attribute field.
30518         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
30519         errata_skip.
30520         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
30521         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
30522         assembler if RMW isa supported by current device.
30523         * config/avr/genmultilib.awk: Update as device info structure changed.
30524         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
30525
30526 2014-04-04  Cong Hou  <congh@google.com>
30527
30528         PR tree-optimization/60656
30529         * tree-vect-stmts.c (supportable_widening_operation):
30530         Fix a bug that elements in a vector with vect_used_by_reduction
30531         property are incorrectly reordered when the operation on it is not
30532         consistant with the one in reduction operation.
30533
30534 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
30535
30536         PR rtl-optimization/60155
30537         * gcse.c (record_set_data): New function.
30538         (single_set_gcse): New function.
30539         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
30540         (hoist_code): Likewise.
30541         (get_pressure_class_and_nregs): Likewise.
30542
30543 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
30544
30545         * explow.c (probe_stack_range): Emit a final optimization blockage.
30546
30547 2014-04-04  Anthony Green  <green@moxielogic.com>
30548
30549         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
30550         typos.
30551
30552 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
30553
30554         PR ipa/59626
30555         * lto-cgraph.c (input_overwrite_node): Check that partitioning
30556         flags are set only during streaming.
30557         * ipa.c (process_references, walk_polymorphic_call_targets,
30558         symtab_remove_unreachable_nodes): Drop bodies of always inline
30559         after early inlining.
30560         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
30561
30562 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
30563         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30564
30565         PR debug/60655
30566         * dwarf2out.c (const_ok_for_output_1): Reject expressions
30567         containing a NOT.
30568
30569 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30570
30571         PR bootstrap/60743
30572         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
30573         duration.
30574         (cortex_a53_fdivd): Likewise.
30575
30576 2014-04-04  Martin Jambor  <mjambor@suse.cz>
30577
30578         PR ipa/60640
30579         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
30580         Adjust all callers.
30581         * cgraph.c (clone_of_p): Also return true if thunks match.
30582         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
30583         cgraph_function_or_thunk_node and an obsolete comment.
30584         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
30585         file.
30586         (build_function_decl_skip_args): Likewise.
30587         (set_new_clone_decl_and_node_flags): New function.
30588         (duplicate_thunk_for_node): Likewise.
30589         (redirect_edge_duplicating_thunks): Likewise.
30590         (cgraph_clone_node): New parameter args_to_skip, pass it to
30591         redirect_edge_duplicating_thunks which is called instead of
30592         cgraph_redirect_edge_callee.
30593         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
30594         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
30595
30596 2014-04-04  Jeff Law  <law@redhat.com>
30597
30598         PR target/60657
30599         * config/arm/predicates.md (const_int_I_operand): New predicate.
30600         (const_int_M_operand): Similarly.
30601         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
30602         const_int_operand.
30603         (insv_t2, extv_reg, extzv_t2): Likewise.
30604         (load_multiple_with_writeback): Similarly for const_int_I_operand.
30605         (pop_multiple_with_writeback_and_return): Likewise.
30606         (vfp_pop_multiple_with_writeback): Likewise
30607
30608 2014-04-04  Richard Biener  <rguenther@suse.de>
30609
30610         PR ipa/60746
30611         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
30612         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
30613         non-GIMPLE_LABELs.
30614         * gimplify.h (gimple_add_tmp_var_fn): Declare.
30615         * gimplify.c (gimple_add_tmp_var_fn): New function.
30616         * gimple-expr.h (create_tmp_reg_fn): Declare.
30617         * gimple-expr.c (create_tmp_reg_fn): New function.
30618         * gimple-low.c (record_vars_into): Don't change cfun.
30619         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
30620         code generation without cfun.
30621
30622 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
30623
30624         PR bootstrap/60719
30625         * Makefile.in (install-driver): Fix shell scripting.
30626
30627 2014-04-03  Cong Hou  <congh@google.com>
30628
30629         PR tree-optimization/60505
30630         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
30631         threshold of number of iterations below which no vectorization
30632         will be done.
30633         * tree-vect-loop.c (new_loop_vec_info):
30634         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
30635         * tree-vect-loop.c (vect_analyze_loop_operations):
30636         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
30637         * tree-vect-loop.c (vect_transform_loop):
30638         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
30639         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
30640         of iterations of the loop and see if we should build the epilogue.
30641
30642 2014-04-03  Richard Biener  <rguenther@suse.de>
30643
30644         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
30645         (streamer_tree_cache_create): Adjust.
30646         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
30647         to allow optional nodes array.
30648         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
30649         (streamer_tree_cache_append): Likewise.
30650         (streamer_tree_cache_create): Create nodes array optionally
30651         as specified by parameter.
30652         * lto-streamer-out.c (create_output_block): Avoid maintaining
30653         the node array in the writer cache.
30654         (DFS_write_tree): Remove assertion.
30655         (produce_asm_for_decls): Free the out decl state hash table early.
30656         * lto-streamer-in.c (lto_data_in_create): Adjust for
30657         streamer_tree_cache_create prototype change.
30658
30659 2014-04-03  Richard Biener  <rguenther@suse.de>
30660
30661         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
30662         set TREE_CHAIN to NULL_TREE.
30663
30664 2014-04-03  Richard Biener  <rguenther@suse.de>
30665
30666         PR tree-optimization/60740
30667         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
30668         over all GIMPLE_COND operands.
30669
30670 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
30671
30672         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
30673         (Weffc++): Remove Scott's numbering, merge lists and reference
30674         Wnon-virtual-dtor.
30675
30676 2014-04-03  Nick Clifton  <nickc@redhat.com>
30677
30678         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
30679         properly.
30680
30681 2014-04-03  Martin Jambor  <mjambor@suse.cz>
30682
30683         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
30684         mention gcc_unreachable before failing.
30685         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
30686         removed symbols.
30687
30688 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
30689
30690         PR ipa/60659
30691         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
30692         inconsistent code and instead mark the context inconsistent.
30693         (possible_polymorphic_call_targets): For inconsistent contexts
30694         return empty complete list.
30695
30696 2014-04-02  Anthony Green  <green@moxielogic.com>
30697
30698         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
30699         (extendqisi2, extendhisi2): Define.
30700         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
30701         (WCHAR_TYPE): Change to unsigned int.
30702
30703 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30704
30705         PR tree-optimization/60733
30706         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
30707         insertion point for PHI candidates to be the end of the feeding
30708         block for the PHI argument.
30709
30710 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
30711
30712         PR rtl-optimization/60650
30713         * lra-constraints.c (process_alt_operands): Decrease reject for
30714         earlyclobber matching.
30715
30716 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30717
30718         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
30719
30720 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30721
30722         * config/spu/spu.c (pad_bb): Do not crash when the last
30723         insn is CODE_FOR_blockage.
30724
30725 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30726
30727         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
30728         lies outside the target mode.
30729
30730 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
30731
30732         PR target/60735
30733         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
30734         software floating point or no floating point registers, do not
30735         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
30736         in GPRs that occurs after we tested for GPRs that would never be
30737         true.
30738
30739         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
30740         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
30741         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
30742         specifically allow DDmode, since that does not use the SPE SIMD
30743         instructions.
30744
30745 2014-04-02  Richard Biener  <rguenther@suse.de>
30746
30747         PR middle-end/60729
30748         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
30749         MODE_INTs.  Properly use negv_optab.
30750         (expand_abs): Likewise.
30751
30752 2014-04-02  Richard Biener  <rguenther@suse.de>
30753
30754         PR bootstrap/60719
30755         * Makefile.in (install-driver): Guard extra installs with special
30756         names properly.
30757
30758 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
30759
30760         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30761         Document vec_vgbbd.
30762
30763 2014-04-01  Richard Henderson  <rth@redhat.com>
30764
30765         PR target/60704
30766         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
30767         alternative enabled before register allocation.
30768
30769 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
30770
30771         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
30772         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
30773         typo.
30774         (nios2_large_got_address): Remove unneeded 'sym' parameter.
30775         (nios2_got_address): Update nios2_large_got_address call site.
30776         (nios2_delegitimize_address): New function.
30777         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
30778         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
30779         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
30780
30781 2014-04-01  Martin Husemann  <martin@duskware.de>
30782
30783         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
30784         for -mabi=32.
30785
30786 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
30787
30788         PR rtl-optimization/60604
30789         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
30790         check from register_operand.
30791         (register_operand): Redefine in terms of general_operand.
30792         (nonmemory_operand): Use register_operand for the non-constant cases.
30793
30794 2014-04-01  Richard Biener  <rguenther@suse.de>
30795
30796         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
30797
30798 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
30799
30800         * doc/invoke.texi (mapp-regs): Clarify.
30801
30802 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
30803
30804         * config/i386/avx512fintrin.h (__v32hi): Define type.
30805         (__v64qi): Likewise.
30806         (_mm512_set1_epi8): Define.
30807         (_mm512_set1_epi16): Define.
30808         (_mm512_set4_epi32): Define.
30809         (_mm512_set4_epi64): Define.
30810         (_mm512_set4_pd): Define.
30811         (_mm512_set4_ps): Define.
30812         (_mm512_setr4_epi64): Define.
30813         (_mm512_setr4_epi32): Define.
30814         (_mm512_setr4_pd): Define.
30815         (_mm512_setr4_ps): Define.
30816         (_mm512_setzero_epi32): Define.
30817
30818 2014-03-31  Martin Jambor  <mjambor@suse.cz>
30819
30820         PR middle-end/60647
30821         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
30822         callsite_arguments_match_p.  Updated all callers.  Also check types of
30823         corresponding formal parameters and actual arguments.
30824         (not_all_callers_have_enough_arguments_p) Renamed to
30825         some_callers_have_mismatched_arguments_p.
30826
30827 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
30828
30829         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
30830
30831 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
30832
30833         PR target/60034
30834         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
30835         section anchor.
30836
30837 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
30838
30839         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
30840         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
30841         Split out
30842         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
30843         Use FMAMODE_NOVF512 mode iterator.
30844         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
30845         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
30846         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
30847         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
30848         Split out
30849         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
30850         Use VF_128_256 mode iterator.
30851         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
30852         Ditto.
30853
30854 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
30855
30856         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
30857         static chain if needed.
30858
30859 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
30860
30861         PR target/60697
30862         * lra-constraints.c (index_part_to_reg): New.
30863         (process_address): Use it.
30864
30865 2014-03-27  Jeff Law  <law@redhat.com>
30866             Jakub Jelinek  <jakub@redhat.com>
30867
30868         PR target/60648
30869         * expr.c (do_tablejump): Use simplify_gen_binary rather than
30870         gen_rtx_{PLUS,MULT} to build up the address expression.
30871
30872         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
30873         creating non-canonical RTL.
30874
30875 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
30876
30877         PR ipa/60243
30878         * ipa-inline.c (want_inline_small_function_p): Short circuit large
30879         functions; reorganize to make cheap checks first.
30880         (inline_small_functions): Do not estimate growth when dumping;
30881         it is expensive.
30882         * ipa-inline.h (inline_summary): Add min_size.
30883         (growth_likely_positive): New function.
30884         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
30885         (set_cond_stmt_execution_predicate): Cleanup.
30886         (estimate_edge_size_and_time): Compute min_size.
30887         (estimate_calls_size_and_time): Likewise.
30888         (estimate_node_size_and_time): Likewise.
30889         (inline_update_overall_summary): Update min_size.
30890         (do_estimate_edge_time): Likewise.
30891         (do_estimate_edge_size): Update.
30892         (do_estimate_edge_hints): Update.
30893         (growth_likely_positive): New function.
30894
30895 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
30896
30897         PR target/60693
30898         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
30899         also if addr has VOIDmode.
30900
30901 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30902
30903         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
30904         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
30905         Declare extern.
30906         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
30907         instructions as well as AdvancedSIMD loads.
30908
30909 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30910
30911         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
30912         Use crypto_aese type.
30913         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
30914         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
30915         crypto_aese, crypto_aesmc.  Move to types.md.
30916         * config/arm/types.md (crypto_aes): Split into crypto_aese,
30917         crypto_aesmc.
30918         * config/arm/iterators.md (crypto_type): Likewise.
30919
30920 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
30921
30922         * cgraph.c: Include expr.h and tree-dfa.h.
30923         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
30924         remove LHS.
30925
30926 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
30927
30928         PR target/60675
30929         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
30930         regs from checking multi-reg pseudos.
30931
30932 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30933
30934         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
30935
30936 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30937
30938         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
30939         if it would clobber the stack pointer, even temporarily.
30940
30941 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
30942
30943         * mode-switching.c: Make small adjustments to the top comment.
30944
30945 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
30946
30947         * config/rs6000/constraints.md (wD constraint): New constraint to
30948         match the constant integer to get the top DImode/DFmode out of a
30949         vector in a VSX register.
30950
30951         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
30952         match the constant integer to get the top DImode/DFmode out of a
30953         vector in a VSX register.
30954
30955         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
30956         for ISA 2.07.
30957
30958         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
30959         vbpermq builtins.
30960
30961         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
30962         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
30963
30964         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
30965         Optimize vec_extract of 64-bit values, where the value being
30966         extracted is in the top word, where we can use scalar
30967         instructions.  Add direct move and store support.  Combine the big
30968         endian/little endian vector select load support into a single insn.
30969         (vsx_extract_<mode>_internal1): Likewise.
30970         (vsx_extract_<mode>_internal2): Likewise.
30971         (vsx_extract_<mode>_load): Likewise.
30972         (vsx_extract_<mode>_store): Likewise.
30973         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
30974         combined into vsx_extract_<mode>_load.
30975         (vsx_extract_<mode>_one_le): Likewise.
30976
30977         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
30978         define the top 64-bit vector element.
30979
30980         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
30981         constraint.
30982
30983         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30984         Document vec_vbpermq builtin.
30985
30986         PR target/60672
30987         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
30988         enable use of xxsldwi and xxpermdi builtin functions.
30989         (vec_xxpermdi): Likewise.
30990
30991         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30992         Document use of vec_xxsldwi and vec_xxpermdi builtins.
30993
30994 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
30995
30996         PR rtl-optimization/60650
30997         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
30998         first_p.  Use it.
30999         (find_spills_for): New.
31000         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
31001         Spill all pseudos on the second iteration.
31002
31003 2014-03-27  Marek Polacek  <polacek@redhat.com>
31004
31005         PR c/50347
31006         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
31007         types.
31008
31009 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31010
31011         * config/s390/s390.c (s390_can_use_return_insn): Check for
31012         call-saved FPRs on 31 bit.
31013
31014 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
31015
31016         PR middle-end/60682
31017         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
31018         if they need regimplification, just drop them instead of
31019         calling gimple_regimplify_operands on them.
31020
31021 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
31022
31023         PR target/60580
31024         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
31025         (aarch64_frame_pointer_required): Adjust logic.
31026         (aarch64_can_eliminate): Adjust logic.
31027         (aarch64_override_options_after_change): Adjust logic.
31028
31029 2014-03-27  Dehao Chen  <dehao@google.com>
31030
31031         * ipa-inline.c (early_inliner): Update node's inline info.
31032
31033 2014-03-26  Dehao Chen  <dehao@google.com>
31034
31035         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
31036         compiler inserted conditional jumps for NAN float check.
31037
31038 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
31039
31040         * ubsan.h (ubsan_create_data): Change second argument's type
31041         to const location_t *.
31042         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
31043         _("<unknown>").
31044         (ubsan_create_data): Change second argument to const location_t *PLOC.
31045         Create Loc field whenever PLOC is non-NULL.
31046         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
31047         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
31048         callers.
31049
31050         PR other/59545
31051         * real.c (real_to_integer2): Change type of low to UHWI.
31052
31053 2014-03-26  Tobias Burnus  <burnus@net-b.de>
31054
31055         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
31056         (CILK_SELF_SPECS): New define.
31057         (driver_self_specs): Use it.
31058
31059 2014-03-26  Richard Biener  <rguenther@suse.de>
31060
31061         * tree-pretty-print.c (percent_K_format): Implement special
31062         case for LTO and its stripped down BLOCK tree.
31063
31064 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
31065
31066         PR sanitizer/60636
31067         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
31068
31069         * tree-vrp.c (simplify_internal_call_using_ranges): If only
31070         one range is range_int_cst_p, but not both, at least optimize
31071         addition/subtraction of 0 and multiplication by 0 or 1.
31072         * gimple-fold.c (gimple_fold_call): Fold
31073         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
31074         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
31075         INTEGER_CSTs, try to fold at least x * 0 and y - y.
31076
31077 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
31078
31079         PR rtl-optimization/60452
31080         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
31081         <case REG>: Return 1 for invalid offsets from the frame pointer.
31082
31083 2014-03-26  Marek Polacek  <polacek@redhat.com>
31084
31085         PR c/37428
31086         * doc/extend.texi (C Extensions): Mention variable-length arrays in
31087         a structure/union.
31088
31089 2014-03-26  Marek Polacek  <polacek@redhat.com>
31090
31091         PR c/39525
31092         * doc/extend.texi (Designated Inits): Describe what happens to omitted
31093         field members.
31094
31095 2014-03-26  Marek Polacek  <polacek@redhat.com>
31096
31097         PR other/59545
31098         * ira-color.c (update_conflict_hard_regno_costs): Perform the
31099         multiplication in unsigned type.
31100
31101 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
31102
31103         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
31104
31105 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
31106
31107         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
31108
31109 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
31110
31111         PR ipa/60315
31112         * cif-code.def (UNREACHABLE) New code.
31113         * ipa-inline.c (inline_small_functions): Skip edges to
31114         __builtlin_unreachable.
31115         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
31116         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
31117         predicate to __bulitin_unreachable.
31118         (set_cond_stmt_execution_predicate): Fix issue when
31119         invert_tree_comparison returns ERROR_MARK.
31120         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
31121         propagate to inline clones.
31122         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
31123         to unreachable.
31124         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
31125         * cgraphclones.c (cgraph_clone_node): If call destination is already
31126         ureachable, do not redirect it back.
31127         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
31128         unreachable.
31129
31130 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
31131
31132         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
31133         Do not modify inline clones.
31134
31135 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
31136
31137         * config/i386/i386.md (general_sext_operand): New mode attr.
31138         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
31139         don't generate (sign_extend (const_int)).
31140         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
31141         operands[2].  Use We constraint instead of <i> and
31142         <general_sext_operand> predicate instead of <general_operand>.
31143         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
31144         * config/i386/constraints.md (We): New constraint.
31145         * config/i386/predicates.md (x86_64_sext_operand,
31146         sext_operand): New predicates.
31147
31148 2014-03-25  Martin Jambor  <mjambor@suse.cz>
31149
31150         PR ipa/60600
31151         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
31152         inconsistent devirtualizations to __builtin_unreachable.
31153
31154 2014-03-25  Marek Polacek  <polacek@redhat.com>
31155
31156         PR c/35449
31157         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
31158
31159 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
31160
31161         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
31162         order of elements for big-endian.
31163
31164 2014-03-25  Richard Biener  <rguenther@suse.de>
31165
31166         PR middle-end/60635
31167         * gimplify-me.c (gimple_regimplify_operands): Update the
31168         re-gimplifed stmt.
31169
31170 2014-03-25  Martin Jambor  <mjambor@suse.cz>
31171
31172         PR ipa/59176
31173         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
31174         (lto_output_varpool_node): Likewise.
31175         (input_overwrite_node): Likewise.
31176         (input_varpool_node): Likewise.
31177
31178 2014-03-25  Richard Biener  <rguenther@suse.de>
31179
31180         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
31181         (run_gcc): Likewise.
31182
31183 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
31184
31185         * combine.c (simplify_compare_const): Add MODE argument.
31186         Handle mode_width 0 as very large mode_width.
31187         (try_combine, simplify_comparison): Adjust callers.
31188
31189         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
31190         type to avoid signed integer overflow.
31191         * explow.c (plus_constant): Likewise.
31192
31193 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
31194
31195         * doc/generic.texi: Correct typos.
31196
31197 2014-03-24  Tobias Burnus  <burnus@net-b.de>
31198
31199         * doc/invoke.texi (-flto): Expand section about
31200         using static libraries with LTO.
31201
31202 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31203
31204         PR rtl-optimization/60501
31205         * optabs.def (addptr3_optab): New optab.
31206         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
31207         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
31208         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
31209
31210         * lra.c (emit_add3_insn): Use the addptr pattern if available.
31211
31212         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
31213
31214 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
31215
31216         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
31217         _mm512_set1_pd.
31218
31219         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
31220         (_mm256_undefined_ps): Define.
31221         (_mm256_undefined_pd): Define.
31222         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
31223         (_mm_undefined_pd): Define.
31224         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
31225         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
31226         (_mm512_undefined_ps): Define.
31227         (_mm512_undefined_pd): Define.
31228         Use _mm*_undefined_*.
31229         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
31230
31231 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
31232
31233         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
31234         (lshr_simd): DI mode added.
31235         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
31236         (aarch64_ushr_simddi): Likewise.
31237         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
31238         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
31239         (vshrd_n_u64): Likewise.
31240
31241 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31242
31243         * Makefile.in (s-macro_list): Depend on cc1.
31244
31245 2014-03-23  Teresa Johnson  <tejohnson@google.com>
31246
31247         * ipa-utils.c (ipa_print_order): Use specified dump file.
31248
31249 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
31250
31251         PR rtl-optimization/60601
31252         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
31253
31254         * gcc.c (eval_spec_function): Initialize save_growing_value.
31255
31256 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
31257
31258         PR sanitizer/60613
31259         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
31260         code == MINUS_EXPR, never swap op0 with op1.
31261
31262         * toplev.c (init_local_tick): Avoid signed integer multiplication
31263         overflow.
31264         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
31265         shift by first operand's bitsize.
31266
31267 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
31268
31269         PR target/60610
31270         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
31271         redefine to 1 or 0.
31272         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
31273         TARGET_ISA_64BIT_P(x).
31274
31275 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31276
31277         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
31278         pattern for vector nor instead of subtract from splat(-1).
31279         (altivec_expand_vec_perm_const_le): Likewise.
31280
31281 2014-03-21  Richard Henderson  <rth@twiddle.net>
31282
31283         PR target/60598
31284         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
31285         related insns after epilogue_completed.
31286
31287 2014-03-21  Martin Jambor  <mjambor@suse.cz>
31288
31289         PR ipa/59176
31290         * cgraph.h (symtab_node): New flag body_removed.
31291         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
31292         when removing bodies.
31293         * symtab.c (dump_symtab_base): Dump body_removed flag.
31294         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
31295         had their bodies removed.
31296
31297 2014-03-21  Martin Jambor  <mjambor@suse.cz>
31298
31299         PR ipa/60419
31300         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
31301         in the border.
31302
31303 2014-03-21  Richard Biener  <rguenther@suse.de>
31304
31305         PR tree-optimization/60577
31306         * tree-core.h (struct tree_base): Document nothrow_flag use
31307         in DECL_NONALIASED.
31308         * tree.h (DECL_NONALIASED): New.
31309         (may_be_aliased): Adjust.
31310         * coverage.c (build_var): Set DECL_NONALIASED.
31311
31312 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
31313
31314         * expr.c (expand_expr_real_1): Remove outdated comment.
31315
31316 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
31317
31318         PR middle-end/60597
31319         * ira.c (adjust_cleared_regs): Call copy_rtx on
31320         *reg_equiv[REGNO (loc)].src_p before passing it to
31321         simplify_replace_fn_rtx.
31322
31323         PR target/60568
31324         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
31325         into CONST, put pic register as first operand of PLUS.  Use
31326         gen_const_mem for both 32-bit and 64-bit PIC got loads.
31327
31328 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31329
31330         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
31331
31332 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
31333
31334         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
31335         around for store forwarding issue in the FPU on the UT699.
31336         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
31337         loads and operations if -mfix-ut699 is specified.
31338         (divtf3_hq): Tweak attribute.
31339         (sqrttf2_hq): Likewise.
31340
31341 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
31342
31343         * calls.c (store_one_arg): Remove incorrect const qualification on the
31344         type of the temporary.
31345         * cfgexpand.c (expand_return): Likewise.
31346         * expr.c (expand_constructor): Likewise.
31347         (expand_expr_real_1): Likewise.
31348
31349 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
31350
31351         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
31352         of parts.
31353
31354 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
31355
31356         PR target/60039
31357         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
31358
31359 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
31360
31361         * config/arm/aarch-common-protos.h
31362         (alu_cost_table): Fix spelling of "extend".
31363         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
31364
31365 2014-03-19  Richard Biener  <rguenther@suse.de>
31366
31367         PR middle-end/60553
31368         * tree-core.h (tree_type_common): Re-order pointer members
31369         to reduce recursion depth during GC walks.
31370
31371 2014-03-19  Marek Polacek  <polacek@redhat.com>
31372
31373         PR sanitizer/60569
31374         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
31375         before accessing it.
31376
31377 2014-03-19  Richard Biener  <rguenther@suse.de>
31378
31379         PR lto/59543
31380         * lto-streamer-in.c (input_function): In WPA stage do not drop
31381         debug stmts.
31382
31383 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
31384
31385         PR tree-optimization/60559
31386         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
31387         with build_zero_cst assignment.
31388
31389 2014-03-18  Kai Tietz  <ktietz@redhat.com>
31390
31391         PR rtl-optimization/56356
31392         * sdbout.c (sdbout_parms): Verify that parms'
31393         incoming argument is valid.
31394         (sdbout_reg_parms): Likewise.
31395
31396 2014-03-18  Richard Henderson  <rth@redhat.com>
31397
31398         PR target/60562
31399         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
31400         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
31401         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
31402
31403 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
31404
31405         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
31406         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
31407         Italicize plugin event names in description.  Explain that
31408         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
31409         Remind that no GCC functions should be called after PLUGIN_FINISH.
31410         Explain what pragmas with expansion are.
31411
31412 2014-03-18  Martin Liska  <mliska@suse.cz>
31413
31414         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
31415         gimple call statement is update.
31416         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
31417         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
31418
31419 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
31420
31421         PR sanitizer/60557
31422         * ubsan.c (ubsan_instrument_unreachable): Call
31423         initialize_sanitizer_builtins.
31424         (ubsan_pass): Likewise.
31425
31426         PR sanitizer/60535
31427         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
31428         varpool_finalize_decl instead of rest_of_decl_compilation.
31429
31430 2014-03-18  Richard Biener  <rguenther@suse.de>
31431
31432         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
31433         by using bitmap_and_compl instead of bitmap_and_compl_into.
31434         (df_rd_transfer_function): Likewise.
31435
31436 2014-03-18  Richard Biener  <rguenther@suse.de>
31437
31438         * doc/lto.texi (fresolution): Fix typo.
31439
31440 2014-03-18  Richard Biener  <rguenther@suse.de>
31441
31442         * doc/invoke.texi (flto): Update for changes in 4.9.
31443
31444 2014-03-18  Richard Biener  <rguenther@suse.de>
31445
31446         * doc/loop.texi: Remove section on the removed lambda framework.
31447         Update loop docs with recent changes in preserving loop structure.
31448
31449 2014-03-18  Richard Biener  <rguenther@suse.de>
31450
31451         * doc/lto.texi (-fresolution): Document.
31452
31453 2014-03-18  Richard Biener  <rguenther@suse.de>
31454
31455         * doc/contrib.texi: Adjust my name.
31456
31457 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
31458
31459         PR ipa/58721
31460         * internal-fn.c: Include diagnostic-core.h.
31461         (expand_BUILTIN_EXPECT): New function.
31462         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
31463         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
31464         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
31465         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
31466         IFN_BUILTIN_EXPECT.
31467         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
31468         Revert 3 argument __builtin_expect code.
31469         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
31470         * gimple-fold.c (gimple_fold_call): Likewise.
31471         * tree.h (fold_builtin_expect): New prototype.
31472         * builtins.c (build_builtin_expect_predicate): Add predictor
31473         argument, if non-NULL, create 3 argument __builtin_expect.
31474         (fold_builtin_expect): No longer static.  Add ARG2 argument,
31475         pass it through to build_builtin_expect_predicate.
31476         (fold_builtin_2): Adjust caller.
31477         (fold_builtin_3): Handle BUILT_IN_EXPECT.
31478         * internal-fn.def (BUILTIN_EXPECT): New.
31479
31480 2014-03-18  Tobias Burnus  <burnus@net-b.de>
31481
31482         PR ipa/58721
31483         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
31484         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
31485         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
31486
31487 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
31488
31489         PR ipa/58721
31490         * predict.c (combine_predictions_for_bb): Fix up formatting.
31491         (expr_expected_value_1, expr_expected_value): Add predictor argument,
31492         fill what it points to if non-NULL.
31493         (tree_predict_by_opcode): Adjust caller, use the predictor.
31494         * predict.def (PRED_COMPARE_AND_SWAP): Add.
31495
31496 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
31497
31498         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
31499         proper constant for the store mode.
31500
31501 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
31502
31503         * symtab.c (change_decl_assembler_name): Fix transparent alias
31504         chain construction.
31505
31506 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
31507
31508         * config/aarch64/aarch64.c: Correct the comments about the
31509         aarch64 stack layout.
31510
31511 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
31512
31513         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
31514         check for GF_OMP_FOR_KIND_FOR.
31515
31516 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
31517
31518         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
31519         ymm and zmm register names.
31520
31521 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
31522
31523         PR target/60516
31524         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
31525         note creation for the 2010-08-31 changes.
31526
31527 2014-03-17  Marek Polacek  <polacek@redhat.com>
31528
31529         PR middle-end/60534
31530         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
31531         as -fno-tree-loop-vectorize.
31532         (expand_omp_simd): Likewise.
31533
31534 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
31535
31536         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
31537         (eligible_for_call_delay): New prototype.
31538         * config/sparc/sparc.c (tls_call_delay): Rename into...
31539         (eligible_for_call_delay): ...this.  Return false if the instruction
31540         cannot be put in the delay slot of a branch.
31541         (eligible_for_restore_insn): Simplify.
31542         (eligible_for_return_delay): Return false if the instruction cannot be
31543         put in the delay slot of a branch and simplify.
31544         (eligible_for_sibcall_delay): Return false if the instruction cannot be
31545         put in the delay slot of a branch.
31546         * config/sparc/sparc.md (fix_ut699): New attribute.
31547         (tls_call_delay): Delete.
31548         (in_call_delay): Reimplement.
31549         (eligible_for_sibcall_delay): Rename into...
31550         (in_sibcall_delay): ...this.
31551         (eligible_for_return_delay): Rename into...
31552         (in_return_delay): ...this.
31553         (in_branch_delay): Reimplement.
31554         (in_uncond_branch_delay): Delete.
31555         (in_annul_branch_delay): Delete.
31556
31557 2014-03-14  Richard Henderson  <rth@redhat.com>
31558
31559         PR target/60525
31560         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
31561         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
31562         (*floathi<X87MODEF>2_i387_with_temp): Remove.
31563         (floathi splitters): Remove.
31564         (float<SWI48x>xf2): New pattern.
31565         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
31566         code that tried to handle DImode for 32-bit, but which was excluded
31567         by the pattern's condition.  Drop allocation of stack temporary.
31568         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
31569         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
31570         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
31571         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
31572         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
31573         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
31574         (*float<SWI48><MODEF>2_sse_interunit): Remove.
31575         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
31576         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
31577         (*float<SWI48x><X87MODEF>2_i387): Remove.
31578         (all float _with_temp splitters): Remove.
31579         (*float<SWI48x><MODEF>2_i387): New pattern.
31580         (*float<SWI48><MODEF>2_sse): New pattern.
31581         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
31582         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
31583
31584 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
31585             Marek Polacek  <polacek@redhat.com>
31586
31587         PR middle-end/60484
31588         * common.opt (dump_base_name_prefixed): New Variable.
31589         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
31590         if x_dump_base_name_prefixed is already set, set it at the end.
31591
31592 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
31593
31594         PR rtl-optimization/60508
31595         * lra-constraints.c (get_reload_reg): Add new parameter
31596         in_subreg_p.
31597         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
31598         Pass the new parameter values.
31599
31600 2014-03-14  Richard Biener  <rguenther@suse.de>
31601
31602         * common.opt: Revert unintented changes from r205065.
31603         * opts.c: Likewise.
31604
31605 2014-03-14  Richard Biener  <rguenther@suse.de>
31606
31607         PR middle-end/60518
31608         * cfghooks.c (split_block): Properly adjust all loops the
31609         block was a latch of.
31610
31611 2014-03-14  Martin Jambor  <mjambor@suse.cz>
31612
31613         PR lto/60461
31614         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
31615         and simplify it.
31616
31617 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
31618
31619         PR target/59396
31620         * config/avr/avr.c (avr_set_current_function): Pass function name
31621         through default_strip_name_encoding before sanity checking instead
31622         of skipping the first char of the assembler name.
31623
31624 2014-03-13  Richard Henderson  <rth@redhat.com>
31625
31626         PR debug/60438
31627         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
31628         (ix86_force_to_memory, ix86_free_from_memory): Remove.
31629         * config/i386/i386-protos.h: Likewise.
31630         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
31631         in the expander instead of a splitter.
31632         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
31633         any possibility of requiring a memory.
31634         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
31635         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
31636         (fp branch splitters): Update for ix86_split_fp_branch.
31637         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
31638         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
31639         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
31640         (*fop_<MODEF>_2_i387): Remove f/r alternative.
31641         (*fop_<MODEF>_3_i387): Likewise.
31642         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
31643         (splitters for the fop_* register patterns): Remove.
31644         (fscalexf4_i387): Rename from *fscalexf4_i387.
31645         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
31646
31647 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
31648
31649         PR tree-optimization/59779
31650         * tree-dfa.c (get_ref_base_and_extent): Use double_int
31651         type for bitsize and maxsize instead of HOST_WIDE_INT.
31652
31653 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
31654
31655         PR rtl-optimization/57320
31656         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
31657         the CFG after thread_prologue_and_epilogue_insns.
31658
31659 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
31660
31661         PR rtl-optimization/57189
31662         * lra-constraints.c (process_alt_operands): Disfavor spilling
31663         vector pseudos.
31664
31665 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
31666
31667         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
31668
31669 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
31670
31671         PR tree-optimization/59025
31672         PR middle-end/60418
31673         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
31674         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
31675
31676 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
31677
31678         PR target/60486
31679         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
31680         calls of avr_out_plus_1.
31681
31682 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
31683
31684         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
31685         BB's single pred and update the father loop's latch info later.
31686
31687 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
31688
31689         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
31690         (VEC_M): Likewise.
31691         (VEC_N): Likewise.
31692         (VEC_R): Likewise.
31693         (VEC_base): Likewise.
31694         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
31695         registers, we need to swap double words in little endian mode.
31696
31697         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
31698         to be a container mode for 128-bit integer operations added in ISA
31699         2.07.  Unlike TImode and PTImode, the preferred register set is
31700         the Altivec/VMX registers for the 128-bit operations.
31701
31702         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
31703         declarations.
31704         (rs6000_split_128bit_ok_p): Likewise.
31705
31706         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
31707         macros for creating ISA 2.07 normal and overloaded builtin
31708         functions with 3 arguments.
31709         (BU_P8V_OVERLOAD_3): Likewise.
31710         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
31711         for use as overloaded functions.
31712         (VPERM_1TI_UNS): Likewise.
31713         (VSEL_1TI): Likewise.
31714         (VSEL_1TI_UNS): Likewise.
31715         (ST_INTERNAL_1ti): Likewise.
31716         (LD_INTERNAL_1ti): Likewise.
31717         (XXSEL_1TI): Likewise.
31718         (XXSEL_1TI_UNS): Likewise.
31719         (VPERM_1TI): Likewise.
31720         (VPERM_1TI_UNS): Likewise.
31721         (XXPERMDI_1TI): Likewise.
31722         (SET_1TI): Likewise.
31723         (LXVD2X_V1TI): Likewise.
31724         (STXVD2X_V1TI): Likewise.
31725         (VEC_INIT_V1TI): Likewise.
31726         (VEC_SET_V1TI): Likewise.
31727         (VEC_EXT_V1TI): Likewise.
31728         (EQV_V1TI): Likewise.
31729         (NAND_V1TI): Likewise.
31730         (ORC_V1TI): Likewise.
31731         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
31732         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
31733         overloaded builtin.
31734         (VADDUQM): Likewise.
31735         (VSUBCUQ): Likewise.
31736         (VADDEUQM): Likewise.
31737         (VADDECUQ): Likewise.
31738         (VSUBEUQM): Likewise.
31739         (VSUBECUQ): Likewise.
31740
31741         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
31742         __int128_t and __uint128_t types.
31743         (__uint128_type): Likewise.
31744         (altivec_categorize_keyword): Add support for vector __int128_t,
31745         vector __uint128_t, vector __int128, and vector unsigned __int128
31746         as a container type for TImode operations that need to be done in
31747         VSX/Altivec registers.
31748         (rs6000_macro_to_expand): Likewise.
31749         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
31750         to support 128-bit integer instructions vaddcuq, vadduqm,
31751         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
31752         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
31753
31754         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
31755         for V1TImode, and set up preferences to use VSX/Altivec registers.
31756         Setup VSX reload handlers.
31757         (rs6000_debug_reg_global): Likewise.
31758         (rs6000_init_hard_regno_mode_ok): Likewise.
31759         (rs6000_preferred_simd_mode): Likewise.
31760         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
31761         (easy_altivec_constant): Likewise.
31762         (output_vec_const_move): Likewise.
31763         (rs6000_expand_vector_set): Convert V1TImode set and extract to
31764         simple move.
31765         (rs6000_expand_vector_extract): Likewise.
31766         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
31767         addressing.
31768         (rs6000_const_vec): Add support for V1TImode.
31769         (rs6000_emit_le_vsx_load): Swap double words when loading or
31770         storing TImode/V1TImode.
31771         (rs6000_emit_le_vsx_store): Likewise.
31772         (rs6000_emit_le_vsx_move): Likewise.
31773         (rs6000_emit_move): Add support for V1TImode.
31774         (altivec_expand_ld_builtin): Likewise.
31775         (altivec_expand_st_builtin): Likewise.
31776         (altivec_expand_vec_init_builtin): Likewise.
31777         (altivec_expand_builtin): Likewise.
31778         (rs6000_init_builtins): Add support for V1TImode type.  Add
31779         support for ISA 2.07 128-bit integer builtins.  Define type names
31780         for the VSX/Altivec vector types.
31781         (altivec_init_builtins): Add support for overloaded vector
31782         functions with V1TImode type.
31783         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
31784         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
31785         external function.
31786         (rs6000_split_128bit_ok_p): Likewise.
31787         (rs6000_handle_altivec_attribute): Create V1TImode from vector
31788         __int128_t and vector __uint128_t.
31789
31790         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
31791         and mode attributes.
31792         (VSX_M): Likewise.
31793         (VSX_M2): Likewise.
31794         (VSm): Likewise.
31795         (VSs): Likewise.
31796         (VSr): Likewise.
31797         (VSv): Likewise.
31798         (VS_scalar): Likewise.
31799         (VS_double): Likewise.
31800         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
31801
31802         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
31803         we support the ISA 2.07 128-bit integer arithmetic instructions.
31804         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
31805         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
31806         and TImode types for use with the builtin functions.
31807         (V1TI_type_node): Likewise.
31808         (unsigned_V1TI_type_node): Likewise.
31809         (intTI_type_internal_node): Likewise.
31810         (uintTI_type_internal_node): Likewise.
31811
31812         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
31813         128-bit builtin functions.
31814         (UNSPEC_VADDEUQM): Likewise.
31815         (UNSPEC_VADDECUQ): Likewise.
31816         (UNSPEC_VSUBCUQ): Likewise.
31817         (UNSPEC_VSUBEUQM): Likewise.
31818         (UNSPEC_VSUBECUQ): Likewise.
31819         (VM): Add V1TImode to vector mode iterators.
31820         (VM2): Likewise.
31821         (VI_unit): Likewise.
31822         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
31823         (altivec_vaddcuq): Likewise.
31824         (altivec_vsubuqm): Likewise.
31825         (altivec_vsubcuq): Likewise.
31826         (altivec_vaddeuqm): Likewise.
31827         (altivec_vaddecuq): Likewise.
31828         (altivec_vsubeuqm): Likewise.
31829         (altivec_vsubecuq): Likewise.
31830
31831         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
31832         mode iterators.
31833         (BOOL_128): Likewise.
31834         (BOOL_REGS_OUTPUT): Likewise.
31835         (BOOL_REGS_OP1): Likewise.
31836         (BOOL_REGS_OP2): Likewise.
31837         (BOOL_REGS_UNARY): Likewise.
31838         (BOOL_REGS_AND_CR0): Likewise.
31839
31840         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
31841         128-bit integer builtin support.
31842         (vec_vadduqm): Likewise.
31843         (vec_vaddecuq): Likewise.
31844         (vec_vaddeuqm): Likewise.
31845         (vec_vsubecuq): Likewise.
31846         (vec_vsubeuqm): Likewise.
31847         (vec_vsubcuq): Likewise.
31848         (vec_vsubuqm): Likewise.
31849
31850         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
31851         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
31852         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
31853         128-bit integer add/subtract to ISA 2.07.
31854
31855 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
31856
31857         * config/arc/arc.c (arc_predicate_delay_insns):
31858         Fix third argument passed to conditionalize_nonjump.
31859
31860 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
31861
31862         * config/aarch64/aarch64-builtins.c
31863         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
31864         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
31865         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
31866         instead of __builtin_lfloor.
31867         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
31868
31869 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
31870
31871         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
31872         (tree_ssa_ifcombine_bb_1): New function.
31873         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
31874         is an empty forwarder block to then_bb or vice versa and then_bb
31875         and else_bb are effectively swapped.
31876
31877 2014-03-12  Christian Bruel  <christian.bruel@st.com>
31878
31879         PR target/60264
31880         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
31881         REG_CFA_DEF_CFA note.
31882         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
31883         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
31884
31885 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31886
31887         PR tree-optimization/60454
31888         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
31889
31890 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31891
31892         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
31893         Do not define target_cpu_default2 to generic.
31894         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
31895         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
31896         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
31897
31898 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
31899             Marc Glisse  <marc.glisse@inria.fr>
31900
31901         PR tree-optimization/60502
31902         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
31903         instead of build_low_bits_mask.
31904
31905 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
31906
31907         PR middle-end/60482
31908         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
31909         if there are multiple uses, but op doesn't live on E edge.
31910         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
31911         clobber stmts before __builtin_unreachable.
31912
31913 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
31914
31915         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
31916         hard_frame_pointer_rtx.
31917         * cse.c (cse_insn): Remove volatile check.
31918         * cselib.c (cselib_process_insn): Likewise.
31919         * dse.c (scan_insn): Likewise.
31920
31921 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
31922
31923         * config/arc/arc.c (conditionalize_nonjump): New function,
31924         broken out of ...
31925         (arc_ifcvt): ... this.
31926         (arc_predicate_delay_insns): Use it.
31927
31928 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
31929
31930         * config/arc/predicates.md (extend_operand): During/after reload,
31931         allow const_int_operand.
31932         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
31933         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
31934         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
31935         to "i".
31936         (umulsi3_highpart_i): Likewise.
31937
31938 2014-03-11  Richard Biener  <rguenther@suse.de>
31939
31940         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
31941         Add asserts to guard possible wrong-code bugs.
31942
31943 2014-03-11  Richard Biener  <rguenther@suse.de>
31944
31945         PR tree-optimization/60429
31946         PR tree-optimization/60485
31947         * tree-ssa-structalias.c (set_union_with_increment): Properly
31948         take into account all fields that overlap the shifted vars.
31949         (do_sd_constraint): Likewise.
31950         (do_ds_constraint): Likewise.
31951         (get_constraint_for_ptr_offset): Likewise.
31952
31953 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
31954
31955         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
31956         (nios2_compute_frame_layout):
31957         Add calculation of cfun->machine->fp_save_offset.
31958         (nios2_expand_prologue): Correct setting of frame pointer register
31959         in prologue.
31960         (nios2_expand_epilogue): Update recovery of stack pointer from
31961         frame pointer accordingly.
31962         (nios2_initial_elimination_offset): Update calculation of offset
31963         for eliminating to HARD_FRAME_POINTER_REGNUM.
31964
31965 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
31966
31967         PR ipa/60457
31968         * ipa.c (symtab_remove_unreachable_nodes): Don't call
31969         cgraph_get_create_node on VAR_DECLs.
31970
31971 2014-03-10  Richard Biener  <rguenther@suse.de>
31972
31973         PR middle-end/60474
31974         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
31975
31976 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
31977
31978         * config/vms/vms.opt (vms_float_format): New variable.
31979
31980 2014-03-08  Tobias Burnus  <burnus@net-b.de>
31981
31982         * doc/invoke.texi (-fcilkplus): Update implementation status.
31983
31984 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
31985             Richard Biener  <rguenther@suse.de>
31986
31987         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
31988         consistently accross all TUs.
31989         (run_gcc): Enable -fshort-double automatically at link at link-time
31990         and disallow override.
31991
31992 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
31993
31994         PR target/58271
31995         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
31996         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
31997         if they can't be used.
31998
31999 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32000
32001         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
32002         for Solaris 11/x86 ld.
32003         * configure: Regenerate.
32004
32005 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32006
32007         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
32008         (LIB_TLS_SPEC): Save as ld_tls_libs.
32009         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
32010         (HAVE_AS_IX86_TLSLDM): New test.
32011         * configure, config.in: Regenerate.
32012         * config/i386/i386.c (legitimize_tls_address): Fall back to
32013         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
32014         cannot support TLS_MODEL_LOCAL_DYNAMIC.
32015         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
32016         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
32017
32018 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
32019
32020         * common.opt (fira-loop-pressure): Mark as optimization.
32021
32022 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
32023
32024         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
32025         an OpenMP mappable type.
32026
32027 2014-03-06  Matthias Klose  <doko@ubuntu.com>
32028
32029         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
32030         MULTILIB_OSDIRNAMES is not defined.
32031
32032 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
32033             Meador Inge  <meadori@codesourcery.com>
32034
32035         PR target/58595
32036         * config/arm/arm.c (arm_tls_symbol_p): Remove.
32037         (arm_legitimize_address): Call legitimize_tls_address for any
32038         arm_tls_referenced_p expression, handle constant addend.  Call it
32039         before testing for !TARGET_ARM.
32040         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
32041
32042 2014-03-06  Richard Biener  <rguenther@suse.de>
32043
32044         PR middle-end/60445
32045         PR lto/60424
32046         PR lto/60427
32047         Revert
32048         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
32049
32050         * tree-streamer.c (record_common_node): Assert we don't record
32051         nodes with type double.
32052         (preload_common_node): Skip type double, complex double and double
32053         pointer since it is now frontend dependent due to fshort-double option.
32054
32055 2014-03-06  Richard Biener  <rguenther@suse.de>
32056
32057         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
32058         or -fno-lto is specified and the linker has full plugin support.
32059         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
32060         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
32061         * lto-wrapper.c (merge_and_complain): Merge compile-time
32062         optimization levels.
32063         (run_gcc): And pass it through to the link options.
32064
32065 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
32066
32067         PR debug/60381
32068         Revert:
32069         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
32070         PR debug/59992
32071         * cselib.c (remove_useless_values): Skip to avoid quadratic
32072         behavior if the condition moved from...
32073         (cselib_process_insn): ... here holds.
32074
32075 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
32076
32077         PR plugins/59335
32078         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
32079         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
32080
32081         PR plugins/59335
32082         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
32083         (TM_H): Add x86-tune.def.
32084
32085 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32086
32087         * config/aarch64/aarch64.c (generic_tunings):
32088         Use cortexa57_extra_costs.
32089
32090 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
32091
32092         PR lto/60404
32093         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
32094         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
32095         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
32096         cost for in_lto_p.
32097
32098 2014-03-04  Heiher  <r@hev.cc>
32099
32100         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
32101         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
32102
32103 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
32104
32105         * config/i386/predicates.md (const2356_operand): Change to ...
32106         (const2367_operand): ... this.
32107         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
32108         const2367_operand.
32109         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
32110         (*avx512pf_scatterpf<mode>sf): Ditto.
32111         (avx512pf_scatterpf<mode>df): Ditto.
32112         (*avx512pf_scatterpf<mode>df_mask): Ditto.
32113         (*avx512pf_scatterpf<mode>df): Ditto.
32114         * config/i386/i386.c (ix86_expand_builtin): Update
32115         incorrect hint operand error message.
32116
32117 2014-03-04  Richard Biener  <rguenther@suse.de>
32118
32119         * lto-section-in.c (lto_get_section_data): Fix const cast.
32120
32121 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
32122
32123         * tree-streamer.c (record_common_node): Assert we don't record
32124         nodes with type double.
32125         (preload_common_node): Skip type double, complex double and double
32126         pointer since it is now frontend dependent due to fshort-double option.
32127
32128 2014-03-04  Richard Biener  <rguenther@suse.de>
32129
32130         PR lto/60405
32131         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
32132         (lto_input_toplevel_asms): Likewise.
32133         * lto-section-in.c (lto_get_section_data): Instead do it here
32134         for every section.
32135
32136 2014-03-04  Richard Biener  <rguenther@suse.de>
32137
32138         PR tree-optimization/60382
32139         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
32140         dead PHIs a reduction.
32141
32142 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
32143
32144         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
32145         hint value.
32146         (_mm_prefetch): Move out of GCC target("sse") pragma.
32147         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
32148         GCC target("prfchw") pragma.
32149         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
32150         for locality <= 2.
32151         * config/i386/i386.c (ix86_option_override_internal): Enable
32152         -mprfchw with -mprefetchwt1.
32153
32154 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
32155
32156         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
32157         Mark as varying.
32158
32159 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
32160
32161         * opts.h (CL_PCH_IGNORE): Define.
32162         * targhooks.c (option_affects_pch_p):
32163         Return false for options that have CL_PCH_IGNORE set.
32164         * opt-functions.awk: Process PchIgnore.
32165         * doc/options.texi: Document PchIgnore.
32166
32167         * config/arc/arc.opt (misize): Add PchIgnore property.
32168
32169 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32170
32171         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
32172         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
32173         constraint on constants to permit them being loaded into
32174         GENERAL_REGS or BASE_REGS.
32175
32176 2014-03-03  Nick Clifton  <nickc@redhat.com>
32177
32178         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
32179         anti-cacnonical alternatives.
32180         (negandhi3_real): New pattern.
32181         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
32182
32183 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
32184
32185         * config/avr/avr-mcus.def: Remove atxmega16x1.
32186         * config/avr/avr-tables.opt: Regenerate.
32187         * config/avr/t-multilib: Regenerate.
32188         * doc/avr-mmcu.texi: Regenerate.
32189
32190 2014-03-03  Tobias Grosser  <tobias@grosser.es>
32191             Mircea Namolaru  <mircea.namolaru@inria.fr>
32192
32193         PR tree-optimization/58028
32194         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
32195         scalar dimensions.
32196
32197 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
32198
32199         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
32200         not handled by recognizers.
32201
32202 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
32203
32204         PR middle-end/60175
32205         * function.c (expand_function_end): Don't emit
32206         clobber_return_register sequence if clobber_after is a BARRIER.
32207         * cfgexpand.c (construct_exit_block): Append instructions before
32208         return_label to prev_bb.
32209
32210 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32211
32212         * config/rs6000/constraints.md: Document reserved use of "wc".
32213
32214 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
32215
32216         PR ipa/60150
32217         * ipa.c (function_and_variable_visibility): When dissolving comdat
32218         group, also set all symbols to local.
32219
32220 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
32221
32222         PR ipa/60306
32223
32224         Revert:
32225         2013-12-14  Jan Hubicka  <jh@suse.cz>
32226         PR middle-end/58477
32227         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
32228
32229 2014-03-02  Jon Beniston  <jon@beniston.com>
32230
32231         PR bootstrap/48230
32232         PR bootstrap/50927
32233         PR bootstrap/52466
32234         PR target/46898
32235         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
32236         (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
32237         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
32238         (simple_return, *simple_return): New patterns
32239         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
32240         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
32241
32242 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
32243
32244         * dwarf2out.c (gen_subprogram_die): Tidy.
32245
32246 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
32247
32248         PR target/60071
32249         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
32250         (*mov_t_msb_neg_negc): ... this new insn.
32251
32252 2014-02-28  Jason Merrill  <jason@redhat.com>
32253
32254         PR c++/58678
32255         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
32256         function.
32257
32258 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
32259
32260         PR c++/60314
32261         * dwarf2out.c (decltype_auto_die): New static.
32262         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
32263         (gen_type_die_with_usage): Handle 'decltype(auto)'.
32264         (is_cxx_auto): Likewise.
32265
32266 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
32267
32268         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
32269         we are not using general regs only.
32270
32271 2014-02-28  Richard Biener  <rguenther@suse.de>
32272
32273         PR target/60280
32274         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
32275         previous fix and only allow to remove trivial pre-headers
32276         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
32277         (remove_forwarder_block): Properly update the latch of a loop.
32278
32279 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
32280
32281         PR debug/59992
32282         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
32283         (cselib_preserved_hash_table): New.
32284         (preserve_constants_and_equivs): Move preserved vals to it.
32285         (cselib_find_slot): Look it up first.
32286         (cselib_init): Initialize it.
32287         (cselib_finish): Release it.
32288         (dump_cselib_table): Dump it.
32289
32290 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
32291
32292         PR debug/59992
32293         * cselib.c (remove_useless_values): Skip to avoid quadratic
32294         behavior if the condition moved from...
32295         (cselib_process_insn): ... here holds.
32296
32297 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
32298
32299         PR debug/57232
32300         * var-tracking.c (vt_initialize): Apply the same condition to
32301         preserve the CFA base value.
32302
32303 2014-02-28  Joey Ye  <joey.ye@arm.com>
32304
32305         PR target/PR60169
32306         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
32307         if reload in progress or completed.
32308
32309 2014-02-28  Tobias Burnus  <burnus@net-b.de>
32310
32311         PR middle-end/60147
32312         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
32313         NAMELIST_DECL.
32314
32315 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
32316
32317         * doc/tm.texi.in (Condition Code Status): Update documention for
32318         relative locations of cc0-setter and cc0-user.
32319
32320 2014-02-27  Jeff Law  <law@redhat.com>
32321
32322         PR rtl-optimization/52714
32323         * combine.c (try_combine): When splitting an unrecognized PARALLEL
32324         into two independent simple sets, if I3 is a jump, ensure the
32325         pattern we place into I3 is a (set (pc) ...).
32326
32327 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
32328             Jeff Law  <law@redhat.com>
32329
32330         PR rtl-optimization/49847
32331         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
32332         are in different blocks.
32333         * doc/tm.texi (Condition Code Status): Update documention for
32334         relative locations of cc0-setter and cc0-user.
32335
32336 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
32337
32338         PR target/59222
32339         * lra.c (lra_emit_add): Check SUBREG too.
32340
32341 2014-02-27  Andreas Schwab  <schwab@suse.de>
32342
32343         * config/m68k/m68k.c (m68k_option_override): Disable
32344         -flive-range-shrinkage for classic m68k.
32345         (m68k_override_options_after_change): Likewise.
32346
32347 2014-02-27  Marek Polacek  <polacek@redhat.com>
32348
32349         PR middle-end/59223
32350         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
32351         -Wmaybe-uninitialized.
32352
32353 2014-02-27  Alan Modra  <amodra@gmail.com>
32354
32355         PR target/57936
32356         * reload1.c (emit_input_reload_insns): When reload_override_in,
32357         set old to rl->in_reg when rl->in_reg is a subreg.
32358
32359 2014-02-26  Richard Biener  <rguenther@suse.de>
32360
32361         PR bootstrap/60343
32362         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
32363
32364 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
32365
32366         * common/config/i386/predicates.md (const1256_operand): Remove.
32367         (const2356_operand): New.
32368         (const_1_to_2_operand): Remove.
32369         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
32370         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
32371         (*avx512pf_gatherpf<mode>sf): Ditto.
32372         (avx512pf_gatherpf<mode>df): Ditto.
32373         (*avx512pf_gatherpf<mode>df_mask): Ditto.
32374         (*avx512pf_gatherpf<mode>df): Ditto.
32375         (avx512pf_scatterpf<mode>sf): Ditto.
32376         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
32377         (*avx512pf_scatterpf<mode>sf): Ditto.
32378         (avx512pf_scatterpf<mode>df): Ditto.
32379         (*avx512pf_scatterpf<mode>df_mask): Ditto.
32380         (*avx512pf_scatterpf<mode>df): Ditto.
32381         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
32382
32383 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
32384
32385         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
32386         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
32387         (_mm512_mask_testn_epi64_mask): Move to ...
32388         * config/i386/avx512cdintrin.h: Here.
32389         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
32390         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
32391         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
32392         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
32393         TARGET_AVX512F from TARGET_AVX512CD.
32394
32395 2014-02-26  Richard Biener  <rguenther@suse.de>
32396
32397         PR ipa/60327
32398         * ipa.c (walk_polymorphic_call_targets): Properly guard
32399         call to inline_update_overall_summary.
32400
32401 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
32402
32403         PR target/60280
32404         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
32405         and latches only if requested.  Fix latch if it is removed.
32406         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
32407         LOOPS_HAVE_PREHEADERS.
32408
32409 2014-02-25  Andrew Pinski  <apinski@cavium.com>
32410
32411         * builtins.c (expand_builtin_thread_pointer): Create a new target
32412         when the target is NULL.
32413
32414 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
32415
32416         PR rtl-optimization/60317
32417         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
32418         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
32419         * lra-assigns.c: Include params.h.
32420         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
32421         other reload pseudos considerations.
32422
32423 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32424
32425         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
32426         to use canonical form for nor<mode>3.
32427
32428 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32429
32430         PR target/55426
32431         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
32432         conversions.
32433
32434 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
32435
32436         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
32437         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
32438         (ix86_handle_option): Handle OPT_mprefetchwt1.
32439         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
32440         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
32441         PREFETCHWT1 CPUID.
32442         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
32443         OPTION_MASK_ISA_PREFETCHWT1.
32444         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
32445         (PTA_PREFETCHWT1): New.
32446         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
32447         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
32448         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
32449         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
32450         (*prefetch_avx512pf_<mode>_: Change into ...
32451         (*prefetch_prefetchwt1_<mode>: This.
32452         * config/i386/i386.opt (mprefetchwt1): New.
32453         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
32454         (_mm_prefetch): Handle intent to write.
32455         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
32456
32457 2014-02-25  Richard Biener  <rguenther@suse.de>
32458
32459         PR middle-end/60291
32460         * emit-rtl.c (mem_attrs_htab): Remove.
32461         (mem_attrs_htab_hash): Likewise.
32462         (mem_attrs_htab_eq): Likewise.
32463         (set_mem_attrs): Always allocate new mem-attrs when something changed.
32464         (init_emit_once): Do not allocate mem_attrs_htab.
32465
32466 2014-02-25  Richard Biener  <rguenther@suse.de>
32467
32468         PR lto/60319
32469         * lto-opts.c (lto_write_options): Output non-explicit conservative
32470         -fwrapv, -fno-trapv and -fno-strict-overflow.
32471         * lto-wrapper.c (merge_and_complain): Handle merging those options.
32472         (run_gcc): And pass them through.
32473
32474 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
32475
32476         * sel-sched.c (calculate_new_fences): New parameter ptime.
32477         Calculate it as a maximum over all fence cycles.
32478         (sel_sched_region_2): Adjust the call to calculate_new_fences.
32479         Print the final schedule timing when sched_verbose.
32480
32481 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
32482
32483         PR rtl-optimization/60292
32484         * sel-sched.c (fill_vec_av_set): Do not reset target availability
32485         bit fot the fence instruction.
32486
32487 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
32488
32489         * calls.h: Fix typo in comment.
32490
32491 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
32492
32493         * config/pa/pa.c (pa_output_move_double): Don't valididate when
32494         adjusting offsetable addresses.
32495
32496 2014-02-24  Guozhi Wei  <carrot@google.com>
32497
32498         * sparseset.h (sparseset_pop): Fix the wrong index.
32499
32500 2014-02-24  Walter Lee  <walt@tilera.com>
32501
32502         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
32503         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
32504         triplet.
32505         * common/config/tilegx/tilegx-common.c
32506         (TARGET_DEFAULT_TARGET_FLAGS): Define.
32507         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
32508         (LINK_SPEC): Ditto.
32509         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
32510         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
32511         (tilegx_gimplify_va_arg_expr): Handle big endian.
32512         (tilegx_expand_unaligned_load): Ditto.
32513         (tilegx_expand_unaligned_store): Ditto.
32514         (TARGET_RETURN_IN_MSB): New.
32515         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
32516         (TARGET_ENDIAN_DEFAULT): New.
32517         (TARGET_BIG_ENDIAN): Handle big endian.
32518         (BYTES_BIG_ENDIAN): Ditto.
32519         (WORDS_BIG_ENDIAN): Ditto.
32520         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
32521         (ENDIAN_SPEC): New.
32522         (EXTRA_SPECS): New.
32523         * config/tilegx/tilegx.md (extv): Handle big endian.
32524         (extzv): Ditto.
32525         (insn_st<n>): Ditto.
32526         (insn_st<n>_add<bitsuffix>): Ditto.
32527         (insn_stnt<n>): Ditto.
32528         (insn_stnt<n>_add<bitsuffix>):Ditto.
32529         (vec_interleave_highv8qi): Handle big endian.
32530         (vec_interleave_highv8qi_be): New.
32531         (vec_interleave_highv8qi_le): New.
32532         (insn_v1int_h): Handle big endian.
32533         (vec_interleave_lowv8qi): Handle big endian.
32534         (vec_interleave_lowv8qi_be): New.
32535         (vec_interleave_lowv8qi_le): New.
32536         (insn_v1int_l): Handle big endian.
32537         (vec_interleave_highv4hi): Handle big endian.
32538         (vec_interleave_highv4hi_be): New.
32539         (vec_interleave_highv4hi_le): New.
32540         (insn_v2int_h): Handle big endian.
32541         (vec_interleave_lowv4hi): Handle big endian.
32542         (vec_interleave_lowv4hi_be): New.
32543         (vec_interleave_lowv4hi_le): New.
32544         (insn_v2int_l): Handle big endian.
32545         (vec_interleave_highv2si): Handle big endian.
32546         (vec_interleave_highv2si_be): New.
32547         (vec_interleave_highv2si_le): New.
32548         (insn_v4int_h): Handle big endian.
32549         (vec_interleave_lowv2si): Handle big endian.
32550         (vec_interleave_lowv2si_be): New.
32551         (vec_interleave_lowv2si_le): New.
32552         (insn_v4int_l): Handle big endian.
32553         * config/tilegx/tilegx.opt (mbig-endian): New option.
32554         (mlittle-endian): New option.
32555         * doc/install.texi: Document tilegxbe-linux.
32556         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
32557
32558 2014-02-24  Martin Jambor  <mjambor@suse.cz>
32559
32560         PR ipa/60266
32561         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
32562         there are no parameter descriptors.
32563
32564 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
32565
32566         PR rtl-optimization/60268
32567         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
32568         initialization to ...
32569         (sched_rgn_init): ... here.
32570         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
32571
32572 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
32573
32574         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
32575         names.
32576
32577 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
32578
32579         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
32580         definition.
32581
32582 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
32583
32584         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
32585         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
32586
32587 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
32588
32589         * config/microblaze/predicates.md: Add cmp_op predicate.
32590         * config/microblaze/microblaze.md: Add branch_compare instruction
32591         which uses cmp_op predicate and emits cmp insn before branch.
32592         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
32593         to microblaze_expand_conditional_branch and consolidate logic.
32594         (microblaze_expand_conditional_branch): emit branch_compare
32595         insn instead of handling cmp op separate from branch insn.
32596
32597 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32598
32599         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
32600         to permit subregs.
32601
32602 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32603
32604         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
32605         define_insn with define_expand and new define_insn
32606         *altivec_lve<VI_char>x_internal.
32607         (altivec_stve<VI_char>x): Replace define_insn with define_expand
32608         and new define_insn *altivec_stve<VI_char>x_internal.
32609         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
32610         prototype.
32611         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
32612         lve*x built-ins.
32613         (altivec_expand_stvex_be): New function.
32614
32615 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
32616
32617         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
32618         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
32619         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
32620         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
32621
32622 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
32623
32624         PR target/60298
32625         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
32626         instead of emit_move_insn.
32627
32628 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32629
32630         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
32631         vspltw with vsldoi.
32632         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
32633         gen_altivec_vsumsws.
32634
32635 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32636
32637         * config/rs6000/altivec.md (altivec_lvxl): Rename as
32638         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
32639         (altivec_lvxl_<mode>): New define_expand incorporating
32640         -maltivec=be semantics where needed.
32641         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
32642         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
32643         semantics where needed.
32644         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
32645         (altivec_stvx_<mode>): New define_expand incorporating
32646         -maltivec=be semantics where needed.
32647         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
32648         VM2 iterator instead of V4SI.
32649         (altivec_stvxl_<mode>): New define_expand incorporating
32650         -maltivec=be semantics where needed.
32651         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
32652         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
32653         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
32654         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
32655         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
32656         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
32657         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
32658         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
32659         ALTIVEC_BUILTIN_STVXL.
32660         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
32661         (altivec_expand_stvx_be): Likewise.
32662         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
32663         (altivec_expand_lvx_be): Likewise.
32664         (altivec_expand_stvx_be): Likewise.
32665         (altivec_expand_builtin): Add cases for
32666         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
32667         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
32668         (altivec_init_builtins): Add definitions for
32669         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
32670         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
32671
32672 2014-02-21  Catherine Moore  <clm@codesourcery.com>
32673
32674         * doc/invoke.texi (mvirt, mno-virt): Document.
32675         * config/mips/mips.opt (mvirt): New option.
32676         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
32677
32678 2014-02-21  Richard Biener  <rguenther@suse.de>
32679
32680         PR tree-optimization/60276
32681         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
32682         (STMT_VINFO_MIN_NEG_DIST): New macro.
32683         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
32684         STMT_VINFO_MIN_NEG_DIST.
32685         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
32686         made for negative dependence distances still hold.
32687
32688 2014-02-21  Richard Biener  <rguenther@suse.de>
32689
32690         PR middle-end/60291
32691         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
32692         DECL_INITIAL for globals not in the current function context.
32693
32694 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
32695
32696         PR tree-optimization/56490
32697         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
32698         * tree-ssa-uninit.c: Include params.h.
32699         (compute_control_dep_chain): Add num_calls argument, return false
32700         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
32701         num_calls to recursive call.
32702         (find_predicates): Change dep_chain into normal array,
32703         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
32704         variable and adjust compute_control_dep_chain caller.
32705         (find_def_preds): Likewise.
32706
32707 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
32708
32709         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
32710         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
32711
32712 2014-02-21  Nick Clifton  <nickc@redhat.com>
32713
32714         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
32715         (pushhi1): Likewise.
32716         (popqi1): Add mode to pre_dec.
32717         (pophi1): Likewise.
32718
32719 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
32720
32721         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
32722         mode for mask of V8SFmode permutation.
32723
32724 2014-02-20  Richard Henderson  <rth@redhat.com>
32725
32726         PR c++/60272
32727         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
32728         a new pseudo for OLDVAL.
32729
32730 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
32731
32732         PR target/57896
32733         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
32734         gen_reg_rtx if d->testing_p.
32735         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
32736         if d->testing_p and we will certainly return true.
32737         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
32738         if d->testing_p.
32739
32740 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
32741
32742         * emit-rtl.c (gen_reg_rtx): Assert that
32743         crtl->emit.regno_pointer_align_length is non-zero.
32744
32745 2014-02-20  Richard Henderson  <rth@redhat.com>
32746
32747         PR c++/60272
32748         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
32749         on failure the store back into EXPECT.
32750
32751 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
32752             Sandra Loosemore  <sandra@codesourcery.com>
32753
32754         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
32755         * config/nios2/nios2.c (nios2_function_profiler): Add
32756         -fPIC (flag_pic == 2) support.
32757         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
32758         (nios2_large_offset_p): New function.
32759         (nios2_unspec_reloc_p): Move up position, update to use
32760         nios2_large_offset_p.
32761         (nios2_unspec_address): Remove function.
32762         (nios2_unspec_offset): New function.
32763         (nios2_large_got_address): New function.
32764         (nios2_got_address): Add large offset support.
32765         (nios2_legitimize_tls_address): Update usage of removed and new
32766         functions.
32767         (nios2_symbol_binds_local_p): New function.
32768         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
32769         (nios2_legitimize_address): Update to use nios2_large_offset_p.
32770         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
32771         (nios2_print_operand): Merge H/L processing, add hiadj/lo
32772         processing for (const (unspec ...)).
32773         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
32774
32775 2014-02-20  Richard Biener  <rguenther@suse.de>
32776
32777         * tree-cfg.c (replace_uses_by): Mark altered BBs before
32778         doing the substitution.
32779         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
32780
32781 2014-02-20  Martin Jambor  <mjambor@suse.cz>
32782
32783         PR ipa/55260
32784         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
32785         info when checking whether lattices are bottom.
32786
32787 2014-02-20  Richard Biener  <rguenther@suse.de>
32788
32789         PR middle-end/60221
32790         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
32791         regions at -O0.
32792
32793 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
32794
32795         PR ipa/58555
32796         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
32797         parameter specifying the scaling.
32798         (inline_call): Update.
32799         (want_inline_recursively): Guard division by zero.
32800         (recursive_inlining): Update.
32801         * ipa-inline.h (clone_inlined_nodes): Update.
32802
32803 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
32804
32805         PR target/60204
32806         * config/i386/i386.c (classify_argument): Pass structures of size
32807         64 bytes or less in register.
32808
32809 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
32810             Kirill Yukhin  <kirill.yukhin@intel.com>
32811
32812         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
32813         (_mm_rcp28_round_ss): Ditto.
32814         (_mm_rsqrt28_round_sd): Ditto.
32815         (_mm_rsqrt28_round_ss): Ditto.
32816         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
32817         (_mm_rcp14_round_ss): Ditto.
32818         (_mm_rsqrt14_round_sd): Ditto.
32819         (_mm_rsqrt14_round_ss): Ditto.
32820         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
32821         the first input operand, get rid of match_dup.
32822         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
32823         attribute to sse.
32824         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
32825         Ditto.
32826         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
32827         operand as the first input operand, set type attribute.
32828         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
32829         Set type attribute.
32830         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
32831         operand as the first input operand, set type attribute.
32832
32833 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32834
32835         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
32836         bit of zero.
32837
32838 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
32839
32840         PR target/60207
32841         * config/i386/i386.c (construct_container): Remove TFmode check
32842         for X86_64_INTEGER_CLASS.
32843
32844 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
32845
32846         PR target/59794
32847         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
32848         only when -Wpsabi is enabled.
32849
32850 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
32851
32852         PR target/59799
32853         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
32854         passing arrays in registers are the same as for structs, so remove the
32855         special case for them.
32856
32857 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
32858
32859         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
32860         destination type, extract only the valid bits if the source type is not
32861         integral and has a different mode.
32862
32863 2014-02-19  Richard Biener  <rguenther@suse.de>
32864
32865         PR ipa/60243
32866         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
32867         for all calls.
32868
32869 2014-02-19  Richard Biener  <rguenther@suse.de>
32870
32871         PR ipa/60243
32872         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
32873         (ipa_modify_call_arguments): Emit an argument load explicitely and
32874         preserve virtual SSA form there and for the replacement call.
32875         Do not update SSA form nor free dominance info.
32876
32877 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
32878
32879         * ipa.c (function_and_variable_visibility): Also clear WEAK
32880         flag when disolving COMDAT_GROUP.
32881
32882 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
32883
32884         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
32885         * ipa-prop.c (ipa_set_jf_known_type): Return early when
32886         not devirtualizing.
32887         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
32888         do more sanity checks.
32889         (detect_type_change): Return true when giving up early.
32890         (compute_complex_assign_jump_func): Fix type parameter of
32891         ipa_set_ancestor_jf.
32892         (compute_complex_ancestor_jump_func): Likewise.
32893         (update_jump_functions_after_inlining): Fix updating of
32894         ancestor function.
32895         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
32896
32897 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
32898
32899         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
32900         inline clones when edge disappears.
32901
32902 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
32903
32904         PR target/60203
32905         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
32906         Split 64-bit moves into 2 patterns.  Do not allow the use of
32907         direct move for TDmode in little endian, since the decimal value
32908         has little endian bytes within a word, but the 64-bit pieces are
32909         ordered in a big endian fashion, and normal subreg's of TDmode are
32910         not allowed.
32911         (mov<mode>_64bit_dm): Likewise.
32912         (movtd_64bit_nodm): Likewise.
32913
32914 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
32915
32916         PR tree-optimization/60174
32917         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
32918         statement of an SSA_NAME that occurs in an abnormal PHI node.
32919
32920 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
32921
32922         PR sanitizer/60142
32923         * final.c (SEEN_BB): Remove.
32924         (SEEN_NOTE, SEEN_EMITTED): Renumber.
32925         (final_scan_insn): Don't force_source_line on second
32926         NOTE_INSN_BASIC_BLOCK.
32927
32928 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
32929
32930         PR target/60205
32931         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
32932         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
32933         (type_natural_mode): Warn ABI change when %zmm register is not
32934         available for AVX512F vector value passing.
32935
32936 2014-02-18  Kai Tietz  <ktietz@redhat.com>
32937
32938         PR target/60193
32939         * config/i386/i386.c (ix86_expand_prologue): Use value in
32940         rax register as displacement when restoring %r10 or %rax.
32941         Fix wrong offset when restoring both registers.
32942
32943 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
32944
32945         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
32946         assertion with conditional return.
32947
32948 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
32949             Uros Bizjak  <ubizjak@gmail.com>
32950
32951         PR driver/60233
32952         * config/i386/driver-i386.c (host_detect_local_cpu): If
32953         YMM state is not saved by the OS, also clear has_f16c.  Move
32954         CPUID 0x80000001 handling before YMM state saving checking.
32955
32956 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
32957
32958         PR rtl-optimization/58960
32959         * haifa-sched.c (alloc_global_sched_pressure_data): New,
32960         factored out from ...
32961         (sched_init): ... here.
32962         (free_global_sched_pressure_data): New, factored out from ...
32963         (sched_finish): ... here.
32964         * sched-int.h (free_global_sched_pressure_data): Declare.
32965         * sched-rgn.c (nr_regions_initial): New static global.
32966         (haifa_find_rgns): Initialize it.
32967         (schedule_region): Disable sched-pressure for the newly
32968         generated regions.
32969
32970 2014-02-17  Richard Biener  <rguenther@suse.de>
32971
32972         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
32973         release SSA defs of pattern stmts.
32974
32975 2014-02-17  Richard Biener  <rguenther@suse.de>
32976
32977         * tree-inline.c (expand_call_inline): Release the virtual
32978         operand defined by the call we are about to inline.
32979
32980 2014-02-17  Richard Biener  <rguenther@suse.de>
32981
32982         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
32983
32984 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
32985             Ilya Tocar  <ilya.tocar@intel.com>
32986
32987         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
32988         arguments order in builtin.
32989         (_mm512_permutexvar_epi64): Ditto.
32990         (_mm512_mask_permutexvar_epi64): Ditto
32991         (_mm512_maskz_permutexvar_epi32): Ditto
32992         (_mm512_permutexvar_epi32): Ditto
32993         (_mm512_mask_permutexvar_epi32): Ditto
32994
32995 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32996
32997         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
32998         (p8_vmrgow): Likewise.
32999
33000 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33001
33002         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
33003         endian targets.
33004
33005 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
33006
33007         PR target/60203
33008         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
33009         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
33010         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
33011         using direct move instructions on ISA 2.07.  Also adjust
33012         instruction length for 64-bit.
33013         (mov<mode>_64bit, TFmode/TDmode): Likewise.
33014         (mov<mode>_32bit, TFmode/TDmode): Likewise.
33015
33016 2014-02-15  Alan Modra  <amodra@gmail.com>
33017
33018         PR target/58675
33019         PR target/57935
33020         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
33021         find_replacement on parts of insn rtl that might be reloaded.
33022
33023 2014-02-15  Richard Biener  <rguenther@suse.de>
33024
33025         PR tree-optimization/60183
33026         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
33027         (tree_ssa_phiprop): Calculate and free post-dominators.
33028
33029 2014-02-14  Jeff Law  <law@redhat.com>
33030
33031         PR rtl-optimization/60131
33032         * ree.c (get_extended_src_reg): New function.
33033         (combine_reaching_defs): Use it rather than assuming location of REG.
33034         (find_and_remove_re): Verify first operand of extension is
33035         a REG before adding the insns to the copy list.
33036
33037 2014-02-14  Roland McGrath  <mcgrathr@google.com>
33038
33039         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
33040         * configure: Regenerated.
33041         * config.in: Regenerated.
33042         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
33043         instead of ASM_SHORT.
33044
33045 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
33046             Richard Earnshaw  <rearnsha@arm.com>
33047
33048         PR rtl-optimization/59535
33049         * lra-constraints.c (process_alt_operands): Encourage alternative
33050         when unassigned pseudo class is superset of the alternative class.
33051         (inherit_reload_reg): Don't inherit when optimizing for code size.
33052         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
33053         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
33054         modes not less than 4 for Thumb1.
33055
33056 2014-02-14  Kyle McMartin  <kyle@redhat.com>
33057
33058         PR pch/60010
33059         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
33060
33061 2014-02-14  Richard Biener  <rguenther@suse.de>
33062
33063         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
33064         (get_frame_arg): Drop the assert with langhook types_compatible_p.
33065         Do not strip INDIRECT_REFs.
33066
33067 2014-02-14  Richard Biener  <rguenther@suse.de>
33068
33069         PR lto/60179
33070         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
33071         DECL_FUNCTION_SPECIFIC_TARGET.
33072         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
33073         * tree-streamer-out.c (pack_ts_target_option): Remove.
33074         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
33075         (write_ts_function_decl_tree_pointers): Do not stream
33076         DECL_FUNCTION_SPECIFIC_TARGET.
33077         * tree-streamer-in.c (unpack_ts_target_option): Remove.
33078         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
33079         (lto_input_ts_function_decl_tree_pointers): Do not stream
33080         DECL_FUNCTION_SPECIFIC_TARGET.
33081
33082 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
33083
33084         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
33085         (get_initial_def_for_induction, vectorizable_induction): Ignore
33086         debug stmts when looking for exit_phi.
33087         (vectorizable_live_operation): Fix up condition.
33088
33089 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
33090
33091         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
33092         nreverse() because it changes the content of original tree list.
33093
33094 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
33095
33096         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
33097         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
33098
33099 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
33100
33101         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
33102         GNU coding standards.
33103
33104 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
33105
33106         PR debug/60152
33107         * dwarf2out.c (gen_subprogram_die): Don't call
33108         add_calling_convention_attribute if subr_die is old_die.
33109
33110 2014-02-13  Sharad Singhai  <singhai@google.com>
33111
33112         * doc/optinfo.texi: Fix order of nodes.
33113
33114 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
33115
33116         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
33117         operands[2], not operands[3].
33118
33119 2014-02-13  Richard Biener  <rguenther@suse.de>
33120
33121         PR bootstrap/59878
33122         * doc/install.texi (ISL): Update recommended version to 0.12.2,
33123         mention the possibility of an in-tree build.
33124         (CLooG): Update recommended version to 0.18.1, mention the
33125         possibility of an in-tree build and clarify that the ISL
33126         bundled with CLooG does not work.
33127
33128 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
33129
33130         PR target/43546
33131         * expr.c (compress_float_constant): If x is a hard register,
33132         extend into a pseudo and then move to x.
33133
33134 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
33135
33136         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
33137         caused by bad second argument to warning_at() with -mhotpatch and
33138         nested functions (e.g. with gfortran).
33139
33140 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
33141
33142         * opts.c (option_name): Remove "enabled by default" rider.
33143
33144 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
33145
33146         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
33147
33148 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
33149             Uros Bizjak  <ubizjak@gmail.com>
33150
33151         PR target/60151
33152         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
33153         * configure: Regenerated.
33154
33155 2014-02-12  Richard Biener  <rguenther@suse.de>
33156
33157         * vec.c (vec_prefix::calculate_allocation): Move as
33158         inline variant to vec.h.
33159         (vec_prefix::calculate_allocation_1): New out-of-line version.
33160         * vec.h (vec_prefix::calculate_allocation_1): Declare.
33161         (vec_prefix::m_has_auto_buf): Rename to ...
33162         (vec_prefix::m_using_auto_storage): ... this.
33163         (vec_prefix::calculate_allocation): Inline the easy cases
33164         and dispatch to calculate_allocation_1 which doesn't need the
33165         prefix address.
33166         (va_heap::reserve): Use gcc_checking_assert.
33167         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
33168         m_using_auto_storage.
33169         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
33170         member and adjust.
33171         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
33172         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
33173         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
33174
33175 2014-02-12  Richard Biener  <rguenther@suse.de>
33176
33177         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
33178         when we found a dependence.
33179
33180 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
33181
33182         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
33183         common code...
33184         (maybe_fold_stmt): ... into this new function.
33185         * omp-low.c (lower_omp): Update comment.
33186
33187         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
33188         last use.
33189
33190         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
33191         dereference.
33192
33193 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
33194
33195         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
33196         identifiers in comments.
33197         (cortexa53_extra_costs): Likewise.
33198         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
33199         (cortexa7_extra_costs): Likewise.
33200         (cortexa12_extra_costs): Likewise.
33201         (cortexa15_extra_costs): Likewise.
33202         (v7m_extra_costs): Likewise.
33203
33204 2014-02-12  Richard Biener  <rguenther@suse.de>
33205
33206         PR middle-end/60092
33207         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
33208         of posix_memalign being successful.
33209         (lower_stmt): Restrict lowering of posix_memalign to when
33210         -ftree-bit-ccp is enabled.
33211
33212 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
33213
33214         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
33215         arg_loc.
33216         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
33217
33218 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
33219
33220         PR rtl-optimization/60116
33221         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
33222         other_insn once the combination has been validated.
33223
33224 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
33225
33226         PR lto/59468
33227         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
33228         and wrapper.
33229         * ipa-devirt.c: Include demangle.h
33230         (odr_violation_reported): New static variable.
33231         (add_type_duplicate): Update odr_violations.
33232         (maybe_record_node): Add completep parameter; update it.
33233         (record_target_from_binfo): Add COMPLETEP parameter;
33234         update it as needed.
33235         (possible_polymorphic_call_targets_1): Likewise.
33236         (struct polymorphic_call_target_d): Add nonconstruction_targets;
33237         rename FINAL to COMPLETE.
33238         (record_targets_from_bases): Sanity check we found the binfo;
33239         fix COMPLETEP updating.
33240         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
33241         parameter, fix computing of COMPLETEP.
33242         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
33243         at LTO time do demangling.
33244         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
33245         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
33246         parameter.
33247         (gimple_get_virt_method_for_binfo): Likewise.
33248         * gimple-fold.h (gimple_get_virt_method_for_binfo,
33249         gimple_get_virt_method_for_vtable): Update prototypes.
33250
33251 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
33252
33253         PR target/49008
33254         * genautomata.c (add_presence_absence): Fix typo with
33255         {final_}presence_list.
33256
33257 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
33258
33259         PR target/60137
33260         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
33261         for VSX/Altivec vectors that land in GPR registers.
33262
33263 2014-02-11  Richard Henderson  <rth@redhat.com>
33264             Jakub Jelinek  <jakub@redhat.com>
33265
33266         PR debug/59776
33267         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
33268         around drhs if type conversion to lacc->type is not useless.
33269
33270 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33271
33272         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
33273         tuning struct.
33274         (cortex-a57.cortex-a53): Likewise.
33275         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
33276
33277 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33278
33279         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
33280         arm_restrict_it.
33281
33282 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
33283
33284         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
33285         add_options_for_arm_vfp3.
33286
33287 2014-02-11  Jeff Law  <law@redhat.com>
33288
33289         PR middle-end/54041
33290         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
33291         object with an undesirable mode.
33292
33293 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33294
33295         PR libgomp/60107
33296         * config/i386/sol2-9.h: New file.
33297         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
33298         *-*-solaris2.9*): Use it.
33299
33300 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
33301
33302         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
33303         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
33304
33305 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
33306
33307         * config/microblaze/microblaze.c: Extend mcpu version format
33308
33309 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
33310
33311         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
33312
33313 2014-02-10  Richard Henderson  <rth@redhat.com>
33314
33315         PR target/59927
33316         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
33317         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
33318         ms-abi vs -mno-accumulate-outgoing-args.
33319         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
33320         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
33321         respect to ms-abi.
33322
33323 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33324
33325         PR middle-end/60080
33326         * cfgexpand.c (expand_asm_operands): Attach source location to
33327         ASM_INPUT rtx objects.
33328         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
33329
33330 2014-02-10  Nick Clifton  <nickc@redhat.com>
33331
33332         * config/mn10300/mn10300.c (popcount): New function.
33333         (mn10300_expand_prologue): Include saved registers in stack usage
33334         count.
33335
33336 2014-02-10  Jeff Law  <law@redhat.com>
33337
33338         PR middle-end/52306
33339         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
33340         when changing the SET_DEST of a prior insn to avoid an input reload.
33341
33342 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
33343
33344         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
33345         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
33346         -mcall-openbsd, or -mcall-linux.
33347         (CC1_ENDIAN_BIG_SPEC): Remove.
33348         (CC1_ENDIAN_LITTLE_SPEC): Remove.
33349         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
33350         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
33351         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
33352         and %cc1_endian_default.
33353         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
33354
33355 2014-02-10  Richard Biener  <rguenther@suse.de>
33356
33357         PR tree-optimization/60115
33358         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
33359         MEM_REF handling.  Properly verify that the accesses are not
33360         out of the objects bound.
33361
33362 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33363
33364         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
33365         coretex to cortex.
33366
33367 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
33368
33369         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
33370         proper constants and fix formatting.
33371         (possible_polymorphic_call_targets): Fix formatting.
33372
33373 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
33374             Ilya Tocar  <ilya.tocar@intel.com>
33375
33376         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
33377         (_mm512_loadu_epi32): Renamed into...
33378         (_mm512_loadu_si512): This.
33379         (_mm512_storeu_epi32): Renamed into...
33380         (_mm512_storeu_si512): This.
33381         (_mm512_maskz_ceil_ps): Removed.
33382         (_mm512_maskz_ceil_pd): Ditto.
33383         (_mm512_maskz_floor_ps): Ditto.
33384         (_mm512_maskz_floor_pd): Ditto.
33385         (_mm512_floor_round_ps): Ditto.
33386         (_mm512_floor_round_pd): Ditto.
33387         (_mm512_ceil_round_ps): Ditto.
33388         (_mm512_ceil_round_pd): Ditto.
33389         (_mm512_mask_floor_round_ps): Ditto.
33390         (_mm512_mask_floor_round_pd): Ditto.
33391         (_mm512_mask_ceil_round_ps): Ditto.
33392         (_mm512_mask_ceil_round_pd): Ditto.
33393         (_mm512_maskz_floor_round_ps): Ditto.
33394         (_mm512_maskz_floor_round_pd): Ditto.
33395         (_mm512_maskz_ceil_round_ps): Ditto.
33396         (_mm512_maskz_ceil_round_pd): Ditto.
33397         (_mm512_expand_pd): Ditto.
33398         (_mm512_expand_ps): Ditto.
33399         * config/i386/i386.c (ix86_builtins): Remove
33400         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
33401         (bdesc_args): Ditto.
33402         * config/i386/predicates.md (const1256_operand): New.
33403         (const_1_to_2_operand): Ditto.
33404         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
33405         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
33406         (*avx512pf_gatherpf<mode>sf): Ditto.
33407         (avx512pf_gatherpf<mode>df): Ditto.
33408         (*avx512pf_gatherpf<mode>df_mask): Ditto.
33409         (*avx512pf_gatherpf<mode>df): Ditto.
33410         (avx512pf_scatterpf<mode>sf): Ditto.
33411         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
33412         (*avx512pf_scatterpf<mode>sf): Ditto.
33413         (avx512pf_scatterpf<mode>df): Ditto.
33414         (*avx512pf_scatterpf<mode>df_mask): Ditto.
33415         (*avx512pf_scatterpf<mode>df): Ditto.
33416         (avx512f_expand<mode>): Removed.
33417         (<shift_insn><mode>3<mask_name>): Change predicate type.
33418
33419 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
33420
33421         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
33422         not at the end of datarefs vector use ordered_remove to avoid
33423         reordering datarefs vector.
33424
33425         PR c/59984
33426         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
33427         mark local addressable non-static vars as GOVD_PRIVATE
33428         instead of GOVD_LOCAL.
33429         * omp-low.c (lower_omp_for): Move gimple_bind_vars
33430         and BLOCK_VARS of gimple_bind_block to new_stmt rather
33431         than copying them.
33432
33433         PR middle-end/60092
33434         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
33435         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
33436         assume_aligned or alloc_align attributes.
33437         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
33438         arguments.  Handle also assume_aligned and alloc_align attributes.
33439         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
33440         calls to functions with assume_aligned or alloc_align attributes.
33441         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
33442
33443 2014-02-08  Terry Guo  <terry.guo@arm.com>
33444
33445         * doc/invoke.texi: Document ARM -march=armv7e-m.
33446
33447 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
33448
33449         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
33450         flag on __cilkrts_rethrow builtin.
33451
33452         PR ipa/60026
33453         * ipa-cp.c (determine_versionability): Fail at -O0
33454         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
33455         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
33456
33457         Revert:
33458         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
33459
33460         PR ipa/60026
33461         * tree-inline.c (copy_forbidden): Fail for
33462         __attribute__((optimize (0))) functions.
33463
33464 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
33465
33466         * varpool.c: Include pointer-set.h.
33467         (varpool_remove_unreferenced_decls): Variables in other partitions
33468         will not be output; be however careful to not lose information
33469         about partitioning.
33470
33471 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
33472
33473         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
33474         lookup in the vtable constructor.
33475
33476 2014-02-07  Jeff Law  <law@redhat.com>
33477
33478         PR target/40977
33479         * config/m68k/m68k.md (ashldi_extsi): Turn into a
33480         define_insn_and_split.
33481
33482         * ipa-inline.c (inline_small_functions): Fix typos.
33483
33484 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
33485
33486         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
33487         (s390_can_use_return_insn): Declare.
33488         * config/s390/s390.h (EPILOGUE_USES): Define.
33489         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
33490         instructions.
33491         (s390_chunkify_start): Handle return JUMP_LABELs.
33492         (s390_early_mach): Emit a main_pool instruction on the entry edge.
33493         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
33494         (s390_can_use_return_insn): New functions.
33495         (s390_fix_long_loop_prediction): Handle conditional returns.
33496         (TARGET_SET_UP_BY_PROLOGUE): Define.
33497         * config/s390/s390.md (ANY_RETURN): New code iterator.
33498         (*creturn, *csimple_return, return, simple_return): New patterns.
33499
33500 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
33501
33502         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
33503         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
33504         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
33505         REG_CFA_RESTORE list when deciding not to restore a register.
33506
33507 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
33508
33509         * config/s390/s390.c: Include tree-pass.h and context.h.
33510         (s390_early_mach): New function, split out from...
33511         (s390_emit_prologue): ...here.
33512         (pass_data_s390_early_mach): New pass structure.
33513         (pass_s390_early_mach): New class.
33514         (s390_option_override): Create and register early_mach pass.
33515         Move to end of file.
33516
33517 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
33518
33519         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
33520         to match for the exit block.
33521
33522 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33523
33524         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
33525         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
33526         Reject misaligned operands.
33527
33528 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33529
33530         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
33531
33532 2014-02-07  Richard Biener  <rguenther@suse.de>
33533
33534         PR middle-end/60092
33535         * gimple-low.c (lower_builtin_posix_memalign): New function.
33536         (lower_stmt): Call it to lower posix_memalign in a way
33537         to make alignment info accessible.
33538
33539 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
33540
33541         PR c++/60082
33542         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
33543         __builtin_setjmp_receiver.
33544
33545 2014-02-07  Richard Biener  <rguenther@suse.de>
33546
33547         PR middle-end/60092
33548         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
33549         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
33550         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
33551         Handle BUILT_IN_POSIX_MEMALIGN.
33552         (find_func_clobbers): Likewise.
33553         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
33554         (call_may_clobber_ref_p_1): Likewise.
33555
33556 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
33557
33558         PR ipa/59918
33559         * ipa-devirt.c (record_target_from_binfo): Remove overactive
33560         sanity check.
33561
33562 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
33563
33564         PR ipa/59469
33565         * lto-cgraph.c (lto_output_node): Use
33566         symtab_get_symbol_partitioning_class.
33567         (lto_output_varpool_node): likewise.
33568         (symtab_get_symbol_partitioning_class): Move here from
33569         lto/lto-partition.c
33570         * cgraph.h (symbol_partitioning_class): Likewise.
33571         (symtab_get_symbol_partitioning_class): Declare.
33572
33573 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
33574
33575         * ggc.h (ggc_internal_cleared_alloc): New macro.
33576         * vec.h (vec_safe_copy): Handle memory stats.
33577         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
33578         * target-globals.c (save_target_globals): Likewise.
33579
33580 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
33581
33582         PR target/60077
33583         * expr.c (emit_move_resolve_push): Export; be bit more selective
33584         on when to clear alias set.
33585         * expr.h (emit_move_resolve_push): Declare.
33586         * function.h (struct function): Add tail_call_marked.
33587         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
33588         * config/i386/i386-protos.h (ix86_expand_push): Remove.
33589         * config/i386/i386.md (TImode move expander): De not call
33590         ix86_expand_push.
33591         (FP push expanders): Preserve memory attributes.
33592         * config/i386/sse.md (push<mode>1): Remove.
33593         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
33594         (ix86_expand_push): Remove.
33595         * config/i386/mmx.md (push<mode>1): Remove.
33596
33597 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
33598
33599         PR rtl-optimization/60030
33600         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
33601         lopart with paradoxical subreg before shifting it up by hprec.
33602
33603 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33604
33605         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
33606         Remove extra newline at end of file.
33607         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
33608         (arm_issue_rate): Handle cortexa57.
33609         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
33610         (cortex-a57.cortex-a53): Likewise.
33611
33612 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
33613
33614         PR target/59575
33615         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
33616         don't record in REG_FRAME_RELATED_EXPR registers not set in that
33617         bitmask.
33618         (arm_expand_prologue): Adjust all callers.
33619         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
33620         info, registers also at the lowest numbered registers side.  Use
33621         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
33622         XEXP.
33623
33624         PR debug/59992
33625         * var-tracking.c (adjust_mems): Before adding a SET to
33626         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
33627
33628 2014-02-06  Alan Modra  <amodra@gmail.com>
33629
33630         PR target/60032
33631         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
33632         change SDmode to DDmode when lra_in_progress.
33633
33634 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
33635
33636         PR middle-end/59150
33637         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
33638         free_data_ref on the dr first, and before goto again also set dr
33639         to the next dr.  For simd_lane_access, free old datarefs[i] before
33640         overwriting it.  For get_vectype_for_scalar_type failure, don't
33641         free_data_ref if simd_lane_access.
33642
33643         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
33644
33645         PR target/60062
33646         * tree.h (opts_for_fn): New inline function.
33647         (opt_for_fn): Define.
33648         * config/i386/i386.c (ix86_function_regparm): Use
33649         opt_for_fn (decl, optimize) instead of optimize.
33650
33651 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
33652
33653         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
33654         for SYMBOL_REF in large memory model.
33655
33656 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33657
33658         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
33659         and crypto support.
33660         (cortex-a57): Likewise.
33661         (cortex-a57.cortex-a53): Likewise.
33662
33663 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
33664             Kugan Vivekanandarajah  <kuganv@linaro.org>
33665
33666         * config/arm/arm.c (arm_vector_alignment_reachable): Check
33667         unaligned_access.
33668         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
33669
33670 2014-02-06  Richard Biener  <rguenther@suse.de>
33671
33672         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
33673         set_loop_copy and initialize_original_copy_tables.
33674
33675 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
33676
33677         * config/aarch64/aarch64-simd.md
33678         (aarch64_ashr_simddi): Change QI to SI.
33679
33680 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
33681             Jakub Jelinek  <jakub@redhat.com>
33682
33683         PR middle-end/60013
33684         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
33685         of the dataflow.
33686
33687 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33688
33689         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
33690         CODE_FOR_altivec_vpku[hw]um to
33691         CODE_FOR_altivec_vpku[hw]um_direct.
33692         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
33693         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
33694         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
33695         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
33696
33697 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33698
33699         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
33700         generation for -maltivec=be.
33701         (altivec_vsumsws): Simplify redundant test.
33702
33703 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33704
33705         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
33706         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
33707         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
33708         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
33709         gen_altivec_vpkuwum.
33710         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
33711         BYTES_BIG_ENDIAN.
33712         (altivec_vpks<VI_char>ss): Likewise.
33713         (altivec_vpks<VI_char>us): Likewise.
33714         (altivec_vpku<VI_char>us): Likewise.
33715         (altivec_vpku<VI_char>um): Likewise.
33716         (altivec_vpku<VI_char>um_direct): New (copy of
33717         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
33718         internal use).
33719         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
33720         target is little endian and -maltivec=be is not specified.
33721         (*altivec_vupkhs<VU_char>_direct): New (copy of
33722         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
33723         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
33724         target is little endian and -maltivec=be is not specified.
33725         (*altivec_vupkls<VU_char>_direct): New (copy of
33726         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
33727         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
33728         little endian and -maltivec=be is not specified.
33729         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
33730         little endian and -maltivec=be is not specified.
33731
33732 2014-02-05  Richard Henderson  <rth@redhat.com>
33733
33734         PR debug/52727
33735         * combine-stack-adj.c: Revert r206943.
33736         * sched-int.h (struct deps_desc): Add last_args_size.
33737         * sched-deps.c (init_deps): Initialize it.
33738         (sched_analyze_insn): Add OUTPUT dependencies between insns that
33739         contain REG_ARGS_SIZE notes.
33740
33741 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
33742
33743         * lto-cgraph.c (asm_nodes_output): Make global.
33744         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
33745         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
33746         (driver_handle_option): Handle OPT_fwpa.
33747
33748 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
33749
33750         PR ipa/59947
33751         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
33752         a comment typo and formatting issue.  If odr_hash hasn't been
33753         created, return vNULL and set *completep to false.
33754
33755         PR middle-end/57499
33756         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
33757         bb with no successors.
33758
33759 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
33760
33761         PR target/59718
33762         * doc/invoke.texi (-march): Clarify documentation for ARM.
33763         (-mtune): Likewise.
33764         (-mcpu): Likewise.
33765
33766 2014-02-05  Richard Biener  <rguenther@suse.de>
33767
33768         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
33769         when not vectorizing because of too many alias checks.
33770         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
33771         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
33772
33773 2014-02-05  Nick Clifton  <nickc@redhat.com>
33774
33775         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
33776         accept extended registers in any mode when compiling for the MN10300.
33777
33778 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
33779
33780         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
33781         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
33782         sanitization attributes.
33783         (can_inline_edge_p): Likewise.
33784         (sanitize_attrs_match_for_inline_p): New function.
33785
33786 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
33787
33788         * ipa-prop.c (detect_type_change): Shor circuit testing of
33789         type changes on THIS pointer.
33790
33791 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
33792
33793         PR target/59777
33794         * config/pa/pa.c (legitimize_tls_address): Return original address
33795         if not passed a SYMBOL_REF rtx.
33796         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
33797         addresses.
33798         (pa_emit_move_sequence): Simplify TLS source operands.
33799         (pa_legitimate_constant_p): Reject all TLS constants.
33800         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
33801         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
33802
33803 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
33804
33805         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
33806         groups when we know they are controlled by LTO.
33807         * varasm.c (default_binds_local_p_1): If object is in other partition,
33808         it will be resolved locally.
33809
33810 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33811
33812         * config/host-linux.c (linux_gt_pch_use_address): Don't
33813         use SSIZE_MAX because it is not always defined.
33814
33815 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
33816
33817         PR bootstrap/59913
33818         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
33819         threshold for pseudo splitting.
33820         (update_ebb_live_info): Process call argument hard registers and
33821         hard registers from insn definition too.
33822         (max_small_class_regs_num): New constant.
33823         (inherit_in_ebb): Update live hard regs through EBBs.  Update
33824         reloads_num only for small register classes.  Don't split for
33825         outputs of jumps.
33826
33827 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
33828
33829         PR ipa/60058
33830         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
33831         is non-null.
33832
33833 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
33834
33835         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
33836         visibility is safe.
33837
33838 2014-02-04  Marek Polacek  <polacek@redhat.com>
33839
33840         * gdbinit.in (pel): Define.
33841
33842 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33843
33844         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
33845         behavior.
33846
33847 2014-02-04  Richard Biener  <rguenther@suse.de>
33848
33849         PR lto/59723
33850         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
33851         in function context local.
33852         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
33853         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
33854         similar to LTO_imported_decl_ref.
33855
33856 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
33857
33858         PR tree-optimization/60002
33859         * cgraphclones.c (build_function_decl_skip_args): Clear
33860         DECL_LANG_SPECIFIC.
33861
33862         PR tree-optimization/60023
33863         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
33864         false to gsi_replace.
33865         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
33866         has been in some EH region and vec_stmt could throw, add
33867         vec_stmt into the same EH region.
33868         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
33869         has no lhs, ignore it.
33870         * internal-fn.c (expand_MASK_LOAD): Likewise.
33871
33872         PR ipa/60026
33873         * tree-inline.c (copy_forbidden): Fail for
33874         __attribute__((optimize (0))) functions.
33875
33876         PR other/58712
33877         * omp-low.c (simd_clone_struct_copy): If from->inbranch
33878         is set, copy one less argument.
33879         (expand_simd_clones): Don't subtract clone_info->inbranch
33880         from simd_clone_struct_alloc argument.
33881
33882         PR rtl-optimization/57915
33883         * recog.c (simplify_while_replacing): If all unary/binary/relational
33884         operation arguments are constant, attempt to simplify those.
33885
33886         PR middle-end/59261
33887         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
33888         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
33889
33890 2014-02-04  Richard Biener  <rguenther@suse.de>
33891
33892         PR tree-optimization/60012
33893         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
33894         TBAA disambiguation to all DDRs.
33895
33896 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33897
33898         PR target/59788
33899         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
33900         (LINK_SPEC): Use it for -shared, -shared-libgcc.
33901
33902 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
33903
33904         PR ipa/59882
33905         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
33906
33907 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
33908
33909         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
33910         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
33911
33912 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
33913
33914         PR ipa/59831
33915         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
33916         to figure out targets of polymorphic calls with known decl.
33917         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33918         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
33919         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
33920         (get_polymorphic_call_info): ... here.
33921         (get_polymorphic_call_info_from_invariant): New function.
33922
33923 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
33924
33925         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
33926         lookup via vtable pointer; check for type consistency
33927         and turn inconsitent facts into UNREACHABLE.
33928         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33929         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
33930         type inconsistent querries; return UNREACHABLE instead.
33931
33932 2014-02-03  Richard Henderson  <rth@twiddle.net>
33933
33934         PR tree-opt/59924
33935         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
33936         already processed this node.
33937         (normalize_one_pred_1): Pass along mark_set.
33938         (normalize_one_pred): Create and destroy a pointer_set_t.
33939         (normalize_one_pred_chain): Likewise.
33940
33941 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
33942
33943         PR gcov-profile/58602
33944         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
33945
33946 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
33947
33948         PR ipa/59831
33949         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
33950         -fno-devirtualize; try to devirtualize by the knowledge of
33951         virtual table pointer given by aggregate propagation.
33952         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33953         (ipa_print_node_jump_functions): Dump also offset that
33954         is relevant for polymorphic calls.
33955         (determine_known_aggregate_parts): Add arg_type parameter; use it
33956         instead of determining the type from pointer type.
33957         (ipa_compute_jump_functions_for_edge): Update call of
33958         determine_known_aggregate_parts.
33959         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
33960         (gimple_get_virt_method_for_binfo): ... here; simplify using
33961         vtable_pointer_value_to_vtable.
33962         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
33963         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
33964         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
33965         (vtable_pointer_value_to_vtable): Break out from ...; handle also
33966         POINTER_PLUS_EXPR.
33967         (vtable_pointer_value_to_binfo): ... here.
33968         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
33969
33970 2014-02-03  Teresa Johnson  <tejohnson@google.com>
33971
33972         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
33973         redef of outer loop index variable.
33974
33975 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
33976
33977         PR c++/53017
33978         PR c++/59211
33979         * doc/extend.texi (Function Attributes): Typo.
33980
33981 2014-02-03  Cong Hou  <congh@google.com>
33982
33983         PR tree-optimization/60000
33984         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
33985         if the vectorized statement is a store.  A store statement can only
33986         appear at the end of pattern statements.
33987
33988 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
33989
33990         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
33991         (ix86_option_override_internal): Default long double to 64-bit for
33992         32-bit Bionic and to 128-bit for 64-bit Bionic.
33993
33994         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
33995         TARGET_LONG_DOUBLE_128 is true.
33996         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
33997
33998         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
33999         (mlong-double-64): Negate -mlong-double-128.
34000         (mlong-double-128): New option.
34001
34002         * config/i386/i386-c.c (ix86_target_macros): Define
34003         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
34004
34005         * doc/invoke.texi: Document -mlong-double-128.
34006
34007 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
34008
34009         PR rtl-optimization/60024
34010         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
34011
34012 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
34013
34014         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
34015
34016 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
34017
34018         PR rtl-optimization/57662
34019         * sel-sched.c (code_motion_path_driver): Do not mark already not
34020         existing blocks in the visiting bitmap.
34021
34022 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
34023
34024         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
34025         on the insn being emitted.
34026
34027 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
34028             Will Deacon  <will.deacon@arm.com>
34029
34030         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
34031
34032 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34033
34034         * config/arm/arm-tables.opt: Regenerate.
34035
34036 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34037
34038         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
34039         for vector types other than V16QImode.
34040         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
34041         define_expand, and call altivec_expand_vec_perm_le when producing
34042         code with little endian element order.
34043         (*altivec_vperm_<mode>_internal): New insn having previous
34044         behavior of altivec_vperm_<mode>.
34045         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
34046         altivec_expand_vec_perm_le when producing code with little endian
34047         element order.
34048         (*altivec_vperm_<mode>_uns_internal): New insn having previous
34049         behavior of altivec_vperm_<mode>_uns.
34050
34051 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34052
34053         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
34054         (altivec_vsumsws): Add handling for -maltivec=be with a little
34055         endian target.
34056         (altivec_vsumsws_direct): New.
34057         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
34058         gen_altivec_vsumsws.
34059
34060 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
34061
34062         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
34063         vtable_pointer_value_to_binfo): New functions.
34064         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
34065         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
34066
34067 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
34068
34069         * config/nios2/nios2.md (load_got_register): Initialize GOT
34070         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
34071         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
34072
34073 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
34074
34075         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
34076         preserverd by passthrough, do not propagate the type.
34077
34078 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
34079
34080         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
34081         (mips_atomic_assign_expand_fenv): New function.
34082         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
34083
34084 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
34085
34086         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
34087         (__builtin_mips_set_fcsr): Likewise.
34088         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
34089         MIPS_USI_FTYPE_VOID.
34090         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
34091         (mips16_expand_set_fcsr): Likewise.
34092         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
34093         (mips16_set_fcsr_stub): Likewise.
34094         (mips16_get_fcsr_one_only_stub): New class.
34095         (mips16_set_fcsr_one_only_stub): Likewise.
34096         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
34097         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
34098         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
34099         (hard_float): New availability predicate.
34100         (mips_builtins): Add get_fcsr and set_fcsr.
34101         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
34102         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
34103         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
34104         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
34105         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
34106         patterns.
34107
34108 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
34109
34110         * config/mips/mips.c (mips_one_only_stub): New class.
34111         (mips_need_mips16_rdhwr_p): Replace with...
34112         (mips16_rdhwr_stub): ...this new variable.
34113         (mips16_stub_call_address): New function.
34114         (mips16_rdhwr_one_only_stub): New class.
34115         (mips_expand_thread_pointer): Use mips16_stub_call_address.
34116         (mips_output_mips16_rdhwr): Delete.
34117         (mips_finish_stub): New function.
34118         (mips_code_end): Use it to handle rdhwr stubs.
34119
34120 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
34121
34122         PR target/60017
34123         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
34124         when calculating size of integer atomic types.
34125
34126 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
34127
34128         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
34129
34130 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
34131
34132         PR tree-optimization/60003
34133         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
34134         * profile.c (branch_prob): Use gimple_call_builtin_p
34135         to check for BUILT_IN_SETJMP_RECEIVER.
34136         * tree-inline.c (copy_bb): Call notice_special_calls.
34137
34138 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
34139
34140         PR bootstrap/59985
34141         * lra-constraints.c (process_alt_operands): Update reload_sum only
34142         on the first pass.
34143
34144 2014-01-31  Richard Henderson  <rth@redhat.com>
34145
34146         PR middle-end/60004
34147         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
34148         until after else_eh is processed.
34149
34150 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
34151
34152         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
34153         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
34154         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
34155         in smmintrin.h, remove them.
34156         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
34157         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
34158         * config/i386/i386.md (ROUND_SAE): Fix value.
34159         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
34160         (const48_operand): New.
34161         * config/i386/subst.md (round), (round_expand): Use
34162         const_4_or_8_to_11_operand.
34163         (round_saeonly), (round_saeonly_expand): Use const48_operand.
34164
34165 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
34166
34167         * config/i386/constraints.md (Yk): Swap meaning with k.
34168         * config/i386/i386.md (movhi_internal): Change Yk to k.
34169         (movqi_internal): Ditto.
34170         (*k<logic><mode>): Ditto.
34171         (*andhi_1): Ditto.
34172         (*andqi_1): Ditto.
34173         (kandn<mode>): Ditto.
34174         (*<code>hi_1): Ditto.
34175         (*<code>qi_1): Ditto.
34176         (kxnor<mode>): Ditto.
34177         (kortestzhi): Ditto.
34178         (kortestchi): Ditto.
34179         (kunpckhi): Ditto.
34180         (*one_cmplhi2_1): Ditto.
34181         (*one_cmplqi2_1): Ditto.
34182         * config/i386/sse.md (): Change k to Yk.
34183         (avx512f_load<mode>_mask): Ditto.
34184         (avx512f_blendm<mode>): Ditto.
34185         (avx512f_store<mode>_mask): Ditto.
34186         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
34187         (avx512f_storedqu<mode>_mask): Ditto.
34188         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
34189         Ditto.
34190         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
34191         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
34192         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
34193         (avx512f_maskcmp<mode>3): Ditto.
34194         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
34195         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
34196         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
34197         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
34198         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
34199         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
34200         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
34201         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
34202         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
34203         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
34204         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
34205         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
34206         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
34207         (vec_extract_lo_<mode>_maskm): Ditto.
34208         (vec_extract_hi_<mode>_maskm): Ditto.
34209         (avx512f_vternlog<mode>_mask): Ditto.
34210         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
34211         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
34212         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
34213         (avx512f_<code>v8div16qi2_mask): Ditto.
34214         (avx512f_<code>v8div16qi2_mask_store): Ditto.
34215         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
34216         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
34217         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
34218         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
34219         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
34220         (*avx512pf_gatherpf<mode>df_mask): Ditto.
34221         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
34222         (*avx512pf_scatterpf<mode>df_mask): Ditto.
34223         (avx512cd_maskb_vec_dupv8di): Ditto.
34224         (avx512cd_maskw_vec_dupv16si): Ditto.
34225         (avx512f_vpermi2var<mode>3_maskz): Ditto.
34226         (avx512f_vpermi2var<mode>3_mask): Ditto.
34227         (avx512f_vpermi2var<mode>3_mask): Ditto.
34228         (avx512f_vpermt2var<mode>3_maskz): Ditto.
34229         (*avx512f_gathersi<mode>): Ditto.
34230         (*avx512f_gathersi<mode>_2): Ditto.
34231         (*avx512f_gatherdi<mode>): Ditto.
34232         (*avx512f_gatherdi<mode>_2): Ditto.
34233         (*avx512f_scattersi<mode>): Ditto.
34234         (*avx512f_scatterdi<mode>): Ditto.
34235         (avx512f_compress<mode>_mask): Ditto.
34236         (avx512f_compressstore<mode>_mask): Ditto.
34237         (avx512f_expand<mode>_mask): Ditto.
34238         * config/i386/subst.md (mask): Change k to Yk.
34239         (mask_scalar_merge): Ditto.
34240         (sd): Ditto.
34241
34242 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
34243
34244         * doc/extend.texi (Vector Extensions): Document ?: in C++.
34245
34246 2014-01-31  Richard Biener  <rguenther@suse.de>
34247
34248         PR middle-end/59990
34249         * builtins.c (fold_builtin_memory_op): Make sure to not
34250         use a floating-point mode or a boolean or enumeral type for
34251         the copy operation.
34252
34253 2014-01-30  DJ Delorie  <dj@redhat.com>
34254
34255         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
34256         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
34257         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
34258         whenever main() has an epilogue.
34259
34260 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34261
34262         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
34263         unused variable "field".
34264         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
34265         (vsx_mergeh_<mode>): Likewise.
34266         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
34267         (altivec_vmrghh): Likewise.
34268         (altivec_vmrghw): Likewise.
34269         (altivec_vmrglb): Likewise.
34270         (altivec_vmrglh): Likewise.
34271         (altivec_vmrglw): Likewise.
34272         (altivec_vspltb): Add missing uses.
34273         (altivec_vsplth): Likewise.
34274         (altivec_vspltw): Likewise.
34275         (altivec_vspltsf): Likewise.
34276
34277 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
34278
34279         PR target/59923
34280         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
34281         frame related instructions.
34282
34283 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
34284
34285         PR rtl-optimization/59959
34286         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
34287         any reload of register whose subreg is invalid.
34288
34289 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
34290
34291         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
34292         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
34293         Add missing return type - void.
34294
34295 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34296
34297         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
34298         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
34299         remove element index adjustment for endian (now handled in vsx.md
34300         and altivec.md).
34301         (altivec_expand_vec_perm_const): Use
34302         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
34303         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
34304         (vsx_xxspltw_<mode>): Adjust element index for little endian.
34305         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
34306         define_expand and a new define_insn *altivec_vspltb_internal;
34307         adjust for -maltivec=be on a little endian target.
34308         (altivec_vspltb_direct): New.
34309         (altivec_vsplth): Divide into a define_expand and a new
34310         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
34311         little endian target.
34312         (altivec_vsplth_direct): New.
34313         (altivec_vspltw): Divide into a define_expand and a new
34314         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
34315         little endian target.
34316         (altivec_vspltw_direct): New.
34317         (altivec_vspltsf): Divide into a define_expand and a new
34318         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
34319         a little endian target.
34320
34321 2014-01-30  Richard Biener  <rguenther@suse.de>
34322
34323         PR tree-optimization/59993
34324         * tree-ssa-forwprop.c (associate_pointerplus): Check we
34325         can propagate form the earlier stmt and avoid the transform
34326         when the intermediate result is needed.
34327
34328 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
34329
34330         * README.Portability: Fix typo.
34331
34332 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
34333
34334         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
34335         comparison_operator with ordered_comparison_operator.
34336
34337 2014-01-30  Nick Clifton  <nickc@redhat.com>
34338
34339         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
34340         Rename to mn10300_store_multiple_regs.
34341         * config/mn10300/mn10300.c: Likewise.
34342         * config/mn10300/mn10300.md (store_movm): Fix typo: call
34343         store_multiple_regs.
34344         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
34345         Call mn10300_store_multiple_regs.
34346
34347 2014-01-30  Nick Clifton  <nickc@redhat.com>
34348             DJ Delorie  <dj@redhat.com>
34349
34350         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
34351         %fp 2 to keep registers after it properly word-aligned.
34352         (rl78_alloc_physical_registers_umul): Handle the case where both
34353         input operands are the same.
34354
34355 2014-01-30  Richard Biener  <rguenther@suse.de>
34356
34357         PR tree-optimization/59903
34358         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
34359         check properly.
34360
34361 2014-01-30  Jason Merrill  <jason@redhat.com>
34362
34363         PR c++/59633
34364         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
34365
34366         PR c++/59645
34367         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
34368
34369 2014-01-30  Richard Biener  <rguenther@suse.de>
34370
34371         PR tree-optimization/59951
34372         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
34373
34374 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
34375
34376         PR target/59784
34377         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
34378         SFmode to DFmode case.
34379
34380 2014-01-29  DJ Delorie  <dj@redhat.com>
34381
34382         * config/msp430/msp430.opt (-minrt): New.
34383         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
34384         if -minrt given.
34385         (ENDFILE_SPEC): Likewise.
34386
34387 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
34388
34389         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
34390         (estimate_function_body_sizes): Use it.
34391
34392 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
34393
34394         PR c++/58561
34395         * dwarf2out.c (is_cxx_auto): New.
34396         (is_base_type): Use it.
34397         (gen_type_die_with_usage): Likewise.
34398
34399 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34400
34401         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
34402         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
34403         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
34404         -maltivec=be with LE targets.
34405         (vsx_mergeh_<mode>): Likewise.
34406         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
34407         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
34408         (altivec_vmrghb): Replace with define_expand and new
34409         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
34410         (altivec_vmrghb_direct): New define_insn.
34411         (altivec_vmrghh): Replace with define_expand and new
34412         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
34413         (altivec_vmrghh_direct): New define_insn.
34414         (altivec_vmrghw): Replace with define_expand and new
34415         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
34416         (altivec_vmrghw_direct): New define_insn.
34417         (*altivec_vmrghsf): Adjust for endianness.
34418         (altivec_vmrglb): Replace with define_expand and new
34419         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
34420         (altivec_vmrglb_direct): New define_insn.
34421         (altivec_vmrglh): Replace with define_expand and new
34422         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
34423         (altivec_vmrglh_direct): New define_insn.
34424         (altivec_vmrglw): Replace with define_expand and new
34425         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
34426         (altivec_vmrglw_direct): New define_insn.
34427         (*altivec_vmrglsf): Adjust for endianness.
34428         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
34429         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
34430         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
34431         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
34432         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
34433         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
34434         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
34435         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
34436
34437 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
34438
34439         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
34440         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
34441         whitespace.
34442
34443 2014-01-29  Richard Biener  <rguenther@suse.de>
34444
34445         PR tree-optimization/58742
34446         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
34447         associate_pointerplus_align.
34448         (associate_pointerplus_diff): New function.
34449         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
34450         and associate_pointerplus_diff.
34451
34452 2014-01-29  Richard Biener  <rguenther@suse.de>
34453
34454         * lto-streamer.h (LTO_major_version): Bump to 3.
34455         (LTO_minor_version): Reset to 0.
34456
34457 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
34458
34459         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
34460         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
34461         (arm_file_start): Generate correct asm header for armv7ve.
34462         * config/arm/bpabi.h: Add multilib support for armv7ve.
34463         * config/arm/driver-arm.c: Change the architectures of cortex-a7
34464         and cortex-a15 to armv7ve.
34465         * config/arm/t-aprofile: Add multilib support for armv7ve.
34466         * doc/invoke.texi: Document -march=armv7ve.
34467
34468 2014-01-29  Richard Biener  <rguenther@suse.de>
34469
34470         PR tree-optimization/58742
34471         * tree-ssa-forwprop.c (associate_plusminus): Return true
34472         if we changed sth, defer EH cleanup to ...
34473         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
34474         (simplify_mult): New function.
34475
34476 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
34477
34478         PR middle-end/59917
34479         PR tree-optimization/59920
34480         * tree.c (build_common_builtin_nodes): Remove
34481         __builtin_setjmp_dispatcher initialization.
34482         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
34483         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
34484         instead of gsi_after_labels + manually skipping debug stmts.
34485         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
34486         ignore bbs with IFN_ABNORMAL_DISPATCHER.
34487         * tree-inline.c (copy_edges_for_bb): Remove
34488         can_make_abnormal_goto argument, instead add abnormal_goto_dest
34489         argument.  Ignore computed_goto_p stmts.  Don't call
34490         make_abnormal_goto_edges.  If a call might need abnormal edges
34491         for non-local gotos, see if it already has an edge to
34492         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
34493         with true argument, don't do anything then, otherwise add
34494         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
34495         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
34496         caller.
34497         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
34498         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
34499         (lower_stmt): Don't set data->calls_builtin_setjmp.
34500         (lower_builtin_setjmp): Adjust comment.
34501         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
34502         * tree-cfg.c (found_computed_goto): Remove.
34503         (factor_computed_gotos): Remove.
34504         (make_goto_expr_edges): Return bool, true for computed gotos.
34505         Don't call make_abnormal_goto_edges.
34506         (build_gimple_cfg): Don't set found_computed_goto, don't call
34507         factor_computed_gotos.
34508         (computed_goto_p): No longer static.
34509         (make_blocks): Don't set found_computed_goto.
34510         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
34511         (make_edges): If make_goto_expr_edges returns true, push bb
34512         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
34513         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
34514         vector.  Record mapping between bbs and OpenMP regions if there
34515         are any, adjust make_gimple_omp_edges caller.  Call
34516         handle_abnormal_edges.
34517         (make_abnormal_goto_edges): Remove.
34518         * tree-cfg.h (make_abnormal_goto_edges): Remove.
34519         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
34520         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
34521         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
34522         * internal-fn.def (ABNORMAL_DISPATCHER): New.
34523         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
34524         filling *region also set *region_idx to (*region)->entry->index.
34525
34526         PR other/58712
34527         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
34528         For REGs set ORIGINAL_REGNO.
34529
34530 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
34531
34532         * doc/md.texi: Mention that a target shouldn't implement
34533         vec_widen_(s|u)mul_even/odd pair if it is less efficient
34534         than hi/lo pair.
34535
34536 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
34537
34538         PR tree-optimization/59594
34539         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
34540         a copy of the datarefs vector rather than the vector itself.
34541
34542 2014-01-28  Jason Merrill  <jason@redhat.com>
34543
34544         PR c++/53756
34545         * dwarf2out.c (auto_die): New static.
34546         (gen_type_die_with_usage): Handle C++1y 'auto'.
34547         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
34548         on definition.
34549
34550 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
34551
34552         PR target/59672
34553         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
34554         (SPEC_X32): Likewise.
34555         (SPEC_64): Likewise.
34556         * config/i386/i386.c (ix86_option_override_internal): Turn off
34557         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
34558         for TARGET_16BIT.
34559         (x86_file_start): Output .code16gcc for TARGET_16BIT.
34560         * config/i386/i386.h (TARGET_16BIT): New macro.
34561         (TARGET_16BIT_P): Likewise.
34562         * config/i386/i386.opt: Add m16.
34563         * doc/invoke.texi: Document -m16.
34564
34565 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
34566
34567         PR preprocessor/59935
34568         * input.c (location_get_source_line): Bail out on when line number
34569         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
34570
34571 2014-01-28  Richard Biener  <rguenther@suse.de>
34572
34573         PR tree-optimization/58742
34574         * tree-ssa-forwprop.c (associate_plusminus): Handle
34575         pointer subtraction of the form (T)(P + A) - (T)P.
34576
34577 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34578
34579         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
34580         at const_int_cost.
34581
34582 2014-01-28  Richard Biener  <rguenther@suse.de>
34583
34584         Revert
34585         2014-01-28  Richard Biener  <rguenther@suse.de>
34586
34587         PR rtl-optimization/45364
34588         PR rtl-optimization/59890
34589         * var-tracking.c (local_get_addr_clear_given_value): Handle
34590         already cleared slot.
34591         (val_reset): Handle not allocated local_get_addr_cache.
34592         (vt_find_locations): Use post-order on the inverted CFG.
34593
34594 2014-01-28  Richard Biener  <rguenther@suse.de>
34595
34596         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
34597
34598 2014-01-28  Richard Biener  <rguenther@suse.de>
34599
34600         PR rtl-optimization/45364
34601         PR rtl-optimization/59890
34602         * var-tracking.c (local_get_addr_clear_given_value): Handle
34603         already cleared slot.
34604         (val_reset): Handle not allocated local_get_addr_cache.
34605         (vt_find_locations): Use post-order on the inverted CFG.
34606
34607 2014-01-28  Alan Modra  <amodra@gmail.com>
34608
34609         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
34610         * configure.ac <recursive call for build != host>: Define
34611         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
34612         and LD_FOR_BUILD too.
34613         * configure: Regenerate.
34614
34615 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
34616
34617         * config/i386/i386.c (get_builtin_code_for_version): Separate
34618         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
34619         Broadwell from Haswell.
34620
34621 2014-01-27  Steve Ellcey  <sellcey@mips.com>
34622
34623         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
34624         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
34625         * config/mips/mips.c (mips_option_override): Change setting
34626         of TARGET_DSP.
34627         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
34628         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
34629         Change from Mask to Var.
34630
34631 2014-01-27  Jeff Law  <law@redhat.com>
34632
34633         * ipa-inline.c (inline_small_functions): Fix typo.
34634
34635 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
34636
34637         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
34638         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
34639         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
34640         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
34641         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
34642         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
34643         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
34644         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
34645         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
34646         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
34647         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
34648         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
34649         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
34650         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
34651         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
34652         (_mm512_storeu_epi64): Ditto.
34653         (_mm512_cmpge_epi32_mask): Ditto.
34654         (_mm512_cmpge_epu32_mask): Ditto.
34655         (_mm512_cmpge_epi64_mask): Ditto.
34656         (_mm512_cmpge_epu64_mask): Ditto.
34657         (_mm512_cmple_epi32_mask): Ditto.
34658         (_mm512_cmple_epu32_mask): Ditto.
34659         (_mm512_cmple_epi64_mask): Ditto.
34660         (_mm512_cmple_epu64_mask): Ditto.
34661         (_mm512_cmplt_epi32_mask): Ditto.
34662         (_mm512_cmplt_epu32_mask): Ditto.
34663         (_mm512_cmplt_epi64_mask): Ditto.
34664         (_mm512_cmplt_epu64_mask): Ditto.
34665         (_mm512_cmpneq_epi32_mask): Ditto.
34666         (_mm512_cmpneq_epu32_mask): Ditto.
34667         (_mm512_cmpneq_epi64_mask): Ditto.
34668         (_mm512_cmpneq_epu64_mask): Ditto.
34669         (_mm512_expand_pd): Ditto.
34670         (_mm512_expand_ps): Ditto.
34671         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
34672         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
34673         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
34674         * config/i386/i386.c (ix86_builtins): Add
34675         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
34676         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
34677         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
34678         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
34679         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
34680         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
34681         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
34682         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
34683         IX86_BUILTIN_PMOVUSQW512_MEM.
34684         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
34685         __builtin_ia32_pmovsqd512mem_mask,
34686         __builtin_ia32_pmovqd512mem_mask,
34687         __builtin_ia32_pmovusqw512mem_mask,
34688         __builtin_ia32_pmovsqw512mem_mask,
34689         __builtin_ia32_pmovqw512mem_mask,
34690         __builtin_ia32_pmovusdw512mem_mask,
34691         __builtin_ia32_pmovsdw512mem_mask,
34692         __builtin_ia32_pmovdw512mem_mask,
34693         __builtin_ia32_pmovqb512mem_mask,
34694         __builtin_ia32_pmovusqb512mem_mask,
34695         __builtin_ia32_pmovsqb512mem_mask,
34696         __builtin_ia32_pmovusdb512mem_mask,
34697         __builtin_ia32_pmovsdb512mem_mask,
34698         __builtin_ia32_pmovdb512mem_mask.
34699         (bdesc_args): Add __builtin_ia32_expanddf512,
34700         __builtin_ia32_expandsf512.
34701         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
34702         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
34703         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
34704         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
34705         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
34706         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
34707         (avx512f_<code>v8div16qi2_mask_store): This.
34708         (avx512f_expand<mode>): New.
34709
34710 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
34711
34712         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
34713         New.
34714         (_mm512_mask_prefetch_i64gather_pd): Ditto.
34715         (_mm512_prefetch_i32scatter_pd): Ditto.
34716         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
34717         (_mm512_prefetch_i64scatter_pd): Ditto.
34718         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
34719         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
34720         (_mm512_mask_prefetch_i64gather_ps): Ditto.
34721         (_mm512_prefetch_i32scatter_ps): Ditto.
34722         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
34723         (_mm512_prefetch_i64scatter_ps): Ditto.
34724         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
34725         * config/i386/i386-builtin-types.def: Define
34726         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
34727         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
34728         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
34729         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
34730         IX86_BUILTIN_SCATTERPFQPD.
34731         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
34732         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
34733         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
34734         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
34735         __builtin_ia32_scatterpfqps.
34736         (ix86_expand_builtin): Expand new built-ins.
34737         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
34738         fix memory access data type.
34739         (*avx512pf_gatherpf<mode>_mask): Ditto.
34740         (*avx512pf_gatherpf<mode>): Ditto.
34741         (avx512pf_scatterpf<mode>): Ditto.
34742         (*avx512pf_scatterpf<mode>_mask): Ditto.
34743         (*avx512pf_scatterpf<mode>): Ditto.
34744         (GATHER_SCATTER_SF_MEM_MODE): New.
34745         (avx512pf_gatherpf<mode>df): Ditto.
34746         (*avx512pf_gatherpf<mode>df_mask): Ditto.
34747         (*avx512pf_scatterpf<mode>df): Ditto.
34748
34749 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
34750
34751         PR bootstrap/59934
34752         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
34753         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
34754         reached.
34755
34756 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
34757
34758         * common/config/arm/arm-common.c
34759         (arm_rewrite_mcpu): Handle multiple names.
34760         * config/arm/arm.h
34761         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
34762
34763 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
34764
34765         * gimple-builder.h (create_gimple_tmp): Delete.
34766
34767 2014-01-27  Christian Bruel  <christian.bruel@st.com>
34768
34769         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
34770         words comparisons.
34771
34772 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
34773
34774         * config/pa/pa.md (call): Generate indirect long calls to non-local
34775         functions when outputing 32-bit code.
34776         (call_value): Likewise except for special call to buggy powf function.
34777
34778         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
34779         portable runtime and PIC indirect calls.
34780         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
34781         and PIC call sequences.  Use ldo instead of blr to set return register
34782         in PIC call sequence.
34783
34784 2014-01-25  Walter Lee  <walt@tilera.com>
34785
34786         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
34787         avoid clobbering a live register.
34788
34789 2014-01-25  Walter Lee  <walt@tilera.com>
34790
34791         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
34792         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
34793         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
34794         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
34795
34796 2014-01-25  Walter Lee  <walt@tilera.com>
34797
34798         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
34799         arguments on even registers.
34800         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
34801         STACK_BOUNDARY.
34802         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
34803         (BIGGEST_ALIGNMENT): Ditto.
34804         (BIGGEST_FIELD_ALIGNMENT): Ditto.
34805
34806 2014-01-25  Walter Lee  <walt@tilera.com>
34807
34808         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
34809         insns before bundling.
34810         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
34811
34812 2014-01-25  Walter Lee  <walt@tilera.com>
34813
34814         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
34815         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
34816         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
34817
34818 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
34819
34820         * config/mips/constraints.md (kl): Delete.
34821         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
34822         define expands, using...
34823         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
34824         instructions for MIPS16.
34825         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
34826         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
34827
34828 2014-01-25  Walter Lee  <walt@tilera.com>
34829
34830         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
34831         (clzdi2): Ditto.
34832         (ffsdi2): Ditto.
34833
34834 2014-01-25  Walter Lee  <walt@tilera.com>
34835
34836         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
34837         (TARGET_EXPAND_TO_RTL_HOOK): Define.
34838
34839 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
34840
34841         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
34842         Handle XOR.
34843
34844 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
34845
34846         * print-rtl.c (in_call_function_usage): New var.
34847         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
34848         EXPR_LIST mode as mode and not as reg note name.
34849
34850         PR middle-end/59561
34851         * cfgloopmanip.c (copy_loop_info): If
34852         loop->warned_aggressive_loop_optimizations, make sure
34853         the flag is set in target loop too.
34854
34855 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
34856
34857         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
34858         flag_cilkplus.
34859         * builtins.def: Likewise.
34860         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
34861         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
34862         * ira.c (ira_setup_eliminable_regset): Likewise.
34863         * omp-low.c (gate_expand_omp): Likewise.
34864         (execute_lower_omp): Likewise.
34865         (diagnose_sb_0): Likewise.
34866         (gate_diagnose_omp_blocks): Likewise.
34867         (simd_clone_clauses_extract): Likewise.
34868         (gate): Likewise.
34869
34870 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34871
34872         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
34873         correction for little endian...
34874         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
34875         here.
34876
34877 2014-01-24  Jeff Law  <law@redhat.com>
34878
34879         PR tree-optimization/59919
34880         * tree-vrp.c (find_assert_locations_1): Do not register asserts
34881         for non-returning calls.
34882
34883 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
34884
34885         * common/config/aarch64/aarch64-common.c
34886         (aarch64_rewrite_mcpu): Handle multiple names.
34887         * config/aarch64/aarch64.h
34888         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
34889
34890 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
34891
34892         * input.c (add_file_to_cache_tab): Handle the case where fopen
34893         returns NULL.
34894
34895 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
34896
34897         PR target/59929
34898         * config/i386/i386.md (pushsf splitter): Get stack adjustment
34899         from push operand if code of push isn't PRE_DEC.
34900
34901 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
34902
34903         PR target/59909
34904         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
34905         -mquad-memory-atomic.  Update -mquad-memory documentation to say
34906         it is only used for non-atomic loads/stores.
34907
34908         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
34909         -mquad-memory or -mquad-memory-atomic switches.
34910
34911         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
34912         -mquad-memory-atomic to ISA 2.07 support.
34913
34914         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
34915         to separate support of normal quad word memory operations (ldq, stq)
34916         from the atomic quad word memory operations.
34917
34918         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
34919         support to separate non-atomic quad word operations from atomic
34920         quad word operations.  Disable non-atomic quad word operations in
34921         little endian mode so that we don't have to swap words after the
34922         load and before the store.
34923         (quad_load_store_p): Add comment about atomic quad word support.
34924         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
34925         options printed with -mdebug=reg.
34926
34927         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
34928         -mquad-memory-atomic as the test for whether we have quad word
34929         atomic instructions.
34930         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
34931         or -mp8-vector are used, allow byte/half-word atomic operations.
34932
34933         * config/rs6000/sync.md (load_lockedti): Insure that the address
34934         is a proper indexed or indirect address for the lqarx instruction.
34935         On little endian systems, swap the hi/lo registers after the lqarx
34936         instruction.
34937         (load_lockedpti): Use indexed_or_indirect_operand predicate to
34938         insure the address is valid for the lqarx instruction.
34939         (store_conditionalti): Insure that the address is a proper indexed
34940         or indirect address for the stqcrx. instruction.  On little endian
34941         systems, swap the hi/lo registers before doing the stqcrx.
34942         instruction.
34943         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
34944         insure the address is valid for the stqcrx. instruction.
34945
34946         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
34947         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
34948         type of quad memory support is available.
34949
34950 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
34951
34952         PR regression/59915
34953         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
34954         there is a danger of looping.
34955
34956 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
34957
34958         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
34959         force flag_ira_loop_pressure if set via command line.
34960
34961 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
34962
34963         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
34964         (ashr_simd): New builtin handling DI mode.
34965         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
34966         (aarch64_sshr_simddi): New match pattern.
34967         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
34968         (vshrd_n_s64): Likewise.
34969         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
34970
34971 2014-01-23  Nick Clifton  <nickc@redhat.com>
34972
34973         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
34974         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
34975         favour of mcu specific scripts.
34976         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
34977         430x multilibs.
34978
34979 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
34980             Alex Velenko  <Alex.Velenko@arm.com>
34981
34982         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
34983         (vaddv_s16): Likewise.
34984         (vaddv_s32): Likewise.
34985         (vaddv_u8): Likewise.
34986         (vaddv_u16): Likewise.
34987         (vaddv_u32): Likewise.
34988         (vaddvq_s8): Likewise.
34989         (vaddvq_s16): Likewise.
34990         (vaddvq_s32): Likewise.
34991         (vaddvq_s64): Likewise.
34992         (vaddvq_u8): Likewise.
34993         (vaddvq_u16): Likewise.
34994         (vaddvq_u32): Likewise.
34995         (vaddvq_u64): Likewise.
34996         (vaddv_f32): Likewise.
34997         (vaddvq_f32): Likewise.
34998         (vaddvq_f64): Likewise.
34999         (vmaxv_f32): Likewise.
35000         (vmaxv_s8): Likewise.
35001         (vmaxv_s16): Likewise.
35002         (vmaxv_s32): Likewise.
35003         (vmaxv_u8): Likewise.
35004         (vmaxv_u16): Likewise.
35005         (vmaxv_u32): Likewise.
35006         (vmaxvq_f32): Likewise.
35007         (vmaxvq_f64): Likewise.
35008         (vmaxvq_s8): Likewise.
35009         (vmaxvq_s16): Likewise.
35010         (vmaxvq_s32): Likewise.
35011         (vmaxvq_u8): Likewise.
35012         (vmaxvq_u16): Likewise.
35013         (vmaxvq_u32): Likewise.
35014         (vmaxnmv_f32): Likewise.
35015         (vmaxnmvq_f32): Likewise.
35016         (vmaxnmvq_f64): Likewise.
35017         (vminv_f32): Likewise.
35018         (vminv_s8): Likewise.
35019         (vminv_s16): Likewise.
35020         (vminv_s32): Likewise.
35021         (vminv_u8): Likewise.
35022         (vminv_u16): Likewise.
35023         (vminv_u32): Likewise.
35024         (vminvq_f32): Likewise.
35025         (vminvq_f64): Likewise.
35026         (vminvq_s8): Likewise.
35027         (vminvq_s16): Likewise.
35028         (vminvq_s32): Likewise.
35029         (vminvq_u8): Likewise.
35030         (vminvq_u16): Likewise.
35031         (vminvq_u32): Likewise.
35032         (vminnmv_f32): Likewise.
35033         (vminnmvq_f32): Likewise.
35034         (vminnmvq_f64): Likewise.
35035
35036 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
35037
35038         * config/aarch64/aarch64-simd.md
35039         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
35040         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
35041         (*aarch64_mul3_elt<mode>): Likewise.
35042         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
35043         (*aarch64_mul3_elt_to_64v2df): Likewise.
35044         (*aarch64_mla_elt<mode>): Likewise.
35045         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
35046         (*aarch64_mls_elt<mode>): Likewise.
35047         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
35048         (*aarch64_fma4_elt<mode>): Likewise.
35049         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
35050         (*aarch64_fma4_elt_to_64v2df): Likewise.
35051         (*aarch64_fnma4_elt<mode>): Likewise.
35052         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
35053         (*aarch64_fnma4_elt_to_64v2df): Likewise.
35054         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
35055         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
35056         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
35057         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
35058         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
35059         (aarch64_sqdmull_lane<mode>_internal): Likewise.
35060         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
35061
35062 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
35063
35064         * config/aarch64/aarch64-simd.md
35065         (aarch64_be_checked_get_lane<mode>): New define_expand.
35066         * config/aarch64/aarch64-simd-builtins.def
35067         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
35068         New builtin definition.
35069         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
35070         Use new safe be builtin.
35071
35072 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
35073
35074         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
35075         New define_insn.
35076         (aarch64_be_st1<mode>): Likewise.
35077         (aarch_ld1<VALL:mode>): Define_expand modified.
35078         (aarch_st1<VALL:mode>): Likewise.
35079         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
35080         (UNSPEC_ST1): Likewise.
35081
35082 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
35083
35084         * config/microblaze/microblaze.md: Add trap insn and attribute
35085
35086 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
35087
35088         PR preprocessor/58580
35089         * input.h (location_get_source_line): Take an additional line_size
35090         parameter.
35091         (void diagnostics_file_cache_fini): Declare new function.
35092         * input.c (struct fcache): New type.
35093         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
35094         New static constants.
35095         (diagnostic_file_cache_init, total_lines_num)
35096         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
35097         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
35098         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
35099         (get_next_line, read_next_line, goto_next_line, read_line_num):
35100         New static function definitions.
35101         (diagnostic_file_cache_fini): New function.
35102         (location_get_source_line): Take an additional output line_len
35103         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
35104         read_line_num.
35105         * diagnostic.c (diagnostic_finish): Call
35106         diagnostic_file_cache_fini.
35107         (adjust_line): Take an additional input parameter for the length
35108         of the line, rather than calculating it with strlen.
35109         (diagnostic_show_locus): Adjust the use of
35110         location_get_source_line and adjust_line with respect to their new
35111         signature.  While displaying a line now, do not stop at the first
35112         null byte.  Rather, display the zero byte as a space and keep
35113         going until we reach the size of the line.
35114         * Makefile.in: Add vec.o to OBJS-libcommon
35115
35116 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
35117             Ilya Tocar  <ilya.tocar@intel.com>
35118
35119         * config/i386/avx512fintrin.h (_mm512_kmov): New.
35120         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
35121         (__builtin_ia32_kmov16): Ditto.
35122         * config/i386/i386.md (UNSPEC_KMOV): New.
35123         (kmovw): Ditto.
35124
35125 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
35126
35127         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
35128         (_mm512_storeu_si512): Ditto.
35129
35130 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
35131
35132         PR target/52125
35133         * rtl.h (get_referenced_operands): Declare.
35134         * recog.c (get_referenced_operands): New function.
35135         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
35136         operands have been referenced when recording LO_SUM references.
35137
35138 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
35139
35140         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
35141
35142 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
35143
35144         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
35145         Enable for generic and recent AMD targets.
35146
35147 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
35148
35149         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
35150         ARG_SIZE note when adjustment was eliminated.
35151
35152 2014-01-22  Jeff Law  <law@redhat.com>
35153
35154         PR tree-optimization/59597
35155         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
35156         in file.  Accept new argument REGISTERING and use it to modify
35157         dump output appropriately.
35158         (register_jump_thread): Corresponding changes.
35159         (mark_threaded_blocks): Reinstate code to cancel unprofitable
35160         thread paths involving joiner blocks.  Add code to dump cancelled
35161         jump threading paths.
35162
35163 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
35164
35165         PR rtl-optimization/59477
35166         * lra-constraints.c (inherit_in_ebb): Process call for living hard
35167         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
35168
35169 2014-01-22  Tom Tromey  <tromey@redhat.com>
35170
35171         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
35172         PARAMS.
35173         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
35174
35175 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
35176
35177         PR rtl-optimization/59896
35178         * lra-constraints.c (process_alt_operands): Check unused note for
35179         matched operands of insn with no output reloads.
35180
35181 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
35182
35183         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
35184         (mips_move_from_gpr_cost): Likewise.
35185
35186 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
35187
35188         PR rtl-optimization/59858
35189         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
35190         ira_class_hard_regs_num.
35191         (process_alt_operands): Increase reject for dying matched operand.
35192
35193 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
35194
35195         PR target/59003
35196         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
35197         smaller than size, perform several stores or loads and stores
35198         at dst + count - size to store or copy all of size bytes, rather
35199         than just last modesize bytes.
35200
35201 2014-01-20  DJ Delorie  <dj@redhat.com>
35202
35203         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
35204         that CLOBBERs are REGs before propogating their values.
35205
35206 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
35207
35208         PR middle-end/59789
35209         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
35210         (cgraph_inline_failed_type): New function.
35211         * cgraph.h (DEFCIFCODE): Add type.
35212         (cgraph_inline_failed_type_t): New enum.
35213         (cgraph_inline_failed_type): New prototype.
35214         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
35215         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
35216         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
35217         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
35218         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
35219         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
35220         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
35221         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
35222         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
35223         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
35224         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
35225         OPTIMIZATION_MISMATCH.
35226         * tree-inline.c (expand_call_inline): Emit errors during
35227         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
35228
35229 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
35230
35231         PR target/59685
35232         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
35233         mode attribute in insn output.
35234
35235 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
35236
35237         * output.h (output_constant): Delete.
35238         * varasm.c (output_constant): Make private.
35239
35240 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
35241
35242         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
35243
35244 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
35245
35246         PR middle-end/59860
35247         * tree.h (fold_builtin_strcat): New prototype.
35248         * builtins.c (fold_builtin_strcat): No longer static.  Add len
35249         argument, if non-NULL, don't call c_strlen.  Optimize
35250         directly into __builtin_memcpy instead of __builtin_strcpy.
35251         (fold_builtin_2): Adjust fold_builtin_strcat caller.
35252         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
35253
35254 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
35255
35256         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
35257         for SImode_address_operand operands, having only a REG argument.
35258
35259 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
35260
35261         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
35262         loader name using mbig-endian.
35263         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
35264
35265 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
35266
35267         * doc/invoke.texi (-march): Clarify documentation for AArch64.
35268         (-mtune): Likewise.
35269         (-mcpu): Likewise.
35270
35271 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
35272
35273         * config/aarch64/aarch64-protos.h
35274         (aarch64_cannot_change_mode_class_ptr): Declare.
35275         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
35276         aarch64_cannot_change_mode_class_ptr): New.
35277         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
35278         backend hook aarch64_cannot_change_mode_class.
35279
35280 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
35281
35282         * common/config/aarch64/aarch64-common.c
35283         (aarch64_handle_option): Don't handle any option order logic here.
35284         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
35285         selected_cpu, warn on architecture version mismatch.
35286         (aarch64_override_options): Fix parsing order for option strings.
35287
35288 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
35289             Iain Sandoe  <iain@codesourcery.com>
35290
35291         PR bootstrap/59496
35292         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
35293         warning.  Amend comment to reflect current functionality.
35294
35295 2014-01-20  Richard Biener  <rguenther@suse.de>
35296
35297         PR middle-end/59860
35298         * builtins.c (fold_builtin_strcat): Remove case better handled
35299         by tree-ssa-strlen.c.
35300
35301 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
35302
35303         * config/aarch64/aarch64.opt
35304         (mcpu, march, mtune): Make case-insensitive.
35305
35306 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
35307
35308         PR target/59880
35309         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
35310         if operands[1] is a REG or ZERO_EXTEND of a REG.
35311
35312 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
35313
35314         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
35315
35316 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
35317
35318         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
35319         long non-pic millicode calls.
35320
35321 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
35322
35323         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
35324
35325 2014-01-19  Kito Cheng  <kito@0xlab.org>
35326
35327         * builtins.c (expand_movstr): Check movstr expand done or fail.
35328
35329 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
35330             H.J. Lu  <hongjiu.lu@intel.com>
35331
35332         PR target/59379
35333         * config/i386/i386.md (*lea<mode>): Zero-extend return register
35334         to DImode for zero-extended addresses.
35335
35336 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
35337
35338         PR rtl-optimization/57763
35339         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
35340         on the new indirect jump_insn and increment LABEL_NUSES (label).
35341
35342 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
35343
35344         PR bootstrap/59580
35345         PR bootstrap/59583
35346         * config.gcc (x86_archs): New variable.
35347         (x86_64_archs): Likewise.
35348         (x86_cpus): Likewise.
35349         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
35350         --with-arch/--with-cpu= options.
35351         Support --with-arch=/--with-cpu={nehalem,westmere,
35352         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
35353
35354 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
35355
35356         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
35357         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
35358
35359 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
35360
35361         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
35362
35363 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
35364
35365         PR target/58944
35366         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
35367         clear cpp_get_options (parse_in)->warn_unused_macros for
35368         ix86_target_macros_internal with cpp_define.
35369
35370 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
35371
35372         * jump.c (delete_related_insns): Keep (use (insn))s.
35373         * reorg.c (redundant_insn): Check for barriers too.
35374
35375 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
35376
35377         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
35378
35379 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
35380
35381         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
35382         call to $$dyncall when TARGET_LONG_CALLS is true.
35383
35384 2014-01-17  Jeff Law  <law@redhat.com>
35385
35386         * ree.c (combine_set_extension): Temporarily disable test for
35387         changing number of hard registers.
35388
35389 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
35390
35391         PR middle-end/58125
35392         * ipa-inline-analysis.c (inline_free_summary):
35393         Do not free summary of aliases.
35394
35395 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
35396
35397         PR middle-end/59706
35398         * gimplify.c (gimplify_expr): Use create_tmp_var
35399         instead of create_tmp_var_raw.  If cond doesn't have
35400         integral type, don't add the IFN_ANNOTATE builtin at all.
35401
35402 2014-01-17  Martin Jambor  <mjambor@suse.cz>
35403
35404         PR ipa/59736
35405         * ipa-cp.c (prev_edge_clone): New variable.
35406         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
35407         Also resize prev_edge_clone vector.
35408         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
35409         (ipcp_edge_removal_hook): New function.
35410         (ipcp_driver): Register ipcp_edge_removal_hook.
35411
35412 2014-01-17  Andrew Pinski  <apinski@cavium.com>
35413             Steve Ellcey  <sellcey@mips.com>
35414
35415         PR target/59462
35416         * config/mips/mips.c (mips_print_operand): Check operand mode instead
35417         of operator mode.
35418
35419 2014-01-17  Jeff Law  <law@redhat.com>
35420
35421         PR middle-end/57904
35422         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
35423         so that pass_ccp runs first.
35424
35425 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
35426
35427         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
35428         (ix86_adjust_cost): Use !TARGET_XXX.
35429         (do_reorder_for_imul): Likewise.
35430         (swap_top_of_ready_list): Likewise.
35431         (ix86_sched_reorder): Likewise.
35432
35433 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
35434
35435         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
35436         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
35437         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
35438         (intel_memset): New.  Duplicate slm_memset.
35439         (intel_cost): New.  Duplicate slm_cost.
35440         (m_INTEL): New macro.
35441         (processor_target_table): Add "intel".
35442         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
35443         with PROCESSOR_INTEL for "intel".
35444         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
35445         PROCESSOR_SILVERMONT.
35446         (ix86_issue_rate): Likewise.
35447         (ix86_adjust_cost): Likewise.
35448         (ia32_multipass_dfa_lookahead): Likewise.
35449         (swap_top_of_ready_list): Likewise.
35450         (ix86_sched_reorder): Likewise.
35451         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
35452         instead of TARGET_OPT_AGU.
35453         * config/i386/i386.h (TARGET_INTEL): New.
35454         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
35455         (processor_type): Add PROCESSOR_INTEL.
35456         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
35457         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
35458
35459 2014-01-17  Marek Polacek  <polacek@redhat.com>
35460
35461         PR c/58346
35462         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
35463         size is zero.
35464
35465 2014-01-17  Richard Biener  <rguenther@suse.de>
35466
35467         PR tree-optimization/46590
35468         * opts.c (default_options_table): Add entries for
35469         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
35470         all enabled at -O1 but not for -Og.
35471         * common.opt (fbranch-count-reg): Remove Init(1).
35472         (fmove-loop-invariants): Likewise.
35473         (ftree-pta): Likewise.
35474
35475 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
35476
35477         * config/i386/i386.c (ix86_data_alignment): For compatibility with
35478         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
35479         decls to at least the GCC 4.8 used alignments.
35480
35481         PR fortran/59440
35482         * tree-nested.c (convert_nonlocal_reference_stmt,
35483         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
35484         of GIMPLE_BIND stmts, adjust associated decls.
35485
35486 2014-01-17  Richard Biener  <rguenther@suse.de>
35487
35488         PR tree-optimization/46590
35489         * vec.h (vec<>::bseach): New member function implementing
35490         binary search according to C89 bsearch.
35491         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
35492         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
35493         bitmap pointer again.  Make accesses_in_loop a flat array.
35494         (mem_ref_obstack): New global.
35495         (outermost_indep_loop): Adjust for mem_ref->stored changes.
35496         (mark_ref_stored): Likewise.
35497         (ref_indep_loop_p_2): Likewise.
35498         (set_ref_stored_in_loop): New helper function.
35499         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
35500         (memref_free): Adjust.
35501         (record_mem_ref_loc): Simplify.
35502         (gather_mem_refs_stmt): Adjust.
35503         (sort_locs_in_loop_postorder_cmp): New function.
35504         (analyze_memory_references): Sort accesses_in_loop after
35505         loop postorder number.
35506         (find_ref_loc_in_loop_cmp): New function.
35507         (for_all_locs_in_loop): Find relevant cluster of locs in
35508         accesses_in_loop and iterate without recursion.
35509         (execute_sm): Avoid uninit warning.
35510         (struct ref_always_accessed): Simplify.
35511         (ref_always_accessed::operator ()): Likewise.
35512         (ref_always_accessed_p): Likewise.
35513         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
35514         loop postorder numbers here.
35515         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
35516         numbers.
35517
35518 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
35519
35520         PR c++/57945
35521         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
35522         on decls for which assemble_alias has been called.
35523
35524 2014-01-17  Nick Clifton  <nickc@redhat.com>
35525
35526         * config/msp430/msp430.opt: (mcpu): New option.
35527         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
35528         (msp430_option_override): Parse target_cpu.  If the MCU name
35529         matches a generic string, clear target_mcu.
35530         (msp430_attr): Allow numeric interrupt values up to 63.
35531         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
35532         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
35533         option.
35534         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
35535         Add mcpu matches.
35536         * config/msp430/msp430.md (popm): Use %J rather than %I.
35537         (addsi3): Use msp430_nonimmediate_operand for operand 2.
35538         (addhi_cy_i): Use immediate_operand for operand 2.
35539         * doc/invoke.texi: Document -mcpu option.
35540
35541 2014-01-17  Richard Biener  <rguenther@suse.de>
35542
35543         PR rtl-optimization/38518
35544         * df.h (df_analyze_loop): Declare.
35545         * df-core.c: Include cfgloop.h.
35546         (df_analyze_1): Split out main part of df_analyze.
35547         (df_analyze): Adjust.
35548         (loop_inverted_post_order_compute): New function.
35549         (loop_post_order_compute): Likewise.
35550         (df_analyze_loop): New function avoiding whole-function
35551         postorder computes.
35552         * loop-invariant.c (find_defs): Use df_analyze_loop.
35553         (find_invariants): Adjust.
35554         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
35555
35556 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
35557
35558         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
35559         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
35560
35561 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
35562
35563         * ipa-ref.c (ipa_remove_stmt_references): Fix references
35564         traversal when removing references.
35565
35566 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
35567
35568         PR ipa/59775
35569         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
35570
35571 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
35572
35573         PR middle-end/56791
35574         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
35575         pushing a reload for an autoinc when we had previously reloaded an
35576         inner part of the address.
35577
35578 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
35579
35580         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
35581         field.
35582         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
35583         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
35584         when not giving up or versioning for alias only because of
35585         loop->safelen.
35586         (vect_analyze_data_ref_dependences): Set to true.
35587         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
35588         is a GIMPLE_PHI.
35589         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
35590         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
35591         to the condition.
35592
35593         PR middle-end/58344
35594         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
35595
35596         PR target/59839
35597         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
35598         operand 0 predicate for gathers, use a new pseudo as subtarget.
35599
35600 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
35601
35602         PR middle-end/59609
35603         * lra-constraints.c (process_alt_operands): Add printing debug info.
35604         Check absence of input/output reloads for matched operands too.
35605
35606 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
35607
35608         PR rtl-optimization/59835
35609         * ira.c (ira_init_register_move_cost): Increase cost for
35610         impossible modes.
35611
35612 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
35613
35614         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
35615
35616 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
35617
35618         PR target/59780
35619         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
35620         non-register objects.  Use gen_(high/low)part more consistently.
35621         Fix assertions.
35622
35623 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
35624
35625         PR target/59844
35626         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
35627         endian support, remove tests for WORDS_BIG_ENDIAN.
35628         (p8_mfvsrd_3_<mode>): Likewise.
35629         (reload_gpr_from_vsx<mode>): Likewise.
35630         (reload_gpr_from_vsxsf): Likewise.
35631         (p8_mfvsrd_4_disf): Likewise.
35632
35633 2014-01-16  Richard Biener  <rguenther@suse.de>
35634
35635         PR rtl-optimization/46590
35636         * lcm.c (compute_antinout_edge): Use postorder iteration.
35637         (compute_laterin): Use inverted postorder iteration.
35638
35639 2014-01-16  Nick Clifton  <nickc@redhat.com>
35640
35641         PR middle-end/28865
35642         * varasm.c (output_constant): Return the number of bytes actually
35643         emitted.
35644         (output_constructor_array_range): Update the field size with the
35645         number of bytes emitted by output_constant.
35646         (output_constructor_regular_field): Likewise.  Also do not
35647         complain if the total number of bytes emitted is now greater
35648         than the expected fieldpos.
35649         * output.h (output_constant): Update prototype and descriptive comment.
35650
35651 2014-01-16  Marek Polacek  <polacek@redhat.com>
35652
35653         PR middle-end/59827
35654         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
35655         it is error_mark_node.
35656
35657 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
35658
35659         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
35660         VALID_AVX256_REG_OR_OI_MODE.
35661
35662 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
35663
35664         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
35665         current procedure should be profiled.
35666
35667 2014-01-15  Andrew Pinski  <apinski@cavium.com>
35668
35669         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
35670         of moving from/to the STACK_REG register class.
35671
35672 2014-01-15  Richard Henderson  <rth@redhat.com>
35673
35674         PR debug/54694
35675         * reginfo.c (global_regs_decl): Globalize.
35676         * rtl.h (global_regs_decl): Declare.
35677         * ira.c (do_reload): Diagnose frame_pointer_needed and it
35678         reserved via global_regs.
35679
35680 2014-01-15  Teresa Johnson  <tejohnson@google.com>
35681
35682         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
35683
35684 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
35685
35686         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
35687         and vmulosh rather than call gen_vec_widen_smult_*.
35688         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
35689         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
35690         (vec_widen_smult_even_v16qi): Likewise.
35691         (vec_widen_umult_even_v8hi): Likewise.
35692         (vec_widen_smult_even_v8hi): Likewise.
35693         (vec_widen_umult_odd_v16qi): Likewise.
35694         (vec_widen_smult_odd_v16qi): Likewise.
35695         (vec_widen_umult_odd_v8hi): Likewise.
35696         (vec_widen_smult_odd_v8hi): Likewise.
35697         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
35698         vmuloub rather than call gen_vec_widen_umult_*.
35699         (vec_widen_umult_lo_v16qi): Likewise.
35700         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
35701         vmulosb rather than call gen_vec_widen_smult_*.
35702         (vec_widen_smult_lo_v16qi): Likewise.
35703         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
35704         rather than call gen_vec_widen_umult_*.
35705         (vec_widen_umult_lo_v8hi): Likewise.
35706         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
35707         rather than call gen_vec_widen_smult_*.
35708         (vec_widen_smult_lo_v8hi): Likewise.
35709
35710 2014-01-15  Jeff Law  <law@redhat.com>
35711
35712         PR tree-optimization/59747
35713         * ree.c (find_and_remove_re): Properly handle case where a second
35714         eliminated extension requires widening a copy created for elimination
35715         of a prior extension.
35716         (combine_set_extension): Ensure that the number of hard regs needed
35717         for a destination register does not change when we widen it.
35718
35719 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
35720
35721         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
35722         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
35723         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
35724         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
35725         (avr-*-rtems*): Likewise.
35726         (bfin*-rtems*): Likewise.
35727         (moxie-*-rtems*): Likewise.
35728         (h8300-*-rtems*): Likewise.
35729         (i[34567]86-*-rtems*): Likewise.
35730         (lm32-*-rtems*): Likewise.
35731         (m32r-*-rtems*): Likewise.
35732         (m68k-*-rtems*): Likewise.
35733         (microblaze*-*-rtems*): Likewise.
35734         (mips*-*-rtems*): Likewise.
35735         (powerpc-*-rtems*): Likewise.
35736         (sh-*-rtems*): Likewise.
35737         (sparc-*-rtems*): Likewise.
35738         (sparc64-*-rtems*): Likewise.
35739         (v850-*-rtems*): Likewise.
35740         (m32c-*-rtems*): Likewise.
35741
35742 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
35743
35744         PR rtl-optimization/59511
35745         * ira.c (ira_init_register_move_cost): Use memory costs for some
35746         cases of register move cost calculations.
35747         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
35748         instead of BB frequency.
35749         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
35750         * lra-assigns.c (find_hard_regno_for): Ditto.
35751
35752 2014-01-15  Richard Biener  <rguenther@suse.de>
35753
35754         PR tree-optimization/59822
35755         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
35756         (vectorizable_load): Use it to hoist defs of uses of invariant
35757         loads out of the loop.
35758
35759 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
35760             Kugan Vivekanandarajah  <kuganv@linaro.org>
35761
35762         PR target/59695
35763         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
35764         truncation.
35765
35766 2014-01-15  Richard Biener  <rguenther@suse.de>
35767
35768         PR rtl-optimization/59802
35769         * lcm.c (compute_available): Use inverted postorder to seed
35770         the initial worklist.
35771
35772 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35773
35774         PR target/59803
35775         * config/s390/s390.c (s390_preferred_reload_class): Don't return
35776         ADDR_REGS for invalid symrefs in non-PIC code.
35777
35778 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
35779
35780         PR other/58712
35781         * builtins.c (determine_block_size): Initialize *probable_max_size
35782         even if len_rtx is CONST_INT.
35783
35784 2014-01-14  Andrew Pinski  <apinski@cavium.com>
35785
35786         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
35787         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
35788         (cortexa53_tunings): Likewise.
35789         (aarch64_sched_issue_rate): New function.
35790         (TARGET_SCHED_ISSUE_RATE): Define.
35791
35792 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
35793
35794         * ira-costs.c (find_costs_and_classes): Add missed
35795         ira_init_register_move_cost_if_necessary.
35796
35797 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
35798
35799         PR target/59787
35800         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
35801
35802 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
35803
35804         PR target/59794
35805         * config/i386/i386.c (type_natural_mode): Add a bool parameter
35806         to indicate if type is used for function return value.  Warn ABI
35807         change if the vector mode isn't available for function return value.
35808         (ix86_function_arg_advance): Pass false to type_natural_mode.
35809         (ix86_function_arg): Likewise.
35810         (ix86_gimplify_va_arg): Likewise.
35811         (function_arg_32): Don't warn ABI change.
35812         (ix86_function_value): Pass true to type_natural_mode.
35813         (ix86_return_in_memory): Likewise.
35814         (ix86_struct_value_rtx): Removed.
35815         (TARGET_STRUCT_VALUE_RTX): Likewise.
35816
35817 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
35818
35819         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
35820         converting a conditional jump into a conditional return.
35821
35822 2014-01-14  Richard Biener  <rguenther@suse.de>
35823
35824         PR tree-optimization/58921
35825         PR tree-optimization/59006
35826         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
35827         hoisting invariant stmts.
35828         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
35829         invariant loads on the preheader edge if possible.
35830
35831 2014-01-14  Joey Ye  <joey.ye@arm.com>
35832
35833         * doc/plugin.texi (Building GCC plugins): Update to C++.
35834
35835 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
35836
35837         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
35838         (_mm_rcp28_round_ss): Ditto.
35839         (_mm_rsqrt28_round_sd): Ditto.
35840         (_mm_rsqrt28_round_ss): Ditto.
35841         (_mm_rcp28_sd): Ditto.
35842         (_mm_rcp28_ss): Ditto.
35843         (_mm_rsqrt28_sd): Ditto.
35844         (_mm_rsqrt28_ss): Ditto.
35845         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
35846         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
35847         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
35848         (IX86_BUILTIN_RCP28SD): Ditto.
35849         (IX86_BUILTIN_RCP28SS): Ditto.
35850         (IX86_BUILTIN_RSQRT28SD): Ditto.
35851         (IX86_BUILTIN_RSQRT28SS): Ditto.
35852         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
35853         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
35854         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
35855         (ix86_expand_special_args_builtin): Expand new FTYPE.
35856         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
35857         (srcp14<mode>): Make insn unary.
35858         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
35859         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
35860         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
35861         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
35862         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
35863         Fix rounding: make it SAE only.
35864         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
35865         Ditto.
35866         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
35867         Ditto.
35868         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
35869         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
35870         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
35871         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
35872         (round_saeonly_mask_scalar_operand4): Ditto.
35873         (round_saeonly_mask_scalar_op3): Ditto.
35874         (round_saeonly_mask_scalar_op4): Ditto.
35875
35876 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35877
35878         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
35879         Implement -maltivec=be for vec_insert and vec_extract.
35880
35881 2014-01-10  DJ Delorie  <dj@redhat.com>
35882
35883         * config/msp430/msp430.md (call_internal): Don't allow memory
35884         references with SP as the base register.
35885         (call_value_internal): Likewise.
35886         * config/msp430/constraints.md (Yc): New.  For memory references
35887         that don't use SP as a base register.
35888
35889         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
35890         "an integer without a # prefix"
35891         * config/msp430/msp430.md (epilogue_helper): Use it.
35892
35893 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
35894
35895         PR target/59617
35896         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
35897         AVX512F gather builtins.
35898         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
35899         on gather decls with INTEGER_TYPE masktype.
35900         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
35901         directly into the builtin rather than hoisting it before loop.
35902
35903         PR tree-optimization/59387
35904         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
35905         (scev_const_prop): If folded_casts and type has undefined overflow,
35906         use force_gimple_operand instead of force_gimple_operand_gsi and
35907         for each added stmt if it is assign with
35908         arith_code_with_undefined_signed_overflow, call
35909         rewrite_to_defined_overflow.
35910         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
35911         gimple-fold.h instead.
35912         (arith_code_with_undefined_signed_overflow,
35913         rewrite_to_defined_overflow): Moved to ...
35914         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
35915         rewrite_to_defined_overflow): ... here.  No longer static.
35916         Include gimplify-me.h.
35917         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
35918         rewrite_to_defined_overflow): New prototypes.
35919
35920 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35921
35922         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
35923
35924 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
35925
35926         * builtins.c (get_object_alignment_2): Minor tweak.
35927         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
35928
35929 2014-01-13  Christian Bruel  <christian.bruel@st.com>
35930
35931         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
35932         optimized non constant lengths.
35933
35934 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
35935
35936         PR libgomp/59194
35937         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
35938         load as __atomic_load_N if possible.
35939
35940 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
35941
35942         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
35943         target parameter.
35944         (rs6000_expand_builtin): Adjust call.
35945
35946 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
35947
35948         PR target/58115
35949         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
35950         * config/rs6000/rs6000.c: Include target-globals.h.
35951         (rs6000_set_current_function): Instead of doing target_reinit
35952         unconditionally, use save_target_globals_default_opts and
35953         restore_target_globals.
35954
35955         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
35956         FPSCR.
35957         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
35958         (rs6000_expand_builtin): Handle mffs and mtfsf.
35959         (rs6000_init_builtins): Define mffs and mtfsf.
35960         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
35961         (rs6000_mffs): New pattern.
35962         (rs6000_mtfsf): New pattern.
35963
35964 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
35965
35966         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
35967         Start narrowing with START.  Apply candidate-use pair
35968         and check overall cost in narrowing.
35969         (iv_ca_prune): Pass new argument.
35970
35971 2014-01-10  Jeff Law  <law@redhat.com>
35972
35973         PR middle-end/59743
35974         * ree.c (combine_reaching_defs): Ensure the defining statement
35975         occurs before the extension when optimizing extensions with
35976         different source and destination hard registers.
35977
35978 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
35979
35980         PR ipa/58585
35981         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
35982         vtables into the type inheritance graph.
35983
35984 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
35985
35986         PR rtl-optimization/59754
35987         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
35988         modes in the REGNO != REGNO case.
35989
35990 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35991
35992         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
35993
35994 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
35995
35996         PR tree-optimization/59745
35997         * tree-predcom.c (tree_predictive_commoning_loop): Call
35998         free_affine_expand_cache if giving up because components is NULL.
35999
36000         * target-globals.c (save_target_globals): Allocate < 4KB structs using
36001         GC in payload of target_globals struct instead of allocating them on
36002         the heap and the larger structs separately using GC.
36003         * target-globals.h (struct target_globals): Make regs, hard_regs,
36004         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
36005         of GTY((skip)) and change type to void *.
36006         (reset_target_globals): Cast loads from those fields to corresponding
36007         types.
36008
36009 2014-01-10  Steve Ellcey  <sellcey@mips.com>
36010
36011         PR plugins/59335
36012         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
36013         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
36014         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
36015
36016 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
36017
36018         PR target/59744
36019         * aarch64-modes.def (CC_Zmode): New flags mode.
36020         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
36021         represents an equality.
36022         (aarch64_get_condition_code): Handle CC_Zmode.
36023         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
36024
36025 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36026
36027         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
36028         extraction in good case.
36029
36030 2014-01-10  Richard Biener  <rguenther@suse.de>
36031
36032         PR tree-optimization/59374
36033         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
36034         checking after SLP discovery.  Mark stmts not participating
36035         in any SLP instance properly.
36036
36037 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36038
36039         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
36040         when handling a SET rtx.
36041
36042 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36043
36044         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
36045         (cortex-a57): Likewise.
36046         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
36047
36048 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36049
36050         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
36051         non-iwmmxt builtins.
36052
36053 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
36054
36055         PR ipa/58252
36056         PR ipa/59226
36057         * ipa-devirt.c record_target_from_binfo): Take as argument
36058         stack of binfos and lookup matching one for virtual inheritance.
36059         (possible_polymorphic_call_targets_1): Update.
36060
36061 2014-01-10  Huacai Chen  <chenhc@lemote.com>
36062
36063         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
36064         kernel strings for Loongson-2E/2F/3A.
36065
36066 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
36067
36068         PR middle-end/59670
36069         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
36070         is_gimple_call before calling gimple_call_internal_p.
36071
36072 2014-01-09  Steve Ellcey  <sellcey@mips.com>
36073
36074         * Makefile.in (TREE_FLOW_H): Remove.
36075         (TREE_SSA_H): Add file names from tree-flow.h.
36076         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
36077         * tree.h: Remove tree-flow.h reference.
36078         * hash-table.h: Remove tree-flow.h reference.
36079         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
36080         reference with tree-ssa-loop.h.
36081
36082 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
36083
36084         * doc/invoke.texi: Add -maltivec={be,le} options, and document
36085         default element-order behavior for -maltivec.
36086         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
36087         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
36088         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
36089         when targeting big endian, at least for now.
36090         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
36091
36092 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
36093
36094         PR middle-end/47735
36095         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
36096         var satisfies use_register_for_decl, just take into account type
36097         alignment, rather than decl alignment.
36098
36099         PR tree-optimization/59622
36100         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
36101         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
36102         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
36103         Don't devirtualize for inplace at all.  For targets.length () == 1,
36104         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
36105
36106 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
36107
36108         * config/i386/i386.md (cpu): Remove the unused btver1.
36109
36110 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
36111
36112         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
36113
36114 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
36115
36116         PR target/58115
36117         * tree-core.h (struct target_globals): New forward declaration.
36118         (struct tree_target_option): Add globals field.
36119         * tree.h (TREE_TARGET_GLOBALS): Define.
36120         (prepare_target_option_nodes_for_pch): New prototype.
36121         * target-globals.h (struct target_globals): Define even if
36122         !SWITCHABLE_TARGET.
36123         * tree.c (prepare_target_option_node_for_pch,
36124         prepare_target_option_nodes_for_pch): New functions.
36125         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
36126         * config/i386/i386.c: Include target-globals.h.
36127         (ix86_set_current_function): Instead of doing target_reinit
36128         unconditionally, use save_target_globals_default_opts and
36129         restore_target_globals.
36130
36131 2014-01-09  Richard Biener  <rguenther@suse.de>
36132
36133         PR tree-optimization/59715
36134         * tree-cfg.h (split_critical_edges): Declare.
36135         * tree-cfg.c (split_critical_edges): Export.
36136         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
36137
36138 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
36139
36140         * cfgexpand.c (expand_stack_vars): Optionally disable
36141         asan stack protection.
36142         (expand_used_vars): Likewise.
36143         (partition_stack_vars): Likewise.
36144         * asan.c (asan_emit_stack_protection): Optionally disable
36145         after return stack usage.
36146         (instrument_derefs): Optionally disable memory access instrumentation.
36147         (instrument_builtin_call): Likewise.
36148         (instrument_strlen_call): Likewise.
36149         (asan_protect_global): Optionally disable global variables protection.
36150         * doc/invoke.texi: Added doc for new options.
36151         * params.def: Added new options.
36152         * params.h: Likewise.
36153
36154 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
36155
36156         PR rtl-optimization/59724
36157         * ifcvt.c (cond_exec_process_if_block): Don't call
36158         flow_find_head_matching_sequence with 0 longest_match.
36159         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
36160         non-active insns if !stop_after.
36161         (try_head_merge_bb): Revert 2014-01-07 changes.
36162
36163 2014-01-08  Jeff Law  <law@redhat.com>
36164
36165         * ree.c (get_sub_rtx): New function, extracted from...
36166         (merge_def_and_ext): Here.
36167         (combine_reaching_defs): Use get_sub_rtx.
36168
36169 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
36170
36171         * cgraph.h (varpool_variable_node): Do not choke on null node.
36172
36173 2014-01-08  Catherine Moore  <clm@codesourcery.com>
36174
36175         * config/mips/mips.md (simple_return): Attempt to use JRC
36176         for microMIPS.
36177         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
36178
36179 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
36180
36181         PR rtl-optimization/59137
36182         * reorg.c (steal_delay_list_from_target): Call update_block for
36183         elided insns.
36184         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
36185
36186 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
36187
36188         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
36189         two duplicate entries.
36190
36191 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
36192
36193         Revert:
36194         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
36195
36196         * config/mips/mips.c (mips_truncated_op_cost): New function.
36197         (mips_rtx_costs): Adjust test for BADDU.
36198         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
36199
36200         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
36201
36202         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
36203         (*baddu_si): ...this new pattern.
36204
36205 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
36206
36207         PR ipa/59722
36208         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
36209
36210 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
36211
36212         PR middle-end/57748
36213         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
36214         inner_reference_p.
36215         (expand_expr, expand_normal): Adjust.
36216         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
36217         inner_reference_p. Use inner_reference_p to expand inner references.
36218         (store_expr): Adjust.
36219         * cfgexpand.c (expand_call_stmt): Adjust.
36220
36221 2014-01-08  Rong Xu  <xur@google.com>
36222
36223         * gcov-io.c (gcov_var): Move from gcov-io.h.
36224         (gcov_position): Ditto.
36225         (gcov_is_error): Ditto.
36226         (gcov_rewrite): Ditto.
36227         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
36228         only part to libgcc/libgcov.h.
36229
36230 2014-01-08  Marek Polacek  <polacek@redhat.com>
36231
36232         PR middle-end/59669
36233         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
36234
36235 2014-01-08  Marek Polacek  <polacek@redhat.com>
36236
36237         PR sanitizer/59667
36238         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
36239
36240 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
36241
36242         PR rtl-optimization/59649
36243         * stor-layout.c (get_mode_bounds): For BImode return
36244         0 and STORE_FLAG_VALUE.
36245
36246 2014-01-08  Richard Biener  <rguenther@suse.de>
36247
36248         PR middle-end/59630
36249         * gimple.h (is_gimple_builtin_call): Remove.
36250         (gimple_builtin_call_types_compatible_p): New.
36251         (gimple_call_builtin_p): New overload.
36252         * gimple.c (is_gimple_builtin_call): Remove.
36253         (validate_call): Rename to ...
36254         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
36255         check return types.
36256         (validate_type): New static function.
36257         (gimple_call_builtin_p): New overload and adjust.
36258         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
36259         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
36260         (gimple_fold_stmt_to_constant_1): Likewise.
36261         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
36262
36263 2014-01-08  Richard Biener  <rguenther@suse.de>
36264
36265         PR middle-end/59471
36266         * gimplify.c (gimplify_expr): Gimplify register-register type
36267         VIEW_CONVERT_EXPRs to separate stmts.
36268
36269 2014-01-07  Jeff Law  <law@redhat.com>
36270
36271         PR middle-end/53623
36272         * ree.c (combine_set_extension): Handle case where source
36273         and destination registers in an extension insn are different.
36274         (combine_reaching_defs): Allow source and destination registers
36275         in extension to be different under limited circumstances.
36276         (add_removable_extension): Remove restriction that the
36277         source and destination registers in the extension are the same.
36278         (find_and_remove_re): Emit a copy from the extension's
36279         destination to its source after the defining insn if
36280         the source and destination registers are different.
36281
36282         PR middle-end/59285
36283         * ifcvt.c (merge_if_block): If we are merging a block with more than
36284         one successor with a block with no successors, remove any BARRIER
36285         after the second block.
36286
36287 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
36288
36289         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
36290
36291 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
36292
36293         PR target/59652
36294         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
36295         for 14-bit register offsets when INT14_OK_STRICT is false.
36296
36297 2014-01-07  Roland Stigge  <stigge@antcom.de>
36298             Michael Meissner  <meissner@linux.vnet.ibm.com>
36299
36300         PR 57386/target
36301         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
36302         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
36303
36304 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
36305
36306         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
36307         -mcpu.
36308
36309 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
36310
36311         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
36312         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
36313         rtx is const0_rtx or not.
36314
36315 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
36316
36317         PR target/58115
36318         * target-globals.c (save_target_globals): Remove this_fn_optab
36319         handling.
36320         * toplev.c: Include optabs.h.
36321         (target_reinit): Temporarily restore the global options if another
36322         set of options are in force.
36323
36324 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
36325
36326         PR rtl-optimization/58668
36327         * cfgcleanup.c (flow_find_cross_jump): Don't count
36328         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
36329         to determine what is counted.
36330         (flow_find_head_matching_sequence): Use active_insn_p to determine
36331         what is counted.
36332         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
36333         counting change.
36334         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
36335         determine what is counted.
36336
36337         PR tree-optimization/59643
36338         * tree-predcom.c (split_data_refs_to_components): If one dr is
36339         read and one write, determine_offset fails and the write isn't
36340         in the bad component, just put the read into the bad component.
36341
36342 2014-01-07  Mike Stump  <mikestump@comcast.net>
36343             Jakub Jelinek  <jakub@redhat.com>
36344
36345         PR pch/59436
36346         * tree-core.h (struct tree_optimization_option): Change optabs
36347         type from unsigned char * to void *.
36348         * optabs.c (init_tree_optimization_optabs): Adjust
36349         TREE_OPTIMIZATION_OPTABS initialization.
36350
36351 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
36352
36353         PR target/59644
36354         * config/i386/i386.h (struct machine_function): Add
36355         no_drap_save_restore field.
36356         * config/i386/i386.c (ix86_save_reg): Use
36357         !cfun->machine->no_drap_save_restore instead of
36358         crtl->stack_realign_needed.
36359         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
36360         this function clears frame_pointer_needed.  Set
36361         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
36362         and DRAP reg is needed.
36363
36364 2014-01-06  Marek Polacek  <polacek@redhat.com>
36365
36366         PR c/57773
36367         * doc/implement-c.texi: Mention that other integer types are
36368         permitted as bit-field types in strictly conforming mode.
36369
36370 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
36371
36372         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
36373         is newly allocated.
36374
36375 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
36376
36377         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
36378
36379 2014-01-06  Martin Jambor  <mjambor@suse.cz>
36380
36381         PR ipa/59008
36382         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
36383         to int.
36384         * ipa-prop.c (ipa_print_node_params): Fix indentation.
36385
36386 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
36387
36388         PR debug/59350
36389         PR debug/59510
36390         * var-tracking.c (add_stores): Preserve the value of the source even if
36391         we don't record the store.
36392
36393 2014-01-06  Terry Guo  <terry.guo@arm.com>
36394
36395         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
36396
36397 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
36398
36399         PR bootstrap/59541
36400         * config/darwin.c (darwin_function_section): Adjust return values to
36401         correspond to optimisation changes made in r206070.
36402
36403 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
36404
36405         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
36406         from prefetch_block tune setting.
36407         (nocona_cost): Correct size of prefetch block to 64.
36408
36409 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
36410
36411         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
36412         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
36413         used to save the static chain register in the computation of the offset
36414         from which the FP registers need to be restored.
36415
36416 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
36417
36418         PR tree-optimization/59519
36419         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
36420         ICE if get_current_def (current_new_name) is already non-NULL, as long
36421         as it is a phi result of some other phi in *new_exit_bb that has
36422         the same argument.
36423
36424         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
36425         or vmovdqu* for misaligned_operand.
36426         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
36427         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
36428         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
36429         aligned_mem for AVX512F masked aligned load and store builtins and for
36430         non-temporal moves.
36431
36432 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
36433
36434         PR tree-optimization/59651
36435         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
36436         Address range for negative step should be added by TYPE_SIZE_UNIT.
36437
36438 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
36439
36440         * config/m68k/m68k.c (handle_move_double): Handle pushes with
36441         overlapping registers also for registers other than the stack pointer.
36442
36443 2014-01-03  Marek Polacek  <polacek@redhat.com>
36444
36445         PR other/59661
36446         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
36447         __builtin_FILE.
36448
36449 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
36450
36451         PR target/59625
36452         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
36453         asm goto as jump.
36454
36455         * config/i386/i386.md (MODE_SIZE): New mode attribute.
36456         (push splitter): Use <P:MODE_SIZE> instead of
36457         GET_MODE_SIZE (<P:MODE>mode).
36458         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
36459         (mov -1, reg peephole2): Likewise.
36460         * config/i386/sse.md (*mov<mode>_internal,
36461         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
36462         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
36463         *<code><mode>3, *andnot<mode>3<mask_name>,
36464         <mask_codefor><code><mode>3<mask_name>): Likewise.
36465         * config/i386/subst.md (mask_mode512bit_condition,
36466         sd_mask_mode512bit_condition): Likewise.
36467
36468 2014-01-02  Xinliang David Li  <davidxl@google.com>
36469
36470         PR tree-optimization/59303
36471         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
36472         (dump_predicates): Better output format.
36473         (pred_equal_p): New function.
36474         (is_neq_relop_p): Ditto.
36475         (is_neq_zero_form_p): Ditto.
36476         (pred_expr_equal_p): Ditto.
36477         (pred_neg_p): Ditto.
36478         (simplify_pred): Ditto.
36479         (simplify_preds_2): Ditto.
36480         (simplify_preds_3): Ditto.
36481         (simplify_preds_4): Ditto.
36482         (simplify_preds): Ditto.
36483         (push_pred): Ditto.
36484         (push_to_worklist): Ditto.
36485         (get_pred_info_from_cmp): Ditto.
36486         (is_degenerated_phi): Ditto.
36487         (normalize_one_pred_1): Ditto.
36488         (normalize_one_pred): Ditto.
36489         (normalize_one_pred_chain): Ditto.
36490         (normalize_preds): Ditto.
36491         (normalize_cond_1): Remove function.
36492         (normalize_cond): Ditto.
36493         (is_gcond_subset_of): Ditto.
36494         (is_subset_of_any): Ditto.
36495         (is_or_set_subset_of): Ditto.
36496         (is_and_set_subset_of): Ditto.
36497         (is_norm_cond_subset_of): Ditto.
36498         (pred_chain_length_cmp): Ditto.
36499         (convert_control_dep_chain_into_preds): Type change.
36500         (find_predicates): Ditto.
36501         (find_def_preds): Ditto.
36502         (destroy_predicates_vecs): Ditto.
36503         (find_matching_predicates_in_rest_chains): Ditto.
36504         (use_pred_not_overlap_with_undef_path_pred): Ditto.
36505         (is_pred_expr_subset): Ditto.
36506         (is_pred_chain_subset_of): Ditto.
36507         (is_included_in): Ditto.
36508         (is_superset_of): Ditto.
36509
36510 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
36511
36512         Update copyright years.
36513
36514 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
36515
36516         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
36517         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
36518         config/arc/arc.md, config/arc/arc.opt,
36519         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
36520         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
36521         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
36522         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
36523         config/linux-protos.h, config/linux.c, config/winnt-c.c,
36524         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
36525         vtable-verify.c, vtable-verify.h: Use the standard form for the
36526         copyright notice.
36527
36528 2014-01-02  Tobias Burnus  <burnus@net-b.de>
36529
36530         * gcc.c (process_command): Update copyright notice dates.
36531         * gcov-dump.c: Ditto.
36532         * gcov.c: Ditto.
36533         * doc/cpp.texi: Bump @copying's copyright year.
36534         * doc/cppinternals.texi: Ditto.
36535         * doc/gcc.texi: Ditto.
36536         * doc/gccint.texi: Ditto.
36537         * doc/gcov.texi: Ditto.
36538         * doc/install.texi: Ditto.
36539         * doc/invoke.texi: Ditto.
36540
36541 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
36542
36543         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
36544
36545 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
36546
36547         * config/i386/sse.md (*mov<mode>_internal): Guard
36548         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
36549
36550         PR rtl-optimization/59647
36551         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
36552         new_rtx into UNSIGNED_FLOAT rtxes.
36553 \f
36554 Copyright (C) 2014 Free Software Foundation, Inc.
36555
36556 Copying and distribution of this file, with or without modification,
36557 are permitted in any medium without royalty provided the copyright
36558 notice and this notice are preserved.